(self.webpackChunkweb=self.webpackChunkweb||[]).push([[179],{255:tl=>{function Go(nl){return Promise.resolve().then(()=>{var Gi=new Error("Cannot find module '"+nl+"'");throw Gi.code="MODULE_NOT_FOUND",Gi})}Go.keys=()=>[],Go.resolve=Go,Go.id=255,tl.exports=Go},452:(tl,Go,nl)=>{"use strict";function Gi(n){return"function"==typeof n}let zf=!1;const bi={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else zf&&console.log("RxJS: Back to a better error behavior. Thank you. <3");zf=n},get useDeprecatedSynchronousErrorHandling(){return zf}};function Ds(n){setTimeout(()=>{throw n},0)}const lu={closed:!0,next(n){},error(n){if(bi.useDeprecatedSynchronousErrorHandling)throw n;Ds(n)},complete(){}},zo=Array.isArray||(n=>n&&"number"==typeof n.length);function Uf(n){return null!==n&&"object"==typeof n}const cu=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class He{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:o,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof He)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof cu?e.errors:e),[])}He.EMPTY=((n=new He).closed=!0,n);const uu="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Qe extends He{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=lu;break;case 1:if(!t){this.destination=lu;break}if("object"==typeof t){t instanceof Qe?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new uv(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new uv(this,t,e,i)}}[uu](){return this}static create(t,e,i){const o=new Qe(t,e,i);return o.syncErrorThrowable=!1,o}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 uv extends Qe{constructor(t,e,i,o){super(),this._parentSubscriber=t;let r,s=this;Gi(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==lu&&(s=Object.create(e),Gi(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;bi.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:i}=bi;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Ds(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Ds(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);bi.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(i){if(this.unsubscribe(),bi.useDeprecatedSynchronousErrorHandling)throw i;Ds(i)}}__tryOrSetError(t,e,i){if(!bi.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(o){return bi.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=o,t.syncErrorThrown=!0,!0):(Ds(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const il="function"==typeof Symbol&&Symbol.observable||"@@observable";function du(n){return n}let Le=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,o){const{operator:r}=this,s=function(n,t,e){if(n){if(n instanceof Qe)return n;if(n[uu])return n[uu]()}return n||t||e?new Qe(n,t,e):new Qe(lu)}(e,i,o);if(s.add(r?r.call(s,this.source):this.source||bi.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),bi.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){bi.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Qe?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=hv(i))((o,r)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){r(l),s&&s.unsubscribe()}},r,o)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[il](){return this}pipe(...e){return 0===e.length?this:function(n){return 0===n.length?du:1===n.length?n[0]:function(e){return n.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=hv(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return n.create=t=>new n(t),n})();function hv(n){if(n||(n=bi.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Dr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class fv extends He{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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class pv extends Qe{constructor(t){super(t),this.destination=t}}let W=(()=>{class n extends Le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[uu](){return new pv(this)}lift(e){const i=new mv(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Dr;if(!this.isStopped){const{observers:i}=this,o=i.length,r=i.slice();for(let s=0;snew mv(t,e),n})();class mv extends W{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):He.EMPTY}}function Ms(n){return n&&"function"==typeof n.schedule}function ae(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new fN(n,t))}}class fN{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new pN(t,this.project,this.thisArg))}}class pN extends Qe{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const gv=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function yv(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Wf=n=>{if(n&&"function"==typeof n[il])return(n=>t=>{const e=n[il]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(_v(n))return gv(n);if(yv(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Ds),t))(n);if(n&&"function"==typeof n[Uo])return(n=>t=>{const e=n[Uo]();for(;;){let i;try{i=e.next()}catch(o){return t.error(o),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Uf(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function qf(n,t){return new Le(e=>{const i=new He;let o=0;return i.add(t.schedule(function(){o!==n.length?(e.next(n[o++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Qt(n,t){return t?function(n,t){if(null!=n){if(function(n){return n&&"function"==typeof n[il]}(n))return function(n,t){return new Le(e=>{const i=new He;return i.add(t.schedule(()=>{const o=n[il]();i.add(o.subscribe({next(r){i.add(t.schedule(()=>e.next(r)))},error(r){i.add(t.schedule(()=>e.error(r)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(yv(n))return function(n,t){return new Le(e=>{const i=new He;return i.add(t.schedule(()=>n.then(o=>{i.add(t.schedule(()=>{e.next(o),i.add(t.schedule(()=>e.complete()))}))},o=>{i.add(t.schedule(()=>e.error(o)))}))),i})}(n,t);if(_v(n))return qf(n,t);if(function(n){return n&&"function"==typeof n[Uo]}(n)||"string"==typeof n)return function(n,t){if(!n)throw new Error("Iterable cannot be null");return new Le(e=>{const i=new He;let o;return i.add(()=>{o&&"function"==typeof o.return&&o.return()}),i.add(t.schedule(()=>{o=n[Uo](),i.add(t.schedule(function(){if(e.closed)return;let r,s;try{const a=o.next();r=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(r),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Le?n:new Le(Wf(n))}class Es extends Qe{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class xs extends Qe{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Ss(n,t){if(t.closed)return;if(n instanceof Le)return n.subscribe(t);let e;try{e=Wf(n)(t)}catch(i){t.error(i)}return e}function $t(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe($t((o,r)=>Qt(n(o,r)).pipe(ae((s,a)=>t(o,s,r,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new EN(n,e)))}class EN{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new xN(t,this.project,this.concurrent))}}class xN extends xs{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function ol(n=Number.POSITIVE_INFINITY){return $t(du,n)}function rl(n,t){return t?qf(n,t):new Le(gv(n))}function ho(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return Ms(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Le?n[0]:ol(t)(rl(n,e))}function Yf(){return function(t){return t.lift(new SN(t))}}class SN{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const o=new TN(t,i),r=e.subscribe(o);return o.closed||(o.connection=i.connect()),r}}class TN extends Qe{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:i}=this,o=t._connection;this.connection=null,o&&(!i||o===i)&&o.unsubscribe()}}class bv extends Le{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 He,t.add(this.source.subscribe(new IN(this.getSubject(),this))),t.closed&&(this._connection=null,t=He.EMPTY)),t}refCount(){return Yf()(this)}}const kN=(()=>{const n=bv.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class IN extends pv{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 ON(){return new W}function Kf(){return n=>Yf()(function(n,t){return function(i){let o;o="function"==typeof n?n:function(){return n};const r=Object.create(i,kN);return r.source=i,r.subjectFactory=o,r}}(ON)(n))}function Je(n){for(let t in n)if(n[t]===Je)return t;throw Error("Could not find renamed property on target object.")}function Qf(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Ae(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ae).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Jf(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const FN=Je({__forward_ref__:Je});function Me(n){return n.__forward_ref__=Me,n.toString=function(){return Ae(this())},n}function le(n){return vv(n)?n():n}function vv(n){return"function"==typeof n&&n.hasOwnProperty(FN)&&n.__forward_ref__===Me}class Mr extends Error{constructor(t,e){super(function(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function Ee(n){return"string"==typeof n?n:null==n?"":String(n)}function Cn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Ee(n)}function hu(n,t){const e=t?` in ${t}`:"";throw new Mr("201",`No provider for ${Cn(n)} found${e}`)}function Hn(n,t){null==n&&function(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function A(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function X(n){return{providers:n.providers||[],imports:n.imports||[]}}function po(n){return Cv(n,fu)||Cv(n,Dv)}function Cv(n,t){return n.hasOwnProperty(t)?n[t]:null}function wv(n){return n&&(n.hasOwnProperty(Zf)||n.hasOwnProperty(jN))?n[Zf]:null}const fu=Je({\u0275prov:Je}),Zf=Je({\u0275inj:Je}),Dv=Je({ngInjectableDef:Je}),jN=Je({ngInjectorDef:Je});var ue=(()=>((ue=ue||{})[ue.Default=0]="Default",ue[ue.Host=1]="Host",ue[ue.Self=2]="Self",ue[ue.SkipSelf=4]="SkipSelf",ue[ue.Optional=8]="Optional",ue))();let ep;function Wo(n){const t=ep;return ep=n,t}function Mv(n,t,e){const i=po(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ue.Optional?null:void 0!==t?t:void hu(Ae(n),"Injector")}function qo(n){return{toString:n}.toString()}var ei=(()=>((ei=ei||{})[ei.OnPush=0]="OnPush",ei[ei.Default=1]="Default",ei))(),Ft=(()=>((Ft=Ft||{})[Ft.Emulated=0]="Emulated",Ft[Ft.None=2]="None",Ft[Ft.ShadowDom=3]="ShadowDom",Ft))();const zN="undefined"!=typeof globalThis&&globalThis,UN="undefined"!=typeof window&&window,WN="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Xe=zN||"undefined"!=typeof global&&global||UN||WN,Ts={},nt=[],pu=Je({\u0275cmp:Je}),tp=Je({\u0275dir:Je}),np=Je({\u0275pipe:Je}),Ev=Je({\u0275mod:Je}),qN=Je({\u0275loc:Je}),mo=Je({\u0275fac:Je}),sl=Je({__NG_ELEMENT_ID__:Je});let YN=0;function Z(n){return qo(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ei.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||nt,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ft.Emulated,id:"c",styles:n.styles||nt,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.directives,r=n.features,s=n.pipes;return i.id+=YN++,i.inputs=kv(n.inputs,e),i.outputs=kv(n.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(xv):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(Sv):null,i})}function xv(n){return Dn(n)||function(n){return n[tp]||null}(n)}function Sv(n){return function(n){return n[np]||null}(n)}const Tv={};function ee(n){return qo(()=>{const t={type:n.type,bootstrap:n.bootstrap||nt,declarations:n.declarations||nt,imports:n.imports||nt,exports:n.exports||nt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Tv[n.id]=n.type),t})}function kv(n,t){if(null==n)return Ts;const e={};for(const i in n)if(n.hasOwnProperty(i)){let o=n[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,t&&(t[o]=r)}return e}const k=Z;function wn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function Dn(n){return n[pu]||null}function ti(n,t){const e=n[Ev]||null;if(!e&&!0===t)throw new Error(`Type ${Ae(n)} does not have '\u0275mod' property.`);return e}function zi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ci(n){return Array.isArray(n)&&!0===n[1]}function rp(n){return 0!=(8&n.flags)}function yu(n){return 2==(2&n.flags)}function bu(n){return 1==(1&n.flags)}function wi(n){return null!==n.template}function t2(n){return 0!=(512&n[2])}function kr(n,t){return n.hasOwnProperty(mo)?n[mo]:null}class Av{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ye(){return Rv}function Rv(n){return n.type.prototype.ngOnChanges&&(n.setInput=s2),r2}function r2(){const n=Ov(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Ts)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function s2(n,t,e,i){const o=Ov(n)||function(n,t){return n[Nv]=t}(n,{previous:Ts,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[e],l=s[a];r[a]=new Av(l&&l.currentValue,t,s===Ts),n[i]=t}ye.ngInherit=!0;const Nv="__ngSimpleChanges__";function Ov(n){return n[Nv]||null}const Fv="http://www.w3.org/2000/svg";let lp;function Mt(n){return!!n.listen}const Lv={createRenderer:(n,t)=>void 0!==lp?lp:"undefined"!=typeof document?document:void 0};function Pt(n){for(;Array.isArray(n);)n=n[0];return n}function vu(n,t){return Pt(t[n])}function oi(n,t){return Pt(t[n.index])}function up(n,t){return n.data[t]}function Ns(n,t){return n[t]}function jn(n,t){const e=t[n];return zi(e)?e:e[0]}function Vv(n){return 4==(4&n[2])}function dp(n){return 128==(128&n[2])}function Ko(n,t){return null==t?null:n[t]}function Bv(n){n[18]=0}function hp(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const be={lFrame:qv(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Hv(){return be.bindingsEnabled}function P(){return be.lFrame.lView}function Ue(){return be.lFrame.tView}function S(n){return be.lFrame.contextLView=n,n[8]}function jt(){let n=$v();for(;null!==n&&64===n.type;)n=n.parent;return n}function $v(){return be.lFrame.currentTNode}function Ui(n,t){const e=be.lFrame;e.currentTNode=n,e.isParent=t}function fp(){return be.lFrame.isParent}function pp(){be.lFrame.isParent=!1}function Cu(){return be.isInCheckNoChangesMode}function wu(n){be.isInCheckNoChangesMode=n}function Mn(){const n=be.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Os(){return be.lFrame.bindingIndex++}function go(n){const t=be.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function C2(n,t){const e=be.lFrame;e.bindingIndex=e.bindingRootIndex=n,mp(t)}function mp(n){be.lFrame.currentDirectiveIndex=n}function gp(n){const t=be.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function zv(){return be.lFrame.currentQueryIndex}function _p(n){be.lFrame.currentQueryIndex=n}function D2(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Uv(n,t,e){if(e&ue.SkipSelf){let o=t,r=n;for(;!(o=o.parent,null!==o||e&ue.Host||(o=D2(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,n=r}const i=be.lFrame=Wv();return i.currentTNode=t,i.lView=n,!0}function Du(n){const t=Wv(),e=n[1];be.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Wv(){const n=be.lFrame,t=null===n?null:n.child;return null===t?qv(n):t}function qv(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Yv(){const n=be.lFrame;return be.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Kv=Yv;function Mu(){const n=Yv();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function En(){return be.lFrame.selectedIndex}function Qo(n){be.lFrame.selectedIndex=n}function Et(){const n=be.lFrame;return up(n.tView,n.selectedIndex)}function _o(){be.lFrame.currentNamespace=Fv}function Eu(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class dl{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Tu(n,t,e){const i=Mt(n);let o=0;for(;ot){s=r-1;break}}}for(;r>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let wp=!0;function Iu(n){const t=wp;return wp=n,t}let P2=0;function fl(n,t){const e=Mp(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Dp(i.data,n),Dp(t,null),Dp(i.blueprint,null));const o=Au(n,t),r=n.injectorIndex;if(Zv(o)){const s=Fs(o),a=Ps(o,t),l=a[1].data;for(let c=0;c<8;c++)t[r+c]=a[s+c]|l[s+c]}return t[r+8]=o,r}function Dp(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Mp(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Au(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,o=t;for(;null!==o;){const r=o[1],s=r.type;if(i=2===s?r.declTNode:1===s?o[6]:null,null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Ru(n,t,e){!function(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(sl)&&(i=e[sl]),null==i&&(i=e[sl]=P2++);const o=255&i;t.data[n+(o>>5)]|=1<=0?255&t:B2:t}(e);if("function"==typeof r){if(!Uv(t,n,i))return i&ue.Host?n1(o,e,i):i1(t,e,i,o);try{const s=r(i);if(null!=s||i&ue.Optional)return s;hu(e)}finally{Kv()}}else if("number"==typeof r){let s=null,a=Mp(n,t),l=-1,c=i&ue.Host?t[16][6]:null;for((-1===a||i&ue.SkipSelf)&&(l=-1===a?Au(n,t):t[a+8],-1!==l&&a1(i,!1)?(s=t[1],a=Fs(l),t=Ps(l,t)):a=-1);-1!==a;){const h=t[1];if(s1(r,a,h.data)){const f=H2(a,t,e,s,i,c);if(f!==r1)return f}l=t[a+8],-1!==l&&a1(i,t[1].data[a+8]===c)&&s1(r,a,t)?(s=h,a=Fs(l),t=Ps(l,t)):a=-1}}}return i1(t,e,i,o)}const r1={};function B2(){return new Ls(jt(),P())}function H2(n,t,e,i,o,r){const s=t[1],a=s.data[n+8],h=Nu(a,s,e,null==i?yu(a)&&wp:i!=s&&0!=(3&a.type),o&ue.Host&&r===a);return null!==h?pl(t,s,h,a):r1}function Nu(n,t,e,i,o){const r=n.providerIndexes,s=t.data,a=1048575&r,l=n.directiveStart,h=r>>20,p=o?a+h:n.directiveEnd;for(let g=i?a:a+h;g=l&&b.type===e)return g}if(o){const g=s[l];if(g&&wi(g)&&g.type===e)return l}return null}function pl(n,t,e,i){let o=n[e];const r=t.data;if(function(n){return n instanceof dl}(o)){const s=o;s.resolving&&function(n,t){throw new Mr("200",`Circular dependency in DI detected for ${n}`)}(Cn(r[e]));const a=Iu(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Wo(s.injectImpl):null;Uv(n,i,ue.Default);try{o=n[e]=s.factory(void 0,r,n,i),t.firstCreatePass&&e>=i.directiveStart&&function(n,t,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const s=Rv(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,r))}(e,r[e],t)}finally{null!==l&&Wo(l),Iu(a),s.resolving=!1,Kv()}}return o}function s1(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[mo]||Ep(t),i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){const r=o[mo]||Ep(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ep(n){return vv(n)?()=>{const t=Ep(le(n));return t&&t()}:kr(n)}function xn(n){return function(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let o=0;for(;o{const i=function(n){return function(...e){if(n){const i=n(...e);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,h){const f=l.hasOwnProperty(Bs)?l[Bs]:Object.defineProperty(l,Bs,{value:[]})[Bs];for(;f.length<=h;)f.push(null);return(f[h]=f[h]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class j{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=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const z2=new j("AnalyzeForEntryComponents"),$s=Function;function ri(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?qi(e,t):t(e))}function Fu(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ar(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Xo(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function(n,t,e,i){let o=n.length;if(o==t)n.push(e,i);else if(1===o)n.push(i,n[0]),n[0]=e;else{for(o--,n.push(n[o-1],n[o]);o>t;)n[o]=n[o-2],o--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Sp(n,t){const e=js(n,t);if(e>=0)return n[1|e]}function js(n,t){return function(n,t,e){let i=0,o=n.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=n[r<t?o=r:i=r+1}return~(o< ");else if("object"==typeof t){let r=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):Ae(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${n.replace(eO,"\n ")}`}("\n"+n.message,o,e,i),n.ngTokenPath=o,n[Gs]=null,n}const Us=vl(Ir("Inject",n=>({token:n})),-1),an=vl(Ir("Optional"),8),yo=vl(Ir("SkipSelf"),4);let Hu;function qs(n){var t;return(null===(t=function(){if(void 0===Hu&&(Hu=null,Xe.trustedTypes))try{Hu=Xe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Hu}())||void 0===t?void 0:t.createHTML(n))||n}class Nr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class pO extends Nr{getTypeName(){return"HTML"}}class mO extends Nr{getTypeName(){return"Style"}}class gO extends Nr{getTypeName(){return"Script"}}class _O extends Nr{getTypeName(){return"URL"}}class yO extends Nr{getTypeName(){return"ResourceURL"}}function zn(n){return n instanceof Nr?n.changingThisBreaksApplicationSecurity:n}function Yi(n,t){const e=C1(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function C1(n){return n instanceof Nr&&n.getTypeName()||null}class MO{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(qs(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class EO{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=qs(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=qs(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let o=e.length-1;0wl(t.trim())).join(", ")}function Ki(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Dl(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const M1=Ki("area,br,col,hr,img,wbr"),E1=Ki("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),x1=Ki("rp,rt"),Fp=Dl(M1,Dl(E1,Ki("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dl(x1,Ki("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dl(x1,E1)),Pp=Ki("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Lp=Ki("srcset"),S1=Dl(Pp,Lp,Ki("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ki("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),kO=Ki("script,style,template");class IO{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Fp.hasOwnProperty(e))return this.sanitizedSomething=!0,!kO.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let o=0;o"),!0}endElement(t){const e=t.nodeName.toLowerCase();Fp.hasOwnProperty(e)&&!M1.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(T1(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 AO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RO=/([^\#-~ |!])/g;function T1(n){return n.replace(/&/g,"&").replace(AO,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(RO,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ju;function k1(n,t){let e=null;try{ju=ju||function(n){const t=new EO(n);return function(){try{return!!(new window.DOMParser).parseFromString(qs(""),"text/html")}catch(n){return!1}}()?new MO(t):t}(n);let i=t?String(t):"";e=ju.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=ju.getInertBodyElement(i)}while(i!==r);return qs((new IO).sanitizeChildren(Vp(e)||e))}finally{if(e){const i=Vp(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Vp(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var qe=(()=>((qe=qe||{})[qe.NONE=0]="NONE",qe[qe.HTML=1]="HTML",qe[qe.STYLE=2]="STYLE",qe[qe.SCRIPT=3]="SCRIPT",qe[qe.URL=4]="URL",qe[qe.RESOURCE_URL=5]="RESOURCE_URL",qe))();function Gu(n){const t=function(){const n=P();return n&&n[12]}();return t?t.sanitize(qe.URL,n)||"":Yi(n,"URL")?zn(n):wl(Ee(n))}const R1="__ngContext__";function fn(n,t){n[R1]=t}function Hp(n){const t=function(n){return n[R1]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function zu(n){return n.ngOriginalError}function QO(n,...t){n.error(...t)}class si{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),o=function(n){return n&&n.ngErrorLogger||QO}(t);o(this._console,"ERROR",t),e&&o(this._console,"ORIGINAL ERROR",e),i&&o(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function(n){return n.ngDebugContext}(t)||this._findContext(zu(t)):null}_findOriginalError(t){let e=t&&zu(t);for(;e&&zu(e);)e=zu(e);return e||null}}const $1=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Xe))();function j1(n){return n.ownerDocument.defaultView}function xl(n){return n.ownerDocument}function Qi(n){return n instanceof Function?n():n}var Un=(()=>((Un=Un||{})[Un.Important=1]="Important",Un[Un.DashCase=2]="DashCase",Un))();function Gp(n,t){return undefined(n,t)}function Sl(n){const t=n[3];return Ci(t)?t[3]:t}function zp(n){return q1(n[13])}function Up(n){return q1(n[4])}function q1(n){for(;null!==n&&!Ci(n);)n=n[4];return n}function Ks(n,t,e,i,o){if(null!=i){let r,s=!1;Ci(i)?r=i:zi(i)&&(s=!0,i=i[0]);const a=Pt(i);0===n&&null!==e?null==o?Z1(t,e,a):Or(t,e,a,o||null,!0):1===n&&null!==e?Or(t,e,a,o||null,!0):2===n?function(n,t,e){const i=Wu(n,t);i&&function(n,t,e,i){Mt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=r&&function(n,t,e,i,o){const r=e[7];r!==Pt(e)&&Ks(t,n,i,r,o);for(let a=10;a0&&(n[e-1][4]=i[4]);const r=Ar(n,10+t);!function(n,t){Tl(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Q1(n,t){if(!(256&t[2])){const e=t[11];Mt(e)&&e.destroyNode&&Tl(n,t,e,3,null,null),function(n){let t=n[13];if(!t)return Kp(n[1],n);for(;t;){let e=null;if(zi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)zi(t)&&Kp(t[1],t),t=t[3];null===t&&(t=n),zi(t)&&Kp(t[1],t),e=t&&t[4]}t=e}}(t)}}function Kp(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[o=c]():i[o=-c].unsubscribe(),r+=2}else{const s=i[o=e[r+1]];e[r].call(s)}if(null!==i){for(let r=o+1;rr?"":o[f+1].toLowerCase();const g=8&i?p:null;if(g&&-1!==u0(g,c,0)||2&i&&c!==p){if(Di(i))return!1;s=!0}}}}else{if(!s&&!Di(i)&&!Di(l))return!1;if(s&&Di(l))continue;s=!1,i=l|1&i}}return Di(i)||s}function Di(n){return 0==(1&n)}function DF(n,t,e,i){if(null===t)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Di(s)&&(t+=p0(r,o),o=""),i=s,r=r||!Di(i);e++}return""!==o&&(t+=p0(r,o)),t}const Ce={};function y(n){m0(Ue(),P(),En()+n,Cu())}function m0(n,t,e,i){if(!i)if(3==(3&t[2])){const r=n.preOrderCheckHooks;null!==r&&xu(t,r,e)}else{const r=n.preOrderHooks;null!==r&&Su(t,r,0,e)}Qo(e)}function Ku(n,t){return n<<17|t<<2}function Mi(n){return n>>17&32767}function em(n){return 2|n}function bo(n){return(131068&n)>>2}function tm(n,t){return-131069&n|t<<2}function nm(n){return 1|n}function E0(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&m0(n,t,20,Cu()),e(i,o)}finally{Qo(r)}}function S0(n,t,e){if(rp(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,o,s)}}function F0(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function P0(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function eP(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&pm(e)}}function pm(n){for(let i=zp(n);null!==i;i=Up(i))for(let o=10;o0&&pm(r)}const e=n[1].components;if(null!==e)for(let i=0;i0&&pm(o)}}function aP(n,t){const e=jn(t,n),i=e[1];(function(n,t){for(let e=t.length;ePromise.resolve(null))();function $0(n){return n[7]||(n[7]=[])}function j0(n){return n.cleanup||(n.cleanup=[])}function G0(n,t,e){return(null===n||wi(n))&&(e=function(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function z0(n,t){const e=n[9],i=e?e.get(si,null):null;i&&i.handleError(t)}function U0(n,t,e,i,o){for(let r=0;rthis.processProvider(a,t,e)),qi([t],a=>this.processInjectorType(a,[],r)),this.records.set(tr,Zs(void 0,this));const s=this.records.get(Al);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Ae(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=yl,i=ue.Default){this.assertNotDestroyed();const o=zs(this),r=Wo(void 0);try{if(!(i&ue.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof j}(t)&&po(t);a=l&&this.injectableDefInScope(l)?Zs(vm(t),Rl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&ue.Self?q0():this.parent).get(t,e=i&ue.Optional&&e===yl?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Gs]=s[Gs]||[]).unshift(Ae(t)),o)throw s;return f1(s,t,"R3InjectorError",this.source)}throw s}finally{Wo(r),zs(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(Ae(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=le(t)))return!1;let o=wv(t);const r=null==o&&t.ngModule||void 0,s=void 0===r?t:r,a=-1!==i.indexOf(s);if(void 0!==r&&(o=wv(r)),null==o)return!1;if(null!=o.imports&&!a){let h;i.push(s);try{qi(o.imports,f=>{this.processInjectorType(f,e,i)&&(void 0===h&&(h=[]),h.push(f))})}finally{}if(void 0!==h)for(let f=0;fthis.processProvider(b,p,g||nt))}}this.injectorDefTypes.add(s);const l=kr(s)||(()=>new s);this.records.set(s,Zs(l,Rl));const c=o.providers;if(null!=c&&!a){const h=t;qi(c,f=>this.processProvider(f,h,c))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,i){let o=ea(t=le(t))?t:le(t&&t.provide);const r=function(n,t,e){return Q0(n)?Zs(void 0,n.useValue):Zs(K0(n),Rl)}(t);if(ea(t)||!0!==t.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Zs(void 0,Rl,!0),s.factory=()=>Rr(s.multi),this.records.set(o,s)),o=t,s.multi.push(t)}this.records.set(o,r)}hydrate(t,e){return e.value===Rl&&(e.value=mP,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=le(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function vm(n){const t=po(n),e=null!==t?t.factory:kr(n);if(null!==e)return e;if(n instanceof j)throw new Error(`Token ${Ae(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const t=n.length;if(t>0){const i=Xo(t,"?");throw new Error(`Can't resolve all parameters for ${Ae(n)}: (${i.join(", ")}).`)}const e=function(n){const t=n&&(n[fu]||n[Dv]);if(t){const e=function(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function K0(n,t,e){let i;if(ea(n)){const o=le(n);return kr(o)||vm(o)}if(Q0(n))i=()=>le(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Rr(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))i=()=>E(le(n.useExisting));else{const o=le(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return kr(o)||vm(o);i=()=>new o(...Rr(n.deps))}return i}function Zs(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Q0(n){return null!==n&&"object"==typeof n&&Ap in n}function ea(n){return"function"==typeof n}const J0=function(n,t,e){return function(n,t=null,e=null,i){const o=Y0(n,t,e,i);return o._resolveInjectorDefTypes(),o}({name:e},t,n,e)};let ke=(()=>{class n{static create(e,i){return Array.isArray(e)?J0(e,i,""):J0(e.providers,e.parent,e.name||"")}}return n.THROW_IF_NOT_FOUND=yl,n.NULL=new W0,n.\u0275prov=A({token:n,providedIn:"any",factory:()=>E(tr)}),n.__NG_ELEMENT_ID__=-1,n})();function VP(n,t){Eu(Hp(n)[1],jt())}function G(n){let t=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let o;if(wi(n))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(e){i.push(o);const s=n;s.inputs=xm(n.inputs),s.declaredInputs=xm(n.declaredInputs),s.outputs=xm(n.outputs);const a=o.hostBindings;a&&jP(n,a);const l=o.viewQuery,c=o.contentQueries;if(l&&HP(n,l),c&&$P(n,c),Qf(n.inputs,o.inputs),Qf(n.declaredInputs,o.declaredInputs),Qf(n.outputs,o.outputs),wi(o)&&o.data.animation){const h=n.data;h.animation=(h.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let s=0;s=0;i--){const o=n[i];o.hostVars=t+=o.hostVars,o.hostAttrs=ku(o.hostAttrs,e=ku(e,o.hostAttrs))}}(i)}function xm(n){return n===Ts?{}:n===nt?[]:n}function HP(n,t){const e=n.viewQuery;n.viewQuery=e?(i,o)=>{t(i,o),e(i,o)}:t}function $P(n,t){const e=n.contentQueries;n.contentQueries=e?(i,o,r)=>{t(i,o,r),e(i,o,r)}:t}function jP(n,t){const e=n.hostBindings;n.hostBindings=e?(i,o)=>{t(i,o),e(i,o)}:t}let td=null;function ta(){if(!td){const n=Xe.Symbol;if(n&&n.iterator)td=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Pt($[i.index])):i.index;if(Mt(e)){let $=null;if(!a&&l&&($=function(n,t,e,i){const o=n.cleanup;if(null!=o)for(let r=0;rl?a[l]:null}"string"==typeof s&&(r+=2)}return null}(n,t,o,i.index)),null!==$)($.__ngLastListenerFn__||$).__ngNextListenerFn__=r,$.__ngLastListenerFn__=r,g=!1;else{r=Om(i,t,f,r,!1);const ce=e.listen(I,o,r);p.push(r,ce),h&&h.push(o,N,T,T+1)}}else r=Om(i,t,f,r,!0),I.addEventListener(o,r,s),p.push(r),h&&h.push(o,N,T,s)}else r=Om(i,t,f,r,!1);const b=i.outputs;let w;if(g&&null!==b&&(w=b[o])){const D=w.length;if(D)for(let I=0;I0;)t=t[15],n--;return t}(n,be.lFrame.contextLView))[8]}(n)}function wL(n,t){let e=null;const i=function(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let o=0;o=0}const zt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qC(n){return n.substring(zt.key,zt.keyEnd)}function YC(n,t){const e=zt.textEnd;return e===t?-1:(t=zt.keyEnd=function(n,t,e){for(;t32;)t++;return t}(n,zt.key=t,e),ha(n,t,e))}function ha(n,t,e){for(;t=0;e=YC(t,e))Gn(n,qC(t),!0)}function Ti(n,t,e,i){const o=P(),r=Ue(),s=go(2);r.firstUpdatePass&&ew(r,n,s,i),t!==Ce&&pn(o,s,t)&&nw(r,r.data[En()],o,o[11],n,o[s+1]=function(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Ae(zn(n)))),n}(t,e),i,s)}function ki(n,t,e,i){const o=Ue(),r=go(2);o.firstUpdatePass&&ew(o,null,r,i);const s=P();if(e!==Ce&&pn(s,r,e)){const a=o.data[En()];if(ow(a,i)&&!ZC(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Jf(l,e||"")),Rm(o,a,s,e,i)}else!function(n,t,e,i,o,r,s,a){o===Ce&&(o=nt);let l=0,c=0,h=0=n.expandoStartIndex}function ew(n,t,e,i){const o=n.data;if(null===o[e+1]){const r=o[En()],s=ZC(n,e);ow(r,i)&&null===t&&!s&&(t=!1),t=function(n,t,e,i){const o=gp(n);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(e=Ll(e=Fm(null,n,t,e,i),t.attrs,i),r=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==o)if(e=Fm(o,n,t,e,i),null===r){let l=function(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==bo(i))return n[Mi(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Fm(null,n,t,l[1],i),l=Ll(l,t.attrs,i),function(n,t,e,i){n[Mi(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else r=function(n,t,e){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(c=!0)}else h=e;if(o)if(0!==l){const p=Mi(n[a+1]);n[i+1]=Ku(p,a),0!==p&&(n[p+1]=tm(n[p+1],i)),n[a+1]=function(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Ku(a,0),0!==a&&(n[a+1]=tm(n[a+1],i)),a=i;else n[i+1]=Ku(l,0),0===a?a=i:n[l+1]=tm(n[l+1],i),l=i;c&&(n[i+1]=em(n[i+1])),WC(n,h,i,!0),WC(n,h,i,!1),function(n,t,e,i,o){const r=o?n.residualClasses:n.residualStyles;null!=r&&"string"==typeof t&&js(r,t)>=0&&(e[i+1]=nm(e[i+1]))}(t,h,n,i,r),s=Ku(a,l),r?t.classBindings=s:t.styleBindings=s}(o,r,t,e,s,i)}}function Fm(n,t,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[o],c=Array.isArray(l),h=c?l[1]:l,f=null===h;let p=e[o+1];p===Ce&&(p=f?nt:void 0);let g=f?Sp(p,i):h===i?p:void 0;if(c&&!sd(g)&&(g=Sp(l,i)),sd(g)&&(a=g,s))return a;const b=n[o+1];o=s?Mi(b):bo(b)}if(null!==t){let l=r?t.residualClasses:t.residualStyles;null!=l&&(a=Sp(l,i))}return a}function sd(n){return void 0!==n}function ow(n,t){return 0!=(n.flags&(t?16:32))}function C(n,t=""){const e=P(),i=Ue(),o=n+20,r=i.firstCreatePass?Qs(i,o,1,t,null):i.data[o],s=e[o]=function(n,t){return Mt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);qu(i,e,s,r),Ui(r,!1)}function we(n){return Xt("",n,""),we}function Xt(n,t,e){const i=P(),o=ia(i,n,t,e);return o!==Ce&&Co(i,En(),o),Xt}function Ut(n,t,e){const i=P();return pn(i,Os(),t)&&Wn(Ue(),Et(),i,n,t,i[11],e,!0),Ut}function Pm(n,t,e){const i=P();if(pn(i,Os(),t)){const r=Ue(),s=Et();Wn(r,s,i,n,t,G0(gp(r.data),s,i),e,!0)}return Pm}const Pr=void 0;var i3=["en",[["a","p"],["AM","PM"],Pr],[["AM","PM"],Pr,Pr],[["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"]],Pr,[["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"]],Pr,[["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}",Pr,"{1} 'at' {0}",Pr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(n){const t=Math.floor(Math.abs(n)),e=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}];let fa={};function Ew(n){return n in fa||(fa[n]=Xe.ng&&Xe.ng.common&&Xe.ng.common.locales&&Xe.ng.common.locales[n]),fa[n]}var K=(()=>((K=K||{})[K.LocaleId=0]="LocaleId",K[K.DayPeriodsFormat=1]="DayPeriodsFormat",K[K.DayPeriodsStandalone=2]="DayPeriodsStandalone",K[K.DaysFormat=3]="DaysFormat",K[K.DaysStandalone=4]="DaysStandalone",K[K.MonthsFormat=5]="MonthsFormat",K[K.MonthsStandalone=6]="MonthsStandalone",K[K.Eras=7]="Eras",K[K.FirstDayOfWeek=8]="FirstDayOfWeek",K[K.WeekendRange=9]="WeekendRange",K[K.DateFormat=10]="DateFormat",K[K.TimeFormat=11]="TimeFormat",K[K.DateTimeFormat=12]="DateTimeFormat",K[K.NumberSymbols=13]="NumberSymbols",K[K.NumberFormats=14]="NumberFormats",K[K.CurrencyCode=15]="CurrencyCode",K[K.CurrencySymbol=16]="CurrencySymbol",K[K.CurrencyName=17]="CurrencyName",K[K.Currencies=18]="Currencies",K[K.Directionality=19]="Directionality",K[K.PluralCase=20]="PluralCase",K[K.ExtraData=21]="ExtraData",K))();const ad="en-US";let xw=ad;function Lm(n){Hn(n,"Expected localeId to be defined"),"string"==typeof n&&(xw=n.toLowerCase().replace(/_/g,"-"))}function Hm(n,t,e,i,o){if(n=le(n),Array.isArray(n))for(let r=0;r>20;if(ea(n)||!n.multi){const g=new dl(l,o,m),b=jm(a,t,o?h:h+p,f);-1===b?(Ru(fl(c,s),r,a),$m(r,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(g),s.push(g)):(e[b]=g,s[b]=g)}else{const g=jm(a,t,h+p,f),b=jm(a,t,h,h+p),w=g>=0&&e[g],D=b>=0&&e[b];if(o&&!D||!o&&!w){Ru(fl(c,s),r,a);const I=function(n,t,e,i,o){const r=new dl(n,e,m);return r.multi=[],r.index=t,r.componentProviders=0,Kw(r,o,i&&!e),r}(o?X3:J3,e.length,o,i,l);!o&&D&&(e[b].providerFactory=I),$m(r,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(I),s.push(I)}else $m(r,n,g>-1?g:b,Kw(e[o?b:g],l,!o&&i));!o&&i&&D&&e[b].componentProviders++}}}function $m(n,t,e,i){const o=ea(t);if(o||function(n){return!!n.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=n.destroyHooks||(n.destroyHooks=[]);if(!o&&t.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,s]):a[l+1].push(i,s)}else a.push(e,s)}}}function Kw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function jm(n,t,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function(n,t,e){const i=Ue();if(i.firstCreatePass){const o=wi(n);Hm(e,i.data,i.blueprint,o,!0),Hm(t,i.data,i.blueprint,o,!1)}}(i,o?o(n):n,t)}}class Qw{}const Xw="ngComponent";class tV{resolveComponentFactory(t){throw function(n){const t=Error(`No component factory found for ${Ae(n)}. Did you add it to @NgModule.entryComponents?`);return t[Xw]=n,t}(t)}}let In=(()=>{class n{}return n.NULL=new tV,n})();function hd(...n){}function ga(n,t){return new V(oi(n,t))}const oV=function(){return ga(jt(),P())};let V=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=oV,n})();function Zw(n){return n instanceof V?n.nativeElement:n}class Do{}let St=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>sV(),n})();const sV=function(){const n=P(),e=jn(jt().index,n);return function(n){return n[11]}(zi(e)?e:n)};let Um=(()=>{class n{}return n.\u0275prov=A({token:n,providedIn:"root",factory:()=>null}),n})();class nr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const eD=new nr("12.2.11");class tD{constructor(){}supports(t){return Ol(t)}create(t){return new uV(t)}}const cV=(n,t)=>t;class uV{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||cV}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,o)):t=this._addAfter(new dV(e,i),r,o),t}_verifyReinsertion(t,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const o=null===e?this._itHead:e._next;return t._next=o,t._prev=e,null===o?this._itTail=t:o._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new nD),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nD),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 dV{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 hV{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class nD{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new hV,this.map.set(e,i)),i.add(t)}get(t,e){const o=this.map.get(t);return o?o.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 iD(n,t,e){const i=n.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 o=this._records.get(t);this._maybeAddToChanges(o,e);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new pV(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class pV{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}}function rD(){return new Ii([new tD])}let Ii=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||rD()),deps:[[n,new yo,new an]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=A({token:n,providedIn:"root",factory:rD}),n})();function sD(){return new _a([new oD])}let _a=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||sD()),deps:[[n,new yo,new an]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=A({token:n,providedIn:"root",factory:sD}),n})();function fd(n,t,e,i,o=!1){for(;null!==e;){const r=t[e.index];if(null!==r&&i.push(Pt(r)),Ci(r))for(let a=10;a-1&&(Yp(t,i),Ar(e,i))}this._attachedToViewContainer=!1}Q1(this._lView[1],this._lView)}onDestroy(t){A0(this._lView[1],this._lView,null,t)}markForCheck(){mm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){_m(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,t,e){wu(!0);try{_m(n,t,e)}finally{wu(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(n,t){Tl(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class gV extends Gl{constructor(t){super(t),this._view=t}detectChanges(){H0(this._view)}checkNoChanges(){!function(n){wu(!0);try{H0(n)}finally{wu(!1)}}(this._view)}get context(){return null}}const yV=function(n){return function(n,t,e){if(yu(n)&&!e){const i=jn(n.index,t);return new Gl(i,i)}return 47&n.type?new Gl(t[16],t):null}(jt(),P(),16==(16&n))};let Ye=(()=>{class n{}return n.__NG_ELEMENT_ID__=yV,n})();const CV=[new oD],DV=new Ii([new tD]),MV=new _a(CV),xV=function(){return pd(jt(),P())};let Re=(()=>{class n{}return n.__NG_ELEMENT_ID__=xV,n})();const SV=Re,TV=class extends SV{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=kl(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),Il(e,i,t),new Gl(i)}};function pd(n,t){return 4&n.type?new TV(t,n,ga(n,t)):null}class to{}class aD{}const AV=function(){return uD(jt(),P())};let dt=(()=>{class n{}return n.__NG_ELEMENT_ID__=AV,n})();const NV=dt,lD=class extends NV{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Ls(this._hostTNode,this._hostLView)}get parentInjector(){const t=Au(this._hostTNode,this._hostLView);if(Zv(t)){const e=Ps(t,this._hostLView),i=Fs(t);return new Ls(e[1].data[i+8],e)}return new Ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=cD(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const o=t.createEmbeddedView(e||{});return this.insert(o,i),o}createComponent(t,e,i,o,r){const s=i||this.parentInjector;if(!r&&null==t.ngModule&&s){const l=s.get(to,null);l&&(r=l)}const a=t.create(s,o,void 0,r);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,o=i[1];if(function(n){return Ci(n[3])}(i)){const h=this.indexOf(t);if(-1!==h)this.detach(h);else{const f=i[3],p=new lD(f,f[6],f[3]);p.detach(p.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(n,t,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=t),i$1});class RD extends Qw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function(n){return n.map(TF).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return AD(this.componentDef.inputs)}get outputs(){return AD(this.componentDef.outputs)}create(t,e,i,o){const r=(o=o||this.ngModule)?function(n,t){return{get:(e,i,o)=>{const r=n.get(e,Ca,o);return r!==Ca||i===Ca?r:t.get(e,i,o)}}}(t,o.injector):t,s=r.get(Do,Lv),a=r.get(Um,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=i?function(n,t,e){if(Mt(n))return n.selectRootElement(t,e===Ft.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):qp(s.createRenderer(null,this.componentDef),c,function(n){const t=n.toLowerCase();return"svg"===t?Fv:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,p=function(n,t){return{components:[],scheduler:n||$1,clean:hP,playerHandler:t||null,flags:0}}(),g=Xu(0,null,null,1,0,null,null,null,null,null),b=kl(null,g,p,f,null,null,s,l,a,r);let w,D;Du(b);try{const I=function(n,t,e,i,o,r){const s=e[1];e[20]=n;const l=Qs(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ed(l,c,!0),null!==n&&(Tu(o,n,c),null!==l.classes&&Zp(o,n,l.classes),null!==l.styles&&c0(o,n,l.styles)));const h=i.createRenderer(n,t),f=kl(e,T0(t),null,t.onPush?64:16,e[20],l,i,h,r||null,null);return s.firstCreatePass&&(Ru(fl(l,e),s,t.type),P0(s,l),L0(l,e.length,1)),Zu(e,f),e[20]=f}(h,this.componentDef,b,s,l);if(h)if(i)Tu(l,h,["ng-version",eD.full]);else{const{attrs:T,classes:N}=function(n){const t=[],e=[];let i=1,o=2;for(;i0&&Zp(l,h,N.join(" "))}if(D=up(g,20),void 0!==e){const T=D.projection=[];for(let N=0;Nl(s,t)),t.contentQueries){const l=jt();t.contentQueries(1,s,l.directiveStart)}const a=jt();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Qo(a.index),O0(e[1],a,0,a.directiveStart,a.directiveEnd,t),F0(t,s)),s}(I,this.componentDef,b,p,[VP]),Il(g,b,null)}finally{Mu()}return new R5(this.componentType,w,ga(D,b),b,D)}}class R5 extends class{}{constructor(t,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new gV(o),this.componentType=t}get injector(){return new Ls(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const wa=new Map;class F5 extends to{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ID(this);const i=ti(t),o=function(n){return n[qN]||null}(t);o&&Lm(o),this._bootstrapComponents=Qi(i.bootstrap),this._r3Injector=Y0(t,e,[{provide:to,useValue:this},{provide:In,useValue:this.componentFactoryResolver}],Ae(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ke.THROW_IF_NOT_FOUND,i=ue.Default){return t===ke||t===to||t===tr?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class rg extends aD{constructor(t){super(),this.moduleType=t,null!==ti(t)&&function(n){const t=new Set;!function e(i){const o=ti(i,!0),r=o.id;null!==r&&(function(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Ae(t)} vs ${Ae(t.name)}`)}(r,wa.get(r),i),wa.set(r,i));const s=Qi(o.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new F5(this.moduleType,t)}}function vt(n,t,e){const i=Mn()+n,o=P();return o[i]===Ce?Xi(o,i,e?t.call(e):t()):Fl(o,i)}function Ne(n,t,e,i){return FD(P(),Mn(),n,t,e,i)}function Br(n,t,e,i,o,r,s,a){const l=Mn()+n,c=P(),h=function(n,t,e,i,o,r){const s=Fr(n,t,e,i);return Fr(n,t+2,o,r)||s}(c,l,e,i,o,r);return pn(c,l+4,s)||h?Xi(c,l+5,a?t.call(a,e,i,o,r,s):t(e,i,o,r,s)):Fl(c,l+5)}function Xl(n,t){const e=n[t];return e===Ce?void 0:e}function FD(n,t,e,i,o,r){const s=t+e;return pn(n,s,o)?Xi(n,s+1,r?i.call(r,o):i(o)):Xl(n,s+1)}function LD(n,t,e,i,o,r,s,a){const l=t+e;return function(n,t,e,i,o){const r=Fr(n,t,e,i);return pn(n,t+2,o)||r}(n,l,o,r,s)?Xi(n,l+3,a?i.call(a,o,r,s):i(o,r,s)):Xl(n,l+3)}function fe(n,t){const e=Ue();let i;const o=n+20;e.firstCreatePass?(i=function(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}throw new Mr("302",`The pipe '${n}' could not be found!`)}(t,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=kr(i.type)),s=Wo(m);try{const a=Iu(!1),l=r();return Iu(a),function(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,P(),o,l),l}finally{Wo(s)}}function st(n,t,e){const i=n+20,o=P(),r=Ns(o,i);return ec(o,Zl(o,i)?FD(o,Mn(),t,r.transform,e,r):r.transform(e))}function ht(n,t,e,i,o){const r=n+20,s=P(),a=Ns(s,r);return ec(s,Zl(s,r)?LD(s,Mn(),t,a.transform,e,i,o,a):a.transform(e,i,o))}function Zl(n,t){return n[1].data[t].pure}function ec(n,t){return xi.isWrapped(t)&&(t=xi.unwrap(t),n[be.lFrame.bindingIndex]=Ce),t}function sg(n){return t=>{setTimeout(n,void 0,t)}}const L=class extends W{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var o,r,s;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const f=t;a=null===(o=f.next)||void 0===o?void 0:o.bind(f),l=null===(r=f.error)||void 0===r?void 0:r.bind(f),c=null===(s=f.complete)||void 0===s?void 0:s.bind(f)}this.__isAsync&&(l=sg(l),a&&(a=sg(a)),c&&(c=sg(c)));const h=super.subscribe({next:a,error:l,complete:c});return t instanceof He&&t.add(h),h}};function W5(){return this._results[ta()]()}class Hr{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ta(),i=Hr.prototype;i[e]||(i[e]=W5)}get changes(){return this._changes||(this._changes=new L)}get(t){return this._results[t]}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,e){const i=this;i.dirty=!1;const o=ri(t);(this._changesDetected=!function(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i0)i.push(s[a/2]);else{const c=r[a+1],h=t[-l];for(let f=10;f{class n{constructor(e){this.appInits=e,this.resolve=hd,this.reject=hd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(E(nc,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const ic=new j("AppId"),SB={provide:ic,useFactory:function(){return`${_g()}${_g()}${_g()}`},deps:[]};function _g(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lM=new j("Platform Initializer"),or=new j("Platform ID"),cM=new j("appBootstrapListener");let wd=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const qn=new j("LocaleId"),uM=new j("DefaultCurrencyCode");class kB{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const yg=function(n){return new rg(n)},IB=yg,AB=function(n){return Promise.resolve(yg(n))},dM=function(n){const t=yg(n),i=Qi(ti(n).declarations).reduce((o,r)=>{const s=Dn(r);return s&&o.push(new RD(s)),o},[]);return new kB(t,i)},RB=dM,NB=function(n){return Promise.resolve(dM(n))};let $r=(()=>{class n{constructor(){this.compileModuleSync=IB,this.compileModuleAsync=AB,this.compileModuleAndAllComponentsSync=RB,this.compileModuleAndAllComponentsAsync=NB}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const PB=(()=>Promise.resolve(0))();function bg(n){"undefined"==typeof Zone?PB.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class J{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new L(!1),this.onMicrotaskEmpty=new L(!1),this.onStable=new L(!1),this.onError=new L(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let n=Xe.requestAnimationFrame,t=Xe.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(n){const t=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Xe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Cg(n),n.isCheckStableRunning=!0,vg(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Cg(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{try{return hM(n),e.invokeTask(o,r,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||n.shouldCoalesceRunChangeDetection)&&t(),fM(n)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return hM(n),e.invoke(o,r,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),fM(n)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Cg(n),vg(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),n.runOutsideAngular(()=>n.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!J.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(J.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,t,VB,hd,hd);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const VB={};function vg(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Cg(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function hM(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function fM(n){n._nesting--,vg(n)}class $B{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new L,this.onMicrotaskEmpty=new L,this.onStable=new L,this.onError=new L}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,o){return t.apply(e,i)}}let wg=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{J.assertNotInAngularZone(),bg(()=>{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())bg(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,o){return[]}}return n.\u0275fac=function(e){return new(e||n)(E(J))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),pM=(()=>{class n{constructor(){this._applications=new Map,Dg.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Dg.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class jB{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Dg=new jB,mM=!0,gM=!1;function Md(){return gM=!0,mM}let Ni;const _M=new j("AllowMultipleToken");class Mg{constructor(t,e){this.name=t,this.token=e}}function yM(n,t,e=[]){const i=`Platform: ${t}`,o=new j(i);return(r=[])=>{let s=bM();if(!s||s.injector.get(_M,!1))if(n)n(e.concat(r).concat({provide:o,useValue:!0}));else{const a=e.concat(r).concat({provide:o,useValue:!0},{provide:Al,useValue:"platform"});!function(n){if(Ni&&!Ni.destroyed&&!Ni.injector.get(_M,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ni=n.get(vM);const t=n.get(lM,null);t&&t.forEach(e=>e())}(ke.create({providers:a,name:i}))}return function(n){const t=bM();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function bM(){return Ni&&!Ni.destroyed?Ni:null}let vM=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(n,t){let e;return e="noop"===n?new $B:("zone.js"===n?void 0:n)||new J({enableLongStackTrace:Md(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:J,useValue:a}];return a.run(()=>{const c=ke.create({providers:l,parent:this.injector,name:e.moduleType.name}),h=e.create(c),f=h.injector.get(si,null);if(!f)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const p=a.onError.subscribe({next:g=>{f.handleError(g)}});h.onDestroy(()=>{Eg(this._modules,h),p.unsubscribe()})}),function(n,t,e){try{const i=e();return Pl(i)?i.catch(o=>{throw t.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(f,a,()=>{const p=h.injector.get(Ma);return p.runInitializers(),p.donePromise.then(()=>(Lm(h.injector.get(qn,ad)||ad),this._moduleDoBootstrap(h),h))})})}bootstrapModule(e,i=[]){const o=CM({},i);return function(n,t,e){const i=new rg(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(di);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Ae(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(E(ke))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function CM(n,t){return Array.isArray(t)?t.reduce(CM,n):Object.assign(Object.assign({},n),t)}let di=(()=>{class n{constructor(e,i,o,r,s){this._zone=e,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Le(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Le(c=>{let h;this._zone.runOutsideAngular(()=>{h=this._zone.onStable.subscribe(()=>{J.assertNotInAngularZone(),bg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const f=this._zone.onUnstable.subscribe(()=>{J.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{h.unsubscribe(),f.unsubscribe()}});this.isStable=ho(a,l.pipe(Kf()))}bootstrap(e,i){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 o;o=e instanceof Qw?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(o.componentType);const r=function(n){return n.isBoundToModule}(o)?void 0:this._injector.get(to),a=o.create(ke.NULL,[],i||o.selector,r),l=a.location.nativeElement,c=a.injector.get(wg,null),h=c&&a.injector.get(pM);return c&&h&&h.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Eg(this.components,a),h&&h.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Eg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(cM,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(E(J),E(ke),E(si),E(In),E(Ma))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function Eg(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}class Ed{}class i4{}const o4={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let r4=(()=>{class n{constructor(e,i){this._compiler=e,this._config=i||o4}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,o]=e.split("#");return void 0===o&&(o="default"),nl(255)(i).then(r=>r[o]).then(r=>EM(r,i,o)).then(r=>this._compiler.compileModuleAsync(r))}loadFactory(e){let[i,o]=e.split("#"),r="NgFactory";return void 0===o&&(o="default",r=""),nl(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(s=>s[o+r]).then(s=>EM(s,i,o))}}return n.\u0275fac=function(e){return new(e||n)(E($r),E(i4,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function EM(n,t,e){if(!n)throw new Error(`Cannot find '${e}' in '${t}'`);return n}const m4=yM(null,"core",[{provide:or,useValue:"unknown"},{provide:vM,deps:[ke]},{provide:pM,deps:[]},{provide:wd,deps:[]}]),v4=[{provide:di,useClass:di,deps:[J,ke,si,In,Ma]},{provide:k5,deps:[J],useFactory:function(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Ma,useClass:Ma,deps:[[new an,nc]]},{provide:$r,useClass:$r,deps:[]},SB,{provide:Ii,useFactory:function(){return DV},deps:[]},{provide:_a,useFactory:function(){return MV},deps:[]},{provide:qn,useFactory:function(n){return Lm(n=n||"undefined"!=typeof $localize&&$localize.locale||ad),n},deps:[[new Us(qn),new an,new yo]]},{provide:uM,useValue:"USD"}];let w4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(E(di))},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:v4}),n})(),Fd=null;function no(){return Fd}const q=new j("DocumentToken");let zr=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:CH,token:n,providedIn:"platform"}),n})();function CH(){return E(KM)}const wH=new j("Location Initialized");let KM=(()=>{class n extends zr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return no().getBaseHref(this._doc)}onPopState(e){const i=no().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=no().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,o){QM()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){QM()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({factory:DH,token:n,providedIn:"platform"}),n})();function QM(){return!!window.history.pushState}function DH(){return new KM(E(q))}function Hg(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function JM(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Eo(n){return n&&"?"!==n[0]?"?"+n:n}let Sa=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:MH,token:n,providedIn:"root"}),n})();function MH(n){const t=E(q).location;return new XM(E(zr),t&&t.origin||"")}const $g=new j("appBaseHref");let XM=(()=>{class n extends Sa{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Hg(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Eo(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+Eo(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+Eo(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(E(zr),E($g,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),EH=(()=>{class n extends Sa{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Hg(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let s=this.prepareExternalUrl(o+Eo(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){let s=this.prepareExternalUrl(o+Eo(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(E(zr),E($g,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),Ur=(()=>{class n{constructor(e,i){this._subject=new L,this._urlChangeListeners=[],this._platformStrategy=e;const o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=JM(ZM(o)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Eo(i))}normalize(e){return n.stripTrailingSlash(function(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,ZM(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._platformStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Eo(i)),o)}replaceState(e,i="",o=null){this._platformStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Eo(i)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return n.\u0275fac=function(e){return new(e||n)(E(Sa),E(zr))},n.normalizeQueryParams=Eo,n.joinWithSlash=Hg,n.stripTrailingSlash=JM,n.\u0275prov=A({factory:xH,token:n,providedIn:"root"}),n})();function xH(){return new Ur(E(Sa),E(zr))}function ZM(n){return n.replace(/\/index.html$/,"")}var Lt=(()=>((Lt=Lt||{})[Lt.Zero=0]="Zero",Lt[Lt.One=1]="One",Lt[Lt.Two=2]="Two",Lt[Lt.Few=3]="Few",Lt[Lt.Many=4]="Many",Lt[Lt.Other=5]="Other",Lt))();const AH=function(n){return function(n){const t=function(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=Ew(t);if(e)return e;const i=t.split("-")[0];if(e=Ew(i),e)return e;if("en"===i)return i3;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[K.PluralCase]};class Ud{}let r8=(()=>{class n extends Ud{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(AH(i||this.locale)(e)){case Lt.Zero:return"zero";case Lt.One:return"one";case Lt.Two:return"two";case Lt.Few:return"few";case Lt.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(E(qn))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function dE(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===t)return decodeURIComponent(r)}return null}let uc=(()=>{class n{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ol(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ae(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return n.\u0275fac=function(e){return new(e||n)(m(Ii),m(_a),m(V),m(St))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class a8{constructor(t,e,i,o){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=o}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 tn=(()=>{class n{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((o,r,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new a8(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new hE(o,a);i.push(l)}else if(null==s)this._viewContainer.remove(null===r?void 0:r);else if(null!==r){const a=this._viewContainer.get(r);this._viewContainer.move(a,s);const l=new hE(o,a);i.push(l)}});for(let o=0;o{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(dt),m(Re),m(Ii))},n.\u0275dir=k({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();class hE{constructor(t,e){this.record=t,this.view=e}}let pt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new c8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fE("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(dt),m(Re))},n.\u0275dir=k({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class c8{constructor(){this.$implicit=null,this.ngIf=null}}function fE(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Ae(t)}'.`)}class Jg{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Wr=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new Jg(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(m(dt),m(Re),m(Wr,9))},n.\u0275dir=k({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),pE=(()=>{class n{constructor(e,i,o){o._addDefault(new Jg(e,i))}}return n.\u0275fac=function(e){return new(e||n)(m(dt),m(Re),m(Wr,9))},n.\u0275dir=k({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),gE=(()=>{class n{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,o,i):this._renderer.removeStyle(this._ngEl.nativeElement,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(_a),m(St))},n.\u0275dir=k({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})();class d8{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class h8{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const f8=new h8,p8=new d8;let Xg=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Pl(e))return f8;if(FC(e))return p8;throw function(n,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Ae(n)}'`)}(n,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(m(Ye,16))},n.\u0275pipe=wn({name:"async",type:n,pure:!1}),n})(),Nt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[{provide:Ud,useClass:r8}]}),n})();const bE="browser";let CE=(()=>{class n{}return n.\u0275prov=A({token:n,providedIn:"root",factory:()=>new N8(E(q),window)}),n})();class N8{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(t)||r.querySelector(`[name="${t}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=wE(this.window.history)||wE(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function wE(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class DE{}class t_ extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){Fd||(Fd=n)}(new t_)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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}getBaseHref(t){const e=(hc=hc||document.querySelector("base"),hc?hc.getAttribute("href"):null);return null==e?null:function(n){Wd=Wd||document.createElement("a"),Wd.setAttribute("href",n);const t=Wd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){hc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return dE(document.cookie,t)}}let Wd,hc=null;const ME=new j("TRANSITION_ID"),B8=[{provide:nc,useFactory:function(n,t,e){return()=>{e.get(Ma).donePromise.then(()=>{const i=no(),o=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let r=0;r{const r=t.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},Xe.getAllAngularTestabilities=()=>t.getAllTestabilities(),Xe.getAllAngularRootElements=()=>t.getAllRootElements(),Xe.frameworkStabilizers||(Xe.frameworkStabilizers=[]),Xe.frameworkStabilizers.push(i=>{const o=Xe.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const o=t.getTestability(e);return null!=o?o:i?no().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let H8=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const fc=new j("EventManagerPlugins");let Yd=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),pc=(()=>{class n extends xE{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(SE),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(SE))}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function SE(n){no().remove(n)}const o_={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/"},r_=/%COMP%/g;function Kd(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Qd=(()=>{class n{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new s_(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ft.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new t$(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case Ft.ShadowDom:return new n$(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=Kd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(E(Yd),E(pc),E(ic))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class s_{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(o_[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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,o){if(o){e=o+":"+e;const r=o_[o];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const o=o_[i];o?t.removeAttributeNS(o,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,o){o&(Un.DashCase|Un.Important)?t.style.setProperty(e,i,o&Un.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Un.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,IE(i)):this.eventManager.addEventListener(t,e,IE(i))}}class t$ extends s_{constructor(t,e,i,o){super(t),this.component=i;const r=Kd(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(r_,n)}(o+"-"+i.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(r_,n)}(o+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class n$ extends s_{constructor(t,e,i,o){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Kd(o.id,o.styles,[]);for(let s=0;s{class n extends i_{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const NE=["alt","control","meta","shift"],u$={"\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"},OE={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"},d$={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let h$=(()=>{class n extends i_{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,o){const r=n.parseEventName(i),s=n.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>no().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=n._normalizeKey(i.pop());let s="";if(NE.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(e){let i="",o=function(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&OE.hasOwnProperty(t)&&(t=OE[t]))}return u$[t]||t}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),NE.forEach(r=>{r!=o&&d$[r](e)&&(i+=r+".")}),i+=o,i}static eventCallback(e,i,o){return r=>{n.getEventFullKey(r)===e&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),qr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return E(l_)},token:n,providedIn:"root"}),n})(),l_=(()=>{class n extends qr{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case qe.NONE:return i;case qe.HTML:return Yi(i,"HTML")?zn(i):k1(this._doc,String(i)).toString();case qe.STYLE:return Yi(i,"Style")?zn(i):i;case qe.SCRIPT:if(Yi(i,"Script"))return zn(i);throw new Error("unsafe value used in a script context");case qe.URL:return C1(i),Yi(i,"URL")?zn(i):wl(String(i));case qe.RESOURCE_URL:if(Yi(i,"ResourceURL"))return zn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function(n){return new pO(n)}(e)}bypassSecurityTrustStyle(e){return function(n){return new mO(n)}(e)}bypassSecurityTrustScript(e){return function(n){return new gO(n)}(e)}bypassSecurityTrustUrl(e){return function(n){return new _O(n)}(e)}bypassSecurityTrustResourceUrl(e){return function(n){return new yO(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({factory:function(){return function(n){return new l_(n.get(q))}(E(tr))},token:n,providedIn:"root"}),n})();const v$=yM(m4,"browser",[{provide:or,useValue:bE},{provide:lM,useValue:function(){t_.makeCurrent(),n_.init()},multi:!0},{provide:q,useFactory:function(){return function(n){lp=n}(document),document},deps:[]}]),C$=[[],{provide:Al,useValue:"root"},{provide:si,useFactory:function(){return new si},deps:[]},{provide:fc,useClass:i$,multi:!0,deps:[q,J,or]},{provide:fc,useClass:h$,multi:!0,deps:[q]},[],{provide:Qd,useClass:Qd,deps:[Yd,pc,ic]},{provide:Do,useExisting:Qd},{provide:xE,useExisting:pc},{provide:pc,useClass:pc,deps:[q]},{provide:wg,useClass:wg,deps:[J]},{provide:Yd,useClass:Yd,deps:[fc,J]},{provide:DE,useClass:H8,deps:[]},[]];let c_=(()=>{class n{constructor(e){if(e)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:n,providers:[{provide:ic,useValue:e.appId},{provide:ME,useExisting:ic},B8]}}}return n.\u0275fac=function(e){return new(e||n)(E(n,12))},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:C$,imports:[Nt,w4]}),n})();"undefined"!=typeof window&&window;class PE{}const So="*";function Ta(n,t){return{type:7,name:n,definitions:t,options:{}}}function Yr(n,t=null){return{type:4,styles:t,timings:n}}function LE(n,t=null){return{type:2,steps:n,options:t}}function _n(n){return{type:6,styles:n,offset:null}}function io(n,t,e){return{type:0,name:n,styles:t,options:e}}function ar(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function I$(n=null){return{type:9,options:n}}function A$(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function VE(n){Promise.resolve(null).then(n)}class ka{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){VE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class BE{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,o=0;const r=this.players.length;0==r?VE(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function HE(){return"undefined"!=typeof window&&void 0!==window.document}function h_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function lr(n){switch(n.length){case 0:return new ka;case 1:return n[0];default:return new BE(n)}}function $E(n,t,e,i,o={},r={}){const s=[],a=[];let l=-1,c=null;if(i.forEach(h=>{const f=h.offset,p=f==l,g=p&&c||{};Object.keys(h).forEach(b=>{let w=b,D=h[b];if("offset"!==b)switch(w=t.normalizePropertyName(w,s),D){case"!":D=o[b];break;case So:D=r[b];break;default:D=t.normalizeStyleValue(b,w,D,s)}g[w]=D}),p||a.push(g),c=g,l=f}),s.length){const h="\n - ";throw new Error(`Unable to animate due to the following errors:${h}${s.join(h)}`)}return a}function f_(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&p_(e,"start",n)));break;case"done":n.onDone(()=>i(e&&p_(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&p_(e,"destroy",n)))}}function p_(n,t,e){const i=e.totalTime,r=m_(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(r._data=s),r}function m_(n,t,e,i,o="",r=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function Yn(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function jE(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let g_=(n,t)=>!1,__=(n,t)=>!1,GE=(n,t,e)=>[];const zE=h_();(zE||"undefined"!=typeof Element)&&(g_=HE()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),__=(()=>{if(zE||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):__}})(),GE=(n,t,e)=>{let i=[];if(e){const o=n.querySelectorAll(t);for(let r=0;r{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let qE=(()=>{class n{validateStyleProperty(e){return y_(e)}matchesElement(e,i){return b_(e,i)}containsElement(e,i){return v_(e,i)}query(e,i,o){return C_(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new ka(o,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),w_=(()=>{class n{}return n.NOOP=new qE,n})();const D_="ng-enter",Jd="ng-leave",Xd="ng-trigger",Zd=".ng-trigger",KE="ng-animating",M_=".ng-animating";function Qr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:E_(parseFloat(t[1]),t[2])}function E_(n,t){switch(t){case"s":return 1e3*n;default:return n}}function eh(n,t,e){return n.hasOwnProperty("duration")?n:function(n,t,e){let o,r=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};o=E_(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=E_(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=n;if(!e){let a=!1,l=t.length;o<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:o,delay:r,easing:s}}(n,t,e)}function Ia(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function cr(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Ia(n,e);return e}function JE(n,t,e){return e?t+":"+e+";":""}function XE(n){let t="";for(let e=0;e{const o=S_(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[o]),n.style[o]=t[i]}),h_()&&XE(n))}function Jr(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=S_(e);n.style[i]=""}),h_()&&XE(n))}function mc(n){return Array.isArray(n)?1==n.length?n[0]:LE(n):n}const x_=new RegExp("{{\\s*(.+?)\\s*}}","g");function ZE(n){let t=[];if("string"==typeof n){let e;for(;e=x_.exec(n);)t.push(e[1]);x_.lastIndex=0}return t}function th(n,t,e){const i=n.toString(),o=i.replace(x_,(r,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(`Please provide a value for the animation param ${s}`),a=""),a.toString()});return o==i?n:o}function nh(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const V$=/-+([a-z0-9])/g;function S_(n){return n.replace(V$,(...t)=>t[1].toUpperCase())}function B$(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ex(n,t){return 0===n||0===t}function tx(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let r=t[0],s=[];if(i.forEach(a=>{r.hasOwnProperty(a)||s.push(a),r[a]=e[a]}),s.length)for(var o=1;ofunction(n,t,e){if(":"==n[0]){const l=function(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const o=i[1],r=i[2],s=i[3];t.push(nx(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&t.push(nx(s,o))}(i,e,t)):e.push(n),e}const oh=new Set(["true","1"]),rh=new Set(["false","0"]);function nx(n,t){const e=oh.has(n)||rh.has(n),i=oh.has(t)||rh.has(t);return(o,r)=>{let s="*"==n||n==o,a="*"==t||t==r;return!s&&e&&"boolean"==typeof o&&(s=o?oh.has(n):rh.has(n)),!a&&i&&"boolean"==typeof r&&(a=r?oh.has(t):rh.has(t)),s&&a}}const G$=new RegExp("s*:selfs*,?","g");function k_(n,t,e){return new z$(n).build(t,e)}class z${constructor(t){this._driver=t}build(t,e){const i=new q$(e);return this._resetContextStyleTimingState(i),Kn(this,mc(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};if(i.styles.forEach(a=>{if(sh(a)){const l=a;Object.keys(l).forEach(c=>{ZE(l[c]).forEach(h=>{s.hasOwnProperty(h)||r.add(h)})})}}),r.size){const a=nh(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Kn(this,mc(t.animation),e);return{type:1,matchers:H$(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Xr(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Kn(this,i,e)),options:Xr(t.options)}}visitGroup(t,e){const i=e.currentTime;let o=0;const r=t.steps.map(s=>{e.currentTime=i;const a=Kn(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:Xr(t.options)}}visitAnimate(t,e){const i=function(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return I_(eh(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=I_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return e=e||eh(i,t),I_(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let o,r=t.styles?t.styles:_n({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=_n(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==So?i.push(s):e.errors.push(`The provided style string value ${s} is not allowed.`):i.push(s)}):i.push(t.styles);let o=!1,r=null;return i.forEach(s=>{if(sh(s)){const a=s,l=a.easing;if(l&&(r=l,delete a.easing),!o)for(let c in a)if(a[c].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let h=!0;c&&(r!=o&&r>=c.startTime&&o<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${o}ms"`),h=!1),r=c.startTime),h&&(l[a]={startTime:r,endTime:o}),e.options&&function(n,t,e){const i=t.params||{},o=ZE(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(`Unable to resolve the local animation param ${r} in the given list of values`)})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let r=0;const s=[];let a=!1,l=!1,c=0;const h=t.steps.map(I=>{const T=this._makeStyleAst(I,e);let N=null!=T.offset?T.offset:function(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(sh(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(sh(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(T.styles),$=0;return null!=N&&(r++,$=T.offset=N),l=l||$<0||$>1,a=a||$0&&r{const N=p>0?T==g?1:p*T:s[T],$=N*D;e.currentTime=b+w.delay+$,w.duration=$,this._validateStyleAst(I,e),I.offset=N,i.styles.push(I)}),i}visitReference(t,e){return{type:8,animation:Kn(this,mc(t.animation),e),options:Xr(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Xr(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Xr(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(G$,"")),[n=n.replace(/@\*/g,Zd).replace(/@\w+/g,e=>Zd+"-"+e.substr(1)).replace(/:animating/g,M_),t]}(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,Yn(e.collectedStyles,e.currentQuerySelector,{});const a=Kn(this,mc(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Xr(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:eh(t.timings,e.errors,!0);return{type:12,animation:Kn(this,mc(t.animation),e),timings:i,options:null}}}class q${constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function sh(n){return!Array.isArray(n)&&"object"==typeof n}function Xr(n){return n?(n=Ia(n)).params&&(n.params=function(n){return n?Ia(n):null}(n.params)):n={},n}function I_(n,t,e){return{duration:n,delay:t,easing:e}}function A_(n,t,e,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class ah{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const X$=new RegExp(":enter","g"),e6=new RegExp(":leave","g");function R_(n,t,e,i,o,r={},s={},a,l,c=[]){return(new t6).buildKeyframes(n,t,e,i,o,r,s,a,l,c)}class t6{buildKeyframes(t,e,i,o,r,s,a,l,c,h=[]){c=c||new ah;const f=new N_(t,e,c,o,r,h,[]);f.options=l,f.currentTimeline.setStyles([s],null,f.errors,l),Kn(this,i,f);const p=f.timelines.filter(g=>g.containsAnimation());if(p.length&&Object.keys(a).length){const g=p[p.length-1];g.allowOnlyTimelineStyles()||g.setStyles([a],null,f.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[A_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?Qr(i.duration):null,a=null!=i.delay?Qr(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),Kn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let o=e;const r=t.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=lh);const s=Qr(r.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Kn(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let o=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?Qr(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);r&&a.delayNextStep(r),Kn(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return eh(e.params?th(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?Qr(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=lh);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{e.currentQueryIndex=h;const f=e.createSubContext(t.options,c);r&&f.delayNextStep(r),c===e.element&&(l=f.currentTimeline),Kn(this,t.animation,f),f.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,f.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,o=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const h=e.currentTimeline;l&&h.delayNextStep(l);const f=h.currentTime;Kn(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-f+(o.startTime-i.currentTimeline.startTime)}}const lh={};class N_{constructor(t,e,i,o,r,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ch(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let o=this.options;null!=i.duration&&(o.duration=Qr(i.duration)),null!=i.delay&&(o.delay=Qr(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=th(r[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){const o=e||this.element,r=new N_(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=lh,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const o={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new n6(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,r,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(X$,"."+this._enterClassName)).replace(e6,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class ch{constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ch(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||So,this._currentKeyframe[e]=So}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&(this._previousKeyframe.easing=e);const r=o&&o.params||{},s=function(n,t){const e={};let i;return n.forEach(o=>{"*"===o?(i=i||Object.keys(t),i.forEach(r=>{e[r]=So})):cr(o,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=th(s[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:So),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],o=t._styleSummary[e];(!i||o.time>i.time)&&this._updateStyle(e,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=cr(a,!0);Object.keys(c).forEach(h=>{const f=c[h];"!"==f?t.add(h):f==So&&e.add(h)}),i||(c.offset=l/this.duration),o.push(c)});const r=t.size?nh(t.values()):[],s=e.size?nh(e.values()):[];if(i){const a=o[0],l=Ia(a);a.offset=0,l.offset=1,o=[a,l]}return A_(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class n6 extends ch{constructor(t,e,i,o,r,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=cr(t[0],!1);l.offset=0,r.push(l);const c=cr(t[0],!1);c.offset=rx(a),r.push(c);const h=t.length-1;for(let f=1;f<=h;f++){let p=cr(t[f],!1);p.offset=rx((e+p.offset*i)/s),r.push(p)}i=s,e=0,o="",t=r}return A_(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function rx(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class O_{}class o6 extends O_{normalizePropertyName(t,e){return S_(t)}normalizeStyleValue(t,e,i,o){let r="";const s=i.toString().trim();if(r6[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(`Please provide a CSS unit value for ${t}:${i}`)}return s+r}}const r6=(()=>function(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function sx(n,t,e,i,o,r,s,a,l,c,h,f,p){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:f,errors:p}}const F_={};class ax{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return function(n,t,e,i,o){return n.some(r=>r(t,e,i,o))}(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){const o=this._stateStyles["*"],r=this._stateStyles[t],s=o?o.buildStyles(e,i):{};return r?r.buildStyles(e,i):s}build(t,e,i,o,r,s,a,l,c,h){const f=[],p=this.ast.options&&this.ast.options.params||F_,b=this.buildStyles(i,a&&a.params||F_,f),w=l&&l.params||F_,D=this.buildStyles(o,w,f),I=new Set,T=new Map,N=new Map,$="void"===o,ce={params:Object.assign(Object.assign({},p),w)},Ge=h?[]:R_(t,e,this.ast.animation,r,s,b,D,ce,c,f);let We=0;if(Ge.forEach(rn=>{We=Math.max(rn.duration+rn.delay,We)}),f.length)return sx(e,this._triggerName,i,o,$,b,D,[],[],T,N,We,f);Ge.forEach(rn=>{const sn=rn.element,Jn=Yn(T,sn,{});rn.preStyleProps.forEach(vn=>Jn[vn]=!0);const Xn=Yn(N,sn,{});rn.postStyleProps.forEach(vn=>Xn[vn]=!0),sn!==e&&I.add(sn)});const at=nh(I.values());return sx(e,this._triggerName,i,o,$,b,D,Ge,at,T,N,We)}}class l6{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},o=Ia(this.defaultParams);return Object.keys(t).forEach(r=>{const s=t[r];null!=s&&(o[r]=s)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const s=r;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=th(l,o,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class u6{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(o=>{this.states[o.name]=new l6(o.style,o.options&&o.options.params||{},i)}),lx(this.states,"true","1"),lx(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new ax(t,o,this.states))}),this.fallbackTransition=function(n,t,e){return new ax(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(s=>s.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function lx(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const h6=new ah;class f6{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],o=k_(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=o}_buildPlayer(t,e,i){const o=t.element,r=$E(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const o=[],r=this._animations[t];let s;const a=new Map;if(r?(s=R_(this._driver,e,r,D_,Jd,{},{},i,h6,o),s.forEach(h=>{const f=Yn(a,h.element,{});h.postStyleProps.forEach(p=>f[p]=null)})):(o.push("The requested animation doesn't exist or has already been destroyed"),s=[]),o.length)throw new Error(`Unable to create the animation due to the following errors: ${o.join("\n")}`);a.forEach((h,f)=>{Object.keys(h).forEach(p=>{h[p]=this._driver.computeStyle(f,p,So)})});const c=lr(s.map(h=>{const f=a.get(h.element);return this._buildPlayer(h,{},f)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,o){const r=m_(e,"","","");return f_(this._getPlayer(t),i,r,o),()=>{}}command(t,e,i,o){if("register"==i)return void this.register(t,o[0]);if("create"==i)return void this.create(t,e,o[0]||{});const r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t)}}}const cx="ng-animate-queued",ux="ng-animate-disabled",dx=".ng-animate-disabled",_6=[],hx={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},y6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pi="__ng_removed";class P_{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(i?t.value:t),i){const r=Ia(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const gc="void",L_=new P_(gc);class b6{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,mi(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const r=Yn(this._elementListeners,t,[]),s={name:e,phase:i,callback:o};r.push(s);const a=Yn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(mi(t,Xd),mi(t,Xd+"-"+e),a[e]=L_),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,o=!0){const r=this._getTrigger(e),s=new V_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(mi(t,Xd),mi(t,Xd+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new P_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=L_),c.value!==gc&&l.value===c.value){if(!function(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let o=0;o{Jr(t,D),oo(t,I)})}return}const p=Yn(this._engine.playersByElement,t,[]);p.forEach(w=>{w.namespaceId==this.id&&w.triggerName==e&&w.queued&&w.destroy()});let g=r.matchTransition(l.value,c.value,t,c.params),b=!1;if(!g){if(!o)return;g=r.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:g,fromState:l,toState:c,player:s,isFallbackTransition:b}),b||(mi(t,cx),s.onStart(()=>{Aa(t,cx)})),s.onDone(()=>{let w=this.players.indexOf(s);w>=0&&this.players.splice(w,1);const D=this._engine.playersByElement.get(t);if(D){let I=D.indexOf(s);I>=0&&D.splice(I,1)}}),this.players.push(s),p.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Zd,!0);i.forEach(o=>{if(o[pi])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,i,o){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,gc,o);l&&s.push(l)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&lr(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers[s].fallbackTransition,c=i[s]||L_,h=new P_(gc),f=new V_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:h,player:f,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{const r=t[pi];(!r||r===hx)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){mi(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=m_(r,i.triggerName,i.fromState.value,i.toState.value);l._data=t,f_(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class v6{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new b6(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let o=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),o=!0;break}o||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const o=Object.keys(i);for(let r=0;r=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),mi(t,ux)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Aa(t,ux))}removeNode(t,e,i,o){if(uh(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(t,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(t,e,i,o){this.collectedLeaveElements.push(e),e[pi]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,o,r){return uh(e)?this._fetchNamespace(t).listen(e,i,o,r):()=>{}}_buildInstruction(t,e,i,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,Zd,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,M_,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return lr(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[pi];if(e&&e.setForRemoval){if(t[pi]=hx,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,dx)&&this.markElementAsDisabled(t,!1),this.driver.query(t,dx,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?lr(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new ah,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(te=>{h.add(te);const oe=this.driver.query(te,".ng-animate-queued",!0);for(let _e=0;_e{const _e=D_+w++;b.set(oe,_e),te.forEach(Fe=>mi(Fe,_e))});const D=[],I=new Set,T=new Set;for(let te=0;teI.add(Fe)):T.add(oe))}const N=new Map,$=mx(p,Array.from(I));$.forEach((te,oe)=>{const _e=Jd+w++;N.set(oe,_e),te.forEach(Fe=>mi(Fe,_e))}),t.push(()=>{g.forEach((te,oe)=>{const _e=b.get(oe);te.forEach(Fe=>Aa(Fe,_e))}),$.forEach((te,oe)=>{const _e=N.get(oe);te.forEach(Fe=>Aa(Fe,_e))}),D.forEach(te=>{this.processLeaveNode(te)})});const ce=[],Ge=[];for(let te=this._namespaceList.length-1;te>=0;te--)this._namespaceList[te].drainQueuedTransitions(e).forEach(_e=>{const Fe=_e.player,mt=_e.element;if(ce.push(Fe),this.collectedEnterElements.length){const uo=mt[pi];if(uo&&uo.setForMove)return void Fe.destroy()}const co=!f||!this.driver.containsElement(f,mt),Zn=N.get(mt),wr=b.get(mt),At=this._buildInstruction(_e,i,wr,Zn,co);if(At.errors&&At.errors.length)Ge.push(At);else{if(co)return Fe.onStart(()=>Jr(mt,At.fromStyles)),Fe.onDestroy(()=>oo(mt,At.toStyles)),void o.push(Fe);if(_e.isFallbackTransition)return Fe.onStart(()=>Jr(mt,At.fromStyles)),Fe.onDestroy(()=>oo(mt,At.toStyles)),void o.push(Fe);At.timelines.forEach(uo=>uo.stretchStartingKeyframe=!0),i.append(mt,At.timelines),s.push({instruction:At,player:Fe,element:mt}),At.queriedElements.forEach(uo=>Yn(a,uo,[]).push(Fe)),At.preStyleProps.forEach((uo,au)=>{const Gf=Object.keys(uo);if(Gf.length){let ws=l.get(au);ws||l.set(au,ws=new Set),Gf.forEach(lv=>ws.add(lv))}}),At.postStyleProps.forEach((uo,au)=>{const Gf=Object.keys(uo);let ws=c.get(au);ws||c.set(au,ws=new Set),Gf.forEach(lv=>ws.add(lv))})}});if(Ge.length){const te=[];Ge.forEach(oe=>{te.push(`@${oe.triggerName} has failed due to:\n`),oe.errors.forEach(_e=>te.push(`- ${_e}\n`))}),ce.forEach(oe=>oe.destroy()),this.reportError(te)}const We=new Map,at=new Map;s.forEach(te=>{const oe=te.element;i.has(oe)&&(at.set(oe,oe),this._beforeAnimationBuild(te.player.namespaceId,te.instruction,We))}),o.forEach(te=>{const oe=te.element;this._getPreviousPlayers(oe,!1,te.namespaceId,te.triggerName,null).forEach(Fe=>{Yn(We,oe,[]).push(Fe),Fe.destroy()})});const rn=D.filter(te=>_x(te,l,c)),sn=new Map;px(sn,this.driver,T,c,So).forEach(te=>{_x(te,l,c)&&rn.push(te)});const Xn=new Map;g.forEach((te,oe)=>{px(Xn,this.driver,new Set(te),l,"!")}),rn.forEach(te=>{const oe=sn.get(te),_e=Xn.get(te);sn.set(te,Object.assign(Object.assign({},oe),_e))});const vn=[],jo=[],Cr={};s.forEach(te=>{const{element:oe,player:_e,instruction:Fe}=te;if(i.has(oe)){if(h.has(oe))return _e.onDestroy(()=>oo(oe,Fe.toStyles)),_e.disabled=!0,_e.overrideTotalTime(Fe.totalTime),void o.push(_e);let mt=Cr;if(at.size>1){let Zn=oe;const wr=[];for(;Zn=Zn.parentNode;){const At=at.get(Zn);if(At){mt=At;break}wr.push(Zn)}wr.forEach(At=>at.set(At,mt))}const co=this._buildAnimation(_e.namespaceId,Fe,We,r,Xn,sn);if(_e.setRealPlayer(co),mt===Cr)vn.push(_e);else{const Zn=this.playersByElement.get(mt);Zn&&Zn.length&&(_e.parentPlayer=lr(Zn)),o.push(_e)}}else Jr(oe,Fe.fromStyles),_e.onDestroy(()=>oo(oe,Fe.toStyles)),jo.push(_e),h.has(oe)&&o.push(_e)}),jo.forEach(te=>{const oe=r.get(te.element);if(oe&&oe.length){const _e=lr(oe);te.setRealPlayer(_e)}}),o.forEach(te=>{te.parentPlayer?te.syncPlayerEvents(te.parentPlayer):te.destroy()});for(let te=0;te!co.destroyed);mt.length?M6(this,oe,mt):this.processLeaveNode(oe)}return D.length=0,vn.forEach(te=>{this.players.push(te),te.onDone(()=>{te.destroy();const oe=this.players.indexOf(te);this.players.splice(oe,1)}),te.play()}),vn}elementContainsData(t,e){let i=!1;const o=e[pi];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!r||r==gc;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const r=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,h=c!==r,f=Yn(i,c,[]);this._getPreviousPlayers(c,h,s,a,e.toState).forEach(g=>{const b=g.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),g.destroy(),f.push(g)})}Jr(r,e.fromStyles)}_buildAnimation(t,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],h=new Set,f=new Set,p=e.timelines.map(b=>{const w=b.element;h.add(w);const D=w[pi];if(D&&D.removedBeforeQueried)return new ka(b.duration,b.delay);const I=w!==l,T=function(n){const t=[];return gx(n,t),t}((i.get(w)||_6).map(We=>We.getRealPlayer())).filter(We=>!!We.element&&We.element===w),N=r.get(w),$=s.get(w),ce=$E(0,this._normalizer,0,b.keyframes,N,$),Ge=this._buildPlayer(b,ce,T);if(b.subTimeline&&o&&f.add(w),I){const We=new V_(t,a,w);We.setRealPlayer(Ge),c.push(We)}return Ge});c.forEach(b=>{Yn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,b.element,b))}),h.forEach(b=>mi(b,KE));const g=lr(p);return g.onDestroy(()=>{h.forEach(b=>Aa(b,KE)),oo(l,e.toStyles)}),f.forEach(b=>{Yn(o,b,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ka(t.duration,t.delay)}}class V_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ka,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>f_(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Yn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uh(n){return n&&1===n.nodeType}function fx(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function px(n,t,e,i,o){const r=[];e.forEach(l=>r.push(fx(l)));const s=[];i.forEach((l,c)=>{const h={};l.forEach(f=>{const p=h[f]=t.computeStyle(c,f,o);(!p||0==p.length)&&(c[pi]=y6,s.push(c))}),n.set(c,h)});let a=0;return e.forEach(l=>fx(l,r[a++])),s}function mx(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const o=new Set(t),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}const dh="$$classes";function mi(n,t){if(n.classList)n.classList.add(t);else{let e=n[dh];e||(e=n[dh]={}),e[t]=!0}}function Aa(n,t){if(n.classList)n.classList.remove(t);else{let e=n[dh];e&&delete e[t]}}function M6(n,t,e){lr(e).onDone(()=>n.processLeaveNode(t))}function gx(n,t){for(let e=0;eo.add(r)):t.set(n,i),e.delete(n),!0}class hh{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new v6(t,e,i),this._timelineEngine=new f6(t,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(t,e,i,o,r){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],c=k_(this._driver,r,l);if(l.length)throw new Error(`The animation trigger "${o}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(n,t,e){return new u6(n,t,e)}(o,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i,o){this._transitionEngine.removeNode(t,e,o||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if("@"==i.charAt(0)){const[r,s]=jE(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=jE(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(t,e,i,o,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function yx(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=B_(t[0]),t.length>1&&(i=B_(t[t.length-1]))):t&&(e=B_(t)),e||i?new S6(n,e,i):null}let S6=(()=>{class n{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&oo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(oo(this._element,this._initialStyles),this._endStyles&&(oo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Jr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jr(this._element,this._endStyles),this._endStyles=null),oo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function B_(n){let t=null;const e=Object.keys(n);for(let i=0;ithis._handleCallback(l)}apply(){(function(n,t){const e=$_(n,"").trim();let i=0;e.length&&(function(n,t){let e=0;for(let i=0;i=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Dx(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,t){const i=$_(n,"").split(","),o=H_(i,t);o>=0&&(i.splice(o,1),fh(n,"",i.join(",")))}(this._element,this._name))}}function Cx(n,t,e){fh(n,"PlayState",e,wx(n,t))}function wx(n,t){const e=$_(n,"");return e.indexOf(",")>0?H_(e.split(","),t):H_([e],t)}function H_(n,t){for(let e=0;e=0)return e;return-1}function Dx(n,t,e){e?n.removeEventListener(vx,t):n.addEventListener(vx,t)}function fh(n,t,e,i){const o=bx+t;if(null!=i){const r=n.style[o];if(r.length){const s=r.split(",");s[i]=e,e=s.join(",")}}n.style[o]=e}function $_(n,t){return n.style[bx+t]||""}class Mx{constructor(t,e,i,o,r,s,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=o,this._delay=r,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=o+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new A6(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:T_(this.element,i))})}this.currentSnapshot=t}}class L6 extends ka{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=WE(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class xx{constructor(){this._count=0}validateStyleProperty(t){return y_(t)}matchesElement(t,e){return b_(t,e)}containsElement(t,e){return v_(t,e)}query(t,e,i){return C_(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>WE(a));let o=`@keyframes ${e} {\n`,r="";i.forEach(a=>{r=" ";const l=parseFloat(a.offset);o+=`${r}${100*l}% {\n`,r+=" ",Object.keys(a).forEach(c=>{const h=a[c];switch(c){case"offset":return;case"easing":return void(h&&(o+=`${r}animation-timing-function: ${h};\n`));default:return void(o+=`${r}${c}: ${h};\n`)}}),o+=`${r}}\n`}),o+="}\n";const s=document.createElement("style");return s.textContent=o,s}animate(t,e,i,o,r,s=[],a){const l=s.filter(D=>D instanceof Mx),c={};ex(i,o)&&l.forEach(D=>{let I=D.currentSnapshot;Object.keys(I).forEach(T=>c[T]=I[T])});const h=function(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(o=>{"offset"==o||"easing"==o||(t[o]=i[o])})}),t}(e=tx(t,e,c));if(0==i)return new L6(t,h);const f="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,f,e);(function(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(p);const b=yx(t,e),w=new Mx(t,e,f,i,o,r,h,b);return w.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(p)),w}}class Tx{constructor(t,e,i,o){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:T_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class j6{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(kx().toString()),this._cssKeyframesDriver=new xx}validateStyleProperty(t){return y_(t)}matchesElement(t,e){return b_(t,e)}containsElement(t,e){return v_(t,e)}query(t,e,i){return C_(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,o,r,s=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,o,r,s);const h={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(h.easing=r);const f={},p=s.filter(b=>b instanceof Tx);ex(i,o)&&p.forEach(b=>{let w=b.currentSnapshot;Object.keys(w).forEach(D=>f[D]=w[D])});const g=yx(t,e=tx(t,e=e.map(b=>cr(b,!1)),f));return new Tx(t,e,h,g)}}function kx(){return HE()&&Element.prototype.animate||{}}let z6=(()=>{class n extends PE{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ft.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?LE(e):e;return Ix(this._renderer,null,i,"register",[o]),new U6(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(E(Do),E(q))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class U6 extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new W6(this._id,t,e||{},this._renderer)}}class W6{constructor(t,e,i,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ix(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ix(n,t,e,i,o){return n.setProperty(t,`@@${e}:${i}`,o)}const Ax="@.disabled";let q6=(()=>{class n{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{s&&s.parentNode(r)&&s.removeChild(r.parentNode,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let h=this._rendererCache.get(r);return h||(h=new Rx("",r,this.engine),this._rendererCache.set(r,h)),h}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=h=>{Array.isArray(h)?h.forEach(l):this.engine.registerTrigger(s,a,e,h.name,h)};return i.data.animation.forEach(l),new Y6(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&ei(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(E(Do),E(hh),E(J))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class Rx{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==Ax?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Y6 extends Rx{constructor(t,e,i,o){super(e,i,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Ax?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const o=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let J6=(()=>{class n extends hh{constructor(e,i,o){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(E(q),E(w_),E(O_))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const Ln=new j("AnimationModuleType"),Nx=[{provide:PE,useClass:z6},{provide:O_,useFactory:function(){return new o6}},{provide:hh,useClass:J6},{provide:Do,useFactory:function(n,t,e){return new q6(n,t,e)},deps:[Qd,hh,J]}],Ox=[{provide:w_,useFactory:function(){return"function"==typeof kx()?new j6:new xx}},{provide:Ln,useValue:"BrowserAnimations"},...Nx],Fx=[{provide:w_,useClass:qE},{provide:Ln,useValue:"NoopAnimations"},...Nx];let tj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Fx:Ox}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:Ox,imports:[c_]}),n})();function ie(...n){let t=n[n.length-1];return Ms(t)?(n.pop(),qf(n,t)):rl(n)}function Ra(n,t){return $t(n,t,1)}function ze(n,t){return function(i){return i.lift(new nj(n,t))}}class nj{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new ij(t,this.predicate,this.thisArg))}}class ij extends Qe{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Px{}class Lx{}class To{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,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 i=t[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}: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 To?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 To;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof To?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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const o=("a"===t.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=t.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}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 oj{encodeKey(t){return Vx(t)}encodeValue(t){return Vx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const sj=/%(\d[a-f0-9])/gi,aj={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Vx(n){return encodeURIComponent(n).replace(sj,(t,e)=>{var i;return null!==(i=aj[e])&&void 0!==i?i:t})}function Bx(n){return`${n}`}class ur{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new oj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,r)),t.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const o=t[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}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(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ur({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(Bx(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const o=i.indexOf(Bx(t.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class lj{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Hx(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function $x(n){return"undefined"!=typeof Blob&&n instanceof Blob}function jx(n){return"undefined"!=typeof FormData&&n instanceof FormData}class _c{constructor(t,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new To),this.context||(this.context=new lj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(g,t.setHeaders[g]),c)),t.setParams&&(h=Object.keys(t.setParams).reduce((p,g)=>p.set(g,t.setParams[g]),h)),new _c(i,o,s,{params:h,headers:c,context:f,reportProgress:l,responseType:r,withCredentials:a})}}var Bt=(()=>((Bt=Bt||{})[Bt.Sent=0]="Sent",Bt[Bt.UploadProgress=1]="UploadProgress",Bt[Bt.ResponseHeader=2]="ResponseHeader",Bt[Bt.DownloadProgress=3]="DownloadProgress",Bt[Bt.Response=4]="Response",Bt[Bt.User=5]="User",Bt))();class j_{constructor(t,e=200,i="OK"){this.headers=t.headers||new To,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class G_ extends j_{constructor(t={}){super(t),this.type=Bt.ResponseHeader}clone(t={}){return new G_({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 mh extends j_{constructor(t={}){super(t),this.type=Bt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new mh({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 z_ extends j_{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 U_(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Na=(()=>{class n{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof _c)r=e;else{let l,c;l=o.headers instanceof To?o.headers:new To(o.headers),o.params&&(c=o.params instanceof ur?o.params:new ur({fromObject:o.params})),r=new _c(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=ie(r).pipe(Ra(l=>this.handler.handle(l)));if(e instanceof _c||"events"===o.observe)return s;const a=s.pipe(ze(l=>l instanceof mh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(ae(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ae(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ae(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(ae(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ur).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,U_(o,i))}post(e,i,o={}){return this.request("POST",e,U_(o,i))}put(e,i,o={}){return this.request("PUT",e,U_(o,i))}}return n.\u0275fac=function(e){return new(e||n)(E(Px))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class Gx{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const W_=new j("HTTP_INTERCEPTORS");let dj=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const hj=/^\)\]\}',?\n/;let zx=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Le(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((g,b)=>o.setRequestHeader(g,b.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const g=e.detectContentTypeHeader();null!==g&&o.setRequestHeader("Content-Type",g)}if(e.responseType){const g=e.responseType.toLowerCase();o.responseType="json"!==g?g:"text"}const r=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const g=1223===o.status?204:o.status,b=o.statusText||"OK",w=new To(o.getAllResponseHeaders()),D=function(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new G_({headers:w,status:g,statusText:b,url:D}),s},l=()=>{let{headers:g,status:b,statusText:w,url:D}=a(),I=null;204!==b&&(I=void 0===o.response?o.responseText:o.response),0===b&&(b=I?200:0);let T=b>=200&&b<300;if("json"===e.responseType&&"string"==typeof I){const N=I;I=I.replace(hj,"");try{I=""!==I?JSON.parse(I):null}catch($){I=N,T&&(T=!1,I={error:$,text:I})}}T?(i.next(new mh({body:I,headers:g,status:b,statusText:w,url:D||void 0})),i.complete()):i.error(new z_({error:I,headers:g,status:b,statusText:w,url:D||void 0}))},c=g=>{const{url:b}=a(),w=new z_({error:g,status:o.status||0,statusText:o.statusText||"Unknown Error",url:b||void 0});i.error(w)};let h=!1;const f=g=>{h||(i.next(a()),h=!0);let b={type:Bt.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),"text"===e.responseType&&!!o.responseText&&(b.partialText=o.responseText),i.next(b)},p=g=>{let b={type:Bt.UploadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),i.next(b)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),e.reportProgress&&(o.addEventListener("progress",f),null!==r&&o.upload&&o.upload.addEventListener("progress",p)),o.send(r),i.next({type:Bt.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),e.reportProgress&&(o.removeEventListener("progress",f),null!==r&&o.upload&&o.upload.removeEventListener("progress",p)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(E(DE))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const q_=new j("XSRF_COOKIE_NAME"),Y_=new j("XSRF_HEADER_NAME");class Ux{}let pj=(()=>{class n{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=dE(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(E(q),E(or),E(q_))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),K_=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(E(Ux),E(Y_))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),mj=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(W_,[]);this.chain=i.reduceRight((o,r)=>new Gx(o,r),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(E(Lx),E(ke))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),gj=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:K_,useClass:dj}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:q_,useValue:e.cookieName}:[],e.headerName?{provide:Y_,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[K_,{provide:W_,useExisting:K_,multi:!0},{provide:Ux,useClass:pj},{provide:q_,useValue:"XSRF-TOKEN"},{provide:Y_,useValue:"X-XSRF-TOKEN"}]}),n})(),_j=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[Na,{provide:Px,useClass:mj},zx,{provide:Lx,useExisting:zx}],imports:[[gj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();function Wx(...n){if(1===n.length){const t=n[0];if(zo(t))return gh(t,null);if(Uf(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return gh(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return gh(n=1===n.length&&zo(n[0])?n[0]:n,null).pipe(ae(e=>t(...e)))}return gh(n,null)}function gh(n,t){return new Le(e=>{const i=n.length;if(0===i)return void e.complete();const o=new Array(i);let r=0,s=0;for(let a=0;a{c||(c=!0,s++),o[a]=h},error:h=>e.error(h),complete:()=>{r++,(r===i||!c)&&(s===i&&e.next(t?t.reduce((h,f,p)=>(h[f]=o[p],h),{}):o),e.complete())}}))}})}let qx=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(m(St),m(V))},n.\u0275dir=k({type:n}),n})(),Zr=(()=>{class n extends qx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[G]}),n})();const qt=new j("NgValueAccessor"),bj={provide:qt,useExisting:Me(()=>_h),multi:!0},Cj=new j("CompositionEventMode");let _h=(()=>{class n extends qx{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const n=no()?no().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(m(St),m(V),m(Cj,8))},n.\u0275dir=k({type:n,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(e,i){1&e&&M("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Q([bj]),G]}),n})();function dr(n){return null==n||0===n.length}function Kx(n){return null!=n&&"number"==typeof n.length}const nn=new j("NgValidators"),hr=new j("NgAsyncValidators"),wj=/^(?=.{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 Q_{static min(t){return function(n){return t=>{if(dr(t.value)||dr(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(dr(t.value)||dr(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function(n){return dr(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function(n){return dr(n.value)||wj.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function(n){return t=>dr(t.value)||!Kx(t.value)?null:t.value.lengthKx(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function(n){if(!n)return fr;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(dr(i.value))return null;const o=i.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return cS(t)}static composeAsync(t){return uS(t)}}function fr(n){return null}function oS(n){return null!=n}function rS(n){const t=Pl(n)?Qt(n):n;return od(t),t}function sS(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function aS(n,t){return t.map(e=>e(n))}function lS(n){return n.map(t=>function(n){return!n.validate}(t)?t:e=>t.validate(e))}function cS(n){if(!n)return null;const t=n.filter(oS);return 0==t.length?null:function(e){return sS(aS(e,t))}}function J_(n){return null!=n?cS(lS(n)):null}function uS(n){if(!n)return null;const t=n.filter(oS);return 0==t.length?null:function(e){return Wx(aS(e,t).map(rS)).pipe(ae(sS))}}function X_(n){return null!=n?uS(lS(n)):null}function dS(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function hS(n){return n._rawValidators}function fS(n){return n._rawAsyncValidators}function Z_(n){return n?Array.isArray(n)?n:[n]:[]}function yh(n,t){return Array.isArray(n)?n.includes(t):n===t}function pS(n,t){const e=Z_(t);return Z_(n).forEach(o=>{yh(e,o)||e.push(o)}),e}function mS(n,t){return Z_(t).filter(e=>!yh(n,e))}let gS=(()=>{class n{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=J_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=X_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,i){return!!this.control&&this.control.hasError(e,i)}getError(e,i){return this.control?this.control.getError(e,i):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n}),n})(),Nn=(()=>{class n extends gS{get formDirective(){return null}get path(){return null}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[G]}),n})();class ro extends gS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _S{constructor(t){this._cd=t}is(t){var e,i,o;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[t])}}let yS=(()=>{class n extends _S{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(m(ro,2))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&U("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[G]}),n})(),bS=(()=>{class n extends _S{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Nn,10))},n.\u0275dir=k({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&U("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[G]}),n})();function yc(n,t){ny(n,t),t.valueAccessor.writeValue(n.value),function(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&vS(n,t)})}(n,t),function(n,t){const e=(i,o)=>{t.valueAccessor.writeValue(i),o&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&vS(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Ch(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Dh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function wh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ny(n,t){const e=hS(n);null!==t.validator?n.setValidators(dS(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=fS(n);null!==t.asyncValidator?n.setAsyncValidators(dS(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const o=()=>n.updateValueAndValidity();wh(t._rawValidators,o),wh(t._rawAsyncValidators,o)}function Dh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const o=hS(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.validator);r.length!==o.length&&(e=!0,n.setValidators(r))}}if(null!==t.asyncValidator){const o=fS(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.asyncValidator);r.length!==o.length&&(e=!0,n.setAsyncValidators(r))}}}const i=()=>{};return wh(t._rawValidators,i),wh(t._rawAsyncValidators,i),e}function vS(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function CS(n,t){ny(n,t)}function wS(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Mh(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const bc="VALID",Eh="INVALID",Oa="PENDING",vc="DISABLED";function ry(n){return(ay(n)?n.validators:n)||null}function DS(n){return Array.isArray(n)?J_(n):n||null}function sy(n,t){return(ay(t)?t.asyncValidators:n)||null}function MS(n){return Array.isArray(n)?X_(n):n||null}function ay(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class ly{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=DS(this._rawValidators),this._composedAsyncValidatorFn=MS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===bc}get invalid(){return this.status===Eh}get pending(){return this.status==Oa}get disabled(){return this.status===vc}get enabled(){return this.status!==vc}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._rawValidators=t,this._composedValidatorFn=DS(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=MS(t)}addValidators(t){this.setValidators(pS(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pS(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(mS(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(mS(t,this._rawAsyncValidators))}hasValidator(t){return yh(this._rawValidators,t)}hasAsyncValidator(t){return yh(this._rawAsyncValidators,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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Oa,!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=vc,this.errors=null,this._forEachChild(i=>{i.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(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=bc,this._forEachChild(i=>{i.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(i=>i(!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(),(this.status===bc||this.status===Oa)&&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()?vc:bc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Oa,this._hasOwnPendingAsyncValidator=!0;const e=rS(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(o=>{i=i instanceof xh?i.controls.hasOwnProperty(o)?i.controls[o]:null:i instanceof Fj&&i.at(o)||null}),i}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.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 L,this.statusChanges=new L}_calculateStatus(){return this._allControlsDisabled()?vc:this.errors?Eh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Oa)?Oa:this._anyControlsHaveStatus(Eh)?Eh:bc}_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){ay(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class es extends ly{constructor(t=null,e,i){super(ry(e),sy(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(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)}_unregisterOnChange(t){Mh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Mh(this._onDisabledChange,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 xh extends ly{constructor(t,e,i){super(ry(e),sy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof es?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);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=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Fj extends ly{constructor(t,e,i){super(ry(e),sy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((i,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof es?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!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,i)=>{t(e,i)})}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Pj={provide:Nn,useExisting:Me(()=>wc)},Cc=(()=>Promise.resolve(null))();let wc=(()=>{class n extends Nn{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new L,this.form=new xh({},J_(e),X_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Cc.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),yc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Cc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),Mh(this._directives,e)})}addFormGroup(e){Cc.then(()=>{const i=this._findContainer(e.path),o=new xh({});CS(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Cc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Cc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,wS(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(m(nn,10),m(hr,10))},n.\u0275dir=k({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&M("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Q([Pj]),G]}),n})(),kS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),AS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();const cy=new j("NgModelWithFormControlWarning"),zj={provide:Nn,useExisting:Me(()=>Fa)};let Fa=(()=>{class n extends Nn{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new L,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return yc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ch(e.control||null,e,!1),Mh(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,wS(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(Ch(i||null,e),o instanceof es&&(yc(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);CS(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function(n,t){return Dh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ny(this.form,this),this._oldForm&&Dh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(m(nn,10),m(hr,10))},n.\u0275dir=k({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&M("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Q([zj]),G,ye]}),n})();const qj={provide:ro,useExisting:Me(()=>hy)};let hy=(()=>{class n extends ro{constructor(e,i,o,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new L,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function(n,t){if(!t)return null;let e,i,o;return Array.isArray(t),t.forEach(r=>{r.constructor===_h?e=r:function(n){return Object.getPrototypeOf(n.constructor)===Zr}(r)?i=r:o=r}),o||i||e||null}(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),function(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return function(n,t){return[...t.path,n]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n.\u0275fac=function(e){return new(e||n)(m(Nn,13),m(nn,10),m(hr,10),m(qt,10),m(cy,8))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Q([qj]),G,ye]}),n._ngModelWarningSentOnce=!1,n})(),YS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[AS]]}),n})(),KS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[YS]}),n})(),sG=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:cy,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[YS]}),n})();class wt extends W{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 Dr;return this._value}next(t){super.next(this._value=t)}}function ko(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Io(){}function et(n,t,e){return function(o){return o.lift(new yG(n,t,e))}}class yG{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new bG(t,this.nextOrObserver,this.error,this.complete))}}class bG extends Qe{constructor(t,e,i,o){super(t),this._tapNext=Io,this._tapError=Io,this._tapComplete=Io,this._tapError=i||Io,this._tapComplete=o||Io,Gi(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Io,this._tapError=e.error||Io,this._tapComplete=e.complete||Io)}_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(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class vG extends He{constructor(t,e){super()}schedule(t,e=0){return this}}class kh extends vG{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let o,i=!1;try{this.work(t)}catch(r){i=!0,o=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),o}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,o=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&i.splice(o,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let ZS=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,o){return new this.SchedulerAction(this,e).schedule(o,i)}}return n.now=()=>Date.now(),n})();class Bi extends ZS{constructor(t,e=ZS.now){super(t,()=>Bi.delegate&&Bi.delegate!==this?Bi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Bi.delegate&&Bi.delegate!==this?Bi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Ih=new Bi(kh);function eT(n,t=Ih){return e=>e.lift(new CG(n,t))}class CG{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new wG(t,this.dueTime,this.scheduler))}}class wG extends Qe{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(DG,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function DG(n){n.debouncedNext()}const tT=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Ao=new Le(n=>n.complete());function Ah(n){return n?function(n){return new Le(t=>n.schedule(()=>t.complete()))}(n):Ao}function tt(n){return t=>0===n?Ah():t.lift(new EG(n))}class EG{constructor(t){if(this.total=t,this.total<0)throw new tT}call(t,e){return e.subscribe(new xG(t,this.total))}}class xG extends Qe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class SG{constructor(t){this.total=t}call(t,e){return e.subscribe(new TG(t,this.total))}}class TG extends Qe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function ts(n,t){return e=>e.lift(new kG(n,t))}class kG{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new IG(t,this.compare,this.keySelector))}}class IG extends Qe{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:o}=this;e=o?o(t):t}catch(o){return this.destination.error(o)}let i=!1;if(this.hasKey)try{const{compare:o}=this;i=o(this.key,e)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function ge(n){return t=>t.lift(new AG(n))}class AG{constructor(t){this.notifier=t}call(t,e){const i=new RG(t),o=Ss(this.notifier,new Es(i));return o&&!i.seenValue?(i.add(o),e.subscribe(i)):i}}class RG extends xs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Oe(n){return null!=n&&"false"!=`${n}`}function Qn(n,t=0){return function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function iT(n){return Array.isArray(n)?n:[n]}function Ht(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Ro(n){return n instanceof V?n.nativeElement:n}let yy;try{yy="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){yy=!1}let Pa,rt=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function(n){return n===bE}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!yy)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(E(or))},n.\u0275prov=A({factory:function(){return new n(E(or))},token:n,providedIn:"root"}),n})(),Ec=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();const oT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rT(){if(Pa)return Pa;if("object"!=typeof document||!document)return Pa=new Set(oT),Pa;let n=document.createElement("input");return Pa=new Set(oT.filter(t=>(n.setAttribute("type",t),n.type===t))),Pa}let xc,ns,by,Hi;function Rh(n){return function(){if(null==xc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xc=!0}))}finally{xc=xc||!1}return xc}()?n:!!n.capture}function sT(){if(null==ns){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ns=!1,ns;if("scrollBehavior"in document.documentElement.style)ns=!0;else{const n=Element.prototype.scrollTo;ns=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ns}function aT(n){if(function(){if(null==by){const n="undefined"!=typeof document?document.head:null;by=!(!n||!n.createShadowRoot&&!n.attachShadow)}return by}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Oh(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function is(n){return n.composedPath?n.composedPath()[0]:n.target}function vy(){return void 0!==Hi.__karma__&&!!Hi.__karma__||void 0!==Hi.jasmine&&!!Hi.jasmine||void 0!==Hi.jest&&!!Hi.jest||void 0!==Hi.Mocha&&!!Hi.Mocha}Hi="undefined"!=typeof global?global:"undefined"!=typeof window?window:{};let Cy=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})(),lT=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ro(e);return new Le(o=>{const s=this._observeElement(i).subscribe(o);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new W,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(E(Cy))},n.\u0275prov=A({factory:function(){return new n(E(Cy))},token:n,providedIn:"root"}),n})(),cT=(()=>{class n{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new L,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(eT(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(lT),m(V),m(J))},n.\u0275dir=k({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[Cy]}),n})();class hT{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=He.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new W,this.change=new W,t instanceof Hr&&t.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(et(e=>this._pressedLetters.push(e)),eT(t),ze(()=>this._pressedLetters.length>0),ae(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!t[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||ko(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Hr?this._items.toArray():this._items}}class VG extends hT{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class fT extends hT{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let pT=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function(n){try{return n.frameElement}catch(t){return null}}(function(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===gT(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=gT(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function(n){return!function(n){return function(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function(n){return function(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||mT(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(E(rt))},n.\u0275prov=A({factory:function(){return new n(E(rt))},token:n,providedIn:"root"}),n})();function mT(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function gT(n){if(!mT(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class KG{constructor(t,e,i,o,r=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(tt(1)).subscribe(t)}}let _T=(()=>{class n{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new KG(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(E(pT),E(J),E(q))},n.\u0275prov=A({factory:function(){return new n(E(pT),E(J),E(q))},token:n,providedIn:"root"}),n})();function yT(n){return 0===n.offsetX&&0===n.offsetY}function bT(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const vT=new j("cdk-input-modality-detector-options"),e7={ignoreKeys:[18,17,224,91,16]},La=Rh({passive:!0,capture:!0});let wT=(()=>{class n{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new wt(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===s.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=is(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(yT(s)?"keyboard":"mouse"),this._mostRecentTarget=is(s))},this._onTouchstart=s=>{bT(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=is(s))},this._options=Object.assign(Object.assign({},e7),r),this.modalityDetected=this._modality.pipe(function(n){return t=>t.lift(new SG(n))}(1)),this.modalityChanged=this.modalityDetected.pipe(ts()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,La),o.addEventListener("mousedown",this._onMousedown,La),o.addEventListener("touchstart",this._onTouchstart,La)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,La),document.removeEventListener("mousedown",this._onMousedown,La),document.removeEventListener("touchstart",this._onTouchstart,La))}}return n.\u0275fac=function(e){return new(e||n)(E(rt),E(J),E(q),E(vT,8))},n.\u0275prov=A({factory:function(){return new n(E(rt),E(J),E(q),E(vT,8))},token:n,providedIn:"root"}),n})();const DT=new j("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),MT=new j("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ET=(()=>{class n{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[r,s]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r{class n{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new W,this._rootNodeFocusAndBlurListener=a=>{const l=is(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let h=l;h;h=h.parentElement)c.call(this,a,h)},this._document=r,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const o=Ro(e);if(!this._platform.isBrowser||1!==o.nodeType)return ie(null);const r=aT(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new W,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Ro(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ro(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,o){o?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=is(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Fh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Fh)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ge(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Fh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Fh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}}return n.\u0275fac=function(e){return new(e||n)(E(J),E(rt),E(wT),E(q,8),E(xT,8))},n.\u0275prov=A({factory:function(){return new n(E(J),E(rt),E(wT),E(q,8),E(xT,8))},token:n,providedIn:"root"}),n})();const ST="cdk-high-contrast-black-on-white",TT="cdk-high-contrast-white-on-black",Dy="cdk-high-contrast-active";let kT=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Dy),e.remove(ST),e.remove(TT),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Dy),e.add(ST)):2===i&&(e.add(Dy),e.add(TT))}}}return n.\u0275fac=function(e){return new(e||n)(E(rt),E(q))},n.\u0275prov=A({factory:function(){return new n(E(rt),E(q))},token:n,providedIn:"root"}),n})();const IT=new j("cdk-dir-doc",{providedIn:"root",factory:function(){return Lu(q)}});let so=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new L,e){const o=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||o;this.value="ltr"===r||"rtl"===r?r:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(E(IT,8))},n.\u0275prov=A({factory:function(){return new n(E(IT,8))},token:n,providedIn:"root"}),n})(),Tc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();const AT=new nr("12.2.12");function Ph(...n){return ol(1)(ie(...n))}function yn(...n){const t=n[n.length-1];return Ms(t)?(n.pop(),e=>Ph(n,e,t)):e=>Ph(n,e)}function s7(n,t){if(1&n&&O(0,"mat-pseudo-checkbox",4),2&n){const e=_();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function a7(n,t){if(1&n&&(u(0,"span",5),C(1),d()),2&n){const e=_();y(1),Xt("(",e.group.label,")")}}const l7=["*"],RT=new nr("12.2.12"),u7=new j("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ss,Ke=(()=>{class n{constructor(e,i,o){this._hasDoneGlobalChecks=!1,this._document=o,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Md()||vy())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&RT.full!==AT.full&&console.warn("The Angular Material version ("+RT.full+") does not match the Angular CDK version ("+AT.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(E(kT),E(u7,8),E(q))},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Tc],Tc]}),n})();function kc(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Oe(t)}}}function Va(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function rs(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Oe(t)}}}function My(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qn(e):this.defaultTabIndex}}}function NT(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new W,this.errorState=!1}updateErrorState(){const t=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==t&&(this.errorState=r,this.stateChanges.next())}}}try{ss="undefined"!=typeof Intl}catch(n){ss=!1}let Ey=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})(),FT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Ic(n,t,e){const i=n.nativeElement.classList;e?i.add(t):i.remove(t)}let LT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke],Ke]}),n})();class w7{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const VT={enterDuration:225,exitDuration:150},xy=Rh({passive:!0}),BT=["mousedown","touchstart"],HT=["mouseup","mouseleave","touchend","touchcancel"];class M7{constructor(t,e,i,o){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ro(i))}fadeInRipple(t,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},VT),i.animation);i.centered&&(t=o.left+o.width/2,e=o.top+o.height/2);const s=i.radius||function(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),o=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+o*o)}(t,e,o),a=t-o.left,l=e-o.top,c=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=a-s+"px",h.style.top=l-s+"px",h.style.height=2*s+"px",h.style.width=2*s+"px",null!=i.color&&(h.style.backgroundColor=i.color),h.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(h),function(n){window.getComputedStyle(n).getPropertyValue("opacity")}(h),h.style.transform="scale(1)";const f=new w7(this,h,i);return f.state=0,this._activeRipples.add(f),i.persistent||(this._mostRecentTransientRipple=f),this._runTimeoutOutsideZone(()=>{const p=f===this._mostRecentTransientRipple;f.state=1,!i.persistent&&(!p||!this._isPointerDown)&&f.fadeOut()},c),f}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,o=Object.assign(Object.assign({},VT),t.config.animation);i.style.transitionDuration=`${o.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},o.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Ro(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(BT))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(HT),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=yT(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,xy)})})}_removeTriggerEvents(){this._triggerElement&&(BT.forEach(t=>{this._triggerElement.removeEventListener(t,this,xy)}),this._pointerUpEventsRegistered&&HT.forEach(t=>{this._triggerElement.removeEventListener(t,this,xy)}))}}const S7=new j("mat-ripple-global-options");let pr=(()=>{class n{constructor(e,i,o,r,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new M7(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(J),m(rt),m(S7,8),m(Ln,8))},n.\u0275dir=k({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&U("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),Vh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke,Ec],Ke]}),n})(),$T=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(m(Ln,8))},n.\u0275cmp=Z({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&U("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Sy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke]]}),n})();const Ty=new j("MAT_OPTION_PARENT_COMPONENT"),T7=kc(class{});let k7=0,jT=(()=>{class n extends T7{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+k7++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return n.\u0275fac=function(e){return new(e||n)(m(Ty,8))},n.\u0275dir=k({type:n,inputs:{label:"label"},features:[G]}),n})();const ky=new j("MatOptgroup");let I7=0;class A7{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let R7=(()=>{class n{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+I7++,this.onSelectionChange=new L,this._stateChanges=new W}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Oe(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ko(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new A7(this,e))}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(Ye),m(void 0),m(jT))},n.\u0275dir=k({type:n,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Iy=(()=>{class n extends R7{constructor(e,i,o,r){super(e,i,o,r)}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(Ye),m(Ty,8),m(ky,8))},n.\u0275cmp=Z({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&M("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(Ut("id",i.id),ne("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),U("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[G],ngContentSelectors:l7,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(it(),x(0,s7,1,2,"mat-pseudo-checkbox",0),u(1,"span",1),he(2),d(),x(3,a7,2,1,"span",2),O(4,"div",3)),2&e&&(v("ngIf",i.multiple),y(3),v("ngIf",i.group&&i.group._inert),y(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[pt,pr,$T],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function GT(n,t,e){if(e.length){let i=t.toArray(),o=e.toArray(),r=0;for(let s=0;s{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Vh,Nt,Ke,Sy]]}),n})();const UT=["mat-button",""],WT=["*"],F7=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],P7=Va(kc(rs(class{constructor(n){this._elementRef=n}})));let No=(()=>{class n extends P7{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of F7)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(os),m(Ln,8))},n.\u0275cmp=Z({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&$e(pr,5),2&e){let o;B(o=H())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(ne("disabled",i.disabled||null),U("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[G],attrs:UT,ngContentSelectors:WT,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(it(),u(0,"span",0),he(1),d(),O(2,"span",1),O(3,"span",2)),2&e&&(y(2),U("mat-button-ripple-round",i.isRoundButton||i.isIconButton),v("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[pr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),YT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Vh,Ke],Ke]}),n})();const L7=["*",[["mat-card-footer"]]],V7=["*","mat-card-footer"],B7=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],H7=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let KT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),G7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),z7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),n})(),U7=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,i){2&e&&U("mat-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n})(),W7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),n})(),q7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),n})(),QT=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(m(Ln,8))},n.\u0275cmp=Z({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&U("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:V7,decls:2,vars:0,template:function(e,i){1&e&&(it(L7),he(0),he(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n})(),Y7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Z({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:H7,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(it(B7),he(0),u(1,"div",0),he(2,1),d(),he(3,2))},encapsulation:2,changeDetection:0}),n})(),JT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke],Ke]}),n})(),ek=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})(),tk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Vh,Ke,wy,ek],Ke,ek]}),n})();function Tt(n,t,e,i){return Gi(e)&&(i=e,e=void 0),i?Tt(n,t,e).pipe(ae(o=>zo(o)?i(...o):i(o))):new Le(o=>{nk(n,t,function(s){o.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},o,e)})}function nk(n,t,e,i,o){let r;if(function(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,o),r=()=>s.removeEventListener(t,e,o)}else if(function(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),r=()=>s.off(t,e)}else if(function(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),r=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let hz=1;const fz=Promise.resolve(),Bh={};function ik(n){return n in Bh&&(delete Bh[n],!0)}const ok={setImmediate(n){const t=hz++;return Bh[t]=!0,fz.then(()=>ik(t)&&n()),t},clearImmediate(n){ik(n)}};new class extends Bi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,o=-1,r=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=ok.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(ok.clearImmediate(e),t.scheduled=void 0)}});class yz{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new bz(t,this.durationSelector))}}class bz extends xs{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:o}=this;e=o(t)}catch(o){return this.destination.error(o)}const i=Ss(e,new Es(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function rk(n){return!zo(n)&&n-parseFloat(n)+1>=0}function Ry(n=0,t,e){let i=-1;return rk(t)?i=Number(t)<1?1:Number(t):Ms(t)&&(e=t),Ms(e)||(e=Ih),new Le(o=>{const r=rk(n)?n:+n-e.now();return e.schedule(vz,r,{index:0,period:i,subscriber:o})})}function vz(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Hh(n,t=Ih){return function(n){return function(e){return e.lift(new yz(n))}}(()=>Ry(n,t))}function On(n,t){return"function"==typeof t?e=>e.pipe(On((i,o)=>Qt(n(i,o)).pipe(ae((r,s)=>t(i,r,o,s))))):e=>e.lift(new Mz(n))}class Mz{constructor(t){this.project=t}call(t,e){return e.subscribe(new Ez(t,this.project))}}class Ez extends xs{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(o){return void this.destination.error(o)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Es(this),o=this.destination;o.add(i),this.innerSubscription=Ss(t,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Tz=new class extends Bi{}(class extends kh{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function sk(n,t){return new Le(t?e=>t.schedule(kz,0,{error:n,subscriber:e}):e=>e.error(n))}function kz({error:n,subscriber:t}){t.error(n)}class Vn{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return ie(this.value);case"E":return sk(this.error);case"C":return Ah()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Vn("N",t):Vn.undefinedValueNotification}static createError(t){return new Vn("E",void 0,t)}static createComplete(){return Vn.completeNotification}}Vn.completeNotification=new Vn("C"),Vn.undefinedValueNotification=new Vn("N",void 0);class $h extends Qe{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule($h.dispatch,this.delay,new Az(t,this.destination)))}_next(t){this.scheduleMessage(Vn.createNext(t))}_error(t){this.scheduleMessage(Vn.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Vn.createComplete()),this.unsubscribe()}}class Az{constructor(t,e){this.notification=t,this.destination=e}}class ak extends W{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,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){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new Rz(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,r=i.length;let s;if(this.closed)throw new Dr;if(this.isStopped||this.hasError?s=He.EMPTY:(this.observers.push(t),s=new fv(this,t)),o&&t.add(t=new $h(t,o)),e)for(let a=0;ae&&(s=Math.max(s,r-e)),s>0&&o.splice(0,s),o}}class Rz{constructor(t,e){this.time=t,this.value=e}}class Oy{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new W,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let ck=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})(),Gh=(()=>{class n{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new W,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Le(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Hh(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ie()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ze(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Ro(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Tt(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(E(J),E(rt),E(q,8))},n.\u0275prov=A({factory:function(){return new n(E(J),E(rt),E(q,8))},token:n,providedIn:"root"}),n})(),ls=(()=>{class n{constructor(e,i,o){this._platform=e,this._change=new W,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Hh(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(E(rt),E(J),E(q,8))},n.\u0275prov=A({factory:function(){return new n(E(rt),E(J),E(q,8))},token:n,providedIn:"root"}),n})(),Fy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})(),Py=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Tc,Ec,Fy],Tc,Fy]}),n})();class Ly{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Vy extends Ly{constructor(t,e,i,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class Ac extends Ly{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Wz extends Ly{constructor(t){super(),this.element=t instanceof V?t.nativeElement:t}}class By{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Vy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ac?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Wz?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class qz extends By{constructor(t,e,i,o,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let o;return t.viewContainerRef?(o=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(t.injector||this._defaultInjector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=t,o}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Rc=(()=>{class n extends By{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new L,this.attachDomPortal=r=>{const s=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(m(In),m(dt),m(q))},n.\u0275dir=k({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[G]}),n})(),Hy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();class Kz{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Qz(t,this.predicate,this.inclusive))}}class Qz extends Qe{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(o){return void e.error(o)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const pk=sT();class Jz{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Ht(-this._previousScrollPosition.left),t.style.top=Ht(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,o=this._document.body.style,r=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),pk&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pk&&(i.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Xz{constructor(t,e,i,o){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mk{enable(){}disable(){}attach(){}}function $y(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function gk(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class Zz{constructor(t,e,i,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();$y(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let eU=(()=>{class n{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new mk,this.close=s=>new Xz(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Jz(this._viewportRuler,this._document),this.reposition=s=>new Zz(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}}return n.\u0275fac=function(e){return new(e||n)(E(Gh),E(ls),E(J),E(q))},n.\u0275prov=A({factory:function(){return new n(E(Gh),E(ls),E(J),E(q))},token:n,providedIn:"root"}),n})();class jy{constructor(t){if(this.scrollStrategy=new mk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class tU{constructor(t,e,i,o,r){this.offsetX=i,this.offsetY=o,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class nU{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let _k=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({factory:function(){return new n(E(q))},token:n,providedIn:"root"}),n})(),iU=(()=>{class n extends _k{constructor(e){super(e),this._keydownListener=i=>{const o=this._attachedOverlays;for(let r=o.length-1;r>-1;r--)if(o[r]._keydownEvents.observers.length>0){o[r]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({factory:function(){return new n(E(q))},token:n,providedIn:"root"}),n})(),oU=(()=>{class n extends _k{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=is(o)},this._clickListener=o=>{const r=is(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(o)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(E(q),E(rt))},n.\u0275prov=A({factory:function(){return new n(E(q),E(rt))},token:n,providedIn:"root"}),n})(),Nc=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||vy()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(h),this._keydownEvents=new W,this._outsidePointerEvents=new W,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(tt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Ht(this._config.width),t.height=Ht(this._config.height),t.minWidth=Ht(this._config.minWidth),t.minHeight=Ht(this._config.minHeight),t.maxWidth=Ht(this._config.maxWidth),t.maxHeight=Ht(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const o=t.classList;iT(e).forEach(r=>{r&&(i?o.add(r):o.remove(r))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(ge(ho(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const yk="cdk-overlay-connected-position-bounding-box",sU=/([A-Za-z%]+)$/;class bk{constructor(t,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new W,this._resizeSubscription=He.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(yk),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,o=[];let r;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),l=this._getOverlayPoint(a,e,s),c=this._getOverlayFit(l,e,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?o.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!r||r.overlayFit.visibleAreaa&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&cs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,o;if("center"==e.originX)i=t.left+t.width/2;else{const r=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?r:s}return o="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:o}}_getOverlayPoint(t,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+o,y:t.y+r}}_getOverlayFit(t,e,i,o){const r=Ck(e);let{x:s,y:a}=t,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let p=0-a,g=a+r.height-i.height,b=this._subtractOverflows(r.width,0-s,s+r.width-i.width),w=this._subtractOverflows(r.height,p,g),D=b*w;return{visibleArea:D,isCompletelyWithinViewport:r.width*r.height===D,fitsInViewportVertically:w===r.height,fitsInViewportHorizontally:b==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=vk(this._overlayRef.getConfig().minHeight),a=vk(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=s&&s<=o)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const o=Ck(e),r=this._viewportRect,s=Math.max(t.x+o.width-r.width,0),a=Math.max(t.y+o.height-r.height,0),l=Math.max(r.top-i.top-t.y,0),c=Math.max(r.left-i.left-t.x,0);let h=0,f=0;return h=o.width<=r.width?c||-s:t.xb&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-b/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)p=i.width-t.x+this._viewportMargin,h=t.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)f=t.x,h=i.right-t.x;else{const g=Math.min(i.right-t.x+i.left,t.x),b=this._lastBoundingBoxSize.width;h=2*g,f=t.x-g,h>b&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-b/2)}return{top:s,left:f,bottom:a,right:p,width:h,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=Ht(i.height),o.top=Ht(i.top),o.bottom=Ht(i.bottom),o.width=Ht(i.width),o.left=Ht(i.left),o.right=Ht(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=Ht(r)),s&&(o.maxWidth=Ht(s))}this._lastBoundingBoxSize=i,cs(this._boundingBox.style,o)}_resetBoundingBoxStyles(){cs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){cs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const h=this._viewportRuler.getViewportScrollPosition();cs(i,this._getExactOverlayY(e,t,h)),cs(i,this._getExactOverlayX(e,t,h))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(o?i.maxHeight=Ht(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=Ht(s.maxWidth):r&&(i.maxWidth="")),cs(this._pane.style,i)}_getExactOverlayY(t,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Ht(r.y),o}_getExactOverlayX(t,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Ht(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gk(t,i),isOriginOutsideView:$y(t,i),isOverlayClipped:gk(e,i),isOverlayOutsideView:$y(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,o)=>i-Math.max(o,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&iT(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof V)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function cs(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function vk(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(sU);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Ck(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}class aU{constructor(t,e,i,o,r,s,a){this._preferredPositions=[],this._positionStrategy=new bk(i,o,r,s,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,o){const r=new tU(t,e,i,o);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const wk="cdk-global-overlay-wrapper";class lU{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(wk),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=i,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(wk),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let cU=(()=>{class n{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new lU}connectedTo(e,i,o){return new aU(i,o,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new bk(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(E(ls),E(q),E(rt),E(Nc))},n.\u0275prov=A({factory:function(){return new n(E(ls),E(q),E(rt),E(Nc))},token:n,providedIn:"root"}),n})(),uU=0,us=(()=>{class n{constructor(e,i,o,r,s,a,l,c,h,f,p){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=h,this._location=f,this._outsideClickDispatcher=p}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new jy(e);return s.direction=s.direction||this._directionality.value,new rU(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+uU++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(di)),new qz(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(E(eU),E(Nc),E(In),E(cU),E(iU),E(ke),E(J),E(q),E(so),E(Ur),E(oU))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const dU=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Dk=new j("cdk-connected-overlay-scroll-strategy");let hU=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(m(V))},n.\u0275dir=k({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Mk=(()=>{class n{constructor(e,i,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=He.EMPTY,this._attachSubscription=He.EMPTY,this._detachSubscription=He.EMPTY,this._positionSubscription=He.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new L,this.positionChange=new L,this.attach=new L,this.detach=new L,this.overlayKeydown=new L,this.overlayOutsideClick=new L,this._templatePortal=new Ac(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Oe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Oe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Oe(e)}get push(){return this._push}set push(e){this._push=Oe(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=dU);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!ko(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new jy({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(n,t=!1){return e=>e.lift(new Kz(n,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(us),m(Re),m(dt),m(Dk),m(so,8))},n.\u0275dir=k({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ye]}),n})();const pU={provide:Dk,deps:[us],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};let Ek=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[us,pU],imports:[[Tc,Hy,Py],Py]}),n})();function zh(n){return new Le(t=>{let e;try{e=n()}catch(o){return void t.error(o)}return(e?Qt(e):Ah()).subscribe(t)})}function mU(n,t){}class Gy{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const gU={dialogContainer:Ta("dialogContainer",[io("void, exit",_n({opacity:0,transform:"scale(0.7)"})),io("enter",_n({transform:"none"})),ar("* => enter",Yr("150ms cubic-bezier(0, 0, 0.2, 1)",_n({transform:"none",opacity:1}))),ar("* => void, * => exit",Yr("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",_n({opacity:0})))])};let _U=(()=>{class n extends By{constructor(e,i,o,r,s,a){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=o,this._config=s,this._focusMonitor=a,this._animationStateChanged=new L,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(l)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=r}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Oh(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Oh())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Oh();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(_T),m(Ye),m(q,8),m(Gy),m(os))},n.\u0275dir=k({type:n,viewQuery:function(e,i){if(1&e&&$e(Rc,7),2&e){let o;B(o=H())&&(i._portalOutlet=o.first)}},features:[G]}),n})(),yU=(()=>{class n extends _U{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275cmp=Z({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&Nm("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(Ut("id",i._id),ne("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Pm("@dialogContainer",i._state))},features:[G],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&x(0,mU,0,0,"ng-template",0)},directives:[Rc],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[gU.dialogContainer]}}),n})(),bU=0;class ds{constructor(t,e,i="mat-dialog-"+bU++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new W,this._afterClosed=new W,this._beforeClosed=new W,this._state=0,e._id=i,e._animationStateChanged.pipe(ze(o=>"opened"===o.state),tt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(ze(o=>"closed"===o.state),tt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(ze(o=>27===o.keyCode&&!this.disableClose&&!ko(o))).subscribe(o=>{o.preventDefault(),zy(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():zy(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(ze(e=>"closing"===e.state),tt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function zy(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const Oc=new j("MatDialogData"),vU=new j("mat-dialog-default-options"),xk=new j("mat-dialog-scroll-strategy"),wU={provide:xk,deps:[us],useFactory:function(n){return()=>n.scrollStrategies.block()}};let DU=(()=>{class n{constructor(e,i,o,r,s,a,l,c,h){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._ariaHiddenElements=new Map,this.afterAllClosed=zh(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yn(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){(i=function(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new Gy)).id&&this.getDialogById(i.id);const o=this._createOverlay(i),r=this._attachDialogContainer(o,i),s=this._attachDialogContent(e,r,o,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),r._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new jy({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const r=ke.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Gy,useValue:i}]}),s=new Vy(this._dialogContainerType,i.viewContainerRef,r,i.componentFactoryResolver);return e.attach(s).instance}_attachDialogContent(e,i,o,r){const s=new this._dialogRefConstructor(o,i,r.id);if(e instanceof Re)i.attachTemplatePortal(new Ac(e,null,{$implicit:r.data,dialogRef:s}));else{const a=this._createInjector(r,s,i),l=i.attachComponentPortal(new Vy(e,r.viewContainerRef,a));s.componentInstance=l.instance}return s.updateSize(r.width,r.height).updatePosition(r.position),s}_createInjector(e,i,o){const r=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!r||!r.get(so,null,ue.Optional))&&s.push({provide:so,useValue:{value:e.direction,change:ie()}}),ke.create({parent:r||this._injector,providers:s})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,r)=>{o?r.setAttribute("aria-hidden",o):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){let r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){return new(e||n)(m(us),m(ke),m(void 0),m(void 0),m(Nc),m(void 0),m($s),m($s),m(j))},n.\u0275dir=k({type:n}),n})(),Oo=(()=>{class n extends DU{constructor(e,i,o,r,s,a,l){super(e,i,r,a,l,s,ds,yU,Oc)}}return n.\u0275fac=function(e){return new(e||n)(E(us),E(ke),E(Ur,8),E(vU,8),E(xk),E(n,12),E(Nc))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),EU=0,Uh=(()=>{class n{constructor(e,i,o){this.dialogRef=e,this._elementRef=i,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Sk(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){zy(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(m(ds,8),m(V),m(Oo))},n.\u0275dir=k({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&M("click",function(r){return i._onButtonClick(r)}),2&e&&ne("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ye]}),n})(),Uy=(()=>{class n{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-"+EU++}ngOnInit(){this._dialogRef||(this._dialogRef=Sk(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(m(ds,8),m(V),m(Oo))},n.\u0275dir=k({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Ut("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Wh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),qh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();function Sk(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let Tk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[Oo,wU],imports:[[Ek,Hy,Ke],Ke]}),n})();const Wy=new j("CdkAccordion");let TU=0,IU=(()=>{class n{constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=He.EMPTY,this.closed=new L,this.opened=new L,this.destroyed=new L,this.expandedChange=new L,this.id="cdk-accordion-child-"+TU++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Oe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(m(Wy,12),m(Ye),m(ck))},n.\u0275dir=k({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Q([{provide:Wy,useValue:void 0}])]}),n})(),AU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();const RU=["body"];function NU(n,t){}const OU=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],FU=["mat-expansion-panel-header","*","mat-action-row"];function PU(n,t){1&n&&O(0,"span",2),2&n&&v("@indicatorRotate",_()._getExpandedState())}const LU=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],VU=["mat-panel-title","mat-panel-description","*"],qy=new j("MAT_ACCORDION"),kk="225ms cubic-bezier(0.4,0.0,0.2,1)",Ik={indicatorRotate:Ta("indicatorRotate",[io("collapsed, void",_n({transform:"rotate(0deg)"})),io("expanded",_n({transform:"rotate(180deg)"})),ar("expanded <=> collapsed, void => collapsed",Yr(kk))]),bodyExpansion:Ta("bodyExpansion",[io("collapsed, void",_n({height:"0px",visibility:"hidden"})),io("expanded",_n({height:"*",visibility:"visible"})),ar("expanded <=> collapsed, void => collapsed",Yr(kk))])};let BU=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Re))},n.\u0275dir=k({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),HU=0;const Ak=new j("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Rk=(()=>{class n extends IU{constructor(e,i,o,r,s,a,l){super(e,i,o),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new L,this.afterCollapse=new L,this._inputChanges=new W,this._headerId="mat-expansion-panel-header-"+HU++,this._bodyAnimationDone=new W,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(ts((c,h)=>c.fromState===h.fromState&&c.toState===h.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(yn(null),ze(()=>this.expanded&&!this._portal),tt(1)).subscribe(()=>{this._portal=new Ac(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(m(qy,12),m(Ye),m(ck),m(dt),m(q),m(Ln,8),m(Ak,8))},n.\u0275cmp=Z({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,o){if(1&e&&de(o,BU,5),2&e){let r;B(r=H())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&$e(RU,5),2&e){let o;B(o=H())&&(i._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&U("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Q([{provide:qy,useValue:void 0}]),G,ye],ngContentSelectors:FU,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(it(OU),he(0),u(1,"div",0,1),M("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),u(3,"div",2),he(4,1),x(5,NU,0,0,"ng-template",3),d(),he(6,2),d()),2&e&&(y(1),v("@bodyExpansion",i._getExpandedState())("id",i.id),ne("aria-labelledby",i._headerId),y(4),v("cdkPortalOutlet",i._portal))},directives:[Rc],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Ik.bodyExpansion]},changeDetection:0}),n})();class jU{}const GU=My(jU);let Nk=(()=>{class n extends GU{constructor(e,i,o,r,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=He.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(ze(h=>!(!h.hideToggle&&!h.togglePosition))):Ao;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=ho(e.opened,e.closed,c,e._inputChanges.pipe(ze(h=>!!(h.hideToggle||h.disabled||h.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ze(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ko(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(m(Rk,1),m(V),m(os),m(Ye),m(Ak,8),m(Ln,8),xn("tabindex"))},n.\u0275cmp=Z({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&M("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(ne("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),ot("height",i._getHeaderHeight()),U("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[G],ngContentSelectors:VU,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(it(LU),u(0,"span",0),he(1),he(2,1),he(3,2),d(),x(4,PU,1,1,"span",1)),2&e&&(y(4),v("ngIf",i._showToggle()))},directives:[pt],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Ik.indicatorRotate]},changeDetection:0}),n})(),zU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),Ok=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt,Ke,AU,Hy]]}),n})();function Fo(n){return function(e){const i=new UU(n),o=e.lift(i);return i.caught=o}}class UU{constructor(t){this.selector=t}call(t,e){return e.subscribe(new WU(t,this.selector,this.caught))}}class WU extends xs{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(r){return void super.error(r)}this._unsubscribeAndRecycle();const i=new Es(this);this.add(i);const o=Ss(e,i);o!==i&&this.add(o)}}}function Fk(n){return t=>t.lift(new qU(n))}class qU{constructor(t){this.callback=t}call(t,e){return e.subscribe(new YU(t,this.callback))}}class YU extends Qe{constructor(t,e){super(t),this.add(new He(e))}}const KU=["*"];function Pk(n){return Error(`Unable to find icon with the name "${n}"`)}function Lk(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Vk(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class hs{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Yh=(()=>{class n{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new hs(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const s=this._sanitizer.sanitize(qe.HTML,o);if(!s)throw Vk(o);return this._addSvgIconConfig(e,i,new hs("",s,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new hs(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(qe.HTML,i);if(!r)throw Vk(i);return this._addSvgIconSetConfig(e,new hs("",r,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(qe.RESOURCE_URL,e);if(!i)throw Lk(e);const o=this._cachedIconsByUrl.get(i);return o?ie(Kh(o)):this._loadSvgIconFromConfig(new hs(e,null)).pipe(et(r=>this._cachedIconsByUrl.set(i,r)),ae(r=>Kh(r)))}getNamedSvgIcon(e,i=""){const o=Bk(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):sk(Pk(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ie(Kh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ae(i=>Kh(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?ie(o):Wx(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Fo(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(qe.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),ie(null)})))).pipe(ae(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Pk(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.indexOf(e)>-1){const s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(et(i=>e.svgText=i),ae(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ie(null):this._fetchIcon(e).pipe(et(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const s=r.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(""),o=e.attributes;for(let r=0;rthis._inProgressUrlFetches.delete(a)),Kf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(Bk(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;ot?t.pathname+t.search:""}}}),Hk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],i9=Hk.map(n=>`[${n}]`).join(", "),o9=/^url\(['"]?#(.*?)['"]?\)$/;let Yy=(()=>{class n extends ZU{constructor(e,i,o,r,s){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=s,this._inline=!1,this._currentIconFetch=He.EMPTY,o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Oe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let r=0;r{o.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(i9),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const a=i[r],l=a.getAttribute(s),c=l?l.match(o9):null;if(c){let h=o.get(a);h||(h=[],o.set(a,h)),h.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(tt(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(Yh),xn("aria-hidden"),m(e9),m(si))},n.\u0275cmp=Z({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(ne("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),U("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[G],ngContentSelectors:KU,decls:1,vars:0,template:function(e,i){1&e&&(it(),he(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),$k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke],Ke]}),n})();const jk=Rh({passive:!0});let Gk=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ao;const i=Ro(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new W,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,jk),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,jk)}}),r}stopMonitoring(e){const i=Ro(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(E(rt),E(J))},n.\u0275prov=A({factory:function(){return new n(E(rt),E(J))},token:n,providedIn:"root"}),n})(),zk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ec]]}),n})();const s9=["underline"],a9=["connectionContainer"],l9=["inputContainer"],c9=["label"];function u9(n,t){1&n&&(re(0),u(1,"div",14),O(2,"div",15),O(3,"div",16),O(4,"div",17),d(),u(5,"div",18),O(6,"div",15),O(7,"div",16),O(8,"div",17),d(),se())}function d9(n,t){1&n&&(u(0,"div",19),he(1,1),d())}function h9(n,t){if(1&n&&(re(0),he(1,2),u(2,"span"),C(3),d(),se()),2&n){const e=_(2);y(3),we(e._control.placeholder)}}function f9(n,t){1&n&&he(0,3,["*ngSwitchCase","true"])}function p9(n,t){1&n&&(u(0,"span",23),C(1," *"),d())}function m9(n,t){if(1&n){const e=F();u(0,"label",20,21),M("cdkObserveContent",function(){return S(e),_().updateOutlineGap()}),x(2,h9,4,1,"ng-container",12),x(3,f9,1,0,"ng-content",12),x(4,p9,2,0,"span",22),d()}if(2&n){const e=_();U("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),v("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),ne("for",e._control.id)("aria-owns",e._control.id),y(2),v("ngSwitchCase",!1),y(1),v("ngSwitchCase",!0),y(1),v("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function g9(n,t){1&n&&(u(0,"div",24),he(1,4),d())}function _9(n,t){if(1&n&&(u(0,"div",25,26),O(2,"span",27),d()),2&n){const e=_();y(2),U("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function y9(n,t){1&n&&(u(0,"div"),he(1,5),d()),2&n&&v("@transitionMessages",_()._subscriptAnimationState)}function b9(n,t){if(1&n&&(u(0,"div",31),C(1),d()),2&n){const e=_(2);v("id",e._hintLabelId),y(1),we(e.hintLabel)}}function v9(n,t){if(1&n&&(u(0,"div",28),x(1,b9,2,2,"div",29),he(2,6),O(3,"div",30),he(4,7),d()),2&n){const e=_();v("@transitionMessages",e._subscriptAnimationState),y(1),v("ngIf",e.hintLabel)}}const C9=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],w9=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let D9=0;const Uk=new j("MatError");let M9=(()=>{class n{constructor(e,i){this.id="mat-error-"+D9++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(xn("aria-live"),m(V))},n.\u0275dir=k({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&ne("id",i.id)},inputs:{id:"id"},features:[Q([{provide:Uk,useExisting:n}])]}),n})();const E9={transitionMessages:Ta("transitionMessages",[io("enter",_n({opacity:1,transform:"translateY(0%)"})),ar("void => enter",[_n({opacity:0,transform:"translateY(-5px)"}),Yr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Qh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n}),n})();const Wk=new j("MatHint");let Fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-label"]]}),n})(),S9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-placeholder"]]}),n})();const qk=new j("MatPrefix"),Yk=new j("MatSuffix");let Kk=0;const k9=Va(class{constructor(n){this._elementRef=n}},"primary"),I9=new j("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ky=new j("MatFormField");let Qy=(()=>{class n extends k9{constructor(e,i,o,r,s,a,l,c){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new W,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Kk++,this._labelId="mat-form-field-label-"+Kk++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Oe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(yn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ge(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ge(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),ho(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(yn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(yn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ge(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tt(this._label.nativeElement,"transitionend").pipe(tt(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,o=0;const r=this._connectionContainerRef.nativeElement,s=r.querySelectorAll(".mat-form-field-outline-start"),a=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=r.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),h=e.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let g=0;g0?.75*p+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt,Ke,wy],Ke]}),n})();const A9=new j("MAT_INPUT_VALUE_ACCESSOR"),R9=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let N9=0;const O9=NT(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let Jk=(()=>{class n extends O9{constructor(e,i,o,r,s,a,l,c,h,f){super(a,r,s,o),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=f,this._uid="mat-input-"+N9++,this.focused=!1,this.stateChanges=new W,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(b=>rT().has(b));const p=this._elementRef.nativeElement,g=p.nodeName.toLowerCase();this._inputValueAccessor=l||p,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&h.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",b=>{const w=b.target;!w.value&&0===w.selectionStart&&0===w.selectionEnd&&(w.setSelectionRange(1,1),w.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===g,this._isTextarea="textarea"===g,this._isInFormField=!!f,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Oe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&rT().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Oe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const o=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(o!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=o,o?r.setAttribute("placeholder",o):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){R9.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(rt),m(ro,10),m(wc,8),m(Fa,8),m(Ey),m(A9,10),m(Gk),m(J),m(Ky,8))},n.\u0275dir=k({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&M("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ut("disabled",i.disabled)("required",i.required),ne("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),U("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Q([{provide:Qh,useExisting:n}]),G,ye]}),n})(),Xk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[Ey],imports:[[zk,Jy,Ke],zk,Jy]}),n})(),F9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke],Ke]}),n})();const Xy=["*"],V9=["text"];function B9(n,t){if(1&n&&O(0,"mat-pseudo-checkbox",5),2&n){const e=_();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const H9=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],$9=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let nI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),iI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})();const G9=rs(class{}),z9=rs(class{}),U9={provide:qt,useExisting:Me(()=>eb),multi:!0};class W9{constructor(t,e,i){this.source=t,this.option=e,this.options=i}}let oI=(()=>{class n extends z9{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this.selectionList=o,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new L,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=Oe(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=Oe(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(o=>e.compareWith(o,this._value))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){!function(n,t,e="mat"){n.changes.pipe(yn(n)).subscribe(({length:i})=>{Ic(t,`${e}-2-line`,!1),Ic(t,`${e}-3-line`,!1),Ic(t,`${e}-multi-line`,!1),2===i||3===i?Ic(t,`${e}-${i}-line`,!0):i>3&&Ic(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(Ye),m(Me(()=>eb)))},n.\u0275cmp=Z({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,o){if(1&e&&(de(o,nI,5),de(o,iI,5),de(o,FT,5)),2&e){let r;B(r=H())&&(i._avatar=r.first),B(r=H())&&(i._icon=r.first),B(r=H())&&(i._lines=r)}},viewQuery:function(e,i){if(1&e&&$e(V9,5),2&e){let o;B(o=H())&&(i._text=o.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&M("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(ne("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),U("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[G],ngContentSelectors:$9,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(it(H9),u(0,"div",0),O(1,"div",1),x(2,B9,1,2,"mat-pseudo-checkbox",2),u(3,"div",3,4),he(5),d(),he(6,1),d()),2&e&&(U("mat-list-item-content-reverse","after"==i.checkboxPosition),y(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),y(1),v("ngIf",i.selectionList.multiple))},directives:[pr,pt,$T],encapsulation:2,changeDetection:0}),n})(),eb=(()=>{class n extends G9{constructor(e,i,o,r){super(),this._element=e,this._changeDetector=o,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new L,this.tabIndex=0,this.color="accent",this.compareWith=(s,a)=>s===a,this._disabled=!1,this.selectedOptions=new Oy(this._multiple),this._tabIndex=-1,this._onChange=s=>{},this._destroyed=new W,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=Oe(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new Oy(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){var e;this._contentInitialized=!0,this._keyManager=new fT(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(ge(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(yn(null),ge(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(ge(this._destroyed)).subscribe(i=>{if(i.added)for(let o of i.added)o.selected=!0;if(i.removed)for(let o of i.removed)o.selected=!1}),null===(e=this._focusMonitor)||void 0===e||e.monitor(this._element).pipe(ge(this._destroyed)).subscribe(i=>{var o;if("keyboard"===i||"program"===i){let r=0;for(let s=0;s-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,o=this._keyManager,r=o.activeItemIndex,s=ko(e);switch(i){case 32:case 13:!s&&!o.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&ko(e,"ctrlKey")&&!o.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else o.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&o.activeItemIndex!==r&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new W9(this,e[0],e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const o=this.options.find(r=>!r.selected&&this.compareWith(r.value,i));o&&o._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,o){const r=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&r.push(s)}),r.length&&(this._reportValueChange(),o&&this._emitChangeEvent(r)),r}_isValidIndex(e){return e>=0&&ee._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(m(V),xn("tabindex"),m(Ye),m(os))},n.\u0275cmp=Z({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,o){if(1&e&&de(o,oI,5),2&e){let r;B(r=H())&&(i.options=r)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&M("keydown",function(r){return i._keydown(r)}),2&e&&ne("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Q([U9]),G,ye],ngContentSelectors:Xy,decls:1,vars:0,template:function(e,i){1&e&&(it(),he(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),rI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[LT,Vh,Ke,Sy,Nt],LT,Ke,Sy,F9]}),n})();const q9=["primaryValueBar"],Y9=Va(class{constructor(n){this._elementRef=n}},"primary"),K9=new j("mat-progress-bar-location",{providedIn:"root",factory:function(){const n=Lu(q),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}});let J9=0,X9=(()=>{class n extends Y9{constructor(e,i,o,r){super(e),this._ngZone=i,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new L,this._animationEndSubscription=He.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+J9++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===o}get value(){return this._value}set value(e){this._value=sI(Qn(e)||0)}get bufferValue(){return this._bufferValue}set bufferValue(e){this._bufferValue=sI(e||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Tt(e,"transitionend").pipe(ze(i=>i.target===e)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(J),m(Ln,8),m(K9,8))},n.\u0275cmp=Z({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&$e(q9,5),2&e){let o;B(o=H())&&(i._primaryValueBar=o.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(ne("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),U("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[G],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(u(0,"div",0),_o(),u(1,"svg",1),u(2,"defs"),u(3,"pattern",2),O(4,"circle",3),d(),d(),O(5,"rect",4),d(),be.lFrame.currentNamespace=null,O(6,"div",5),O(7,"div",6,7),O(9,"div",8),d()),2&e&&(y(3),v("id",i.progressbarId),y(2),ne("fill",i._rectangleFillValue),y(1),v("ngStyle",i._bufferTransform()),y(1),v("ngStyle",i._primaryTransform()))},directives:[gE],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),n})();function sI(n,t=0,e=100){return Math.max(t,Math.min(e,n))}let aI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt,Ke],Ke]}),n})();function Z9(n,t){if(1&n&&(_o(),O(0,"circle",3)),2&n){const e=_();ot("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),ne("r",e._getCircleRadius())}}function eW(n,t){if(1&n&&(_o(),O(0,"circle",3)),2&n){const e=_();ot("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),ne("r",e._getCircleRadius())}}function tW(n,t){if(1&n&&(_o(),O(0,"circle",3)),2&n){const e=_();ot("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),ne("r",e._getCircleRadius())}}function nW(n,t){if(1&n&&(_o(),O(0,"circle",3)),2&n){const e=_();ot("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),ne("r",e._getCircleRadius())}}const lI=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",oW=Va(class{constructor(n){this._elementRef=n}},"primary"),cI=new j("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class Po extends oW{constructor(t,e,i,o,r){super(t),this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const s=Po._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._fallbackAnimation=e.EDGE||e.TRIDENT,this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qn(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qn(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qn(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=aT(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=Po._diameters;let o=i.get(t);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),t.appendChild(r),o||(o=new Set,i.set(t,o)),o.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Po.\u0275fac=function(t){return new(t||Po)(m(V),m(rt),m(q,8),m(Ln,8),m(cI))},Po.\u0275cmp=Z({type:Po,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(ne("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),ot("width",e.diameter,"px")("height",e.diameter,"px"),U("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[G],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(_o(),u(0,"svg",0),x(1,Z9,1,9,"circle",1),x(2,eW,1,7,"circle",2),d()),2&t&&(ot("width",e.diameter,"px")("height",e.diameter,"px"),v("ngSwitch","indeterminate"===e.mode),ne("viewBox",e._getViewBox()),y(1),v("ngSwitchCase",!0),y(1),v("ngSwitchCase",!1))},directives:[Wr,dc],styles:[lI],encapsulation:2,changeDetection:0}),Po._diameters=new WeakMap;let aW=(()=>{class n extends Po{constructor(e,i,o,r,s){super(e,i,o,r,s),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(rt),m(q,8),m(Ln,8),m(cI))},n.\u0275cmp=Z({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(ot("width",i.diameter,"px")("height",i.diameter,"px"),U("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[G],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(_o(),u(0,"svg",0),x(1,tW,1,9,"circle",1),x(2,nW,1,7,"circle",2),d()),2&e&&(ot("width",i.diameter,"px")("height",i.diameter,"px"),v("ngSwitch","indeterminate"===i.mode),ne("viewBox",i._getViewBox()),y(1),v("ngSwitchCase",!0),y(1),v("ngSwitchCase",!1))},directives:[Wr,dc],styles:[lI],encapsulation:2,changeDetection:0}),n})(),uI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Ke,Nt],Ke]}),n})();const lW=["trigger"],cW=["panel"];function uW(n,t){if(1&n&&(u(0,"span",8),C(1),d()),2&n){const e=_();y(1),we(e.placeholder)}}function dW(n,t){if(1&n&&(u(0,"span",12),C(1),d()),2&n){const e=_(2);y(1),we(e.triggerValue)}}function hW(n,t){1&n&&he(0,0,["*ngSwitchCase","true"])}function fW(n,t){1&n&&(u(0,"span",9),x(1,dW,2,1,"span",10),x(2,hW,1,0,"ng-content",11),d()),2&n&&(v("ngSwitch",!!_().customTrigger),y(2),v("ngSwitchCase",!0))}function pW(n,t){if(1&n){const e=F();u(0,"div",13),u(1,"div",14,15),M("@transformPanel.done",function(o){return S(e),_()._panelDoneAnimatingStream.next(o.toState)})("keydown",function(o){return S(e),_()._handleKeydown(o)}),he(3,1),d(),d()}if(2&n){const e=_();v("@transformPanelWrap",void 0),y(1),function(n,t,e){ki(Gn,eo,ia(P(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),ot("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),v("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),ne("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const mW=[[["mat-select-trigger"]],"*"],gW=["mat-select-trigger","*"],dI={transformPanelWrap:Ta("transformPanelWrap",[ar("* => void",A$("@transformPanel",[I$()],{optional:!0}))]),transformPanel:Ta("transformPanel",[io("void",_n({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),io("showing",_n({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),io("showing-multiple",_n({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ar("void => *",Yr("120ms cubic-bezier(0, 0, 0.2, 1)")),ar("* => void",Yr("100ms 25ms linear",_n({opacity:0})))])};let hI=0;const pI=new j("mat-select-scroll-strategy"),vW=new j("MAT_SELECT_CONFIG"),CW={provide:pI,deps:[us],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};class wW{constructor(t,e){this.source=t,this.value=e}}const DW=rs(My(kc(NT(class{constructor(n,t,e,i,o){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o}})))),mI=new j("MatSelectTrigger");let MW=(()=>{class n extends DW{constructor(e,i,o,r,s,a,l,c,h,f,p,g,b,w){var D,I,T;super(s,r,l,c,f),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=a,this._parentFormField=h,this._liveAnnouncer=b,this._defaultOptions=w,this._panelOpen=!1,this._compareWith=(N,$)=>N===$,this._uid="mat-select-"+hI++,this._triggerAriaLabelledBy=null,this._destroy=new W,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+hI++,this._panelDoneAnimatingStream=new W,this._overlayPanelClass=(null===(D=this._defaultOptions)||void 0===D?void 0:D.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(T=null===(I=this._defaultOptions)||void 0===I?void 0:I.disableOptionCentering)&&void 0!==T&&T,this.ariaLabel="",this.optionSelectionChanges=zh(()=>{const N=this.options;return N?N.changes.pipe(yn(N),On(()=>ho(...N.map($=>$.onSelectionChange)))):this._ngZone.onStable.pipe(tt(1),On(()=>this.optionSelectionChanges))}),this.openedChange=new L,this._openedStream=this.openedChange.pipe(ze(N=>N),ae(()=>{})),this._closedStream=this.openedChange.pipe(ze(N=>!N),ae(()=>{})),this.selectionChange=new L,this.valueChange=new L,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==w?void 0:w.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=w.typeaheadDebounceInterval),this._scrollStrategyFactory=g,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Oe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Oe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Oe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qn(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Oy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ts(),ge(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ge(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(yn(null),ge(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&r&&!ko(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,s=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(s||13!==o&&32!==o||!i.activeItem||ko(e))if(!s&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(tt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new VG(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(ge(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(ge(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=ho(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ge(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ho(...this.options.map(i=>i._stateChanges)).pipe(ge(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(m(ls),m(Ye),m(J),m(Ey),m(V),m(so,8),m(wc,8),m(Fa,8),m(Ky,8),m(ro,10),xn("tabindex"),m(pI),m(ET),m(vW,8))},n.\u0275dir=k({type:n,viewQuery:function(e,i){if(1&e&&($e(lW,5),$e(cW,5),$e(Mk,5)),2&e){let o;B(o=H())&&(i.trigger=o.first),B(o=H())&&(i.panel=o.first),B(o=H())&&(i._overlayDir=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[G,ye]}),n})(),gI=(()=>{class n extends MW{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,o){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ge(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(tt(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=GT(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function(n,t,e,i){return ne+256?Math.max(0,n-256+t):e}((e+i)*o,o,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new wW(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),r=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}o||(s*=-1);const a=0-(e.left+s-(o?r:0)),l=e.right+s-i.width+(o?0:r);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2,a=Math.floor(256/r);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*r:this._scrollTop===o?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,s=o.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>r?this._adjustPanelDown(a,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),s=i*e-o;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=GT(a,this.options,this.optionGroups);const l=o/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275cmp=Z({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(de(o,mI,5),de(o,Iy,5),de(o,ky,5)),2&e){let r;B(r=H())&&(i.customTrigger=r.first),B(r=H())&&(i.options=r),B(r=H())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&M("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(ne("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),U("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Q([{provide:Qh,useExisting:n},{provide:Ty,useExisting:n}]),G],ngContentSelectors:gW,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(it(mW),u(0,"div",0,1),M("click",function(){return i.toggle()}),u(3,"div",2),x(4,uW,2,1,"span",3),x(5,fW,3,2,"span",4),d(),u(6,"div",5),O(7,"div",6),d(),d(),x(8,pW,4,14,"ng-template",7),M("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=R(1);ne("aria-owns",i.panelOpen?i.id+"-panel":null),y(3),v("ngSwitch",i.empty),ne("id",i._valueId),y(1),v("ngSwitchCase",!0),y(1),v("ngSwitchCase",!1),y(3),v("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[hU,Wr,dc,Mk,pE,uc],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[dI.transformPanelWrap,dI.transformPanel]},changeDetection:0}),n})(),_I=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[CW],imports:[[Nt,Ek,zT,Ke],Fy,Jy,zT,Ke]}),n})(),VW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Py]]}),n})(),TI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[VW,Ke],Ke]}),n})(),nq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[YT,JT,tk,Tk,Ok,$k,Xk,rI,aI,uI,_I,TI],YT,JT,tk,Tk,Ok,$k,Xk,rI,aI,uI,_I,TI]}),n})(),iq=(()=>{class n{intercept(e,i){return this.processRequestWithToken("this is my token",e,i)}processRequestWithToken(e,i,o){return e&&(i=i.clone({setHeaders:{"content-type":"application/json",Authorization:`Bearer ${e}`}})),o.handle(i)}isSameOriginUrl(e){return!!(e.url.startsWith(`${window.location.origin}/`)||e.url.startsWith(`//${window.location.host}/`)||/^\/[^\/].*/.test(e.url))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gi_apiUrl="https://zujh3jawci.execute-api.af-south-1.amazonaws.com/dev";class kI{constructor(t,e,i,o,r,s,a,l){this.id=t,this.userId=e,this.category=i,this.period=o,this.name=r,this.isComplete=s,this.createdAt=a,this.updatedAt=l}}let II=(()=>{class n{constructor(e,i){if(this.httpClient=e,this.userStorageService=i,this.prefix="goal",this.user=i.getUser(),!this.user)throw new Error("GoalService constructor: No user found in storage")}list(){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/getGoalsByUser`,{userId:this.user.uid}).pipe(ae(e=>e.map(i=>new kI(i.id,i.userId,i.category,i.period,i.name,i.isComplete,i.createdAt)))).toPromise()}create(e,i,o){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/createGoal`,{name:e,category:i,period:o,userId:this.user.uid}).pipe(ae(r=>new kI(r.id,r.userId,r.category,r.period,r.name,r.isComplete,r.createdAt))).toPromise()}updateName(e,i){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/updateGoalName`,{id:e,userId:this.user.uid,name:i}).toPromise()}delete(e){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/deleteGoal`,{id:e,userId:this.user.uid}).toPromise()}setStatus(e,i){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/updateGoalStatus`,{id:e,userId:this.user.uid,isComplete:i}).toPromise()}}return n.\u0275fac=function(e){return new(e||n)(E(Na),E(cf))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cf=(()=>{class n{constructor(){}setUser(e){e?sessionStorage.setItem("user",JSON.stringify(e)):console.error("No user argument provided")}getUser(){const e=sessionStorage.getItem("user");return e?JSON.parse(e):null}clearUser(){sessionStorage.removeItem("user")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class AI{constructor(t,e,i,o,r){this.id=t,this.userId=e,this.category=i,this.imageUrl=o,this.createdAt=r}}let Bc=(()=>{class n{constructor(e,i){if(this.httpClient=e,this.userStorageService=i,this.prefix="board",this.user=i.getUser(),!this.user)throw new Error("ImageStorageService constructor: No user found in storage")}list(e=null){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/getBoardsByUser`,{userId:this.user.uid,category:e}).pipe(ae(i=>i.map(o=>new AI(o.id,o.userId,o.category,o.imageUrl,o.createdAt)))).toPromise()}create(e){return e.userId=this.user.uid,this.httpClient.post(`${gi_apiUrl}/${this.prefix}/createBoard`,e).pipe(ae(i=>new AI(i.id,i.userId,i.category,i.imageUrl,i.createdAt))).toPromise()}delete(e){return this.httpClient.post(`${gi_apiUrl}/${this.prefix}/deleteBoard`,{id:e,userId:this.user.uid}).toPromise()}updateCategory(e,i){return console.log(e,i),this.httpClient.post(`${gi_apiUrl}/${this.prefix}/updateBoardCategory`,{id:e,userId:this.user.uid,category:i}).toPromise()}}return n.\u0275fac=function(e){return new(e||n)(E(Na),E(cf))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function RI(n,t,e,i,o,r,s){try{var a=n[r](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,o)}function Ot(n){return function(){var t=this,e=arguments;return new Promise(function(i,o){var r=n.apply(t,e);function s(l){RI(r,i,o,s,a,"next",l)}function a(l){RI(r,i,o,s,a,"throw",l)}s(void 0)})}}var kt=(()=>(function(n){n.Health="Health",n.Wealth="Wealth",n.Business="Business",n.Education="Education",n.Family="Family",n.Giving="Giving",n.Fun="Fun",n.Spiritual="Spiritual",n.Prize1="Prize1",n.Prize2="Prize2",n.Prize3="Prize3"}(kt||(kt={})),kt))(),Ga=(()=>(function(n){n.Months_6="6 Months",n.Months_12="12 Months",n.Months_24="24 Months"}(Ga||(Ga={})),Ga))();class hb extends Qe{notifyNext(t,e,i,o,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class oq extends Qe{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function fb(n,t,e,i,o=new oq(n,e,i)){if(!o.closed)return t instanceof Le?t.subscribe(o):Wf(t)(o)}const NI={};class rq{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new sq(t,this.resultSelector))}}class sq extends hb{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(NI),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 i=0;i{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function OI(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(o){return o.lift(new aq(n,t,e))}}class aq{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new lq(t,this.accumulator,this.seed,this.hasSeed))}}class lq extends Qe{constructor(t,e,i,o){super(t),this.accumulator=e,this._seed=i,this.hasSeed=o,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 i;try{i=this.accumulator(this.seed,t,e)}catch(o){this.destination.error(o)}this.seed=i,this.destination.next(i)}}function mb(n){return function(e){return 0===n?Ah():e.lift(new cq(n))}}class cq{constructor(t){if(this.total=t,this.total<0)throw new tT}call(t,e){return e.subscribe(new uq(t,this.total))}}class uq extends Qe{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,o=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,o=this.ring;for(let r=0;rt.lift(new dq(n))}class dq{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new hq(t,this.errorFactory))}}class hq extends Qe{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 t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function fq(){return new uf}function PI(n=null){return t=>t.lift(new pq(n))}class pq{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new mq(t,this.defaultValue))}}class mq extends Qe{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 za(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ze((o,r)=>n(o,r,i)):du,tt(1),e?PI(t):FI(()=>new uf))}class Bo{constructor(t,e){this.id=t,this.url=e}}class gb extends Bo{constructor(t,e,i="imperative",o=null){super(t,e),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Hc extends Bo{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class LI extends Bo{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _q extends Bo{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yq extends Bo{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bq extends Bo{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vq extends Bo{constructor(t,e,i,o,r){super(t,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Cq extends Bo{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wq extends Bo{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class VI{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class BI{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Dq{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mq{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eq{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xq{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HI{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Be="primary";class Sq{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ua(n){return new Sq(n)}const $I="ngNavigationCancelingError";function _b(n){const t=Error("NavigationCancelingError: "+n);return t[$I]=!0,t}function kq(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[r]===o)}return n===t}function GI(n){return Array.prototype.concat.apply([],n)}function zI(n){return n.length>0?n[n.length-1]:null}function un(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function lo(n){return od(n)?n:Pl(n)?Qt(Promise.resolve(n)):ie(n)}const Rq={exact:function qI(n,t,e){if(!ps(n.segments,t.segments)||!df(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!qI(n.children[i],t.children[i],e))return!1;return!0},subset:YI},UI={exact:function(n,t){return ao(n,t)},subset:function(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>jI(n[e],t[e]))},ignored:()=>!0};function WI(n,t,e){return Rq[e.paths](n.root,t.root,e.matrixParams)&&UI[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function YI(n,t,e){return KI(n,t,t.segments,e)}function KI(n,t,e,i){if(n.segments.length>e.length){const o=n.segments.slice(0,e.length);return!(!ps(o,e)||t.hasChildren()||!df(o,e,i))}if(n.segments.length===e.length){if(!ps(n.segments,e)||!df(n.segments,e,i))return!1;for(const o in t.children)if(!n.children[o]||!YI(n.children[o],t.children[o],i))return!1;return!0}{const o=e.slice(0,n.segments.length),r=e.slice(n.segments.length);return!!(ps(n.segments,o)&&df(n.segments,o,i)&&n.children[Be])&&KI(n.children[Be],t,r,i)}}function df(n,t,e){return t.every((i,o)=>UI[e](n[o].parameters,i.parameters))}class fs{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ua(this.queryParams)),this._queryParamMap}toString(){return Lq.serialize(this)}}class je{constructor(t,e){this.segments=t,this.children=e,this.parent=null,un(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hf(this)}}class $c{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ua(this.parameters)),this._parameterMap}toString(){return ZI(this)}}function ps(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class yb{}class QI{parse(t){const e=new Wq(t);return new fs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${`/${jc(t.root,!0)}`}${function(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(o=>`${ff(e)}=${ff(o)}`).join("&"):`${ff(e)}=${ff(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${function(n){return encodeURI(n)}(t.fragment)}`:""}`}}const Lq=new QI;function hf(n){return n.segments.map(t=>ZI(t)).join("/")}function jc(n,t){if(!n.hasChildren())return hf(n);if(t){const e=n.children[Be]?jc(n.children[Be],!1):"",i=[];return un(n.children,(o,r)=>{r!==Be&&i.push(`${r}:${jc(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(n,t){let e=[];return un(n.children,(i,o)=>{o===Be&&(e=e.concat(t(i,o)))}),un(n.children,(i,o)=>{o!==Be&&(e=e.concat(t(i,o)))}),e}(n,(i,o)=>o===Be?[jc(n.children[Be],!1)]:[`${o}:${jc(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Be]?`${hf(n)}/${e[0]}`:`${hf(n)}/(${e.join("//")})`}}function JI(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ff(n){return JI(n).replace(/%3B/gi,";")}function bb(n){return JI(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pf(n){return decodeURIComponent(n)}function XI(n){return pf(n.replace(/\+/g,"%20"))}function ZI(n){return`${bb(n.path)}${function(n){return Object.keys(n).map(t=>`;${bb(t)}=${bb(n[t])}`).join("")}(n.parameters)}`}const $q=/^[^\/()?;=#]+/;function mf(n){const t=n.match($q);return t?t[0]:""}const jq=/^[^=?&#]+/,zq=/^[^?&#]+/;class Wq{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new je([],{}):new je([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Be]=new je(t,e)),i}parseSegment(){const t=mf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new $c(pf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=mf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=mf(this.remaining);o&&(i=o,this.capture(i))}t[pf(e)]=pf(i)}parseQueryParam(t){const e=function(n){const t=n.match(jq);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function(n){const t=n.match(zq);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=XI(e),r=XI(i);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(r)}else t[o]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=mf(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Be);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s[Be]:new je([],s),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 eA{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=vb(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=vb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Cb(t,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Cb(t,this._root).map(e=>e.value)}}function vb(n,t){if(n===t.value)return t;for(const e of t.children){const i=vb(n,e);if(i)return i}return null}function Cb(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Cb(n,e);if(i.length)return i.unshift(t),i}return[]}class Ho{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Gc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class tA extends eA{constructor(t,e){super(t),this.snapshot=e,wb(this,t)}toString(){return this.snapshot.toString()}}function nA(n,t){const e=function(n,t){const s=new gf([],{},{},"",{},Be,t,null,n.root,-1,{});return new oA("",new Ho(s,[]))}(n,t),i=new wt([new $c("",{})]),o=new wt({}),r=new wt({}),s=new wt({}),a=new wt(""),l=new $i(i,o,s,a,r,Be,t,e.root);return l.snapshot=e.root,new tA(new Ho(l,[]),e)}class $i{constructor(t,e,i,o,r,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this._futureSnapshot=l}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(ae(t=>Ua(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ae(t=>Ua(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function iA(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function(n){return n.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:{}})}(e.slice(i))}class gf{constructor(t,e,i,o,r,s,a,l,c,h,f){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=h,this._resolve=f}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=Ua(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ua(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class oA extends eA{constructor(t,e){super(e),this.url=t,wb(this,e)}toString(){return rA(this._root)}}function wb(n,t){t.value._routerState=n,t.children.forEach(e=>wb(n,e))}function rA(n){const t=n.children.length>0?` { ${n.children.map(rA).join(", ")} } `:"";return`${n.value}${t}`}function Db(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,ao(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),ao(t.params,e.params)||n.params.next(e.params),function(n,t){if(n.length!==t.length)return!1;for(let e=0;eao(e.parameters,t[i].parameters))}(n.url,t.url)&&!(!n.parent!=!t.parent)&&(!n.parent||Mb(n.parent,t.parent))}function _f(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const o=function(n,t,e){return t.children.map(i=>{for(const o of e.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return _f(n,i,o);return _f(n,i)})}(n,t,e);return new Ho(i,o)}{if(n.shouldAttach(t.value)){const r=n.retrieve(t.value);if(null!==r){const s=r.route;return sA(t,s),s}}const i=function(n){return new $i(new wt(n.url),new wt(n.params),new wt(n.queryParams),new wt(n.fragment),new wt(n.data),n.outlet,n.component,n)}(t.value),o=t.children.map(r=>_f(n,r));return new Ho(i,o)}}function sA(n,t){if(n.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=n.value;for(let e=0;e{r[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new fs(e.root===n?t:aA(e.root,n,t),r,o)}function aA(n,t,e){const i={};return un(n.children,(o,r)=>{i[r]=o===t?e:aA(o,t,e)}),new je(n.segments,i)}class lA{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&yf(i[0]))throw new Error("Root segment cannot have matrix parameters");const o=i.find(zc);if(o&&o!==zI(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xb{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function cA(n,t,e){if(n||(n=new je([],{})),0===n.segments.length&&n.hasChildren())return bf(n,t,e);const i=function(n,t,e){let i=0,o=t;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const s=n.segments[o],a=e[i];if(zc(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!dA(l,c,s))return r;i+=2}else{if(!dA(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,t,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=cA(n.children[s],t,r))}),un(n.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new je(n.segments,o)}}function Sb(n,t,e){const i=n.segments.slice(0,t);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Sb(new je([],{}),0,e))}),t}function uA(n){const t={};return un(n,(e,i)=>t[i]=`${e}`),t}function dA(n,t,e){return n==e.path&&ao(t,e.parameters)}class sY{constructor(t,e,i,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Db(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const o=Gc(e);t.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),un(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(t,e,i){const o=t.value,r=e?e.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const o=i.outlet.detach(),r=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,r=Gc(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const o=Gc(e);t.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new xq(r.value.snapshot))}),t.children.length&&this.forwardEvent(new Mq(t.value.snapshot))}activateRoutes(t,e,i){const o=t.value,r=e?e.value:null;if(Db(o),o===r)if(o.component){const s=i.getOrCreateContext(o.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(o.component){const s=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),hA(a.route)}else{const a=function(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}function hA(n){Db(n.value),n.children.forEach(hA)}class Tb{constructor(t,e){this.routes=t,this.module=e}}function mr(n){return"function"==typeof n}function ms(n){return n instanceof fs}const Uc=Symbol("INITIAL_VALUE");function Wc(){return On(n=>function(...n){let t,e;return Ms(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&zo(n[0])&&(n=n[0]),rl(n,e).lift(new rq(t))}(n.map(t=>t.pipe(tt(1),yn(Uc)))).pipe(OI((t,e)=>{let i=!1;return e.reduce((o,r,s)=>o!==Uc?o:(r===Uc&&(i=!0),i||!1!==r&&s!==e.length-1&&!ms(r)?o:r),t)},Uc),ze(t=>t!==Uc),ae(t=>ms(t)?t:!0===t),tt(1)))}let fA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Z({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&O(0,"router-outlet")},directives:function(){return[Ob]},encapsulation:2}),n})();function pA(n,t=""){for(let e=0;e_i(i)===t);return e.push(...n.filter(i=>_i(i)!==t)),e}const gA={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function vf(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},gA):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||kq)(e,n,t);if(!r)return Object.assign({},gA);const s={};un(r.posParams,(l,c)=>{s[c]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Cf(n,t,e,i,o="corrected"){if(e.length>0&&function(n,t,e){return e.some(i=>wf(n,t,i)&&_i(i)!==Be)}(n,e,i)){const s=new je(t,function(n,t,e,i){const o={};o[Be]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const r of e)if(""===r.path&&_i(r)!==Be){const s=new je([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,o[_i(r)]=s}return o}(n,t,i,new je(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function(n,t,e){return e.some(i=>wf(n,t,i))}(n,e,i)){const s=new je(n.segments,function(n,t,e,i,o,r){const s={};for(const a of i)if(wf(n,e,a)&&!o[_i(a)]){const l=new je([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===r?n.segments.length:t.length,s[_i(a)]=l}return Object.assign(Object.assign({},o),s)}(n,t,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const r=new je(n.segments,n.children);return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:e}}function wf(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function _A(n,t,e,i){return!!(_i(n)===i||i!==Be&&wf(t,e,n))&&("**"===n.path||vf(t,n,e).matched)}function yA(n,t,e){return 0===t.length&&!n.children[e]}class qc{constructor(t){this.segmentGroup=t||null}}class bA{constructor(t){this.urlTree=t}}function Df(n){return new Le(t=>t.error(new qc(n)))}function vA(n){return new Le(t=>t.error(new bA(n)))}function bY(n){return new Le(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class wY{constructor(t,e,i,o,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(to)}apply(){const t=Cf(this.urlTree.root,[],[],this.config).segmentGroup,e=new je(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Be).pipe(ae(r=>this.createUrlTree(Ib(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fo(r=>{if(r instanceof bA)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof qc?this.noMatchError(r):r}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Be).pipe(ae(o=>this.createUrlTree(Ib(o),t.queryParams,t.fragment))).pipe(Fo(o=>{throw o instanceof qc?this.noMatchError(o):o}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const o=t.segments.length>0?new je([],{[Be]:t}):t;return new fs(o,e,i)}expandSegmentGroup(t,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ae(r=>new je([],r))):this.expandSegment(t,i,e,i.segments,o,!0)}expandChildren(t,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Qt(o).pipe(Ra(r=>{const s=i.children[r],a=mA(e,r);return this.expandSegmentGroup(t,a,s,r).pipe(ae(l=>({segment:l,outlet:r})))}),OI((r,s)=>(r[s.outlet]=s.segment,r),{}),function(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ze((o,r)=>n(o,r,i)):du,mb(1),e?PI(t):FI(()=>new uf))}())}expandSegment(t,e,i,o,r,s){return Qt(i).pipe(Ra(a=>this.expandSegmentAgainstRoute(t,e,i,a,o,r,s).pipe(Fo(c=>{if(c instanceof qc)return ie(null);throw c}))),za(a=>!!a),Fo((a,l)=>{if(a instanceof uf||"EmptyError"===a.name){if(yA(e,o,r))return ie(new je([],{}));throw new qc(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,o,r,s,a){return _A(o,e,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,e,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s):Df(e):Df(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?vA(r):this.lineralizeSegments(i,r).pipe($t(s=>{const a=new je(s,{});return this.expandSegment(t,a,e,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:h}=vf(e,o,r);if(!a)return Df(e);const f=this.applyRedirectCommands(l,o.redirectTo,h);return o.redirectTo.startsWith("/")?vA(f):this.lineralizeSegments(o,f).pipe($t(p=>this.expandSegment(t,e,i,p.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,i,o,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?ie(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(ae(p=>(i._loadedConfig=p,new je(o,{})))):ie(new je(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=vf(e,i,o);if(!s)return Df(e);const c=o.slice(l);return this.getChildConfig(t,i,o).pipe($t(f=>{const p=f.module,g=f.routes,{segmentGroup:b,slicedSegments:w}=Cf(e,a,c,g),D=new je(b.segments,b.children);if(0===w.length&&D.hasChildren())return this.expandChildren(p,g,D).pipe(ae($=>new je(a,$)));if(0===g.length&&0===w.length)return ie(new je(a,{}));const I=_i(i)===r;return this.expandSegment(p,D,g,w,I?Be:r,!0).pipe(ae(N=>new je(a.concat(N.segments),N.children)))}))}getChildConfig(t,e,i){return e.children?ie(new Tb(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ie(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe($t(o=>o?this.configLoader.load(t.injector,e).pipe(ae(r=>(e._loadedConfig=r,r))):function(n){return new Le(t=>t.error(_b(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):ie(new Tb([],t))}runCanLoadGuards(t,e,i){const o=e.canLoad;return o&&0!==o.length?ie(o.map(s=>{const a=t.get(s);let l;if(function(n){return n&&mr(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!mr(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return lo(l)})).pipe(Wc(),et(s=>{if(!ms(s))return;const a=_b(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),ae(s=>!0===s)):ie(!0)}lineralizeSegments(t,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return ie(i);if(o.numberOfChildren>1||!o.children[Be])return bY(t.redirectTo);o=o.children[Be]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,o){const r=this.createSegmentGroup(t,e.root,i,o);return new fs(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return un(t,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(t,e,i,o){const r=this.createSegments(t,e.segments,i,o);let s={};return un(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,o)}),new je(r,s)}createSegments(t,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,o):this.findOrReturn(r,i))}findPosParam(t,e,i){const o=i[e.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return o}findOrReturn(t,e){let i=0;for(const o of e){if(o.path===t.path)return e.splice(i),o;i++}return t}}function Ib(n){const t={};for(const i of Object.keys(n.children)){const r=Ib(n.children[i]);(r.segments.length>0||r.hasChildren())&&(t[i]=r)}return function(n){if(1===n.numberOfChildren&&n.children[Be]){const t=n.children[Be];return new je(n.segments.concat(t.segments),t.children)}return n}(new je(n.segments,t))}class CA{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Mf{constructor(t,e){this.component=t,this.route=e}}function EY(n,t,e){const i=n._root;return Yc(i,t?t._root:null,e,[i.value])}function Ef(n,t,e){const i=function(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function Yc(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Gc(t);return n.children.forEach(s=>{(function(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!ps(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ps(n.url,t.url)||!ao(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mb(n,t)||!ao(n.queryParams,t.queryParams);case"paramsChange":default:return!Mb(n,t)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new CA(i)):(r.data=s.data,r._resolvedData=s._resolvedData),Yc(n,t,r.component?a?a.children:null:e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Mf(a.outlet.component,s))}else s&&Kc(t,a,o),o.canActivateChecks.push(new CA(i)),Yc(n,null,r.component?a?a.children:null:e,i,o)})(s,r[s.value.outlet],e,i.concat([s.value]),o),delete r[s.value.outlet]}),un(r,(s,a)=>Kc(s,e.getContext(a),o)),o}function Kc(n,t,e){const i=Gc(n),o=n.value;un(i,(r,s)=>{Kc(r,o.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Mf(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}class VY{}function wA(n){return new Le(t=>t.error(n))}class HY{constructor(t,e,i,o,r,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=Cf(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Be);if(null===e)return null;const i=new gf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Be,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Ho(i,e),r=new oA(this.url,o);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,i=iA(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const r of Object.keys(e.children)){const s=e.children[r],a=mA(t,r),l=this.processSegmentGroup(a,s,r);if(null===l)return null;i.push(...l)}const o=DA(i);return function(n){n.sort((t,e)=>t.value.outlet===Be?-1:e.value.outlet===Be?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}processSegment(t,e,i,o){for(const r of t){const s=this.processSegmentAgainstRoute(r,e,i,o);if(null!==s)return s}return yA(e,i,o)?[]:null}processSegmentAgainstRoute(t,e,i,o){if(t.redirectTo||!_A(t,e,i,o))return null;let r,s=[],a=[];if("**"===t.path){const g=i.length>0?zI(i).parameters:{};r=new gf(i,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xA(t),_i(t),t.component,t,MA(e),EA(e)+i.length,SA(t))}else{const g=vf(e,t,i);if(!g.matched)return null;s=g.consumedSegments,a=i.slice(g.lastChild),r=new gf(s,g.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xA(t),_i(t),t.component,t,MA(e),EA(e)+s.length,SA(t))}const l=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:h}=Cf(e,s,a,l.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);if(0===h.length&&c.hasChildren()){const g=this.processChildren(l,c);return null===g?null:[new Ho(r,g)]}if(0===l.length&&0===h.length)return[new Ho(r,[])];const f=_i(t)===o,p=this.processSegment(l,c,h,f?Be:o);return null===p?null:[new Ho(r,p)]}}function GY(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function DA(n){const t=[],e=new Set;for(const i of n){if(!GY(i)){t.push(i);continue}const o=t.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):t.push(i)}for(const i of e){const o=DA(i.children);t.push(new Ho(i.value,o))}return t.filter(i=>!e.has(i))}function MA(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function EA(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function xA(n){return n.data||{}}function SA(n){return n.resolve||{}}function Ab(n){return On(t=>{const e=n(t);return e?Qt(e).pipe(ae(()=>t)):ie(t)})}class JY extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Rb=new j("ROUTES");class TA{constructor(t,e,i,o){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const o=this.loadModuleFactory(e.loadChildren).pipe(ae(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=r.create(t);return new Tb(GI(s.injector.get(Rb,void 0,ue.Self|ue.Optional)).map(kb),s)}),Fo(r=>{throw e._loader$=void 0,r}));return e._loader$=new bv(o,()=>new W).pipe(Yf()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Qt(this.loader.load(t)):lo(t()).pipe($t(e=>e instanceof aD?ie(e):Qt(this.compiler.compileModuleAsync(e))))}}class XY{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Wa,this.attachRef=null}}class Wa{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=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 XY,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class eK{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function tK(n){throw n}function nK(n,t,e){return t.parse("/")}function kA(n,t){return ie(null)}const iK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let bn=(()=>{class n{constructor(e,i,o,r,s,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new W,this.errorHandler=tK,this.malformedUriErrorHandler=nK,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kA,afterPreactivation:kA},this.urlHandlingStrategy=new eK,this.routeReuseStrategy=new JY,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(to),this.console=s.get(wd);const p=s.get(J);this.isNgZoneEnabled=p instanceof J&&J.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new fs(new je([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new TA(a,l,g=>this.triggerEvent(new VI(g)),g=>this.triggerEvent(new BI(g))),this.routerState=nA(this.currentUrlTree,this.rootComponentType),this.transitions=new wt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ze(o=>0!==o.id),ae(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),On(o=>{let r=!1,s=!1;return ie(o).pipe(et(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),On(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return xf(a.source)&&(this.browserUrlTree=a.extractedUrl),ie(a).pipe(On(f=>{const p=this.transitions.getValue();return i.next(new gb(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions.getValue()?Ao:Promise.resolve(f)}),function(n,t,e,i){return On(o=>function(n,t,e,i,o){return new wY(n,t,e,i,o).apply()}(n,t,e,o.extractedUrl,i).pipe(ae(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),et(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function(n,t,e,i,o){return $t(r=>function(n,t,e,i,o="emptyOnly",r="legacy"){try{const s=new HY(n,t,e,i,o,r).recognize();return null===s?wA(new VY):ie(s)}catch(s){return wA(s)}}(n,t,r.urlAfterRedirects,e(r.urlAfterRedirects),i,o).pipe(ae(s=>Object.assign(Object.assign({},r),{targetSnapshot:s}))))}(this.rootComponentType,this.config,f=>this.serializeUrl(f),this.paramsInheritanceStrategy,this.relativeLinkResolution),et(f=>{"eager"===this.urlUpdateStrategy&&(f.extras.skipLocationChange||this.setBrowserUrl(f.urlAfterRedirects,f),this.browserUrlTree=f.urlAfterRedirects);const p=new yq(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(p)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:g,source:b,restoredState:w,extras:D}=a,I=new gb(p,this.serializeUrl(g),b,w);i.next(I);const T=nA(g,this.rootComponentType).snapshot;return ie(Object.assign(Object.assign({},a),{targetSnapshot:T,urlAfterRedirects:g,extras:Object.assign(Object.assign({},D),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Ao}),Ab(a=>{const{targetSnapshot:l,id:c,extractedUrl:h,rawUrl:f,extras:{skipLocationChange:p,replaceUrl:g}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:h,rawUrlTree:f,skipLocationChange:!!p,replaceUrl:!!g})}),et(a=>{const l=new bq(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ae(a=>Object.assign(Object.assign({},a),{guards:EY(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,t){return $t(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return 0===s.length&&0===r.length?ie(Object.assign(Object.assign({},e),{guardsResult:!0})):function(n,t,e,i){return Qt(n).pipe($t(o=>function(n,t,e,i,o){const r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?ie(r.map(a=>{const l=Ef(a,t,o);let c;if(function(n){return n&&mr(n.canDeactivate)}(l))c=lo(l.canDeactivate(n,t,e,i));else{if(!mr(l))throw new Error("Invalid CanDeactivate guard");c=lo(l(n,t,e,i))}return c.pipe(za())})).pipe(Wc()):ie(!0)}(o.component,o.route,e,t,i)),za(o=>!0!==o,!0))}(s,i,o,n).pipe($t(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,t,e,i){return Qt(t).pipe(Ra(o=>Ph(function(n,t){return null!==n&&t&&t(new Dq(n)),ie(!0)}(o.route.parent,i),function(n,t){return null!==n&&t&&t(new Eq(n)),ie(!0)}(o.route,i),function(n,t,e){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(s=>function(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>zh(()=>ie(s.guards.map(l=>{const c=Ef(l,s.node,e);let h;if(function(n){return n&&mr(n.canActivateChild)}(c))h=lo(c.canActivateChild(i,n));else{if(!mr(c))throw new Error("Invalid CanActivateChild guard");h=lo(c(i,n))}return h.pipe(za())})).pipe(Wc())));return ie(r).pipe(Wc())}(n,o.path,e),function(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?ie(i.map(r=>zh(()=>{const s=Ef(r,t,e);let a;if(function(n){return n&&mr(n.canActivate)}(s))a=lo(s.canActivate(t,n));else{if(!mr(s))throw new Error("Invalid CanActivate guard");a=lo(s(t,n))}return a.pipe(za())}))).pipe(Wc()):ie(!0)}(n,o.route,e))),za(o=>!0!==o,!0))}(i,r,n,t):ie(a)),ae(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),et(a=>{if(ms(a.guardsResult)){const c=_b(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new vq(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),ze(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Ab(a=>{if(a.guards.canActivateChecks.length)return ie(a).pipe(et(l=>{const c=new Cq(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),On(l=>{let c=!1;return ie(l).pipe(function(n,t){return $t(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return ie(e);let r=0;return Qt(o).pipe(Ra(s=>function(n,t,e,i){return function(n,t,e,i){const o=Object.keys(n);if(0===o.length)return ie({});const r={};return Qt(o).pipe($t(s=>function(n,t,e,i){const o=Ef(n,t,i);return lo(o.resolve?o.resolve(t,e):o(t,e))}(n[s],t,e,i).pipe(et(a=>{r[s]=a}))),mb(1),$t(()=>Object.keys(r).length===o.length?ie(r):Ao))}(n._resolve,n,t,i).pipe(ae(r=>(n._resolvedData=r,n.data=Object.assign(Object.assign({},n.data),iA(n,e).resolve),null)))}(s.route,i,n,t)),et(()=>r++),mb(1),$t(s=>r===o.length?ie(e):Ao))})}(this.paramsInheritanceStrategy,this.ngModule.injector),et({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),et(l=>{const c=new wq(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Ab(a=>{const{targetSnapshot:l,id:c,extractedUrl:h,rawUrl:f,extras:{skipLocationChange:p,replaceUrl:g}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:h,rawUrlTree:f,skipLocationChange:!!p,replaceUrl:!!g})}),ae(a=>{const l=function(n,t,e){const i=_f(n,t._root,e?e._root:void 0);return new tA(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),et(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ae(i=>(new sY(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),et({next(){r=!0},complete(){r=!0}}),Fk(()=>{var a;if(!r&&!s){const l=`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(o),this.cancelNavigationTransition(o,l)):this.cancelNavigationTransition(o,l)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Fo(a=>{if(s=!0,function(n){return n&&n[$I]}(a)){const l=ms(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const c=new LI(o.id,this.serializeUrl(o.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const h=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),f={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xf(o.source)};this.scheduleNavigation(h,"imperative",null,f,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new _q(o.id,this.serializeUrl(o.extractedUrl),a);i.next(l);try{o.resolve(this.errorHandler(a))}catch(c){o.reject(c)}}return Ao}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:o,state:r,urlTree:s}=i,a={replaceUrl:!0};if(r){const l=Object.assign({},r);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(s,o,r,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const o=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!o||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){pA(e),this.config=e.map(kb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=o||this.routerState.root,h=l?this.currentUrlTree.fragment:s;let f=null;switch(a){case"merge":f=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}return null!==f&&(f=this.removeEmptyProps(f)),function(n,t,e,i,o){if(0===e.length)return Eb(t.root,t.root,t,i,o);const r=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new lA(!0,0,n);let t=0,e=!1;const i=n.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return un(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new lA(e,t,i)}(e);if(r.toRoot())return Eb(t.root,new je([],{}),t,i,o);const s=function(n,t,e){if(n.isAbsolute)return new xb(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new xb(r,r===t.root,0)}const i=yf(n.commands[0])?0:1;return function(n,t,e){let i=n,o=t,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new xb(i,!1,o-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(r,t,n),a=s.processChildren?bf(s.segmentGroup,s.index,r.commands):cA(s.segmentGroup,s.index,r.commands);return Eb(s.segmentGroup,a,t,i,o)}(c,this.currentUrlTree,e,f,null!=h?h:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=ms(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(n){for(let t=0;t{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Hc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,s){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),h=xf(i)&&c&&!xf(c.source),g=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(h&&g)return Promise.resolve(!0);let b,w,D;s?(b=s.resolve,w=s.reject,D=s.promise):D=new Promise((N,$)=>{b=N,w=$});const I=++this.navigationId;let T;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),T=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):T=0,this.setTransition({id:I,targetPageId:T,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:b,reject:w,promise:D,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),D.catch(N=>Promise.reject(N))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const o=new LI(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)(E($s),E(yb),E(Wa),E(Ur),E(ke),E(Ed),E($r),E(void 0))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function xf(n){return"imperative"!==n}let Qc=(()=>{class n{constructor(e,i,o){this.router=e,this.route=i,this.locationStrategy=o,this.commands=[],this.onChanges=new W,this.subscription=e.events.subscribe(r=>{r instanceof Hc&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,o,r,s){if(0!==e||i||o||r||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:qa(this.skipLocationChange),replaceUrl:qa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:qa(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(m(bn),m($i),m(Sa))},n.\u0275dir=k({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&M("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&(Ut("href",i.href,Gu),ne("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ye]}),n})();function qa(n){return""===n||!!n}let Ob=(()=>{class n{constructor(e,i,o,r,s){this.parentContexts=e,this.location=i,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new L,this.deactivateEvents=new L,this.name=r||Be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const s=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new lK(e,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(m(Wa),m(dt),m(In),xn("name"),m(Ye))},n.\u0275dir=k({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class lK{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===$i?this.route:t===Wa?this.childContexts:this.parent.get(t,e)}}class IA{}class AA{preload(t,e){return ie(null)}}let RA=(()=>{class n{constructor(e,i,o,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new TA(i,o,c=>e.triggerEvent(new VI(c)),c=>e.triggerEvent(new BI(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(ze(e=>e instanceof Hc),Ra(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(to);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const s=r._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else r.loadChildren&&!r.canLoad?o.push(this.preloadConfig(e,r)):r.children&&o.push(this.processRoutes(e,r.children));return Qt(o).pipe(ol(),ae(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?ie(i._loadedConfig):this.loader.load(e.injector,i)).pipe($t(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(E(bn),E(Ed),E($r),E(ke),E(IA))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),Fb=(()=>{class n{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(e=>{e instanceof gb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Hc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof HI&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new HI(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(E(bn),E(CE),E(void 0))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const gs=new j("ROUTER_CONFIGURATION"),NA=new j("ROUTER_FORROOT_GUARD"),uK=[Ur,{provide:yb,useClass:QI},{provide:bn,useFactory:function(n,t,e,i,o,r,s,a={},l,c){const h=new bn(null,n,t,e,i,o,r,GI(s));return l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),function(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy)}(a,h),a.enableTracing&&h.events.subscribe(f=>{var p,g;null===(p=console.group)||void 0===p||p.call(console,`Router Event: ${f.constructor.name}`),console.log(f.toString()),console.log(f),null===(g=console.groupEnd)||void 0===g||g.call(console)}),h},deps:[yb,Wa,Ur,ke,Ed,$r,Rb,gs,[class{},new an],[class{},new an]]},Wa,{provide:$i,useFactory:function(n){return n.routerState.root},deps:[bn]},{provide:Ed,useClass:r4},RA,AA,class{preload(t,e){return e().pipe(Fo(()=>ie(null)))}},{provide:gs,useValue:{enableTracing:!1}}];function dK(){return new Mg("Router",bn)}let OA=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[uK,FA(e),{provide:NA,useFactory:pK,deps:[[bn,new an,new yo]]},{provide:gs,useValue:i||{}},{provide:Sa,useFactory:fK,deps:[zr,[new Us($g),new an],gs]},{provide:Fb,useFactory:hK,deps:[bn,CE,gs]},{provide:IA,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:AA},{provide:Mg,multi:!0,useFactory:dK},[Pb,{provide:nc,multi:!0,useFactory:yK,deps:[Pb]},{provide:PA,useFactory:bK,deps:[Pb]},{provide:cM,multi:!0,useExisting:PA}]]}}static forChild(e){return{ngModule:n,providers:[FA(e)]}}}return n.\u0275fac=function(e){return new(e||n)(E(NA,8),E(bn,8))},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();function hK(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new Fb(n,t,e)}function fK(n,t,e={}){return e.useHash?new EH(n,t):new XM(n,t)}function pK(n){return"guarded"}function FA(n){return[{provide:z2,multi:!0,useValue:n},{provide:Rb,multi:!0,useValue:n}]}let Pb=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new W}appInitializer(){return this.injector.get(wH,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const o=new Promise(a=>i=a),r=this.injector.get(bn),s=this.injector.get(gs);return"disabled"===s.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?ie(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),o})}bootstrapListener(e){const i=this.injector.get(gs),o=this.injector.get(RA),r=this.injector.get(Fb),s=this.injector.get(bn),a=this.injector.get(di);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),r.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(E(ke))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function yK(n){return n.appInitializer.bind(n)}function bK(n){return n.bootstrapListener.bind(n)}const PA=new j("Router Initializer");class CK{call(t,e){return e.subscribe(new wK(t))}}class wK extends hb{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class TK extends xs{constructor(t,e,i){super(t),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Uo](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Ss(this.observable,new Es(this))}}function Lb(...n){return t=>{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new IK(n,e))}}class IK{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new AK(t,this.observables,this.project))}}class AK extends hb{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const o=e.length;this.values=new Array(o);for(let r=0;r0){const r=o.indexOf(i);-1!==r&&o.splice(r,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(i){return void this.destination.error(i)}this.destination.next(e)}}const Ya=["*"],wQ=["dialog"];function gr(n){return null!=n}function Qa(n){return(n||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(n){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const jA={animation:!0,transitionTimerDelayMs:5};let on=(()=>{class n{constructor(){this.animation=jA.animation}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})();const OJ=()=>{},{transitionTimerDelayMs:FJ}=jA,Xc=new Map,Yt=(n,t,e,i)=>{let o=i.context||{};const r=Xc.get(t);if(r)switch(i.runningTransition){case"continue":return Ao;case"stop":n.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),Xc.delete(t)}const s=e(t,i.animation,o)||OJ;if(!i.animation||"none"===window.getComputedStyle(t).transitionProperty)return n.run(()=>s()),ie(void 0).pipe(function(n){return t=>new Le(e=>t.subscribe(s=>n.run(()=>e.next(s)),s=>n.run(()=>e.error(s)),()=>n.run(()=>e.complete())))}(n));const a=new W,l=new W,c=a.pipe(function(...n){return t=>Ph(t,ie(...n))}(!0));Xc.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});const h=function(n){const{transitionDelay:t,transitionDuration:e}=window.getComputedStyle(n);return 1e3*(parseFloat(t)+parseFloat(e))}(t);return n.runOutsideAngular(()=>{const f=Tt(t,"transitionend").pipe(ge(c),ze(({target:g})=>g===t));(function(...n){if(1===n.length){if(!zo(n[0]))return n[0];n=n[0]}return rl(n,void 0).lift(new CK)})(Ry(h+FJ).pipe(ge(c)),f,l).pipe(ge(c)).subscribe(()=>{Xc.delete(t),n.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let qA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),YA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),QA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})(),ZA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),eR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();var Pe=(()=>(function(n){n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Escape=27]="Escape",n[n.Space=32]="Space",n[n.PageUp=33]="PageUp",n[n.PageDown=34]="PageDown",n[n.End=35]="End",n[n.Home=36]="Home",n[n.ArrowLeft=37]="ArrowLeft",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowRight=39]="ArrowRight",n[n.ArrowDown=40]="ArrowDown"}(Pe||(Pe={})),Pe))();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const rR=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function sR(n){const t=Array.from(n.querySelectorAll(rR)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let i,o={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))i=t.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const r=this.offsetParent(t);i=this.offset(t,!1),r!==document.documentElement&&(o=this.offset(r,!1)),o.top+=r.clientTop,o.left+=r.clientLeft}return i.top-=o.top,i.bottom-=o.top,i.left-=o.left,i.right-=o.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(t,e=!0){const i=t.getBoundingClientRect(),o_top=window.pageYOffset-document.documentElement.clientTop,o_left=window.pageXOffset-document.documentElement.clientLeft;let r={height:i.height||t.offsetHeight,width:i.width||t.offsetWidth,top:i.top+o_top,bottom:i.bottom+o_top,left:i.left+o_left,right:i.right+o_left};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(t,e,i,o){const[r="top",s="center"]=i.split("-"),a=o?this.offset(t,!1):this.position(t,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),h=parseFloat(l.marginBottom),f=parseFloat(l.marginLeft),p=parseFloat(l.marginRight);let g=0,b=0;switch(r){case"top":g=a.top-(e.offsetHeight+c+h);break;case"bottom":g=a.top+a.height;break;case"start":b=a.left-(e.offsetWidth+f+p);break;case"end":b=a.left+a.width}switch(s){case"top":g=a.top;break;case"bottom":g=a.top+a.height-e.offsetHeight;break;case"start":b=a.left;break;case"end":b=a.left+a.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?b=a.left+a.width/2-e.offsetWidth/2:g=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(b)}px, ${Math.round(g)}px)`;const w=e.getBoundingClientRect(),D=document.documentElement,I=window.innerHeight||D.clientHeight,T=window.innerWidth||D.clientWidth;return w.left>=0&&w.top>=0&&w.right<=T&&w.bottom<=I}},new Date(1882,10,12),new Date(2174,10,25);let gR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt,KS]]}),n})(),Vf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["",8,"navbar"]]}),n})(),bR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})(),vR=(()=>{class n{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return n.\u0275fac=function(e){return new(e||n)(E(on))},n.\u0275prov=A({factory:function(){return new n(E(on))},token:n,providedIn:"root"}),n})();class Cs{constructor(t,e,i){this.nodes=t,this.viewRef=e,this.componentRef=i}}const RX=()=>{};let CR=(()=>{class n{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):RX}_adjustBody(e){const i=this._document.body,o=i.style.paddingRight,r=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${r+e}px`,()=>i.style["padding-right"]=o}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const o=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),o}}return n.\u0275fac=function(e){return new(e||n)(E(q))},n.\u0275prov=A({factory:function(){return new n(E(q))},token:n,providedIn:"root"}),n})(),NX=(()=>{class n{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(tt(1)).subscribe(()=>{Yt(this._zone,this._el.nativeElement,(e,i)=>{i&&Qa(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Yt(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(J))},n.\u0275cmp=Z({type:n,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Si("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),U("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class wR{close(t){}dismiss(t){}}class OX{constructor(t,e,i,o){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=o,this._closed=new W,this._dismissed=new W,this._hidden=new W,t.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,s)=>{this._resolve=r,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(ge(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(ge(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ie(void 0);t.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Sf(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var ou=(()=>(function(n){n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC"}(ou||(ou={})),ou))();let FX=(()=>{class n{constructor(e,i,o){this._document=e,this._elRef=i,this._zone=o,this._closed$=new W,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new L,this.shown=new W,this.hidden=new W}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(tt(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=Sf(Yt(this._zone,e,()=>e.classList.remove("show"),i),Yt(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};Sf(Yt(this._zone,this._elRef.nativeElement,(r,s)=>{s&&Qa(r),r.classList.add("show")},e),Yt(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Tt(e,"keydown").pipe(ge(this._closed$),ze(o=>o.which===Pe.Escape)).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(ou.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Tt(this._dialogEl.nativeElement,"mousedown").pipe(ge(this._closed$),et(()=>i=!1),On(()=>Tt(e,"mouseup").pipe(ge(this._closed$),tt(1))),ze(({target:o})=>e===o)).subscribe(()=>{i=!0}),Tt(e,"click").pipe(ge(this._closed$)).subscribe(({target:o})=>{e===o&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(ou.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),o=sR(e)[0];(i||o||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let o;o=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Yt(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return n.\u0275fac=function(e){return new(e||n)(m(q),m(V),m(J))},n.\u0275cmp=Z({type:n,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&$e(wQ,7),2&e){let o;B(o=H())&&(i._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ne("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Si("modal d-block"+(i.windowClass?" "+i.windowClass:"")),U("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Ya,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(it(),u(0,"div",0,1),u(2,"div",2),he(3),d(),d()),2&e&&Si("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),n})(),DR=(()=>{class n{constructor(e,i,o,r,s,a){this._applicationRef=e,this._injector=i,this._document=o,this._scrollBar=r,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new W,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new L,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((n,t,e,i=!1)=>{n.runOutsideAngular(()=>{const o=Tt(t,"focusin").pipe(ge(e),ae(r=>r.target));Tt(t,"keydown").pipe(ge(e),ze(r=>r.which===Pe.Tab),Lb(o)).subscribe(([r,s])=>{const[a,l]=sR(t);(s===a||s===t)&&r.shiftKey&&(l.focus(),r.preventDefault()),s===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),i&&Tt(t,"click").pipe(ge(e),Lb(o),ae(r=>r[1])).subscribe(r=>r.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,o,r){const s=r.container instanceof HTMLElement?r.container:gr(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.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 h=new wR,f=this._getContentRef(e,r.injector||i,o,h,r);let p=!1!==r.backdrop?this._attachBackdrop(e,s):void 0,g=this._attachWindowComponent(e,s,f),b=new OX(g,f,p,r.beforeDismiss);return this._registerModalRef(b),this._registerWindowCmpt(g),b.result.then(l,l),b.result.then(c,c),h.close=w=>{b.close(w)},h.dismiss=w=>{b.dismiss(w)},this._applyWindowOptions(g.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),p&&p.instance&&(this._applyBackdropOptions(p.instance,r),p.changeDetectorRef.detectChanges()),g.changeDetectorRef.detectChanges(),b}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let r=e.resolveComponentFactory(NX).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,o){let s=e.resolveComponentFactory(FX).create(this._injector,o.nodes);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,i){this._windowAttributes.forEach(o=>{gr(i[o])&&(e[o]=i[o])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(o=>{gr(i[o])&&(e[o]=i[o])})}_getContentRef(e,i,o,r,s){return o?o instanceof Re?this._createFromTemplateRef(o,r):function(n){return"string"==typeof n}(o)?this._createFromString(o):this._createFromComponent(e,i,o,r,s):new Cs([])}_createFromTemplateRef(e,i){const r=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(r),new Cs([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Cs([[i]])}_createFromComponent(e,i,o,r,s){const a=e.resolveComponentFactory(o),l=ke.create({providers:[{provide:wR,useValue:r}],parent:i}),c=a.create(l),h=c.location.nativeElement;return s.scrollable&&h.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Cs([[h]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(o=>{o!==e&&"SCRIPT"!==o.nodeName&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const o=this._modalRefs.indexOf(e);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return n.\u0275fac=function(e){return new(e||n)(E(di),E(ke),E(q),E(CR),E(Do),E(J))},n.\u0275prov=A({factory:function(){return new n(E(di),E(tr),E(q),E(CR),E(Do),E(J))},token:n,providedIn:"root"}),n})(),PX=(()=>{class n{constructor(e,i,o,r){this._moduleCFR=e,this._injector=i,this._modalStack=o,this._config=r}open(e,i={}){const o=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return n.\u0275fac=function(e){return new(e||n)(E(In),E(ke),E(DR),E(vR))},n.\u0275prov=A({factory:function(){return new n(E(In),E(tr),E(DR),E(vR))},token:n,providedIn:"root"}),n})(),MR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[PX]}),n})(),TR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),PR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),BR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),HR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),$R=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),UR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),WR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})(),qR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({}),n})();new j("live announcer delay",{providedIn:"root",factory:function(){return 100}});let QR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})();const bZ=[qA,YA,QA,ZA,eR,gR,bR,MR,TR,PR,BR,HR,$R,UR,WR,qR,QR];let vZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[bZ,qA,YA,QA,ZA,eR,gR,bR,MR,TR,PR,BR,HR,$R,UR,WR,qR,QR]}),n})();function JR(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function ru(n){return"img"===n.nodeName.toLowerCase()}function XR(n,t,e){return ru(n)?e&&"srcset"in n?n.srcset=t:n.src=t:n.style.backgroundImage=`url('${t}')`,n}function tv(n){return t=>{const e=t.parentElement.getElementsByTagName("source");for(let i=0;i{ru(t)&&JR(t)&&n(t),e&&XR(t,e,i)}}const MZ=nv(wZ),EZ=nv(ZR),xZ=nv(DZ);function eN(n,t){n.className=n.className.replace(t,"")}function iv(n,t){n.className.includes(t)||(n.className+=` ${t}`)}let IZ=(()=>{class n extends class extends class{constructor(){this.navigator="undefined"!=typeof window?window.navigator:void 0}setPlatformId(t){this.platformId=t}onDestroy(t){}onAttributeChange(t){}}{setup(t){MZ(t.element,t.defaultImagePath,t.useSrcset),iv(t.element,"ng-lazyloading"),function(n,t){return n.className&&n.className.includes("ng-lazyloaded")}(t.element)&&eN(t.element,"ng-lazyloaded")}finally(t){iv(t.element,"ng-lazyloaded"),eN(t.element,"ng-lazyloading")}loadImage(t){if(this.skipLazyLoading(t))return[t.imagePath];const{element:e,useSrcset:i,imagePath:o,decode:r}=t;let s;return ru(e)&&JR(e)?(s=e.parentNode.cloneNode(!0).getElementsByTagName("img")[0],ZR(s),XR(s,o,i)):(s=new Image,ru(e)&&e.referrerPolicy&&(s.referrerPolicy=e.referrerPolicy),ru(e)&&e.sizes&&(s.sizes=e.sizes),i&&"srcset"in s?s.srcset=o:s.src=o),r&&s.decode?s.decode().then(()=>o):new Promise((a,l)=>{s.onload=()=>a(o),s.onerror=()=>l(null)})}setErrorImage(t,e){const{element:i,useSrcset:o,errorImagePath:r}=e;xZ(i,r,o),iv(i,"ng-failed-lazyloaded")}setLoadedImage(t,e){const{element:i,useSrcset:o}=e;EZ(i,t,o)}isDisabled(){return function(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(t){return this.isBot(t)}isBot(t){var e;return!!(null===(e=this.navigator)||void 0===e?void 0:e.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new W,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return ie({isIntersecting:!0});if(e.customObservable)return e.customObservable;const i=e.scrollContainer||this.uniqKey,o={root:e.scrollContainer||null};e.offset&&(o.rootMargin=`${e.offset}px`);let r=this.observers.get(i);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),o),this.observers.set(i,r)),r.observe(e.element),Le.create(s=>{const a=this.intersectionSubject.pipe(ze(l=>l.target===e.element)).subscribe(s);return()=>{a.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(i=>this.intersectionSubject.next(i))}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Se(n)))(i||n)}}(),n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const tN=new j("LazyLoadImageHooks");let $f=(()=>{class n{constructor(e,i,o,r){this.onStateChange=new L,this.elementRef=e,this.ngZone=i,this.propertyChanges$=new ak,this.hooks=r,this.hooks.setPlatformId(o),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(e=>console.log(e))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(et(e=>this.hooks.onAttributeChange(e)),et(e=>e.onStateChange.emit({reason:"setup"})),et(e=>this.hooks.setup(e)),On(e=>e.imagePath?this.hooks.getObservable(e).pipe(function(n,t){return e=>e.pipe(et(i=>t.onStateChange.emit({reason:"observer-emit",data:i})),ze(i=>n.isVisible(i,t)),tt(1),et(()=>t.onStateChange.emit({reason:"start-loading"})),$t(()=>n.loadImage(t)),et(()=>t.onStateChange.emit({reason:"mount-image"})),et(i=>n.setLoadedImage(i,t)),et(()=>t.onStateChange.emit({reason:"loading-succeeded"})),ae(()=>!0),Fo(i=>(t.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,t),ie(!1))),et(()=>{t.onStateChange.emit({reason:"finally"}),n.finally(t)}))}(this.hooks,e)):VA)).subscribe({next:()=>null})})}ngOnDestroy(){var e,i;this.propertyChanges$.pipe(tt(1)).subscribe({next:o=>this.hooks.onDestroy(o)}).unsubscribe(),null===(e=this.loadSubscription)||void 0===e||e.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(J),m(or),m(tN))},n.\u0275dir=k({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[ye]}),n})(),RZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({providers:[{provide:tN,useClass:IZ}]}),n})();class yi{constructor(t,e,i,o){this.left=t,this.top=e,this.right=i,this.bottom=o}static fromElement(t){const{left:e,top:i,right:o,bottom:r}=t.getBoundingClientRect();return 0===e&&0===i&&0===o&&0===r?yi.empty:new yi(e,i,o,r)}static fromWindow(t){return new yi(0,0,t.innerWidth,t.innerHeight)}inflate(t){this.left-=t,this.top-=t,this.right+=t,this.bottom+=t}intersectsWith(t){return t.left=e&&r>=i?new yi(e,i,o,r):yi.empty}}yi.empty=new yi(0,0,0,0);const NZ=["fileInput"],nN=function(n,t,e,i,o){return{pin1:n,pin2:t,pin3:e,pin4:i,pin5:o}};function OZ(n,t){if(1&n){const e=F();u(0,"div",20),u(1,"img",21),M("click",function(){const r=S(e).$implicit;return _().onShowImage(r.id,r.imageUrl)}),d(),O(2,"div",22),O(3,"div",23),d()}if(2&n){const e=t.$implicit;y(1),z("lazyLoad",e.imageUrl),v("defaultImage","/assets/images/image-placeholder.png")("errorImage","/assets/images/image-placeholder.png")("useSrcset",!0)("decode",!0),y(1),v("ngClass",Br(7,nN,1===e.pinNumber,2===e.pinNumber,3===e.pinNumber,4===e.pinNumber,5===e.pinNumber)),y(1),v("ngClass",Br(13,nN,1===e.pinNumber,2===e.pinNumber,3===e.pinNumber,4===e.pinNumber,5===e.pinNumber))}}const yr=function(n){return{active:n}},br=function(){return["/board"]},FZ=function(){return{filter:"Health"}},PZ=function(){return{filter:"Wealth"}},LZ=function(){return{filter:"Business"}},VZ=function(){return{filter:"Education"}},BZ=function(){return{filter:"Family"}},HZ=function(){return{filter:"Giving"}},$Z=function(){return{filter:"Fun"}},jZ=function(){return{filter:"Spiritual"}};let GZ=(()=>{class n{constructor(e,i,o,r,s,a){this.el=e,this.renderer=i,this.route=o,this.dialog=r,this.errorDialogService=s,this.boardService=a,this.categoryFilter=kt.Health,this.isLoading=!1}ngOnInit(){this.renderer.addClass(this.el.nativeElement.ownerDocument.body,"background-board"),this.route.queryParams.subscribe(e=>{if(e.filter){const i=kt[e.filter];this.categoryFilter=i,this.loadBoard(i)}else this.categoryFilter=kt.Health,this.loadBoard(kt.Health)})}ngOnDestroy(){}onShowImage(e,i){var o=this;this.dialog.open(rv,{data:{imageUrl:i,category:this.categoryFilter,isPrizesBoard:!1,itemId:e},panelClass:"image-view-dialog",position:{top:"1vh"}}).afterClosed().subscribe(function(){var s=Ot(function*(a){!0===(null==a?void 0:a.isDelete)&&(yield o.deleteImage(e))});return function(a){return s.apply(this,arguments)}}())}onCloseImage(){this.selectedBoard=null}onImageCreate(){this.dialog.open(aN,{data:{category:this.categoryFilter},position:{top:"1vh"}}).afterClosed().subscribe(i=>{i&&(i.pinNumber=this.getRandomIntInclusive(),this.boards.unshift(i))})}loadBoard(e){var i=this;return Ot(function*(){try{i.isLoading=!0;const o=yield i.boardService.list(e);o.forEach(r=>r.pinNumber=i.getRandomIntInclusive()),i.boards=o.sort((r,s)=>s.createdAt-r.createdAt)}catch(o){console.error("An error occurred while loading the board",o),i.errorDialogService.openDialog("An error occurred. Please try again later.")}finally{i.isLoading=!1}})()}deleteImage(e){var i=this;return Ot(function*(){try{if(i.isLoading=!0,!0===(yield i.boardService.delete(e))){const r=i.boards.map(s=>s.id).indexOf(e);r>=0&&i.boards.splice(r,1)}}catch(o){console.error("An error occurred while deleting a board item",o),i.errorDialogService.openDialog("An error occurred. Please try again later.")}finally{i.isLoading=!1}})()}getRandomIntInclusive(e=1,i=5){return e=Math.ceil(e),i=Math.floor(i),Math.floor(Math.random()*(i-e+1)+e)}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(St),m($i),m(Oo),m($o),m(Bc))},n.\u0275cmp=Z({type:n,selectors:[["app-board"]],viewQuery:function(e,i){if(1&e&&$e(NZ,5),2&e){let o;B(o=H())&&(i.fileInputRef=o.first)}},decls:46,vars:58,consts:[[1,"container","pt-5","pb-4"],[1,"row"],[1,"text-center"],[1,"fs-1","color-white"],[1,"navbar-container"],[1,"navbar","navbar-expand-md","navbar-light","mx-auto"],[1,"container"],["mat-icon-button","","type","button","data-bs-toggle","collapse","data-bs-target",".navbar-collapse.show",1,"large",3,"click"],[1,""],[1,"d-md-none","d-block"],[1,"navbar-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarNav",1,"collapse","navbar-collapse"],[1,"navbar-nav","mx-auto","my-2"],[1,"nav-item"],["data-bs-toggle","collapse","data-bs-target",".navbar-collapse.show",1,"nav-link",3,"ngClass","routerLink","queryParams"],[1,"container","py-5"],["id","gallery"],["class","gallery-item",4,"ngFor","ngForOf"],[1,"gallery-item"],["alt","",3,"defaultImage","errorImage","lazyLoad","useSrcset","decode","click"],[1,"pin-first",3,"ngClass"],[1,"pin-second",3,"ngClass"]],template:function(e,i){1&e&&(u(0,"div",0),u(1,"div",1),u(2,"div",2),u(3,"h1",3),C(4,"MyVision Board"),d(),d(),d(),d(),u(5,"div",4),u(6,"nav",5),u(7,"div",6),u(8,"button",7),M("click",function(){return i.onImageCreate()}),u(9,"mat-icon",8),C(10,"add_circle_outline"),d(),d(),u(11,"div",9),u(12,"span",10),C(13),d(),d(),u(14,"button",11),O(15,"span",12),d(),u(16,"div",13),u(17,"ul",14),u(18,"li",15),u(19,"a",16),C(20,"Health"),d(),d(),u(21,"li",15),u(22,"a",16),C(23,"Wealth"),d(),d(),u(24,"li",15),u(25,"a",16),C(26,"Business"),d(),d(),u(27,"li",15),u(28,"a",16),C(29,"Education"),d(),d(),u(30,"li",15),u(31,"a",16),C(32,"Family"),d(),d(),u(33,"li",15),u(34,"a",16),C(35,"Giving"),d(),d(),u(36,"li",15),u(37,"a",16),C(38,"Fun"),d(),d(),u(39,"li",15),u(40,"a",16),C(41,"Spiritual"),d(),d(),d(),d(),d(),d(),d(),u(42,"div",17),u(43,"div",1),u(44,"div",18),x(45,OZ,4,19,"div",19),d(),d(),d()),2&e&&(y(13),we(i.categoryFilter),y(6),v("ngClass",Ne(26,yr,"Health"==i.categoryFilter))("routerLink",vt(28,br))("queryParams",vt(29,FZ)),y(3),v("ngClass",Ne(30,yr,"Wealth"==i.categoryFilter))("routerLink",vt(32,br))("queryParams",vt(33,PZ)),y(3),v("ngClass",Ne(34,yr,"Business"==i.categoryFilter))("routerLink",vt(36,br))("queryParams",vt(37,LZ)),y(3),v("ngClass",Ne(38,yr,"Education"==i.categoryFilter))("routerLink",vt(40,br))("queryParams",vt(41,VZ)),y(3),v("ngClass",Ne(42,yr,"Family"==i.categoryFilter))("routerLink",vt(44,br))("queryParams",vt(45,BZ)),y(3),v("ngClass",Ne(46,yr,"Giving"==i.categoryFilter))("routerLink",vt(48,br))("queryParams",vt(49,HZ)),y(3),v("ngClass",Ne(50,yr,"Fun"==i.categoryFilter))("routerLink",vt(52,br))("queryParams",vt(53,$Z)),y(3),v("ngClass",Ne(54,yr,"Spiritual"==i.categoryFilter))("routerLink",vt(56,br))("queryParams",vt(57,jZ)),y(5),v("ngForOf",i.boards))},directives:[Vf,No,Yy,Qc,uc,tn,$f],styles:[""]}),n})();class zZ{}function oN(n,t,e,i){return new(e||(e=Promise))(function(r,s){function a(h){try{c(i.next(h))}catch(f){s(f)}}function l(h){try{c(i.throw(h))}catch(f){s(f)}}function c(h){h.done?r(h.value):function(r){return r instanceof e?r:new e(function(s){s(r)})}(h.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}const qZ=["wrapper"],YZ=["sourceImage"];function KZ(n,t){if(1&n){const e=F();u(0,"img",4,5),M("load",function(){return S(e),_().imageLoadedInView()}),d()}if(2&n){const e=_();ot("visibility",e.imageVisible?"visible":"hidden")("transform",e.safeTransformStyle),v("src",e.safeImgDataUrl,Gu)}}function QZ(n,t){if(1&n){const e=F();re(0),u(1,"span",9),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"topleft")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"topleft")}),O(2,"span",10),d(),u(3,"span",11),O(4,"span",10),d(),u(5,"span",12),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"topright")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"topright")}),O(6,"span",10),d(),u(7,"span",13),O(8,"span",10),d(),u(9,"span",14),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"bottomright")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"bottomright")}),O(10,"span",10),d(),u(11,"span",15),O(12,"span",10),d(),u(13,"span",16),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"bottomleft")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"bottomleft")}),O(14,"span",10),d(),u(15,"span",17),O(16,"span",10),d(),u(17,"span",18),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"top")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"top")}),d(),u(18,"span",19),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"right")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"right")}),d(),u(19,"span",20),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"bottom")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"bottom")}),d(),u(20,"span",21),M("mousedown",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"left")})("touchstart",function(o){S(e);const r=_(2);return r.startMove(o,r.moveTypes.Resize,"left")}),d(),se()}}function JZ(n,t){if(1&n){const e=F();u(0,"div",6),M("keydown",function(o){return S(e),_().keyboardAccess(o)}),u(1,"div",7),M("mousedown",function(o){S(e);const r=_();return r.startMove(o,r.moveTypes.Move)})("touchstart",function(o){S(e);const r=_();return r.startMove(o,r.moveTypes.Move)}),d(),x(2,QZ,21,0,"ng-container",8),d()}if(2&n){const e=_();ot("top",e.cropper.y1,"px")("left",e.cropper.x1,"px")("width",e.cropper.x2-e.cropper.x1,"px")("height",e.cropper.y2-e.cropper.y1,"px")("margin-left","center"===e.alignImage?e.marginLeft:null)("visibility",e.imageVisible?"visible":"hidden"),U("ngx-ic-round",e.roundCropper),y(2),v("ngIf",!e.hideResizeSquares)}}class XZ{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=void 0,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(t){Object.keys(t).filter(e=>e in this).forEach(e=>this[e]=t[e]),this.validateOptions()}setOptionsFromChanges(t){Object.keys(t).filter(e=>e in this).forEach(e=>this[e]=t[e].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}const vr={Move:"move",Resize:"resize",Pinch:"pinch"};let eee=(()=>{class n{crop(e,i,o,r){const s=this.getImagePosition(e,i,o,r),a=s.x2-s.x1,l=s.y2-s.y1,c=document.createElement("canvas");c.width=a,c.height=l;const h=c.getContext("2d");if(!h)return;null!=r.backgroundColor&&(h.fillStyle=r.backgroundColor,h.fillRect(0,0,a,l));const f=(r.transform.scale||1)*(r.transform.flipH?-1:1),p=(r.transform.scale||1)*(r.transform.flipV?-1:1),g=i.transformed;h.setTransform(f,0,0,p,g.size.width/2,g.size.height/2),h.translate(-s.x1/f,-s.y1/p),h.rotate((r.transform.rotate||0)*Math.PI/180),h.drawImage(g.image,-g.size.width/2,-g.size.height/2);const b={width:a,height:l,imagePosition:s,cropperPosition:Object.assign({},o)};r.containWithinAspectRatio&&(b.offsetImagePosition=this.getOffsetImagePosition(e,i,o,r));const w=this.getResizeRatio(a,l,r);return 1!==w&&(b.width=Math.round(a*w),b.height=r.maintainAspectRatio?Math.round(b.width/r.aspectRatio):Math.round(l*w),function(n,t,e){const i=n.width,o=n.height,r=i/(t=Math.round(t)),s=o/(e=Math.round(e)),a=Math.ceil(r/2),l=Math.ceil(s/2),c=n.getContext("2d");if(c){const h=c.getImageData(0,0,i,o),f=c.createImageData(t,e),p=h.data,g=f.data;for(let b=0;b=1)continue;T=2*Fe*Fe*Fe-3*Fe*Fe+1;const mt=4*(oe+vn*i);at+=T*p[mt+3],$+=T,p[mt+3]<255&&(T=T*p[mt+3]/250),ce+=T*p[mt],Ge+=T*p[mt+1],We+=T*p[mt+2],N+=T}}g[D]=ce/N,g[D+1]=Ge/N,g[D+2]=We/N,g[D+3]=at/$}n.width=t,n.height=e,c.putImageData(f,0,0)}}(c,b.width,b.height)),b.base64=c.toDataURL("image/"+r.format,this.getQuality(r)),b}getImagePosition(e,i,o,r){const a=i.transformed.size.width/e.nativeElement.offsetWidth,l={x1:Math.round(o.x1*a),y1:Math.round(o.y1*a),x2:Math.round(o.x2*a),y2:Math.round(o.y2*a)};return r.containWithinAspectRatio||(l.x1=Math.max(l.x1,0),l.y1=Math.max(l.y1,0),l.x2=Math.min(l.x2,i.transformed.size.width),l.y2=Math.min(l.y2,i.transformed.size.height)),l}getOffsetImagePosition(e,i,o,r){const l=i.transformed.size.width/e.nativeElement.offsetWidth;let c,h;(r.canvasRotation+i.exifTransform.rotate)%2?(c=(i.transformed.size.width-i.original.size.height)/2,h=(i.transformed.size.height-i.original.size.width)/2):(c=(i.transformed.size.width-i.original.size.width)/2,h=(i.transformed.size.height-i.original.size.height)/2);const f={x1:Math.round(o.x1*l)-c,y1:Math.round(o.y1*l)-h,x2:Math.round(o.x2*l)-c,y2:Math.round(o.y2*l)-h};return r.containWithinAspectRatio||(f.x1=Math.max(f.x1,0),f.y1=Math.max(f.y1,0),f.x2=Math.min(f.x2,i.transformed.size.width),f.y2=Math.min(f.y2,i.transformed.size.height)),f}getResizeRatio(e,i,o){const r=o.resizeToWidth/e,s=o.resizeToHeight/i,a=new Array;o.resizeToWidth>0&&a.push(r),o.resizeToHeight>0&&a.push(s);const l=0===a.length?1:Math.min(...a);return l>1&&!o.onlyScaleDown?l:Math.min(l,1)}getQuality(e){return Math.min(1,Math.max(0,e.imageQuality/100))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})(),tee=(()=>{class n{resetCropperPosition(e,i,o){if(!(null==e?void 0:e.nativeElement))return;const r=e.nativeElement;if(o.cropperStaticHeight&&o.cropperStaticWidth)i.x1=0,i.x2=r.offsetWidth>o.cropperStaticWidth?o.cropperStaticWidth:r.offsetWidth,i.y1=0,i.y2=r.offsetHeight>o.cropperStaticHeight?o.cropperStaticHeight:r.offsetHeight;else{const s=Math.min(o.cropperScaledMaxWidth,r.offsetWidth),a=Math.min(o.cropperScaledMaxHeight,r.offsetHeight);if(o.maintainAspectRatio)if(r.offsetWidth/o.aspectRatior.width&&(o.x1-=o.x2-r.width,o.x2=r.width),o.y1<0?(o.y2-=o.y1,o.y1=0):o.y2>r.height&&(o.y1-=o.y2-r.height,o.y2=r.height)}s.maintainAspectRatio&&this.checkAspectRatio(i.position,o,r,s)}checkAspectRatio(e,i,o,r){let s=0,a=0;switch(e){case"top":i.x2=i.x1+(i.y2-i.y1)*r.aspectRatio,s=Math.max(i.x2-o.width,0),a=Math.max(0-i.y1,0),(s>0||a>0)&&(i.x2-=a*r.aspectRatio>s?a*r.aspectRatio:s,i.y1+=a*r.aspectRatio>s?a:s/r.aspectRatio);break;case"bottom":i.x2=i.x1+(i.y2-i.y1)*r.aspectRatio,s=Math.max(i.x2-o.width,0),a=Math.max(i.y2-o.height,0),(s>0||a>0)&&(i.x2-=a*r.aspectRatio>s?a*r.aspectRatio:s,i.y2-=a*r.aspectRatio>s?a:s/r.aspectRatio);break;case"topleft":i.y1=i.y2-(i.x2-i.x1)/r.aspectRatio,s=Math.max(0-i.x1,0),a=Math.max(0-i.y1,0),(s>0||a>0)&&(i.x1+=a*r.aspectRatio>s?a*r.aspectRatio:s,i.y1+=a*r.aspectRatio>s?a:s/r.aspectRatio);break;case"topright":i.y1=i.y2-(i.x2-i.x1)/r.aspectRatio,s=Math.max(i.x2-o.width,0),a=Math.max(0-i.y1,0),(s>0||a>0)&&(i.x2-=a*r.aspectRatio>s?a*r.aspectRatio:s,i.y1+=a*r.aspectRatio>s?a:s/r.aspectRatio);break;case"right":case"bottomright":i.y2=i.y1+(i.x2-i.x1)/r.aspectRatio,s=Math.max(i.x2-o.width,0),a=Math.max(i.y2-o.height,0),(s>0||a>0)&&(i.x2-=a*r.aspectRatio>s?a*r.aspectRatio:s,i.y2-=a*r.aspectRatio>s?a:s/r.aspectRatio);break;case"left":case"bottomleft":i.y2=i.y1+(i.x2-i.x1)/r.aspectRatio,s=Math.max(0-i.x1,0),a=Math.max(i.y2-o.height,0),(s>0||a>0)&&(i.x1+=a*r.aspectRatio>s?a*r.aspectRatio:s,i.y2-=a*r.aspectRatio>s?a:s/r.aspectRatio);break;case"center":i.x2=i.x1+(i.y2-i.y1)*r.aspectRatio,i.y2=i.y1+(i.x2-i.x1)/r.aspectRatio;const l=Math.max(0-i.x1,0),c=Math.max(i.x2-o.width,0),h=Math.max(i.y2-o.height,0),f=Math.max(0-i.y1,0);(l>0||c>0||h>0||f>0)&&(i.x1+=h*r.aspectRatio>l?h*r.aspectRatio:l,i.x2-=f*r.aspectRatio>c?f*r.aspectRatio:c,i.y1+=f*r.aspectRatio>c?f:c/r.aspectRatio,i.y2-=h*r.aspectRatio>l?h:l/r.aspectRatio)}}getClientX(e){var i;return(null===(i=e.touches)||void 0===i?void 0:i[0].clientX)||e.clientX||0}getClientY(e){var i;return(null===(i=e.touches)||void 0===i?void 0:i[0].clientY)||e.clientY||0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})();let aee=(()=>{class n{constructor(){this.autoRotateSupported=new Promise(n=>{const t=new Image;t.onload=()=>{n(1===t.width&&2===t.height)},t.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}loadImageFile(e,i){return new Promise((o,r)=>{const s=new FileReader;s.onload=a=>{this.loadImage(a.target.result,e.type,i).then(o).catch(r)},s.readAsDataURL(e)})}loadImage(e,i,o){return this.isValidImageType(i)?this.loadBase64Image(e,o):Promise.reject(new Error("Invalid image type"))}isValidImageType(e){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp)/.test(e)}loadImageFromURL(e,i){return new Promise((o,r)=>{const s=new Image;s.onerror=()=>r,s.onload=()=>{const a=document.createElement("canvas"),l=a.getContext("2d");a.width=s.width,a.height=s.height,l.drawImage(s,0,0),this.loadBase64Image(a.toDataURL(),i).then(o)},s.crossOrigin="anonymous",s.src=e})}loadBase64Image(e,i){return new Promise((o,r)=>{const s=new Image;s.onload=()=>o({originalImage:s,originalBase64:e}),s.onerror=r,s.src=e}).then(o=>this.transformImageBase64(o,i))}transformImageBase64(e,i){return oN(this,void 0,void 0,function*(){const o=yield this.autoRotateSupported,r=yield function(n){switch("string"==typeof n&&(n=function(n){const t=new DataView(function(n){n=n.replace(/^data\:([^\;]+)\;base64,/gim,"");const t=atob(n),e=t.length,i=new Uint8Array(e);for(let o=0;o{const r=new Image;r.onload=()=>i(r),r.onerror=o,r.src=e})}getTransformedSize(e,i,o){const r=o.canvasRotation+i.rotate;if(o.containWithinAspectRatio){if(r%2){const a=e.height/o.aspectRatio;return{width:Math.max(e.height,e.width*o.aspectRatio),height:Math.max(e.width,a)}}{const a=e.width/o.aspectRatio;return{width:Math.max(e.width,e.height*o.aspectRatio),height:Math.max(e.height,a)}}}return r%2?{height:e.width,width:e.height}:{width:e.width,height:e.height}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({factory:function(){return new n},token:n,providedIn:"root"}),n})(),dee=(()=>{class n{constructor(e,i,o,r,s){this.cropService=e,this.cropperPositionService=i,this.loadImageService=o,this.sanitizer=r,this.cd=s,this.Hammer=(null==window?void 0:window.Hammer)||null,this.settings=new XZ,this.setImageMaxSizeRetries=0,this.marginLeft="0px",this.moveTypes=vr,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.imageCropped=new L,this.startCropImage=new L,this.imageLoaded=new L,this.cropperReady=new L,this.loadImageFailed=new L,this.reset()}ngOnChanges(e){var i;this.onChangesUpdateSettings(e),this.onChangesInputImage(e),(null===(i=this.loadedImage)||void 0===i?void 0:i.original.image.complete)&&(e.containWithinAspectRatio||e.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(o=>this.setLoadedImage(o)).catch(o=>this.loadImageError(o)),(e.cropper||e.maintainAspectRatio||e.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(e.maintainAspectRatio||e.aspectRatio)?this.resetCropperPosition():e.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()),this.cd.markForCheck()),e.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop())}onChangesUpdateSettings(e){this.settings.setOptionsFromChanges(e),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(e){(e.imageChangedEvent||e.imageURL||e.imageBase64||e.imageFile)&&this.reset(),e.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),e.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),e.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),e.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){var e,i,o;return(null===(o=null===(i=null===(e=this.imageChangedEvent)||void 0===e?void 0:e.target)||void 0===i?void 0:i.files)||void 0===o?void 0:o.length)>0}setCssTransform(){this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle("scaleX("+(this.transform.scale||1)*(this.transform.flipH?-1:1)+")scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+")rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=null,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(e){this.loadImageService.loadImageFile(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}loadBase64Image(e){this.loadImageService.loadBase64Image(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}loadImageFromURL(e){this.loadImageService.loadImageFromURL(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}setLoadedImage(e){this.loadedImage=e,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(e.transformed.base64),this.cd.markForCheck()}loadImageError(e){console.error(e),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit(Object.assign({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){var e,i;return(null===(i=null===(e=this.sourceImage)||void 0===e?void 0:e.nativeElement)||void 0===i?void 0:i.offsetWidth)>0}onResize(){!this.loadedImage||(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize())}activatePinchGesture(){if(this.Hammer){const e=new this.Hammer(this.wrapper.nativeElement);e.get("pinch").set({enable:!0}),e.on("pinchmove",this.onPinch.bind(this)),e.on("pinchend",this.pinchStop.bind(this)),e.on("pinchstart",this.startPinch.bind(this))}else Md()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const e=this.sourceImage.nativeElement;(this.maxSize.width!==e.offsetWidth||this.maxSize.height!==e.offsetHeight)&&(this.cropper.x1=this.cropper.x1*e.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*e.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*e.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*e.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(e){this.changeKeyboardStepSize(e),this.keyboardMoveCropper(e)}changeKeyboardStepSize(e){const i=+e.key;i>=1&&i<=9&&(this.settings.stepSize=i)}keyboardMoveCropper(e){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e.key))return;const o=e.shiftKey?vr.Resize:vr.Move,r=e.altKey?function(n){switch(n){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}(e.key):function(n){switch(n){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}(e.key),s=function(n,t){switch(n){case"ArrowUp":return{clientX:0,clientY:-1*t};case"ArrowRight":return{clientX:t,clientY:0};case"ArrowDown":return{clientX:0,clientY:t};case"ArrowLeft":default:return{clientX:-1*t,clientY:0}}}(e.key,this.settings.stepSize);e.preventDefault(),e.stopPropagation(),this.startMove({clientX:0,clientY:0},o,r),this.moveImg(s),this.moveStop()}startMove(e,i,o=null){var r,s;(null===(r=this.moveStart)||void 0===r?void 0:r.active)&&(null===(s=this.moveStart)||void 0===s?void 0:s.type)===vr.Pinch||(e.preventDefault&&e.preventDefault(),this.moveStart=Object.assign({active:!0,type:i,position:o,clientX:this.cropperPositionService.getClientX(e),clientY:this.cropperPositionService.getClientY(e)},this.cropper))}startPinch(e){!this.safeImgDataUrl||(e.preventDefault&&e.preventDefault(),this.moveStart=Object.assign({active:!0,type:vr.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}moveImg(e){this.moveStart.active&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===vr.Move?(this.cropperPositionService.move(e,this.moveStart,this.cropper),this.checkCropperPosition(!0)):this.moveStart.type===vr.Resize&&(!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}onPinch(e){this.moveStart.active&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===vr.Pinch&&(this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const e=this.sourceImage.nativeElement;this.maxSize.width=e.offsetWidth,this.maxSize.height=e.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){var e,i;(null===(i=null===(e=this.loadedImage)||void 0===e?void 0:e.transformed)||void 0===i?void 0:i.image)?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){var e,i;if(null===(i=null===(e=this.loadedImage)||void 0===e?void 0:e.transformed)||void 0===i?void 0:i.image){const o=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/o:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/o:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidththis.maxSize.width&&(this.cropper.x1-=e?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=e?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){var e,i;if(null!=(null===(i=null===(e=this.loadedImage)||void 0===e?void 0:e.transformed)||void 0===i?void 0:i.image)){this.startCropImage.emit();const o=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=o&&this.imageCropped.emit(o),o}return null}}return n.\u0275fac=function(e){return new(e||n)(m(eee),m(tee),m(aee),m(qr),m(Ye))},n.\u0275cmp=Z({type:n,selectors:[["image-cropper"]],viewQuery:function(e,i){if(1&e&&($e(qZ,7),$e(YZ,5)),2&e){let o;B(o=H())&&(i.wrapper=o.first),B(o=H())&&(i.sourceImage=o.first)}},hostVars:4,hostBindings:function(e,i){1&e&&M("resize",function(){return i.onResize()},!1,j1)("mousemove",function(r){return i.moveImg(r)},!1,xl)("touchmove",function(r){return i.moveImg(r)},!1,xl)("mouseup",function(){return i.moveStop()},!1,xl)("touchend",function(){return i.moveStop()},!1,xl),2&e&&(ot("text-align",i.alignImage),U("disabled",i.disabled))},inputs:{format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed"},features:[ye],decls:5,vars:10,consts:[["wrapper",""],["class","ngx-ic-source-image",3,"src","visibility","transform","load",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"src","load"],["sourceImage",""],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(e,i){1&e&&(u(0,"div",null,0),x(2,KZ,2,5,"img",1),O(3,"div",2),x(4,JZ,3,15,"div",3),d()),2&e&&(ot("background",i.imageVisible&&i.backgroundColor),y(2),v("ngIf",i.safeImgDataUrl),y(1),ot("width",i.maxSize.width,"px")("height",i.maxSize.height,"px")("margin-left","center"===i.alignImage?i.marginLeft:null),y(1),v("ngIf",i.imageVisible))},directives:[pt],styles:['[_nghost-%COMP%]{display:flex;max-height:100%;max-width:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:relative;width:100%}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-height:100%;max-width:100%;transform-origin:center}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{left:0;outline:var(--cropper-overlay-color,#fff) solid 100vw;pointer-events:none;position:absolute;top:0;touch-action:none}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{background:transparent;color:#53535c;display:flex;outline:100vw solid hsla(0,0%,100%,.3);outline:var(--cropper-outline-color,hsla(0,0%,100%,.3)) solid 100vw;position:absolute;touch-action:none}@media (orientation:portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{border:1px dashed;bottom:0;color:inherit;content:"";left:0;opacity:.75;pointer-events:none;position:absolute;right:0;top:0;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border:1px solid hsla(0,0%,100%,.5);cursor:move;width:100%}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{display:inline-block;line-height:6px;opacity:.85;padding:8px;position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{background:#53535c;border:1px solid hsla(0,0%,100%,.5);box-sizing:content-box;display:inline-block;height:6px;width:6px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{cursor:nwse-resize;left:-12px;top:-12px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{cursor:ns-resize;left:calc(50% - 12px);top:-12px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{cursor:nesw-resize;right:-12px;top:-12px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{cursor:ew-resize;right:-12px;top:calc(50% - 12px)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;cursor:nwse-resize;right:-12px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;cursor:ns-resize;left:calc(50% - 12px)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;cursor:nesw-resize;left:-12px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{cursor:ew-resize;left:-12px;top:calc(50% - 12px)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{cursor:ns-resize;height:22px;left:11px;top:-11px;width:calc(100% - 22px)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{cursor:ew-resize;height:calc(100% - 22px);right:-11px;top:11px;width:22px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;cursor:ns-resize;height:22px;left:11px;width:calc(100% - 22px)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{cursor:ew-resize;height:calc(100% - 22px);left:-11px;top:11px;width:22px}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw hsla(0,0%,100%,.3);box-shadow:0 0 0 100vw var(--cropper-outline-color,hsla(0,0%,100%,.3))}@media (orientation:portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh hsla(0,0%,100%,.3);box-shadow:0 0 0 100vh var(--cropper-outline-color,hsla(0,0%,100%,.3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),n})(),hee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[Nt]]}),n})();const fee=["fileInput"];function pee(n,t){1&n&&(u(0,"span"),C(1,"Save"),d())}function mee(n,t){1&n&&O(0,"mat-spinner",10)}let aN=(()=>{class n{constructor(e,i,o,r){this.dialogRef=e,this.data=i,this.errorDialogService=o,this.boardService=r,this.isLoading=!1,this.imageChangedEvent="",this.imageFile=null,this.croppedImage="",this.showCropper=!1}ngOnInit(){}onSave(){var e=this;return Ot(function*(){try{e.isLoading=!0;const i=new zZ;i.category=e.data.category,i.image=e.croppedImage.substr(e.croppedImage.indexOf(",")+1);const o=yield e.boardService.create(i);e.clearFile(),e.dialogRef.close(o)}catch(i){console.error("An error occurred while creating a board",i),e.errorDialogService.openDialog("An error occurred. Please try again later.")}finally{e.isLoading=!1}})()}onCancel(){this.dialogRef.close()}onImageCreate(){this.fileInputRef.nativeElement.click()}fileChangeEvent(e){this.imageChangedEvent=e}imageFileChangedEvent(e){}imageCropped(e){this.croppedImage=e.base64}imageLoaded(e){this.showCropper=!0}loadImageFailed(){}clearFile(){this.fileInputRef&&(this.fileInputRef.nativeElement.value="")}onDragOver(e){e.preventDefault()}onDragEnter(e){e.preventDefault()}onDragEnd(e){e.preventDefault()}onDragLeave(e){e.preventDefault()}onDrop(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&(this.imageFile=e.dataTransfer.files[0])}}return n.\u0275fac=function(e){return new(e||n)(m(ds),m(Oc),m($o),m(Bc))},n.\u0275cmp=Z({type:n,selectors:[["app-board-create"]],viewQuery:function(e,i){if(1&e&&$e(fee,5),2&e){let o;B(o=H())&&(i.fileInputRef=o.first)}},hostBindings:function(e,i){1&e&&M("dragover",function(r){return i.onDragOver(r)})("dragenter",function(r){return i.onDragEnter(r)})("dragend",function(r){return i.onDragEnd(r)})("dragleave",function(r){return i.onDragLeave(r)})("drop",function(r){return i.onDrop(r)})},decls:12,vars:18,consts:[[1,"cropper-display"],["type","file","accept","image/png,image/jpeg,image/jpg","placeholder","Image",3,"change"],["fileInput",""],["draggable","true","src","/assets/images/image-placeholder-alt.png","alt","Preview",1,"img-fluid",3,"click"],["format","png",3,"imageChangedEvent","imageFile","maintainAspectRatio","containWithinAspectRatio","aspectRatio","resizeToWidth","cropperMinWidth","onlyScaleDown","roundCropper","alignImage","imageCropped","imageLoaded","loadImageFailed","imageFileChanged"],["align","end"],["mat-button","","type","button","mat-dialog-close","",3,"disabled"],["color","accent","mat-button","","type","button",3,"disabled","click"],[4,"ngIf"],["color","accent","diameter","20",4,"ngIf"],["color","accent","diameter","20"]],template:function(e,i){1&e&&(u(0,"mat-dialog-content"),u(1,"div",0),u(2,"input",1,2),M("change",function(r){return i.fileChangeEvent(r)}),d(),u(4,"img",3),M("click",function(){return i.onImageCreate()}),d(),u(5,"image-cropper",4),M("imageCropped",function(r){return i.imageCropped(r)})("imageLoaded",function(r){return i.imageLoaded(r)})("loadImageFailed",function(){return i.loadImageFailed()})("imageFileChanged",function(r){return i.imageFileChangedEvent(r)}),d(),d(),d(),u(6,"mat-dialog-actions",5),u(7,"button",6),C(8," Cancel "),d(),u(9,"button",7),M("click",function(){return i.onSave()}),x(10,pee,2,0,"span",8),x(11,mee,1,0,"mat-spinner",9),d(),d()),2&e&&(y(4),ot("display",!0===i.showCropper?"none":null),y(1),ot("display",!0===i.showCropper?null:"none"),v("imageChangedEvent",i.imageChangedEvent)("imageFile",i.imageFile)("maintainAspectRatio",!1)("containWithinAspectRatio",!1)("aspectRatio",4/3)("resizeToWidth",1024)("cropperMinWidth",128)("onlyScaleDown",!0)("roundCropper",!1)("alignImage","center"),y(2),v("disabled",i.isLoading),y(2),v("disabled",i.isLoading||!0!==i.showCropper),y(1),v("ngIf",!i.isLoading),y(1),v("ngIf",i.isLoading))},directives:[Wh,dee,qh,No,Uh,pt,aW],styles:[".cropper-display[_ngcontent-%COMP%]{max-width:540px}.cropper-display[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}"]}),n})(),gee=(()=>{class n{transform(e,i,o){return null==e?void 0:e.filter(r=>r.category===i&&r.period===o).sort((r,s)=>r.createdAt-s.createdAt)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=wn({name:"goalListFilter",type:n,pure:!0}),n})();function _ee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function yee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,30),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function bee(n,t){if(1&n&&(u(0,"div",24),x(1,_ee,10,3,"ng-container",25),x(2,yee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function vee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,bee,3,2,"div",19),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,22),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Health","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Cee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function wee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,36),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Dee(n,t){if(1&n&&(u(0,"div",35),x(1,Cee,10,3,"ng-container",25),x(2,wee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Mee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Dee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,34),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Health","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Eee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function xee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,38),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function See(n,t){if(1&n&&(u(0,"div",35),x(1,Eee,10,3,"ng-container",25),x(2,xee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Tee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,See,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,37),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Health","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function kee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Iee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,40),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Aee(n,t){if(1&n&&(u(0,"div",35),x(1,kee,10,3,"ng-container",25),x(2,Iee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Ree(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Aee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,39),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Wealth","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Nee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Oee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,42),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Fee(n,t){if(1&n&&(u(0,"div",35),x(1,Nee,10,3,"ng-container",25),x(2,Oee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Pee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Fee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,41),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Wealth","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Lee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Vee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,44),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Bee(n,t){if(1&n&&(u(0,"div",35),x(1,Lee,10,3,"ng-container",25),x(2,Vee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Hee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Bee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,43),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Wealth","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function $ee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function jee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,46),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Gee(n,t){if(1&n&&(u(0,"div",35),x(1,$ee,10,3,"ng-container",25),x(2,jee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function zee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Gee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,45),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Business","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Uee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Wee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,48),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function qee(n,t){if(1&n&&(u(0,"div",35),x(1,Uee,10,3,"ng-container",25),x(2,Wee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Yee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,qee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,47),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Business","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Kee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Qee(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,50),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Jee(n,t){if(1&n&&(u(0,"div",35),x(1,Kee,10,3,"ng-container",25),x(2,Qee,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Xee(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Jee,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,49),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Business","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Zee(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function ete(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,52),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function tte(n,t){if(1&n&&(u(0,"div",35),x(1,Zee,10,3,"ng-container",25),x(2,ete,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function nte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,tte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,51),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Education","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function ite(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function ote(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,54),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function rte(n,t){if(1&n&&(u(0,"div",35),x(1,ite,10,3,"ng-container",25),x(2,ote,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function ste(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,rte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,53),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Education","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function ate(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function lte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,56),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function cte(n,t){if(1&n&&(u(0,"div",35),x(1,ate,10,3,"ng-container",25),x(2,lte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function ute(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,cte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,55),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Education","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function dte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function hte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,58),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function fte(n,t){if(1&n&&(u(0,"div",35),x(1,dte,10,3,"ng-container",25),x(2,hte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function pte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,fte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,57),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Family","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function mte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function gte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,60),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function _te(n,t){if(1&n&&(u(0,"div",35),x(1,mte,10,3,"ng-container",25),x(2,gte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function yte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,_te,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,59),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Family","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function bte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function vte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,62),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Cte(n,t){if(1&n&&(u(0,"div",35),x(1,bte,10,3,"ng-container",25),x(2,vte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function wte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Cte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,61),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Family","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Dte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Mte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,64),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Ete(n,t){if(1&n&&(u(0,"div",35),x(1,Dte,10,3,"ng-container",25),x(2,Mte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function xte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Ete,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,63),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Giving","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Ste(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Tte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,66),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function kte(n,t){if(1&n&&(u(0,"div",35),x(1,Ste,10,3,"ng-container",25),x(2,Tte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Ite(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,kte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,65),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Giving","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Ate(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Rte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,68),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Nte(n,t){if(1&n&&(u(0,"div",35),x(1,Ate,10,3,"ng-container",25),x(2,Rte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Ote(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Nte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,67),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Giving","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Fte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Pte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,70),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Lte(n,t){if(1&n&&(u(0,"div",35),x(1,Fte,10,3,"ng-container",25),x(2,Pte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Vte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Lte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,69),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Fun","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Bte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Hte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,72),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function $te(n,t){if(1&n&&(u(0,"div",35),x(1,Bte,10,3,"ng-container",25),x(2,Hte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function jte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,$te,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,71),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Fun","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Gte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function zte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,74),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Ute(n,t){if(1&n&&(u(0,"div",35),x(1,Gte,10,3,"ng-container",25),x(2,zte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Wte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Ute,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,73),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Fun","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function qte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Yte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,76),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Kte(n,t){if(1&n&&(u(0,"div",35),x(1,qte,10,3,"ng-container",25),x(2,Yte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function Qte(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",17),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 6 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Kte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,75),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Spiritual","Months_6",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function Jte(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function Xte(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,78),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function Zte(n,t){if(1&n&&(u(0,"div",35),x(1,Jte,10,3,"ng-container",25),x(2,Xte,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function ene(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 12 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,Zte,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,77),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Spiritual","Months_12",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}function tne(n,t){if(1&n){const e=F();re(0),u(1,"mat-list-option",26),u(2,"span",27),C(3),d(),d(),u(4,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).setEditGoal(o.id)}),u(5,"mat-icon"),C(6,"edit"),d(),d(),u(7,"button",28),M("click",function(){S(e);const o=_().$implicit;return _(2).onDeleteGoal(o.id)}),u(8,"mat-icon"),C(9,"delete"),d(),d(),se()}if(2&n){const e=_().$implicit;y(1),z("value",e.id),z("selected",e.isComplete),y(2),we(e.name)}}function nne(n,t){if(1&n){const e=F();re(0),u(1,"mat-form-field",20),u(2,"mat-label"),C(3,"Edit a goal"),d(),u(4,"input",29,80),M("keydown",function(o){return o.stopPropagation()}),d(),d(),u(6,"button",31),M("click",function(){S(e);const o=R(5),r=_().$implicit;return _(2).onUpdateGoal(r.id,o.value)}),u(7,"mat-icon"),C(8,"save"),d(),d(),u(9,"button",28),M("click",function(){return S(e),_(3).setEditGoal(null)}),u(10,"mat-icon"),C(11,"cancel"),d(),d(),se()}if(2&n){const e=R(5),i=_().$implicit;y(4),z("value",i.name),y(2),v("disabled",!e.value)}}function ine(n,t){if(1&n&&(u(0,"div",35),x(1,tne,10,3,"ng-container",25),x(2,nne,12,2,"ng-container",25),d()),2&n){const e=t.$implicit,i=_(2);y(1),v("ngIf",i.isEditItemId!=e.id),y(1),v("ngIf",i.isEditItemId==e.id)}}function one(n,t){if(1&n){const e=F();u(0,"mat-expansion-panel",32),u(1,"mat-expansion-panel-header"),u(2,"mat-panel-title"),C(3," 24 months "),d(),d(),u(4,"mat-selection-list",18),M("selectionChange",function(o){return S(e),_().onMarkGoalStatus(o.option.value,o.option.selected)}),x(5,ine,3,2,"div",33),d(),u(6,"div"),u(7,"mat-form-field",20),u(8,"mat-label"),C(9,"Add a goal"),d(),O(10,"input",21,79),d(),u(12,"button",23),M("click",function(){S(e);const o=R(11);return _().onCreateGoal(o.value,"Spiritual","Months_24",o)}),u(13,"mat-icon"),C(14,"add"),d(),d(),d(),d()}if(2&n){const e=t.ngIf,i=R(11);v("expanded",e.goals.length>0),y(5),v("ngForOf",e.goals),y(7),v("disabled",!i.value)}}const yt=function(n){return{goals:n}};let rne=(()=>{class n{constructor(e,i,o,r,s){this.el=e,this.renderer=i,this.dialog=o,this.errorDialogService=r,this.goalService=s,this.goalsSource=new wt([]),this.goals$=this.goalsSource.asObservable(),this.isEditItemId=null}ngOnInit(){var e=this;return Ot(function*(){try{e.renderer.addClass(e.el.nativeElement.ownerDocument.body,"background-goals");const i=yield e.goalService.list();e.goalsSource.next(Object.assign([],i))}catch(i){console.error("An error occurred while loading the goals",i),e.errorDialogService.openDialog("An error occurred. Please try again later.")}})()}onMarkGoalStatus(e,i){var o=this;return Ot(function*(){try{yield o.goalService.setStatus(e,i)}catch(r){console.error(`An error occurred while updating the status of goal: ${e}`,r),o.errorDialogService.openDialog("An error occurred. Please try again later.")}})()}onCreateGoal(e,i,o,r){var s=this;return Ot(function*(){try{const a=yield s.goalService.create(e,i,o);r.value="";const c=[...s.goalsSource.value,a];s.goalsSource.next(c)}catch(a){console.error("An error occurred while creating a goal",a),s.errorDialogService.openDialog("An error occurred. Please try again later.")}})()}onDeleteGoal(e){var i=this;return Ot(function*(){i.dialog.open(lN).afterClosed().subscribe(function(){var r=Ot(function*(s){!0===s&&(yield i.deleteGoal(e))});return function(s){return r.apply(this,arguments)}}())})()}deleteGoal(e){var i=this;return Ot(function*(){try{yield i.goalService.delete(e);const o=i.goalsSource.value,r=o.findIndex(a=>a.id===e);-1!==r&&o.splice(r,1);const s=[...o];i.goalsSource.next(s)}catch(o){console.error("An error occurred while deleting a goal",o),i.errorDialogService.openDialog("An error occurred. Please try again later.")}})()}setEditGoal(e){var i=this;return Ot(function*(){i.isEditItemId=e})()}onUpdateGoal(e,i){var o=this;return Ot(function*(){try{yield o.goalService.updateName(e,i),o.goalsSource.value.find(a=>a.id==e).name=i,o.isEditItemId=null}catch(r){console.error("An error occurred while updating a goal",r),o.errorDialogService.openDialog("An error occurred. Please try again later.")}})()}hasGoals(){try{return this.goalsSource.value.some(o=>o.category===kt.Health&&o.period===Ga.Months_6),!0}catch(e){console.error("An error occurred while check if any goals for category",e)}finally{return!1}}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(St),m(Oo),m($o),m(II))},n.\u0275cmp=Z({type:n,selectors:[["app-goals"]],decls:150,vars:216,consts:[[1,"container","py-4"],[1,"row","pt-4","pb-4"],[1,"text-center"],[1,"fs-1","color-white"],[1,"row"],[1,"col-xl-6"],[1,"my-3"],["mat-card-avatar","","src","assets/images/icons/health.png","alt","Goal"],["class","mb-3",3,"expanded",4,"ngIf"],["class","my-3",3,"expanded",4,"ngIf"],["mat-card-avatar","","src","assets/images/icons/wealth.png","alt","Goal"],["mat-card-avatar","","src","assets/images/icons/business.png","alt","Goal"],["mat-card-avatar","","src","assets/images/icons/education.png","alt","Goal"],["mat-card-avatar","","src","assets/images/icons/family.png","alt","Goal"],["mat-card-avatar","","src","assets/images/icons/giving.png","alt","Goal"],["mat-card-avatar","","src","assets/images/icons/fun.png","alt","Goal"],["mat-card-avatar","","src","assets/images/icons/spiritual.png","alt","Goal"],[1,"mb-3",3,"expanded"],[3,"selectionChange"],["class","goal-item my-1",4,"ngFor","ngForOf"],["appearance","standard","color","accent"],["type","text","matInput","","maxlength","50","placeholder","Name of my goal"],["health6",""],["mat-icon-button","","color","accent","type","button",1,"large",3,"disabled","click"],[1,"goal-item","my-1"],[4,"ngIf"],["checkboxPosition","before",3,"value","selected"],[1,"wrapword"],["mat-button","","type","button",3,"click"],["type","text","matInput","","maxlength","50","placeholder","Name of my goal","autofocus","",3,"value","keydown"],["health6Edit",""],["mat-button","","type","button",3,"disabled","click"],[1,"my-3",3,"expanded"],["class","goal-item",4,"ngFor","ngForOf"],["health12",""],[1,"goal-item"],["health12Edit",""],["health24",""],["health24Edit",""],["wealth6",""],["wealth6Edit",""],["wealth12",""],["wealth12Edit",""],["wealth24",""],["wealth24Edit",""],["business6",""],["business6Edit",""],["business12",""],["business12Edit",""],["business24",""],["business24Edit",""],["education6",""],["education6Edit",""],["education12",""],["education12Edit",""],["education24",""],["education24Edit",""],["family6",""],["family6Edit",""],["family12",""],["family12Edit",""],["family24",""],["family24Edit",""],["giving6",""],["giving6Edit",""],["giving12",""],["giving12Edit",""],["giving24",""],["giving24Edit",""],["fun6",""],["fun6Edit",""],["fun12",""],["fun12Edit",""],["fun24",""],["fun24Edit",""],["spiritual6",""],["spiritual6Edit",""],["spiritual12",""],["spiritual12Edit",""],["spiritual24",""],["spiritual24Edit",""]],template:function(e,i){1&e&&(u(0,"div",0),u(1,"div",1),u(2,"div",2),u(3,"h1",3),C(4,"MyGoals"),d(),d(),d(),u(5,"div",4),u(6,"div",5),u(7,"mat-card",6),u(8,"mat-card-header"),O(9,"img",7),u(10,"mat-card-title"),C(11,"Health"),d(),u(12,"mat-card-subtitle"),C(13,"Goals"),d(),d(),u(14,"mat-card-content"),x(15,vee,15,3,"mat-expansion-panel",8),fe(16,"goalListFilter"),fe(17,"async"),x(18,Mee,15,3,"mat-expansion-panel",9),fe(19,"goalListFilter"),fe(20,"async"),x(21,Tee,15,3,"mat-expansion-panel",9),fe(22,"goalListFilter"),fe(23,"async"),d(),d(),d(),u(24,"div",5),u(25,"mat-card",6),u(26,"mat-card-header"),O(27,"img",10),u(28,"mat-card-title"),C(29,"Wealth"),d(),u(30,"mat-card-subtitle"),C(31,"Goals"),d(),d(),u(32,"mat-card-content"),x(33,Ree,15,3,"mat-expansion-panel",8),fe(34,"goalListFilter"),fe(35,"async"),x(36,Pee,15,3,"mat-expansion-panel",9),fe(37,"goalListFilter"),fe(38,"async"),x(39,Hee,15,3,"mat-expansion-panel",9),fe(40,"goalListFilter"),fe(41,"async"),d(),d(),d(),u(42,"div",5),u(43,"mat-card",6),u(44,"mat-card-header"),O(45,"img",11),u(46,"mat-card-title"),C(47,"Business"),d(),u(48,"mat-card-subtitle"),C(49,"Goals"),d(),d(),u(50,"mat-card-content"),x(51,zee,15,3,"mat-expansion-panel",8),fe(52,"goalListFilter"),fe(53,"async"),x(54,Yee,15,3,"mat-expansion-panel",9),fe(55,"goalListFilter"),fe(56,"async"),x(57,Xee,15,3,"mat-expansion-panel",9),fe(58,"goalListFilter"),fe(59,"async"),d(),d(),d(),u(60,"div",5),u(61,"mat-card",6),u(62,"mat-card-header"),O(63,"img",12),u(64,"mat-card-title"),C(65,"Education"),d(),u(66,"mat-card-subtitle"),C(67,"Goals"),d(),d(),u(68,"mat-card-content"),x(69,nte,15,3,"mat-expansion-panel",8),fe(70,"goalListFilter"),fe(71,"async"),x(72,ste,15,3,"mat-expansion-panel",9),fe(73,"goalListFilter"),fe(74,"async"),x(75,ute,15,3,"mat-expansion-panel",9),fe(76,"goalListFilter"),fe(77,"async"),d(),d(),d(),u(78,"div",5),u(79,"mat-card",6),u(80,"mat-card-header"),O(81,"img",13),u(82,"mat-card-title"),C(83,"Family"),d(),u(84,"mat-card-subtitle"),C(85,"Goals"),d(),d(),u(86,"mat-card-content"),x(87,pte,15,3,"mat-expansion-panel",8),fe(88,"goalListFilter"),fe(89,"async"),x(90,yte,15,3,"mat-expansion-panel",9),fe(91,"goalListFilter"),fe(92,"async"),x(93,wte,15,3,"mat-expansion-panel",9),fe(94,"goalListFilter"),fe(95,"async"),d(),d(),d(),u(96,"div",5),u(97,"mat-card",6),u(98,"mat-card-header"),O(99,"img",14),u(100,"mat-card-title"),C(101,"Giving"),d(),u(102,"mat-card-subtitle"),C(103,"Goals"),d(),d(),u(104,"mat-card-content"),x(105,xte,15,3,"mat-expansion-panel",8),fe(106,"goalListFilter"),fe(107,"async"),x(108,Ite,15,3,"mat-expansion-panel",9),fe(109,"goalListFilter"),fe(110,"async"),x(111,Ote,15,3,"mat-expansion-panel",9),fe(112,"goalListFilter"),fe(113,"async"),d(),d(),d(),u(114,"div",5),u(115,"mat-card",6),u(116,"mat-card-header"),O(117,"img",15),u(118,"mat-card-title"),C(119,"Fun"),d(),u(120,"mat-card-subtitle"),C(121,"Goals"),d(),d(),u(122,"mat-card-content"),x(123,Vte,15,3,"mat-expansion-panel",8),fe(124,"goalListFilter"),fe(125,"async"),x(126,jte,15,3,"mat-expansion-panel",9),fe(127,"goalListFilter"),fe(128,"async"),x(129,Wte,15,3,"mat-expansion-panel",9),fe(130,"goalListFilter"),fe(131,"async"),d(),d(),d(),u(132,"div",5),u(133,"mat-card",6),u(134,"mat-card-header"),O(135,"img",16),u(136,"mat-card-title"),C(137,"Spiritual"),d(),u(138,"mat-card-subtitle"),C(139,"Goals"),d(),d(),u(140,"mat-card-content"),x(141,Qte,15,3,"mat-expansion-panel",8),fe(142,"goalListFilter"),fe(143,"async"),x(144,ene,15,3,"mat-expansion-panel",9),fe(145,"goalListFilter"),fe(146,"async"),x(147,one,15,3,"mat-expansion-panel",9),fe(148,"goalListFilter"),fe(149,"async"),d(),d(),d(),d(),d()),2&e&&(y(15),v("ngIf",Ne(168,yt,ht(16,24,st(17,28,i.goals$),"Health","Months_6"))),y(3),v("ngIf",Ne(170,yt,ht(19,30,st(20,34,i.goals$),"Health","Months_12"))),y(3),v("ngIf",Ne(172,yt,ht(22,36,st(23,40,i.goals$),"Health","Months_24"))),y(12),v("ngIf",Ne(174,yt,ht(34,42,st(35,46,i.goals$),"Wealth","Months_6"))),y(3),v("ngIf",Ne(176,yt,ht(37,48,st(38,52,i.goals$),"Wealth","Months_12"))),y(3),v("ngIf",Ne(178,yt,ht(40,54,st(41,58,i.goals$),"Wealth","Months_24"))),y(12),v("ngIf",Ne(180,yt,ht(52,60,st(53,64,i.goals$),"Business","Months_6"))),y(3),v("ngIf",Ne(182,yt,ht(55,66,st(56,70,i.goals$),"Business","Months_12"))),y(3),v("ngIf",Ne(184,yt,ht(58,72,st(59,76,i.goals$),"Business","Months_24"))),y(12),v("ngIf",Ne(186,yt,ht(70,78,st(71,82,i.goals$),"Education","Months_6"))),y(3),v("ngIf",Ne(188,yt,ht(73,84,st(74,88,i.goals$),"Education","Months_12"))),y(3),v("ngIf",Ne(190,yt,ht(76,90,st(77,94,i.goals$),"Education","Months_24"))),y(12),v("ngIf",Ne(192,yt,ht(88,96,st(89,100,i.goals$),"Family","Months_6"))),y(3),v("ngIf",Ne(194,yt,ht(91,102,st(92,106,i.goals$),"Family","Months_12"))),y(3),v("ngIf",Ne(196,yt,ht(94,108,st(95,112,i.goals$),"Family","Months_24"))),y(12),v("ngIf",Ne(198,yt,ht(106,114,st(107,118,i.goals$),"Giving","Months_6"))),y(3),v("ngIf",Ne(200,yt,ht(109,120,st(110,124,i.goals$),"Giving","Months_12"))),y(3),v("ngIf",Ne(202,yt,ht(112,126,st(113,130,i.goals$),"Giving","Months_24"))),y(12),v("ngIf",Ne(204,yt,ht(124,132,st(125,136,i.goals$),"Fun","Months_6"))),y(3),v("ngIf",Ne(206,yt,ht(127,138,st(128,142,i.goals$),"Fun","Months_12"))),y(3),v("ngIf",Ne(208,yt,ht(130,144,st(131,148,i.goals$),"Fun","Months_24"))),y(12),v("ngIf",Ne(210,yt,ht(142,150,st(143,154,i.goals$),"Spiritual","Months_6"))),y(3),v("ngIf",Ne(212,yt,ht(145,156,st(146,160,i.goals$),"Spiritual","Months_12"))),y(3),v("ngIf",Ne(214,yt,ht(148,162,st(149,166,i.goals$),"Spiritual","Months_24"))))},directives:[QT,Y7,q7,G7,z7,KT,pt,Rk,Nk,zU,eb,tn,Qy,Fc,Jk,No,Yy,oI],pipes:[gee,Xg],styles:[".mat-expansion-panel[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{margin:8px 8px 0}.mat-card-avatar[_ngcontent-%COMP%]{border-radius:0%;object-fit:none}.mat-form-field[_ngcontent-%COMP%]{width:calc(100% - 48px)}.goal-item[_ngcontent-%COMP%]{display:flex}.goal-item[_ngcontent-%COMP%] span.wrapword[_ngcontent-%COMP%]{word-break:normal;-webkit-hyphens:auto;hyphens:auto}@media (max-width: 767px){.wrapword[_ngcontent-%COMP%]{font-size:14px!important}}@media (max-width: 505px){.wrapword[_ngcontent-%COMP%]{font-size:12px!important}}@media (max-width: 433px){.wrapword[_ngcontent-%COMP%]{font-size:11px!important}}"]}),n})();const sne=["formDirective"];function ane(n,t){if(1&n&&(u(0,"mat-option",18),C(1),d()),2&n){const e=t.$implicit,i=_();v("value",e),y(1),we(i.categoryType[e])}}function lne(n,t){1&n&&(u(0,"mat-error",19),C(1," Category is "),u(2,"strong"),C(3,"required"),d(),d())}function cne(n,t){if(1&n&&(u(0,"mat-option",18),C(1),d()),2&n){const e=t.$implicit,i=_();v("value",e),y(1),we(i.periodType[e])}}function une(n,t){1&n&&(u(0,"mat-error"),C(1," Period is "),u(2,"strong"),C(3,"required"),d(),d())}function dne(n,t){1&n&&(u(0,"mat-error"),C(1," Name is "),u(2,"strong"),C(3,"required"),d(),d())}function hne(n,t){1&n&&O(0,"mat-progress-bar",20)}let fne=(()=>{class n{constructor(e,i,o,r,s,a){this.location=e,this.el=i,this.renderer=o,this.route=r,this.errorDialogService=s,this.goalService=a,this.destroy$=new W,this.isLoading=!1,this.categoryType=kt,this.categoryTypeKeys=Object.keys(kt),this.periodType=Ga,this.periodTypeKeys=Object.keys(Ga)}ngOnInit(){this.renderer.setStyle(this.el.nativeElement.ownerDocument.body,"backgroundColor","#ED526A"),this.initialiseForm(),this.route.queryParams.subscribe(e=>{e.category&&this.categoryTypeKeys.some(i=>i===e.category)&&this.form.patchValue({category:e.category}),e.period&&this.periodTypeKeys.some(i=>i===e.period)&&this.form.patchValue({period:e.period})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initialiseForm(){this.form=new xh({category:new es(null,Q_.required),period:new es(null,Q_.required),name:new es("",Q_.required)})}reset(){this.formDirective.resetForm(),this.form.reset()}onSave(){var e=this;return Ot(function*(){e.form.valid&&(e.isLoading=!0)})()}onCancel(){this.location.back()}}return n.\u0275fac=function(e){return new(e||n)(m(Ur),m(V),m(St),m($i),m($o),m(II))},n.\u0275cmp=Z({type:n,selectors:[["app-goal-create"]],viewQuery:function(e,i){if(1&e&&$e(sne,5),2&e){let o;B(o=H())&&(i.formDirective=o.first)}},decls:31,vars:9,consts:[[1,"container","py-4","my-5"],[1,"row"],[1,"col-12"],[1,"my-3"],[3,"formGroup"],["formDirective","ngForm"],["color","accent"],["formControlName","category"],[3,"value",4,"ngFor","ngForOf"],["class","cut-text",4,"ngIf"],["appearance","standard"],["formControlName","period"],[4,"ngIf"],["type","text","matInput","","formControlName","name","placeholder","Name of my goal"],["align","end"],["color","accent","mat-raised-button","","type","button",3,"disabled","click"],["color","primary","mat-raised-button","","type","button",3,"disabled","click"],["mode","indeterminate",4,"ngIf"],[3,"value"],[1,"cut-text"],["mode","indeterminate"]],template:function(e,i){if(1&e&&(u(0,"div",0),u(1,"div",1),u(2,"div",2),u(3,"mat-card",3),u(4,"mat-card-content"),u(5,"form",4,5),u(7,"mat-form-field",6),u(8,"mat-label"),C(9,"Category"),d(),u(10,"mat-select",7),x(11,ane,2,2,"mat-option",8),d(),x(12,lne,4,0,"mat-error",9),d(),u(13,"mat-form-field",10),u(14,"mat-label"),C(15,"Period"),d(),u(16,"mat-select",11),x(17,cne,2,2,"mat-option",8),d(),x(18,une,4,0,"mat-error",12),d(),u(19,"mat-form-field",10),u(20,"mat-label"),C(21,"Name"),d(),O(22,"input",13),x(23,dne,4,0,"mat-error",12),d(),d(),d(),u(24,"mat-card-actions",14),u(25,"button",15),M("click",function(){return i.onCancel()}),C(26," Cancel "),d(),u(27,"button",16),M("click",function(){return i.onSave()}),C(28," Save "),d(),d(),u(29,"mat-card-footer"),x(30,hne,1,0,"mat-progress-bar",17),d(),d(),d(),d(),d()),2&e){let o,r,s;y(5),v("formGroup",i.form),y(6),v("ngForOf",i.categoryTypeKeys),y(1),v("ngIf",null==(o=i.form.get("category"))?null:o.hasError("required")),y(5),v("ngForOf",i.periodTypeKeys),y(1),v("ngIf",null==(r=i.form.get("period"))?null:r.hasError("required")),y(5),v("ngIf",null==(s=i.form.get("name"))?null:s.hasError("required")),y(2),v("disabled",i.isLoading),y(2),v("disabled",i.form.invalid||i.isLoading),y(3),v("ngIf",i.isLoading)}},directives:[QT,KT,kS,bS,Fa,Qy,Fc,gI,yS,hy,tn,pt,Jk,_h,U7,No,W7,Iy,M9,X9],styles:[""]}),n})();function pne(n,t){if(1&n&&(u(0,"p"),u(1,"b"),C(2),d(),d()),2&n){const e=_();y(2),Xt("Status Code: ",e.data.status,"")}}let mne=(()=>{class n{constructor(e){this.data=e}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(m(Oc))},n.\u0275cmp=Z({type:n,selectors:[["app-error-dialog"]],decls:9,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],[1,"error-message"],["mat-dialog-actions",""],["mat-raised-button","","mat-dialog-close","","color","primary","type","button"]],template:function(e,i){1&e&&(u(0,"h1",0),C(1,"An error has occurred!"),d(),u(2,"div",1),x(3,pne,3,1,"p",2),u(4,"p",3),C(5),d(),d(),u(6,"div",4),u(7,"button",5),C(8,"Close"),d(),d()),2&e&&(y(3),v("ngIf",i.data.status),y(2),Xt(" ",null==i.data?null:i.data.message," "))},directives:[Uy,Wh,pt,qh,No,Uh],styles:[".error-message[_ngcontent-%COMP%]{background:#eee;padding:1rem;font-family:monospace;word-break:break-all}"]}),n})(),lN=(()=>{class n{constructor(e){this.dialogRef=e}ngOnInit(){}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(m(ds))},n.\u0275cmp=Z({type:n,selectors:[["app-confirm-delete-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","","align","end"],["mat-button","","type","button",3,"click"],["mat-button","","type","button","cdkFocusInitial","","color","accent",3,"mat-dialog-close"]],template:function(e,i){1&e&&(u(0,"h1",0),C(1,"Confirm delete"),d(),u(2,"div",1),C(3,"Are you sure you want to permanently delete this item?"),d(),u(4,"div",2),u(5,"button",3),M("click",function(){return i.onCancel()}),C(6,"No"),d(),u(7,"button",4),C(8,"Yes"),d(),d()),2&e&&(y(7),v("mat-dialog-close",!0))},directives:[Uy,Wh,qh,No,Uh],styles:[""]}),n})();function gne(n,t){if(1&n){const e=F();u(0,"span",7),M("click",function(){return S(e),_(2).onEditImage()}),C(1," edit "),d()}}function _ne(n,t){if(1&n){const e=F();u(0,"div",4),x(1,gne,2,0,"span",5),u(2,"span",6),M("click",function(){return S(e),_().onDeleteImage()}),C(3," delete "),d(),d()}if(2&n){const e=_();y(1),v("ngIf",!e.isErrored&&!e.isPrizesBoard)}}let rv=(()=>{class n{constructor(e,i,o){this.dialog=e,this.dialogRef=i,this.data=o,this.isViewOnly=!1,this.category="",this.isPrizesBoard=!1,this.isErrored=!1,this.itemId=null}ngOnInit(){!0===this.data.isViewOnly&&(this.isViewOnly=!0),this.data.category&&(this.category=this.data.category),!0===this.data.isPrizesBoard&&(this.isPrizesBoard=!0),this.data.itemId||!0===this.data.isViewOnly?this.itemId=this.data.itemId:(this.isErrored=!0,console.error("An error occurred while viewing a board item","No ID provided for item for editing purposes"))}onDeleteImage(){var e=this;this.dialog.open(lN,{position:{top:"2vh"}}).afterClosed().subscribe(function(){var o=Ot(function*(r){!0===r&&e.dialogRef.close({isDelete:r})});return function(r){return o.apply(this,arguments)}}())}onEditImage(){var e=this;this.dialog.open(Ine,{data:{itemId:this.itemId,category:this.category,isPrizesBoard:this.isPrizesBoard},position:{top:"2vh"}}).afterClosed().subscribe(function(){var o=Ot(function*(r){!0===r&&e.dialogRef.close({isEdited:r})});return function(r){return o.apply(this,arguments)}}())}}return n.\u0275fac=function(e){return new(e||n)(m(Oo),m(ds),m(Oc))},n.\u0275cmp=Z({type:n,selectors:[["app-image-view-dialog"]],decls:5,vars:7,consts:[[1,"content"],["alt","",3,"defaultImage","errorImage","lazyLoad","useSrcset","decode"],["class","title",4,"ngIf"],[1,"material-icons","close",3,"mat-dialog-close"],[1,"title"],["class","material-icons edit me-5",3,"click",4,"ngIf"],[1,"material-icons","command",3,"click"],[1,"material-icons","edit","me-5",3,"click"]],template:function(e,i){1&e&&(u(0,"div",0),O(1,"img",1),x(2,_ne,4,1,"div",2),u(3,"span",3),C(4," close "),d(),d()),2&e&&(y(1),z("lazyLoad",i.data.imageUrl),v("defaultImage","/assets/images/image-placeholder.png")("errorImage","/assets/images/image-placeholder.png")("useSrcset",!0)("decode",!0),y(1),v("ngIf",!i.isViewOnly),y(1),v("mat-dialog-close",!1))},directives:[$f,pt,Uh],styles:[""]}),n})();const yne=["fileInput"],cN=function(n,t,e,i,o){return{pin1:n,pin2:t,pin3:e,pin4:i,pin5:o}};function bne(n,t){if(1&n){const e=F();u(0,"div",21),u(1,"img",22),M("click",function(){const r=S(e).$implicit;return _().onShowImage(r.id,r.imageUrl)}),d(),O(2,"div",23),O(3,"div",24),d()}if(2&n){const e=t.$implicit;y(1),z("lazyLoad",e.imageUrl),v("defaultImage","/assets/images/image-placeholder.png")("errorImage","/assets/images/image-placeholder.png")("useSrcset",!0)("decode",!0),y(1),v("ngClass",Br(7,cN,1===e.pinNumber,2===e.pinNumber,3===e.pinNumber,4===e.pinNumber,5===e.pinNumber)),y(1),v("ngClass",Br(13,cN,1===e.pinNumber,2===e.pinNumber,3===e.pinNumber,4===e.pinNumber,5===e.pinNumber))}}const sv=function(n){return{active:n}},av=function(){return["/prizes-board"]},vne=function(){return{filter:"Prize1"}},Cne=function(){return{filter:"Prize2"}},wne=function(){return{filter:"Prize3"}};let Dne=(()=>{class n{constructor(e,i,o,r,s,a){this.el=e,this.renderer=i,this.route=o,this.dialog=r,this.errorDialogService=s,this.boardService=a,this.itemCountSource=new wt(0),this.categoryFilter=kt.Prize1,this.isLoading=!1,this.itemCount$=this.itemCountSource.asObservable()}get categoryFilterDisplay(){switch(this.categoryFilter){case kt.Prize1:return"Prize 1";case kt.Prize2:return"Prize 2";case kt.Prize3:return"Prize 3";default:return""}}ngOnInit(){this.renderer.addClass(this.el.nativeElement.ownerDocument.body,"background-board"),this.route.queryParams.subscribe(e=>{e.filter?(this.categoryFilter=kt[e.filter],this.loadBoard(e.filter)):(this.categoryFilter=kt.Prize1,this.loadBoard(kt.Prize1))})}onShowImage(e,i){var o=this;this.dialog.open(rv,{data:{imageUrl:i,category:this.categoryFilter,isPrizesBoard:!0,itemId:e},panelClass:"image-view-dialog",position:{top:"1vh"}}).afterClosed().subscribe(function(){var s=Ot(function*(a){!0===(null==a?void 0:a.isDelete)&&(yield o.deleteImage(e))});return function(a){return s.apply(this,arguments)}}())}onCloseImage(){this.selectedBoard=null}onImageCreate(){this.dialog.open(aN,{data:{category:this.categoryFilter},position:{top:"1vh"}}).afterClosed().subscribe(i=>{i&&(i.pinNumber=this.getRandomIntInclusive(),this.boards.unshift(i),this.itemCountSource.next(this.boards.length))})}loadBoard(e){var i=this;return Ot(function*(){try{i.isLoading=!0;const o=yield i.boardService.list(e);o.forEach(r=>r.pinNumber=i.getRandomIntInclusive()),i.boards=o.sort((r,s)=>s.createdAt-r.createdAt),i.itemCountSource.next(i.boards.length)}catch(o){console.error("An error occurred while loading the board",o),i.errorDialogService.openDialog("An error occurred. Please try again later.")}finally{i.isLoading=!1}})()}deleteImage(e){var i=this;return Ot(function*(){try{if(i.isLoading=!0,!0===(yield i.boardService.delete(e))){const r=i.boards.map(s=>s.id).indexOf(e);r>=0&&(i.boards.splice(r,1),i.itemCountSource.next(i.boards.length))}}catch(o){console.error("An error occurred while deleting a board",o),i.errorDialogService.openDialog("An error occurred. Please try again later.")}finally{i.isLoading=!1}})()}getRandomIntInclusive(e=1,i=5){return e=Math.ceil(e),i=Math.floor(i),Math.floor(Math.random()*(i-e+1)+e)}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(St),m($i),m(Oo),m($o),m(Bc))},n.\u0275cmp=Z({type:n,selectors:[["app-prizes-board"]],viewQuery:function(e,i){if(1&e&&$e(yne,5),2&e){let o;B(o=H())&&(i.fileInputRef=o.first)}},decls:33,vars:26,consts:[[1,"container","pt-5","pb-4"],[1,"row"],[1,"text-center"],[1,"fs-1","color-white"],[1,"navbar-container"],[1,"navbar","navbar-expand-md","navbar-light","mx-auto"],[1,"container"],[2,"width","40px"],["mat-icon-button","","type","button","data-bs-toggle","collapse","data-bs-target",".navbar-collapse.show",1,"large",3,"disabled","click"],[1,""],[1,"d-md-none","d-block"],[1,"navbar-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarNav",1,"collapse","navbar-collapse"],[1,"navbar-nav","mx-auto","my-2"],[1,"nav-item"],["data-bs-toggle","collapse","data-bs-target",".navbar-collapse.show",1,"nav-link",3,"ngClass","routerLink","queryParams"],[1,"container","py-5"],["id","gallery-single"],["class","gallery-item",4,"ngFor","ngForOf"],[1,"gallery-item"],["alt","",3,"defaultImage","errorImage","lazyLoad","useSrcset","decode","click"],[1,"pin-first",3,"ngClass"],[1,"pin-second",3,"ngClass"]],template:function(e,i){1&e&&(u(0,"div",0),u(1,"div",1),u(2,"div",2),u(3,"h1",3),C(4,"MyVision Prizes"),d(),d(),d(),d(),u(5,"div",4),u(6,"nav",5),u(7,"div",6),u(8,"div",7),u(9,"button",8),M("click",function(){return i.onImageCreate()}),fe(10,"async"),u(11,"mat-icon",9),C(12,"add_circle_outline"),d(),d(),d(),u(13,"div",10),u(14,"span",11),C(15),d(),d(),u(16,"button",12),O(17,"span",13),d(),u(18,"div",14),u(19,"ul",15),u(20,"li",16),u(21,"a",17),C(22,"Prize 1"),d(),d(),u(23,"li",16),u(24,"a",17),C(25,"Prize 2"),d(),d(),u(26,"li",16),u(27,"a",17),C(28,"Prize 3"),d(),d(),d(),d(),d(),d(),d(),u(29,"div",18),u(30,"div",1),u(31,"div",19),x(32,bne,4,19,"div",20),d(),d(),d()),2&e&&(y(9),v("disabled",st(10,12,i.itemCount$)>0),y(6),we(i.categoryFilterDisplay),y(6),v("ngClass",Ne(14,sv,"Prize1"==i.categoryFilter))("routerLink",vt(16,av))("queryParams",vt(17,vne)),y(3),v("ngClass",Ne(18,sv,"Prize2"==i.categoryFilter))("routerLink",vt(20,av))("queryParams",vt(21,Cne)),y(3),v("ngClass",Ne(22,sv,"Prize3"==i.categoryFilter))("routerLink",vt(24,av))("queryParams",vt(25,wne)),y(5),v("ngForOf",i.boards))},directives:[Vf,No,Yy,Qc,uc,tn,$f],pipes:[Xg],styles:[""]}),n})();const Mne=["fileInput"];function Ene(n,t){1&n&&(u(0,"div"),u(1,"h1",7),C(2," Congrats on getting this far, please get your parents to upload your reward in the parent's section and come back here once they have done it. "),d(),d())}function xne(n,t){if(1&n&&(u(0,"div"),u(1,"h1",8),C(2),d(),d()),2&n){const e=_();y(2),Xt(" Congratulations on reaching ",e.categoryFilterDisplay,"! You have earned the following reward. Show this to your parents to claim your prize. ")}}const uN=function(n,t,e,i,o){return{pin1:n,pin2:t,pin3:e,pin4:i,pin5:o}};function Sne(n,t){if(1&n){const e=F();u(0,"div",9),u(1,"img",10),M("click",function(){const r=S(e).$implicit;return _().onShowImage(r.id,r.imageUrl)}),d(),O(2,"div",11),O(3,"div",12),d()}if(2&n){const e=t.$implicit;y(1),z("lazyLoad",e.imageUrl),v("defaultImage","/assets/images/image-placeholder.png")("errorImage","/assets/images/image-placeholder.png")("useSrcset",!0)("decode",!0),y(1),v("ngClass",Br(7,uN,1===e.pinNumber,2===e.pinNumber,3===e.pinNumber,4===e.pinNumber,5===e.pinNumber)),y(1),v("ngClass",Br(13,uN,1===e.pinNumber,2===e.pinNumber,3===e.pinNumber,4===e.pinNumber,5===e.pinNumber))}}let Tne=(()=>{class n{constructor(e,i,o,r,s,a){this.el=e,this.renderer=i,this.route=o,this.dialog=r,this.errorDialogService=s,this.boardService=a,this.categoryFilter=kt.Prize1,this.isLoading=!1}get categoryFilterDisplay(){switch(this.categoryFilter){case kt.Prize1:return"prize 1";case kt.Prize2:return"prize 2";case kt.Prize3:return"prize 3";default:return""}}ngOnInit(){this.renderer.addClass(this.el.nativeElement.ownerDocument.body,"background-board"),this.route.queryParams.subscribe(e=>{e.filter&&(this.categoryFilter=kt[e.filter],this.loadBoard(e.filter))})}onShowImage(e,i){this.dialog.open(rv,{data:{imageUrl:i,isViewOnly:!0},panelClass:"image-view-dialog",position:{top:"1vh"}}).afterClosed().subscribe(function(){var r=Ot(function*(s){});return function(s){return r.apply(this,arguments)}}())}onCloseImage(){this.selectedBoard=null}loadBoard(e){var i=this;return Ot(function*(){try{i.isLoading=!0;const o=yield i.boardService.list(e);o.forEach(r=>r.pinNumber=i.getRandomIntInclusive()),i.boards=o.sort((r,s)=>s.createdAt-r.createdAt)}catch(o){console.error("An error occurred while loading the board",o),i.errorDialogService.openDialog("An error occurred. Please try again later.")}finally{i.isLoading=!1}})()}getRandomIntInclusive(e=1,i=5){return e=Math.ceil(e),i=Math.floor(i),Math.floor(Math.random()*(i-e+1)+e)}}return n.\u0275fac=function(e){return new(e||n)(m(V),m(St),m($i),m(Oo),m($o),m(Bc))},n.\u0275cmp=Z({type:n,selectors:[["app-prize-view"]],viewQuery:function(e,i){if(1&e&&$e(Mne,5),2&e){let o;B(o=H())&&(i.fileInputRef=o.first)}},decls:9,vars:3,consts:[[1,"container","pt-5","pb-4"],[1,"row"],[1,"text-center"],[4,"ngIf"],[1,"container"],["id","gallery-single"],["class","gallery-item",4,"ngFor","ngForOf"],[1,"color-white","mx-auto"],[1,"color-white"],[1,"gallery-item"],["alt","",3,"defaultImage","errorImage","lazyLoad","useSrcset","decode","click"],[1,"pin-first",3,"ngClass"],[1,"pin-second",3,"ngClass"]],template:function(e,i){1&e&&(u(0,"div",0),u(1,"div",1),u(2,"div",2),x(3,Ene,3,0,"div",3),x(4,xne,3,1,"div",3),d(),d(),d(),u(5,"div",4),u(6,"div",1),u(7,"div",5),x(8,Sne,4,19,"div",6),d(),d(),d()),2&e&&(y(3),v("ngIf",0==(null==i.boards?null:i.boards.length)),y(1),v("ngIf",(null==i.boards?null:i.boards.length)>0),y(4),v("ngForOf",i.boards))},directives:[pt,tn,$f,uc],styles:[""]}),n})();function kne(n,t){if(1&n&&(u(0,"mat-option",8),C(1),d()),2&n){const e=t.$implicit;v("value",e.value),y(1),Xt(" ",e.display," ")}}let Ine=(()=>{class n{constructor(e,i,o,r,s){this.router=e,this.errorDialogService=i,this.boardService=o,this.dialogRef=r,this.data=s,this.options=[],this.selectedOption="",this.isPrizesBoard=!1,this.itemId=null,this.isErrored=!1}ngOnInit(){var e,i,o,r;!0===(null===(e=this.data)||void 0===e?void 0:e.isPrizesBoard)?(this.isPrizesBoard=null===(i=this.data)||void 0===i?void 0:i.isPrizesBoard,this.options=[{value:"Prize1",display:"Prize 1"},{value:"Prize2",display:"Prize 2"},{value:"Prize3",display:"Prize 3"}]):this.options=[{value:"Health",display:"Health"},{value:"Wealth",display:"Wealth"},{value:"Business",display:"Business"},{value:"Education",display:"Education"},{value:"Family",display:"Family"},{value:"Giving",display:"Giving"},{value:"Fun",display:"Fun"},{value:"Spiritual",display:"Spiritual"}],(null===(o=this.data)||void 0===o?void 0:o.category)&&(this.selectedOption=null===(r=this.data)||void 0===r?void 0:r.category),this.data.itemId?this.itemId=this.data.itemId:(this.isErrored=!0,console.error("An error occurred while editing a board item","No ID provided for item"),this.errorDialogService.openDialog("An error occurred. Please try again later."))}onCancel(){this.dialogRef.close(!1)}onSave(){var e=this;return Ot(function*(){try{yield e.boardService.updateCategory(e.itemId,e.selectedOption),yield e.router.navigate(!0===e.isPrizesBoard?["/prizes-board"]:["/board"],{queryParams:{filter:e.selectedOption}}),e.dialogRef.close(!0)}catch(i){console.error("An error occurred while editing a board item",i),e.errorDialogService.openDialog("An error occurred. Please try again later.")}})()}}return n.\u0275fac=function(e){return new(e||n)(m(bn),m($o),m(Bc),m(ds),m(Oc))},n.\u0275cmp=Z({type:n,selectors:[["app-edit-image-dialog"]],decls:13,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","","type","button",3,"click"],["mat-button","","type","button","cdkFocusInitial","","color","accent",3,"disabled","click"],[3,"value"]],template:function(e,i){1&e&&(u(0,"h1",0),C(1,"Change category"),d(),u(2,"div",1),u(3,"mat-form-field",2),u(4,"mat-label"),C(5,"Category"),d(),u(6,"mat-select",3),M("valueChange",function(r){return i.selectedOption=r}),x(7,kne,2,2,"mat-option",4),d(),d(),d(),u(8,"div",5),u(9,"button",6),M("click",function(){return i.onCancel()}),C(10,"Cancel"),d(),u(11,"button",7),M("click",function(){return i.onSave()}),C(12," Save "),d(),d()),2&e&&(y(6),v("value",i.selectedOption),y(1),v("ngForOf",i.options),y(4),v("disabled",i.isErrored))},directives:[Uy,Wh,Qy,Fc,gI,tn,qh,No,Iy],styles:[""]}),n})(),$o=(()=>{class n{constructor(e){this.dialog=e,this.opened=!1}openDialog(e,i){this.opened||(this.opened=!0,this.dialog.open(mne,{data:{message:e,status:i},maxHeight:"100%",width:"540px",disableClose:!0,hasBackdrop:!0}).afterClosed().subscribe(()=>{this.opened=!1}))}}return n.\u0275fac=function(e){return new(e||n)(E(Oo))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ane=(()=>{class n{constructor(e,i){this.errorDialogService=e,this.zone=i}handleError(e){console.error("Error from global error handler",e),this.zone.run(()=>{this.errorDialogService.openDialog("An error occurred. Please try again later.")})}}return n.\u0275fac=function(e){return new(e||n)(E($o),E(J))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class Rne{constructor(t){this.uid=t}}let su=(()=>{class n{constructor(e,i,o,r){this.router=e,this.zone=i,this.userStorageService=o,this.errorDialogService=r}canActivate(e,i){if(e.queryParams.uid)return this.userStorageService.setUser(new Rne(e.queryParams.uid)),!0;const o=this.userStorageService.getUser();return!(!o||!o.uid)||(this.zone.run(()=>this.errorDialogService.openDialog("No user found")),!1)}}return n.\u0275fac=function(e){return new(e||n)(E(bn),E(J),E(cf),E($o))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Nne=[{path:"board",component:GZ,canActivate:[su]},{path:"goals",component:rne,canActivate:[su]},{path:"prizes-board",component:Dne,canActivate:[su]},{path:"prize",component:Tne,canActivate:[su]},{path:"goal-create",component:fne,canActivate:[su]},{path:"**",redirectTo:""}];let One=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n}),n.\u0275inj=X({imports:[[OA.forRoot(Nne,{useHash:!0})],OA]}),n})(),Fne=(()=>{class n{constructor(e,i){this.route=e,this.userStorageService=i,this.title="My Vision Board"}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(m($i),m(cf))},n.\u0275cmp=Z({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&O(0,"router-outlet")},directives:[Ob],styles:[""]}),n})(),Pne=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ee({type:n,bootstrap:[Fne]}),n.\u0275inj=X({providers:[{provide:W_,useClass:iq,multi:!0},{provide:si,useClass:Ane}],imports:[[c_,tj,One,_j,nq,KS,sG,vZ,hee,RZ]]}),n})();(function(){if(gM)throw new Error("Cannot enable prod mode after platform setup.");mM=!1})(),v$().bootstrapModule(Pne).catch(n=>console.error(n))}},tl=>{tl(tl.s=452)}]);