(self.webpackChunknostra_batch_ui=self.webpackChunknostra_batch_ui||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7050:function(t,e,n){"use strict";function r(t){return"function"==typeof t}let i=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function s(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class h{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_unsubscribe:n,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof h)e.remove(this);else if(null!==e)for(let r=0;rt.concat(e instanceof u?e.errors:e),[])}h.EMPTY=((d=new h).closed=!0,d);const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[f](){return this}static create(t,e,n){const r=new g(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends g{constructor(t,e,n,i){super(),this._parentSubscriber=t;let o,s=this;r(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==a&&(s=Object.create(e),r(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(s(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,i=function(t,e,n){if(t){if(t instanceof g)return t;if(t[f])return t[f]()}return t||e||n?new g(t,e,n):new g(a)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),o.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class C extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class S extends g{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new S(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;inew k(t,e),t})();class k extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function O(t){return t&&"function"==typeof t.schedule}class T extends g{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const x=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function I(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const P=t=>{if(t&&"function"==typeof t[_])return(t=>e=>{const n=t[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(R(t))return x(t);if(I(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s),e))(t);if(t&&"function"==typeof t[A])return(t=>e=>{const n=t[A]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${c(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function M(t,e,n,r,i=new T(t,n,r)){if(!i.closed)return e instanceof b?e.subscribe(i):P(e)(i)}class D extends g{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function N(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new L(t,e))}}class L{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new F(t,this.project,this.thisArg))}}class F extends g{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function U(t,e){return new b(n=>{const r=new h;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function H(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new b(n=>{const r=new h;return r.add(e.schedule(()=>{const i=t[_]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(I(t))return function(t,e){return new b(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(R(t))return U(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[A](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(P(t))}function V(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(V((n,r)=>H(t(n,r)).pipe(N((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends D{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return V(y,t)}function q(t,e){return e?U(t,e):new b(x(t))}function K(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return O(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:z(e)(q(t,n))}function $(){return function(t){return t.lift(new G(t))}}class G{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new W(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class W extends g{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}class Y extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return $()(this)}}const Q=(()=>{const t=Y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class X extends S{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 Z(){return new E}function J(){return t=>$()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,Q);return r.source=e,r.subjectFactory=n,r}}(Z)(t))}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function nt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(nt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function rt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const it=tt({__forward_ref__:tt});function ot(t){return t.__forward_ref__=ot,t.toString=function(){return nt(this())},t}function st(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(it)&&t.__forward_ref__===ot}class lt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ct(t){return"string"==typeof t?t:null==t?"":String(t)}function ut(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ct(t)}function ht(t,e){const n=e?` in ${e}`:"";throw new lt("201",`No provider for ${ut(t)} found${n}`)}function dt(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}function pt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ft(t){return{providers:t.providers||[],imports:t.imports||[]}}function gt(t){return mt(t,yt)||mt(t,vt)}function mt(t,e){return t.hasOwnProperty(e)?t[e]:null}function _t(t){return t&&(t.hasOwnProperty(bt)||t.hasOwnProperty(wt))?t[bt]:null}const yt=tt({"\u0275prov":tt}),bt=tt({"\u0275inj":tt}),vt=tt({ngInjectableDef:tt}),wt=tt({ngInjectorDef:tt});var Ct=(()=>((Ct=Ct||{})[Ct.Default=0]="Default",Ct[Ct.Host=1]="Host",Ct[Ct.Self=2]="Self",Ct[Ct.SkipSelf=4]="SkipSelf",Ct[Ct.Optional=8]="Optional",Ct))();let St;function Et(t){const e=St;return St=t,e}function kt(t,e,n){const r=gt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ct.Optional?null:void 0!==e?e:void ht(nt(t),"Injector")}function Ot(t){return{toString:t}.toString()}var Tt=(()=>((Tt=Tt||{})[Tt.OnPush=0]="OnPush",Tt[Tt.Default=1]="Default",Tt))(),xt=(()=>((xt=xt||{})[xt.Emulated=0]="Emulated",xt[xt.None=2]="None",xt[xt.ShadowDom=3]="ShadowDom",xt))();const At="undefined"!=typeof globalThis&&globalThis,Rt="undefined"!=typeof window&&window,It="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pt="undefined"!=typeof global&&global,Mt=At||Pt||Rt||It,Dt={},Nt=[],Lt=tt({"\u0275cmp":tt}),Ft=tt({"\u0275dir":tt}),Ut=tt({"\u0275pipe":tt}),Ht=tt({"\u0275mod":tt}),Vt=tt({"\u0275loc":tt}),Bt=tt({"\u0275fac":tt}),jt=tt({__NG_ELEMENT_ID__:tt});let zt=0;function qt(t){return Ot(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Tt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Nt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xt.Emulated,id:"c",styles:t.styles||Nt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=zt++,n.inputs=Yt(t.inputs,e),n.outputs=Yt(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Kt):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map($t):null,n})}function Kt(t){return Zt(t)||function(t){return t[Ft]||null}(t)}function $t(t){return function(t){return t[Ut]||null}(t)}const Gt={};function Wt(t){return Ot(()=>{const e={type:t.type,bootstrap:t.bootstrap||Nt,declarations:t.declarations||Nt,imports:t.imports||Nt,exports:t.exports||Nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Gt[t.id]=t.type),e})}function Yt(t,e){if(null==t)return Dt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const Qt=qt;function Xt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[Lt]||null}function Jt(t,e){const n=t[Ht]||null;if(!n&&!0===e)throw new Error(`Type ${nt(t)} does not have '\u0275mod' property.`);return n}function te(t){return Array.isArray(t)&&"object"==typeof t[1]}function ee(t){return Array.isArray(t)&&!0===t[1]}function ne(t){return 0!=(8&t.flags)}function re(t){return 2==(2&t.flags)}function ie(t){return 1==(1&t.flags)}function oe(t){return null!==t.template}function se(t){return 0!=(512&t[2])}function ae(t,e){return t.hasOwnProperty(Bt)?t[Bt]:null}class le{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ce(){return ue}function ue(t){return t.type.prototype.ngOnChanges&&(t.setInput=de),he}function he(){const t=fe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Dt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function de(t,e,n,r){const i=fe(t)||function(t,e){return t[pe]=e}(t,{previous:Dt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new le(l&&l.currentValue,e,s===Dt),t[r]=e}ce.ngInherit=!0;const pe="__ngSimpleChanges__";function fe(t){return t[pe]||null}const ge="http://www.w3.org/2000/svg";let me;function _e(){return void 0!==me?me:"undefined"!=typeof document?document:void 0}function ye(t){return!!t.listen}const be={createRenderer:(t,e)=>_e()};function ve(t){for(;Array.isArray(t);)t=t[0];return t}function we(t,e){return ve(e[t])}function Ce(t,e){return ve(e[t.index])}function Se(t,e){return t.data[e]}function Ee(t,e){return t[e]}function ke(t,e){const n=e[t];return te(n)?n:n[0]}function Oe(t){return 4==(4&t[2])}function Te(t){return 128==(128&t[2])}function xe(t,e){return null==e?null:t[e]}function Ae(t){t[18]=0}function Re(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ie={lFrame:rn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Pe(){return Ie.bindingsEnabled}function Me(){return Ie.lFrame.lView}function De(){return Ie.lFrame.tView}function Ne(t){return Ie.lFrame.contextLView=t,t[8]}function Le(){let t=Fe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fe(){return Ie.lFrame.currentTNode}function Ue(){const t=Ie.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function He(t,e){const n=Ie.lFrame;n.currentTNode=t,n.isParent=e}function Ve(){return Ie.lFrame.isParent}function Be(){Ie.lFrame.isParent=!1}function je(){return Ie.isInCheckNoChangesMode}function ze(t){Ie.isInCheckNoChangesMode=t}function qe(){const t=Ie.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ke(){return Ie.lFrame.bindingIndex}function $e(){return Ie.lFrame.bindingIndex++}function Ge(t){const e=Ie.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function We(t){Ie.lFrame.inI18n=t}function Ye(t,e){const n=Ie.lFrame;n.bindingIndex=n.bindingRootIndex=t,Qe(e)}function Qe(t){Ie.lFrame.currentDirectiveIndex=t}function Xe(){return Ie.lFrame.currentQueryIndex}function Ze(t){Ie.lFrame.currentQueryIndex=t}function Je(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function tn(t,e,n){if(n&Ct.SkipSelf){let r=e,i=t;for(;!(r=r.parent,null!==r||n&Ct.Host||(r=Je(i),null===r||(i=i[15],10&r.type))););if(null===r)return!1;e=r,t=i}const r=Ie.lFrame=nn();return r.currentTNode=e,r.lView=t,!0}function en(t){const e=nn(),n=t[1];Ie.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function nn(){const t=Ie.lFrame,e=null===t?null:t.child;return null===e?rn(t):e}function rn(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function on(){const t=Ie.lFrame;return Ie.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const sn=on;function an(){const t=on();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ln(){return Ie.lFrame.selectedIndex}function cn(t){Ie.lFrame.selectedIndex=t}function un(){const t=Ie.lFrame;return Se(t.tView,t.selectedIndex)}function hn(){Ie.lFrame.currentNamespace=ge}function dn(){Ie.lFrame.currentNamespace=null}function pn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}class bn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function vn(t,e,n){const r=ye(t);let i=0;for(;ie){s=o-1;break}}}for(;o>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let xn=!0;function An(t){const e=xn;return xn=t,e}let Rn=0;function In(t,e){const n=Mn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Pn(r.data,t),Pn(e,null),Pn(r.blueprint,null));const i=Dn(t,e),o=t.injectorIndex;if(kn(i)){const t=On(i),n=Tn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function Pn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Mn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Dn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const t=i[1],e=t.type;if(r=2===e?t.declTNode:1===e?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Nn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(r=n[jt]),null==r&&(r=n[jt]=Rn++);const i=255&r;e.data[t+(i>>5)]|=1<=0?255&e:Vn:e}(n);if("function"==typeof o){if(!tn(e,t,r))return r&Ct.Host?Ln(i,n,r):Fn(e,n,r,i);try{const t=o(r);if(null!=t||r&Ct.Optional)return t;ht(n)}finally{sn()}}else if("number"==typeof o){let i=null,s=Mn(t,e),a=-1,l=r&Ct.Host?e[16][6]:null;for((-1===s||r&Ct.SkipSelf)&&(a=-1===s?Dn(t,e):e[s+8],-1!==a&&Kn(r,!1)?(i=e[1],s=On(a),e=Tn(a,e)):s=-1);-1!==s;){const t=e[1];if(qn(o,s,t.data)){const t=Bn(s,e,n,i,r,l);if(t!==Hn)return t}a=e[s+8],-1!==a&&Kn(r,e[1].data[s+8]===l)&&qn(o,s,e)?(i=t,s=On(a),e=Tn(a,e)):s=-1}}}return Fn(e,n,r,i)}const Hn={};function Vn(){return new $n(Le(),Me())}function Bn(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],l=jn(a,s,n,null==r?re(a)&&xn:r!=s&&0!=(3&a.type),i&Ct.Host&&o===a);return null!==l?zn(e,s,l,a):Hn}function jn(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=o>>20,u=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(i){const t=s[l];if(t&&oe(t)&&t.type===n)return l}return null}function zn(t,e,n,r){let i=t[n];const o=e.data;if(function(t){return t instanceof bn}(i)){const s=i;s.resolving&&function(t,e){throw new lt("200",`Circular dependency in DI detected for ${t}`)}(ut(o[n]));const a=An(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Et(s.injectImpl):null;tn(t,r,Ct.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const r=ue(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&Et(l),An(a),s.resolving=!1,sn()}}return i}function qn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Bt]||Wn(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[Bt]||Wn(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function Wn(t){return at(t)?()=>{const e=Wn(st(t));return e&&e()}:ae(t)}function Yn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r{const r=Zn(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty(Qn)?t[Qn]:Object.defineProperty(t,Qn,{value:[]})[Qn];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function tr(t,e,n,r){return Ot(()=>{const i=Zn(e);function o(...t){if(this instanceof o)return i.apply(this,t),this;const e=new o(...t);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(Xn)?o[Xn]:Object.defineProperty(o,Xn,{value:{}})[Xn];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(e),r&&r(n,i,...t)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class er{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=pt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const nr=new er("AnalyzeForEntryComponents");class rr{}const ir=tr("ContentChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},e),rr),or=tr("ContentChild",(t,e={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e),rr),sr=tr("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),rr),ar=Function;function lr(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?cr(t,e):e(t))}function ur(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function hr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dr(t,e){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function fr(t,e){const n=gr(t,e);if(n>=0)return t[1|n]}function gr(t,e){return function(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):nt(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(br,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[yr]=null,t}const Ir=xr(Jn("Inject",t=>({token:t})),-1),Pr=xr(Jn("Optional"),8),Mr=xr(Jn("SkipSelf"),4);let Dr,Nr;function Lr(t){var e;return(null===(e=function(){if(void 0===Dr&&(Dr=null,Mt.trustedTypes))try{Dr=Mt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Dr}())||void 0===e?void 0:e.createHTML(t))||t}function Fr(t){var e;return(null===(e=function(){if(void 0===Nr&&(Nr=null,Mt.trustedTypes))try{Nr=Mt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Nr}())||void 0===e?void 0:e.createHTML(t))||t}class Ur{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Hr extends Ur{getTypeName(){return"HTML"}}class Vr extends Ur{getTypeName(){return"Style"}}class Br extends Ur{getTypeName(){return"Script"}}class jr extends Ur{getTypeName(){return"URL"}}class zr extends Ur{getTypeName(){return"ResourceURL"}}function qr(t){return t instanceof Ur?t.changingThisBreaksApplicationSecurity:t}function Kr(t,e){const n=$r(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function $r(t){return t instanceof Ur&&t.getTypeName()||null}function Gr(t){const e=new Yr(t);return function(){try{return!!(new window.DOMParser).parseFromString(Lr(""),"text/html")}catch(t){return!1}}()?new Wr(e):e}class Wr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Lr(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Yr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Lr(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Lr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Zr(t.trim())).join(", ")}function ti(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ei(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ni=ti("area,br,col,hr,img,wbr"),ri=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ii=ti("rp,rt"),oi=ei(ni,ei(ri,ti("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")),ei(ii,ti("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")),ei(ii,ri)),si=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ai=ti("srcset"),li=ei(si,ai,ti("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"),ti("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")),ci=ti("script,style,template");class ui{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!oi.hasOwnProperty(e))return this.sanitizedSomething=!0,!ci.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();oi.hasOwnProperty(e)&&!ni.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(pi(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 hi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,di=/([^\#-~ |!])/g;function pi(t){return t.replace(/&/g,"&").replace(hi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(di,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let fi;function gi(t,e){let n=null;try{fi=fi||Gr(t);let r=e?String(e):"";n=fi.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=fi.getInertBodyElement(r)}while(r!==o);return Lr((new ui).sanitizeChildren(mi(n)||n))}finally{if(n){const t=mi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function mi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var _i=(()=>((_i=_i||{})[_i.NONE=0]="NONE",_i[_i.HTML=1]="HTML",_i[_i.STYLE=2]="STYLE",_i[_i.SCRIPT=3]="SCRIPT",_i[_i.URL=4]="URL",_i[_i.RESOURCE_URL=5]="RESOURCE_URL",_i))();function yi(t){const e=vi();return e?Fr(e.sanitize(_i.HTML,t)||""):Kr(t,"HTML")?Fr(qr(t)):gi(_e(),ct(t))}function bi(t){const e=vi();return e?e.sanitize(_i.URL,t)||"":Kr(t,"URL")?qr(t):Zr(ct(t))}function vi(){const t=Me();return t&&t[12]}const wi="__ngContext__";function Ci(t,e){t[wi]=e}function Si(t){const e=function(t){return t[wi]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ei(t){return t.ngOriginalError}function ki(t,...e){t.error(...e)}class Oi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t&&t.ngErrorLogger||ki}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(Ei(t)):null}_findOriginalError(t){let e=t&&Ei(t);for(;e&&Ei(e);)e=Ei(e);return e||null}}const Ti=/^>|^->||--!>|)/;const Ai=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Mt))();function Ri(t){return t instanceof Function?t():t}var Ii=(()=>((Ii=Ii||{})[Ii.Important=1]="Important",Ii[Ii.DashCase=2]="DashCase",Ii))();let Pi;function Mi(t,e){return Pi(t,e)}function Di(t){const e=t[3];return ee(e)?e[3]:e}function Ni(t){return Fi(t[13])}function Li(t){return Fi(t[4])}function Fi(t){for(;null!==t&&!ee(t);)t=t[4];return t}function Ui(t,e,n,r,i){if(null!=r){let o,s=!1;ee(r)?o=r:te(r)&&(s=!0,r=r[0]);const a=ve(r);0===t&&null!==n?null==i?Qi(e,n,a):Yi(e,n,a,i||null,!0):1===t&&null!==n?Yi(e,n,a,i||null,!0):2===t?lo(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==ve(n)&&Ui(e,t,r,o,i);for(let s=10;st.replace(xi,"\u200b$1\u200b"))}(e))}function ji(t,e,n){return ye(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function zi(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Re(i,-1)),n.splice(r,1)}function qi(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&zi(i,r),e>0&&(t[n-1][4]=r[4]);const o=hr(t,10+e);!function(t,e){uo(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Ki(t,e){if(!(256&e[2])){const n=e[11];ye(n)&&n.destroyNode&&uo(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return $i(t[1],t);for(;e;){let n=null;if(te(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)te(e)&&$i(e[1],e),e=e[3];null===e&&(e=t),te(e)&&$i(e[1],e),n=e&&e[4]}e=n}}(e)}}function $i(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const t=r[i=n[o+1]];n[o].call(t)}if(null!==r){for(let t=i+1;to?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==go(e,c,0)||2&r&&c!==t){if(wo(r))return!1;s=!0}}}}else{if(!s&&!wo(r)&&!wo(l))return!1;if(s&&wo(l))continue;s=!1,r=l|1&r}}return wo(r)||s}function wo(t){return 0==(1&t)}function Co(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!wo(s)&&(e+=ko(o,i),i=""),r=s,o=o||!wo(r);n++}return""!==i&&(e+=ko(o,i)),e}const To={};function xo(t){Ao(De(),Me(),ln()+t,je())}function Ao(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&fn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&gn(e,r,0,n)}cn(n)}function Ro(t,e){return t<<17|e<<2}function Io(t){return t>>17&32767}function Po(t){return 2|t}function Mo(t){return(131068&t)>>2}function Do(t,e){return-131069&t|e<<2}function No(t){return 1|t}function Lo(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&Ao(t,e,20,je()),n(r,i)}finally{cn(o)}}function Ko(t,e,n){if(ne(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,i,s)}}function es(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ns(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function rs(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&ds(n)}}function ds(t){for(let n=Ni(t);null!==n;n=Li(n))for(let t=10;t0&&ds(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ds(r)}}function ps(t,e){const n=ke(e,t),r=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function vs(t){return t[7]||(t[7]=[])}function ws(t){return t.cleanup||(t.cleanup=[])}function Cs(t,e){const n=t[9],r=n?n.get(Oi,null):null;r&&r.handleError(e)}function Ss(t,e,n,r,i){for(let o=0;othis.processProvider(n,t,e)),cr([t],t=>this.processInjectorType(t,[],i)),this.records.set(Os,Fs(void 0,this));const o=this.records.get(xs);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:nt(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=mr,n=Ct.Default){this.assertNotDestroyed();const r=Sr(this),i=Et(void 0);try{if(!(n&Ct.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof er}(t)&>(t);e=n&&this.injectableDefInScope(n)?Fs(Ns(t),As):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&Ct.Self?Ps():this.parent).get(t,e=n&Ct.Optional&&e===mr?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[yr]=o[yr]||[]).unshift(nt(t)),r)throw o;return Rr(o,t,"R3InjectorError",this.source)}throw o}finally{Et(i),Sr(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(nt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=st(t)))return!1;let r=_t(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=_t(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{cr(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Nt))}}this.injectorDefTypes.add(o);const a=ae(o)||(()=>new o);this.records.set(o,Fs(a,As));const l=r.providers;if(null!=l&&!s){const e=t;cr(l,t=>this.processProvider(t,e,l))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=Hs(t=st(t))?t:st(t&&t.provide);const i=function(t,e,n){return Us(t)?Fs(void 0,t.useValue):Fs(Ls(t),As)}(t);if(Hs(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Fs(void 0,As,!0),e.factory=()=>Tr(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){return e.value===As&&(e.value=Rs,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=st(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ns(t){const e=gt(t),n=null!==e?e.factory:ae(t);if(null!==n)return n;if(t instanceof er)throw new Error(`Token ${nt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=dr(e,"?");throw new Error(`Can't resolve all parameters for ${nt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[yt]||t[vt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ls(t,e,n){let r;if(Hs(t)){const e=st(t);return ae(e)||Ns(e)}if(Us(t))r=()=>st(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Tr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>kr(st(t.useExisting));else{const e=st(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ae(e)||Ns(e);r=()=>new e(...Tr(t.deps))}return r}function Fs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Us(t){return null!==t&&"object"==typeof t&&wr in t}function Hs(t){return"function"==typeof t}const Vs=function(t,e,n){return function(t,e=null,n=null,r){const i=Ms(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};class Bs{static create(t,e){return Array.isArray(t)?Vs(t,e,""):Vs(t.providers,t.parent,t.name||"")}}function js(t,e){pn(Si(t)[1],Le())}function zs(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let i;if(oe(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=qs(t.inputs),e.declaredInputs=qs(t.declaredInputs),e.outputs=qs(t.outputs);const n=i.hostBindings;n&&Gs(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Ks(t,o),s&&$s(t,s),et(t.inputs,i.inputs),et(t.declaredInputs,i.declaredInputs),et(t.outputs,i.outputs),oe(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Sn(i.hostAttrs,n=Sn(n,i.hostAttrs))}}(r)}function qs(t){return t===Dt?{}:t===Nt?[]:t}function Ks(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function $s(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function Gs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}Bs.THROW_IF_NOT_FOUND=mr,Bs.NULL=new Ts,Bs.\u0275prov=pt({token:Bs,providedIn:"any",factory:()=>kr(Os)}),Bs.__NG_ELEMENT_ID__=-1;let Ws=null;function Ys(){if(!Ws){const t=Mt.Symbol;if(t&&t.iterator)Ws=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ve(t[r.index])):r.index;if(ye(n)){let s=null;if(!a&&l&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;on?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=wa(r,e,u,o,!1);const t=n.listen(f,i,o);h.push(o,t),c&&c.push(i,m,g,g+1)}}else o=wa(r,e,u,o,!0),f.addEventListener(i,o,s),h.push(o),c&&c.push(i,m,g,s)}else o=wa(r,e,u,o,!1);const p=r.outputs;let f;if(d&&null!==p&&(f=p[i])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ie.lFrame.contextLView))[8]}(t)}function Sa(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i=0}const Ra={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ia(t){return t.substring(Ra.key,Ra.keyEnd)}function Pa(t,e){const n=Ra.textEnd;return n===e?-1:(e=Ra.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ra.key=e,n),Ma(t,e,n))}function Ma(t,e,n){for(;e=0;n=Pa(e,n))pr(t,Ia(e),!0)}function Ua(t,e,n,r){const i=Me(),o=De(),s=Ge(2);o.firstUpdatePass&&Ba(o,t,s,r),e!==To&&ta(i,s,e)&&qa(o,o.data[ln()],i,i[11],t,i[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=nt(qr(t)))),t}(e,n),r,s)}function Ha(t,e,n,r){const i=De(),o=Ge(2);i.firstUpdatePass&&Ba(i,null,o,r);const s=Me();if(n!==To&&ta(s,o,n)){const a=i.data[ln()];if(Ga(a,r)&&!Va(i,o)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=rt(t,n||"")),la(i,a,s,n,r)}else!function(t,e,n,r,i,o,s,a){i===To&&(i=Nt);let l=0,c=0,u=0=t.expandoStartIndex}function Ba(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[ln()],s=Va(t,n);Ga(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=Ie.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=za(n=ja(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=ja(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Mo(r))return t[Io(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=ja(null,t,e,n[1],r),n=za(n,e.attrs,r),function(t,e,n,r){t[Io(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=Io(t[a+1]);t[r+1]=Ro(e,a),0!==e&&(t[e+1]=Do(t[e+1],r)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=Ro(a,0),0!==a&&(t[a+1]=Do(t[a+1],r)),a=r;else t[r+1]=Ro(l,0),0===a?a=r:t[l+1]=Do(t[l+1],r),l=r;u&&(t[r+1]=Po(t[r+1])),xa(t,c,r,!0),xa(t,c,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&gr(o,e)>=0&&(n[r+1]=No(n[r+1]))}(e,c,t,r,o),s=Ro(a,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function ja(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[i],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[i+1];u===To&&(u=c?Nt:void 0);let h=c?fr(u,r):l===r?u:void 0;if(o&&!$a(h)&&(h=fr(e,r)),$a(h)&&(a=h,s))return a;const d=t[i+1];i=s?Io(d):Mo(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=fr(t,r))}return a}function $a(t){return void 0!==t}function Ga(t,e){return 0!=(t.flags&(e?16:32))}function Wa(t,e=""){const n=Me(),r=De(),i=t+20,o=r.firstCreatePass?Uo(r,i,1,e,null):r.data[i],s=n[i]=Hi(n[11],e);io(r,n,s,o),He(o,!1)}function Ya(t){return Qa("",t,""),Ya}function Qa(t,e,n){const r=Me(),i=ra(r,t,e,n);return i!==To&&Es(r,ln(),i),Qa}function Xa(t,e,n,r,i){const o=Me(),s=function(t,e,n,r,i,o){const s=ea(t,Ke(),n,i);return Ge(2),s?e+ct(n)+r+ct(i)+o:To}(o,t,e,n,r,i);return s!==To&&Es(o,ln(),s),Xa}function Za(t,e,n){const r=Me();return ta(r,$e(),e)&&Zo(De(),un(),r,t,e,r[11],n,!0),Za}const Ja=void 0;var tl=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["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"]],Ja,[["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"]],Ja,[["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}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let el={};function nl(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=il(e);if(n)return n;const r=e.split("-")[0];if(n=il(r),n)return n;if("en"===r)return tl;throw new Error(`Missing locale data for the locale "${t}".`)}function rl(t){return nl(t)[ol.PluralCase]}function il(t){return t in el||(el[t]=Mt.ng&&Mt.ng.common&&Mt.ng.common.locales&&Mt.ng.common.locales[t]),el[t]}var ol=(()=>((ol=ol||{})[ol.LocaleId=0]="LocaleId",ol[ol.DayPeriodsFormat=1]="DayPeriodsFormat",ol[ol.DayPeriodsStandalone=2]="DayPeriodsStandalone",ol[ol.DaysFormat=3]="DaysFormat",ol[ol.DaysStandalone=4]="DaysStandalone",ol[ol.MonthsFormat=5]="MonthsFormat",ol[ol.MonthsStandalone=6]="MonthsStandalone",ol[ol.Eras=7]="Eras",ol[ol.FirstDayOfWeek=8]="FirstDayOfWeek",ol[ol.WeekendRange=9]="WeekendRange",ol[ol.DateFormat=10]="DateFormat",ol[ol.TimeFormat=11]="TimeFormat",ol[ol.DateTimeFormat=12]="DateTimeFormat",ol[ol.NumberSymbols=13]="NumberSymbols",ol[ol.NumberFormats=14]="NumberFormats",ol[ol.CurrencyCode=15]="CurrencyCode",ol[ol.CurrencySymbol=16]="CurrencySymbol",ol[ol.CurrencyName=17]="CurrencyName",ol[ol.Currencies=18]="Currencies",ol[ol.Directionality=19]="Directionality",ol[ol.PluralCase=20]="PluralCase",ol[ol.ExtraData=21]="ExtraData",ol))();const sl=["zero","one","two","few","many"],al="en-US",ll={marker:"element"},cl={marker:"ICU"};var ul=(()=>((ul=ul||{})[ul.SHIFT=2]="SHIFT",ul[ul.APPEND_EAGERLY=1]="APPEND_EAGERLY",ul[ul.COMMENT=2]="COMMENT",ul))();let hl=al;function dl(t){(function(t,e){null==t&&dt(e,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(hl=t.toLowerCase().replace(/_/g,"-"))}function pl(t,e,n){const r=e.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?to(t,0,n):ve(n[i])}function fl(t,e,n,r,i){const o=e.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&e.type||(a=s,s=i),null!==s&&0==(2&e.flags))for(let e=1;e1)for(let n=t.length-2;n>=0;n--){const r=t[n];ml(r)||_l(r,e)&&null===yl(r)&&bl(r,e.index)}}function ml(t){return!(64&t.type)}function _l(t,e){return ml(e)||t.index>e.index}function yl(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function bl(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(ro(pl,fl),t.insertBeforeIndex=e)}function vl(t,e){const n=t.data[e];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function wl(t,e,n){const r=Ho(t,n,64,null,null);return gl(e,r),r}function Cl(t,e){const n=e[t.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Sl(t){return t>>>17}function El(t){return(131070&t)>>>1}let kl=0,Ol=0;function Tl(t,e,n,r){const i=n[11];let o,s=null;for(let a=0;a>>1,n),null,null,d,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case cl:const t=e[++a],r=e[++a];null===n[r]&&Ci(n[r]=Bi(i,t),n);break;case ll:const o=e[++a],s=e[++a];null===n[s]&&Ci(n[s]=ji(i,o,null),n)}}}function xl(t,e,n,r,i){for(let o=0;o>>2;switch(3&o){case 1:const o=n[++s],l=n[++s],c=t.data[a];"string"==typeof c?as(e[11],e[a],null,c,o,i,l):Zo(t,c,e,o,i,e[11],l,!1);break;case 0:const u=e[a];null!==u&&Vi(e[11],u,i);break;case 2:Rl(t,vl(t,a),e,i);break;case 3:Al(t,vl(t,a),r,e)}}}}else{const i=n[o+1];if(i>0&&3==(3&i)){const n=vl(t,i>>>2);e[n.currentCaseLViewIndex]<0&&Al(t,n,r,e)}}o+=a}}function Al(t,e,n,r){let i=r[e.currentCaseLViewIndex];if(null!==i){let o=kl;i<0&&(i=r[e.currentCaseLViewIndex]=~i,o=-1),xl(t,r,e.update[i],n,o)}}function Rl(t,e,n,r){const i=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){const n=rl(e)(parseInt(t,10)),r=sl[n];return void 0!==r?r:"other"}(e,hl);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return-1===n?null:n}(e,r);if(Cl(e,n)!==i&&(Il(t,e,n),n[e.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[e.anchorIdx];r&&Tl(t,e.create[i],n,r)}}function Il(t,e,n){let r=Cl(e,n);if(null!==r){const i=e.remove[r];for(let e=0;e0){const t=we(r,n);null!==t&&lo(n[11],t)}else Il(t,vl(t,~r),n)}}}function Pl(){const t=[];let e,n,r=-1;function i(t,e){r=0;const i=Cl(t,e);n=null!==i?t.remove[i]:Nt}function o(){if(r0?e[s]:(t.push(r,n),i(e[1].data[~s],e),o())}return 0===t.length?null:(n=t.pop(),r=t.pop(),o())}return function(n,r){for(e=r;t.length;)t.pop();return i(n.value,r),o}}const Ml=/\ufffd(\d+):?\d*\ufffd/gi,Dl=/\ufffd(\d+)\ufffd/,Nl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ll=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Fl=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Ul=/\uE500/g;function Hl(t,e,n,r,i,o,s){const a=Vo(t,r,1,null);let l=a<n.length&&n.push(i)}return{type:r,mainBinding:i,cases:e,values:n}}function $l(t){if(!t)return[];let e=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(t);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=t.substring(e,i);Nl.test(n)?r.push(Kl(n)):r.push(n),e=i+1}}else{if(0==n.length){const n=t.substring(e,i);r.push(n),e=i+1}n.push("{")}}const s=t.substring(e);return r.push(s),r}function Gl(t,e,n,r,i,o,s,a){const l=[],c=[],u=[];e.cases.push(o),e.create.push(l),e.remove.push(c),e.update.push(u);const h=Gr(_e()).getInertBodyElement(s),d=mi(h)||h;return d?Wl(t,e,n,r,l,c,u,d,i,a,0):0}function Wl(t,e,n,r,i,o,s,a,l,c,u){let h=0,d=a.firstChild;for(;d;){const a=Vo(t,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const p=d,f=p.tagName.toLowerCase();if(oi.hasOwnProperty(f)){Xl(i,ll,f,l,a),t.data[a]=f;const g=p.attributes;for(let t=0;t>>ul.SHIFT;let h=t[u];null===h&&(h=t[u]=l?i.createComment(a):Hi(i,a)),c&&null!==n&&Yi(i,n,h,r,!1)}})(i,l.create,c,a&&8&a.type?i[a.index]:null),We(!0)}function tc(t,e,n){Jl(t,e,n),We(!1)}function ec(t){return function(t){t&&(kl|=1<0){const r=t.data[n];xl(t,e,Array.isArray(r)?r:r.update,Ke()-Ol-1,kl)}kl=0,Ol=0}(De(),Me(),t+20)}function rc(t,e,n,r,i){if(t=st(t),Array.isArray(t))for(let o=0;o>20;if(Hs(t)||!t.multi){const r=new bn(l,i,sa),p=sc(a,e,i?u:u+d,h);-1===p?(Nn(In(c,s),o,a),ic(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[p]=r,s[p]=r)}else{const p=sc(a,e,u+d,h),f=sc(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){Nn(In(c,s),o,a);const u=function(t,e,n,r,i){const o=new bn(t,n,sa);return o.multi=[],o.index=e,o.componentProviders=0,oc(o,i,r&&!n),o}(i?lc:ac,n.length,i,r,l);!i&&m&&(n[f].providerFactory=u),ic(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),s.push(u)}else ic(o,t,p>-1?p:f,oc(n[i?f:p],l,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function ic(t,e,n,r){const i=Hs(e);if(i||function(t){return!!t.useClass}(e)){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function oc(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function sc(t,e,n,r){for(let i=n;i{n.providersResolver=(n,r)=>function(t,e,n){const r=De();if(r.firstCreatePass){const i=oe(t);rc(n,r.data,r.blueprint,i,!0),rc(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class hc{}const dc="ngComponent";class pc{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${nt(t)}. Did you add it to @NgModule.entryComponents?`);return e[dc]=t,e}(t)}}class fc{}function gc(...t){}function mc(t,e){return new yc(Ce(t,e))}fc.NULL=new pc;const _c=function(){return mc(Le(),Me())};let yc=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=_c,t})();function bc(t){return t instanceof yc?t.nativeElement:t}class vc{}let wc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Cc(),t})();const Cc=function(){const t=Me(),e=ke(Le().index,t);return function(t){return t[11]}(te(e)?e:t)};let Sc=(()=>{class t{}return t.\u0275prov=pt({token:t,providedIn:"root",factory:()=>null}),t})();class Ec{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const kc=new Ec("12.1.4");class Oc{constructor(){}supports(t){return Xs(t)}create(t){return new xc(t)}}const Tc=(t,e)=>e;class xc{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||Tc}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):t=this._addAfter(new Ac(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ic),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ic),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 Ac{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 Rc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ic{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Rc,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pc(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Nc(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Nc{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 Lc(){return new Fc([new Oc])}let Fc=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Lc()),deps:[[t,new Mr,new Pr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=pt({token:t,providedIn:"root",factory:Lc}),t})();function Uc(){return new Hc([new Mc])}let Hc=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Uc()),deps:[[t,new Mr,new Pr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=pt({token:t,providedIn:"root",factory:Uc}),t})();function Vc(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(ve(o)),ee(o))for(let t=10;t-1&&(qi(t,n),hr(e,n))}this._attachedToViewContainer=!1}Ki(this._lView[1],this._lView)}onDestroy(t){Qo(this._lView[1],this._lView,null,t)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ms(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ze(!0);try{ms(t,e,n)}finally{ze(!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(t,e){uo(t,e,e[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 jc extends Bc{constructor(t){super(t),this._view=t}detectChanges(){_s(this._view)}checkNoChanges(){!function(t){ze(!0);try{_s(t)}finally{ze(!1)}}(this._view)}get context(){return null}}const zc=function(t){return function(t,e,n){if(re(t)&&!n){const n=ke(t.index,e);return new Bc(n,n)}return 47&t.type?new Bc(e[16],e):null}(Le(),Me(),16==(16&t))};let qc=(()=>{class t{}return t.__NG_ELEMENT_ID__=zc,t})();const Kc=[new Mc],$c=new Fc([new Oc]),Gc=new Hc(Kc),Wc=function(){return Zc(Le(),Me())};let Yc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wc,t})();const Qc=Yc,Xc=class extends Qc{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Fo(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Bo(e,n,t),new Bc(n)}};function Zc(t,e){return 4&t.type?new Xc(e,t,mc(t,e)):null}class Jc{}class tu{}const eu=function(){return au(Le(),Me())};let nu=(()=>{class t{}return t.__NG_ELEMENT_ID__=eu,t})();const ru=nu,iu=class extends ru{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return mc(this._hostTNode,this._hostLView)}get injector(){return new $n(this._hostTNode,this._hostLView)}get parentInjector(){const t=Dn(this._hostTNode,this._hostLView);if(kn(t)){const e=Tn(t,this._hostLView),n=On(t);return new $n(e[1].data[n+8],e)}return new $n(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ou(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(Jc,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(function(t){return ee(t[3])}(n)){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new iu(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),rAi});class du extends hc{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function(t){return t.map(Oo).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return uu(this.componentDef.inputs)}get outputs(){return uu(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,lu,i);return o!==lu||r===lu?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(vc,be),s=i.get(Sc,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ye(t))return t.selectRootElement(e,n===xt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):ji(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?ge:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Ai,clean:bs,playerHandler:e||null,flags:0}}(),d=Yo(0,null,null,1,0,null,null,null,null,null),p=Fo(null,d,h,u,null,null,o,a,s,i);let f,g;en(p);try{const t=function(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=Uo(s,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ks(a,l,!0),null!==t&&(vn(i,t,l),null!==a.classes&&fo(i,t,a.classes),null!==a.styles&&po(i,t,a.styles)));const c=r.createRenderer(t,e),u=Fo(n,Wo(e),null,e.onPush?64:16,n[20],a,r,c,o||null,null);return s.firstCreatePass&&(Nn(In(a,n),s,e.type),ns(s,a),is(a,n.length,1)),fs(n,u),n[20]=u}(c,this.componentDef,p,o,a);if(c)if(n)vn(a,c,["ng-version",kc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r0&&fo(a,c,e.join(" "))}if(g=Se(d,20),void 0!==e){const t=g.projection=[];for(let n=0;nt(s,e)),e.contentQueries){const t=Le();e.contentQueries(1,s,t.directiveStart)}const a=Le();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(cn(a.index),ts(n[1],a,0,a.directiveStart,a.directiveEnd,e),es(e,s)),s}(t,this.componentDef,p,h,[js]),Bo(d,p,null)}finally{an()}return new pu(this.componentType,f,mc(g,p),p,g)}}class pu extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=e,this.hostView=this.changeDetectorRef=new jc(r),this.componentType=t}get injector(){return new $n(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const fu=new Map;class gu extends Jc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cu(this);const n=Jt(t),r=function(t){return t[Vt]||null}(t);r&&dl(r),this._bootstrapComponents=Ri(n.bootstrap),this._r3Injector=Ms(t,e,[{provide:Jc,useValue:this},{provide:fc,useValue:this.componentFactoryResolver}],nt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Bs.THROW_IF_NOT_FOUND,n=Ct.Default){return t===Bs||t===Jc||t===Os?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class mu extends tu{constructor(t){super(),this.moduleType=t,null!==Jt(t)&&function(t){const e=new Set;!function t(n){const r=Jt(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${nt(e)} vs ${nt(e.name)}`)}(i,fu.get(i),n),fu.set(i,n));const o=Ri(r.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new gu(this.moduleType,t)}}function _u(t,e,n){const r=qe()+t,i=Me();return i[r]===To?Js(i,r,n?e.call(n):e()):function(t,e){return t[e]}(i,r)}function yu(t,e,n,r){return wu(Me(),qe(),t,e,n,r)}function bu(t,e,n,r,i,o){return function(t,e,n,r,i,o,s,a){const l=e+n;return function(t,e,n,r,i){const o=ea(t,e,n,r);return ta(t,e+2,i)||o}(t,l,i,o,s)?Js(t,l+3,a?r.call(a,i,o,s):r(i,o,s)):vu(t,l+3)}(Me(),qe(),t,e,n,r,i,o)}function vu(t,e){const n=t[e];return n===To?void 0:n}function wu(t,e,n,r,i,o){const s=e+n;return ta(t,s,i)?Js(t,s+1,o?r.call(o,i):r(i)):vu(t,s+1)}function Cu(t,e){const n=De();let r;const i=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new lt("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=ae(r.type)),s=Et(sa);try{const t=An(!1),e=o();return An(t),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,Me(),i,e),e}finally{Et(s)}}function Su(t,e,n){const r=t+20,i=Me(),o=Ee(i,r);return function(t,e){Qs.isWrapped(e)&&(e=Qs.unwrap(e),t[Ke()]=To);return e}(i,function(t,e){return t[1].data[e].pure}(i,r)?wu(i,qe(),e,o.transform,n,o):o.transform(n))}function Eu(t){return e=>{setTimeout(t,void 0,e)}}const ku=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,i,o;let s=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;s=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(i=e.error)||void 0===i?void 0:i.bind(e),l=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(a=Eu(a),s&&(s=Eu(s)),l&&(l=Eu(l)));const c=super.subscribe({next:s,error:a,complete:l});return t instanceof h&&t.add(c),c}};function Ou(){return this._results[Ys()]()}class Tu{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=Ys(),n=Tu.prototype;n[e]||(n[e]=Ou)}get changes(){return this._changes||(this._changes=new ku)}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 n=this;n.dirty=!1;const r=lr(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r0)r.push(s[t/2]);else{const i=o[t+1],s=e[-n];for(let t=10;t({bindingPropertyName:t})),$u=tr("Output",t=>({bindingPropertyName:t})),Gu=new er("Application Initializer");let Wu=(()=>{class t{constructor(t){this.appInits=t,this.resolve=gc,this.reject=gc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(kr(Gu,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Yu=new er("AppId"),Qu={provide:Yu,useFactory:function(){return`${Xu()}${Xu()}${Xu()}`},deps:[]};function Xu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zu=new er("Platform Initializer"),Ju=new er("Platform ID"),th=new er("appBootstrapListener");let eh=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const nh=new er("LocaleId"),rh=new er("DefaultCurrencyCode");class ih{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const oh=function(t){return new mu(t)},sh=oh,ah=function(t){return Promise.resolve(oh(t))},lh=function(t){const e=oh(t),n=Ri(Jt(t).declarations).reduce((t,e)=>{const n=Zt(e);return n&&t.push(new du(n)),t},[]);return new ih(e,n)},ch=lh,uh=function(t){return Promise.resolve(lh(t))};let hh=(()=>{class t{constructor(){this.compileModuleSync=sh,this.compileModuleAsync=ah,this.compileModuleAndAllComponentsSync=ch,this.compileModuleAndAllComponentsAsync=uh}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const dh=(()=>Promise.resolve(0))();function ph(t){"undefined"==typeof Zone?dh.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fh{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ku(!1),this.onMicrotaskEmpty=new ku(!1),this.onStable=new ku(!1),this.onError=new ku(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=Mt.requestAnimationFrame,e=Mt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Mt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_h(t),t.isCheckStableRunning=!0,mh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_h(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return yh(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),bh(t)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return yh(t),n.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bh(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,_h(t),mh(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fh.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fh.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,gh,gc,gc);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const gh={};function mh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function _h(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yh(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bh(t){t._nesting--,mh(t)}class vh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ku,this.onMicrotaskEmpty=new ku,this.onStable=new ku,this.onError=new ku}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let wh=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{fh.assertNotInAngularZone(),ph(()=>{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())ph(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(kr(fh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t{constructor(){this._applications=new Map,Eh.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Eh.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class Sh{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Eh=new Sh,kh=!0,Oh=!1;function Th(){return Oh=!0,kh}let xh;const Ah=new er("AllowMultipleToken");class Rh{constructor(t,e){this.name=t,this.token=e}}function Ih(t,e,n=[]){const r=`Platform: ${e}`,i=new er(r);return(e=[])=>{let o=Ph();if(!o||o.injector.get(Ah,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:xs,useValue:"platform"});!function(t){if(xh&&!xh.destroyed&&!xh.injector.get(Ah,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xh=t.get(Mh);const e=t.get(Zu,null);e&&e.forEach(t=>t())}(Bs.create({providers:t,name:r}))}return function(t){const e=Ph();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Ph(){return xh&&!xh.destroyed?xh:null}let Mh=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vh:("zone.js"===t?void 0:t)||new fh({enableLongStackTrace:Th(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:fh,useValue:n}];return n.run(()=>{const i=Bs.create({providers:r,parent:this.injector,name:t.moduleType.name}),o=t.create(i),s=o.injector.get(Oi,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});o.onDestroy(()=>{Lh(this._modules,o),t.unsubscribe()})}),function(t,n,r){try{const e=r();return ma(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(s,n,()=>{const t=o.injector.get(Wu);return t.runInitializers(),t.donePromise.then(()=>(dl(o.injector.get(nh,al)||al),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,e=[]){const n=Dh({},e);return function(t,e,n){const r=new mu(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nh);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${nt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(kr(Bs))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Dh(t,e){return Array.isArray(e)?e.reduce(Dh,t):Object.assign(Object.assign({},t),e)}let Nh=(()=>{class t{constructor(t,e,n,r,i){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=i,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 o=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),s=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fh.assertNotInAngularZone(),ph(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fh.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=K(o,s.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof hc?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(Jc),i=n.create(Bs.NULL,[],e||n.selector,r),o=i.location.nativeElement,s=i.injector.get(wh,null),a=s&&i.injector.get(Ch);return s&&a&&a.registerApplication(o,s),i.onDestroy(()=>{this.detachView(i.hostView),Lh(this.components,i),a&&a.unregisterApplication(o)}),this._loadComponent(i),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lh(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(th,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(kr(fh),kr(Bs),kr(Oi),kr(fc),kr(Wu))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Lh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Fh{}class Uh{}const Hh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Vh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Hh}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n(8255)(e).then(t=>t[r]).then(t=>Bh(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>Bh(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(kr(hh),kr(Uh,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Bh(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const jh=Ih(null,"core",[{provide:Ju,useValue:"unknown"},{provide:Mh,deps:[Bs]},{provide:Ch,deps:[]},{provide:eh,deps:[]}]),zh=[{provide:Nh,useClass:Nh,deps:[fh,Bs,Oi,fc,Wu]},{provide:hu,deps:[fh],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Wu,useClass:Wu,deps:[[new Pr,Gu]]},{provide:hh,useClass:hh,deps:[]},Qu,{provide:Fc,useFactory:function(){return $c},deps:[]},{provide:Hc,useFactory:function(){return Gc},deps:[]},{provide:nh,useFactory:function(t){return dl(t=t||"undefined"!=typeof $localize&&$localize.locale||al),t},deps:[[new Ir(nh),new Pr,new Mr]]},{provide:rh,useValue:"USD"}];let qh=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(kr(Nh))},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:zh}),t})(),Kh=null;function $h(){return Kh}const Gh=new er("DocumentToken");let Wh=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:Yh,token:t,providedIn:"platform"}),t})();function Yh(){return kr(Xh)}const Qh=new er("Location Initialized");let Xh=(()=>{class t extends Wh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $h().getBaseHref(this._doc)}onPopState(t){const e=$h().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=$h().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Zh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Zh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:Jh,token:t,providedIn:"platform"}),t})();function Zh(){return!!window.history.pushState}function Jh(){return new Xh(kr(Gh))}function td(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function ed(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function nd(t){return t&&"?"!==t[0]?"?"+t:t}let rd=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:id,token:t,providedIn:"root"}),t})();function id(t){const e=kr(Gh).location;return new sd(kr(Wh),e&&e.origin||"")}const od=new er("appBaseHref");let sd=(()=>{class t extends rd{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return td(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+nd(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+nd(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+nd(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(kr(Wh),kr(od,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),ad=(()=>{class t extends rd{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=td(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+nd(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+nd(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(kr(Wh),kr(od,8))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),ld=(()=>{class t{constructor(t,e){this._subject=new ku,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ed(ud(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+nd(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ud(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+nd(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+nd(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(kr(rd),kr(Wh))},t.normalizeQueryParams=nd,t.joinWithSlash=td,t.stripTrailingSlash=ed,t.\u0275prov=pt({factory:cd,token:t,providedIn:"root"}),t})();function cd(){return new ld(kr(rd),kr(Wh))}function ud(t){return t.replace(/\/index.html$/,"")}var hd=(()=>((hd=hd||{})[hd.Zero=0]="Zero",hd[hd.One=1]="One",hd[hd.Two=2]="Two",hd[hd.Few=3]="Few",hd[hd.Many=4]="Many",hd[hd.Other=5]="Other",hd))(),dd=(()=>((dd=dd||{})[dd.Format=0]="Format",dd[dd.Standalone=1]="Standalone",dd))(),pd=(()=>((pd=pd||{})[pd.Narrow=0]="Narrow",pd[pd.Abbreviated=1]="Abbreviated",pd[pd.Wide=2]="Wide",pd[pd.Short=3]="Short",pd))(),fd=(()=>((fd=fd||{})[fd.Short=0]="Short",fd[fd.Medium=1]="Medium",fd[fd.Long=2]="Long",fd[fd.Full=3]="Full",fd))(),gd=(()=>((gd=gd||{})[gd.Decimal=0]="Decimal",gd[gd.Group=1]="Group",gd[gd.List=2]="List",gd[gd.PercentSign=3]="PercentSign",gd[gd.PlusSign=4]="PlusSign",gd[gd.MinusSign=5]="MinusSign",gd[gd.Exponential=6]="Exponential",gd[gd.SuperscriptingExponent=7]="SuperscriptingExponent",gd[gd.PerMille=8]="PerMille",gd[gd.Infinity=9]="Infinity",gd[gd.NaN=10]="NaN",gd[gd.TimeSeparator=11]="TimeSeparator",gd[gd.CurrencyDecimal=12]="CurrencyDecimal",gd[gd.CurrencyGroup=13]="CurrencyGroup",gd))();function md(t,e,n){const r=nl(t),i=kd([r[ol.DayPeriodsFormat],r[ol.DayPeriodsStandalone]],e);return kd(i,n)}function _d(t,e,n){const r=nl(t),i=kd([r[ol.DaysFormat],r[ol.DaysStandalone]],e);return kd(i,n)}function yd(t,e,n){const r=nl(t),i=kd([r[ol.MonthsFormat],r[ol.MonthsStandalone]],e);return kd(i,n)}function bd(t,e){return kd(nl(t)[ol.DateFormat],e)}function vd(t,e){return kd(nl(t)[ol.TimeFormat],e)}function wd(t,e){return kd(nl(t)[ol.DateTimeFormat],e)}function Cd(t,e){const n=nl(t),r=n[ol.NumberSymbols][e];if(void 0===r){if(e===gd.CurrencyDecimal)return n[ol.NumberSymbols][gd.Decimal];if(e===gd.CurrencyGroup)return n[ol.NumberSymbols][gd.Group]}return r}const Sd=rl;function Ed(t){if(!t[ol.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ol.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function kd(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Od(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Td=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xd={},Ad=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Rd=(()=>((Rd=Rd||{})[Rd.Short=0]="Short",Rd[Rd.ShortGMT=1]="ShortGMT",Rd[Rd.Long=2]="Long",Rd[Rd.Extended=3]="Extended",Rd))(),Id=(()=>((Id=Id||{})[Id.FullYear=0]="FullYear",Id[Id.Month=1]="Month",Id[Id.Date=2]="Date",Id[Id.Hours=3]="Hours",Id[Id.Minutes=4]="Minutes",Id[Id.Seconds=5]="Seconds",Id[Id.FractionalSeconds=6]="FractionalSeconds",Id[Id.Day=7]="Day",Id))(),Pd=(()=>((Pd=Pd||{})[Pd.DayPeriods=0]="DayPeriods",Pd[Pd.Days=1]="Days",Pd[Pd.Months=2]="Months",Pd[Pd.Eras=3]="Eras",Pd))();function Md(t,e,n,r){let i=function(t){if($d(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,r=1]=t.split("-").map(t=>+t);return Dd(e,n-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Td))return function(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,l,c),e}(n)}const e=new Date(t);if(!$d(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Nd(n,e)||e;let o,s=[];for(;e;){if(o=Ad.exec(e),!o){s.push(e);break}{s=s.concat(o.slice(1));const t=s.pop();if(!t)break;e=t}}let a=i.getTimezoneOffset();r&&(a=Kd(r,a),i=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Kd(e,r)-r))}(i,r));let l="";return s.forEach(t=>{const e=function(t){if(qd[t])return qd[t];let e;switch(t){case"G":case"GG":case"GGG":e=Hd(Pd.Eras,pd.Abbreviated);break;case"GGGG":e=Hd(Pd.Eras,pd.Wide);break;case"GGGGG":e=Hd(Pd.Eras,pd.Narrow);break;case"y":e=Ud(Id.FullYear,1,0,!1,!0);break;case"yy":e=Ud(Id.FullYear,2,0,!0,!0);break;case"yyy":e=Ud(Id.FullYear,3,0,!1,!0);break;case"yyyy":e=Ud(Id.FullYear,4,0,!1,!0);break;case"Y":e=zd(1);break;case"YY":e=zd(2,!0);break;case"YYY":e=zd(3);break;case"YYYY":e=zd(4);break;case"M":case"L":e=Ud(Id.Month,1,1);break;case"MM":case"LL":e=Ud(Id.Month,2,1);break;case"MMM":e=Hd(Pd.Months,pd.Abbreviated);break;case"MMMM":e=Hd(Pd.Months,pd.Wide);break;case"MMMMM":e=Hd(Pd.Months,pd.Narrow);break;case"LLL":e=Hd(Pd.Months,pd.Abbreviated,dd.Standalone);break;case"LLLL":e=Hd(Pd.Months,pd.Wide,dd.Standalone);break;case"LLLLL":e=Hd(Pd.Months,pd.Narrow,dd.Standalone);break;case"w":e=jd(1);break;case"ww":e=jd(2);break;case"W":e=jd(1,!0);break;case"d":e=Ud(Id.Date,1);break;case"dd":e=Ud(Id.Date,2);break;case"c":case"cc":e=Ud(Id.Day,1);break;case"ccc":e=Hd(Pd.Days,pd.Abbreviated,dd.Standalone);break;case"cccc":e=Hd(Pd.Days,pd.Wide,dd.Standalone);break;case"ccccc":e=Hd(Pd.Days,pd.Narrow,dd.Standalone);break;case"cccccc":e=Hd(Pd.Days,pd.Short,dd.Standalone);break;case"E":case"EE":case"EEE":e=Hd(Pd.Days,pd.Abbreviated);break;case"EEEE":e=Hd(Pd.Days,pd.Wide);break;case"EEEEE":e=Hd(Pd.Days,pd.Narrow);break;case"EEEEEE":e=Hd(Pd.Days,pd.Short);break;case"a":case"aa":case"aaa":e=Hd(Pd.DayPeriods,pd.Abbreviated);break;case"aaaa":e=Hd(Pd.DayPeriods,pd.Wide);break;case"aaaaa":e=Hd(Pd.DayPeriods,pd.Narrow);break;case"b":case"bb":case"bbb":e=Hd(Pd.DayPeriods,pd.Abbreviated,dd.Standalone,!0);break;case"bbbb":e=Hd(Pd.DayPeriods,pd.Wide,dd.Standalone,!0);break;case"bbbbb":e=Hd(Pd.DayPeriods,pd.Narrow,dd.Standalone,!0);break;case"B":case"BB":case"BBB":e=Hd(Pd.DayPeriods,pd.Abbreviated,dd.Format,!0);break;case"BBBB":e=Hd(Pd.DayPeriods,pd.Wide,dd.Format,!0);break;case"BBBBB":e=Hd(Pd.DayPeriods,pd.Narrow,dd.Format,!0);break;case"h":e=Ud(Id.Hours,1,-12);break;case"hh":e=Ud(Id.Hours,2,-12);break;case"H":e=Ud(Id.Hours,1);break;case"HH":e=Ud(Id.Hours,2);break;case"m":e=Ud(Id.Minutes,1);break;case"mm":e=Ud(Id.Minutes,2);break;case"s":e=Ud(Id.Seconds,1);break;case"ss":e=Ud(Id.Seconds,2);break;case"S":e=Ud(Id.FractionalSeconds,1);break;case"SS":e=Ud(Id.FractionalSeconds,2);break;case"SSS":e=Ud(Id.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Vd(Rd.Short);break;case"ZZZZZ":e=Vd(Rd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Vd(Rd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Vd(Rd.Long);break;default:return null}return qd[t]=e,e}(t);l+=e?e(i,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Dd(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Nd(t,e){const n=function(t){return nl(t)[ol.LocaleId]}(t);if(xd[n]=xd[n]||{},xd[n][e])return xd[n][e];let r="";switch(e){case"shortDate":r=bd(t,fd.Short);break;case"mediumDate":r=bd(t,fd.Medium);break;case"longDate":r=bd(t,fd.Long);break;case"fullDate":r=bd(t,fd.Full);break;case"shortTime":r=vd(t,fd.Short);break;case"mediumTime":r=vd(t,fd.Medium);break;case"longTime":r=vd(t,fd.Long);break;case"fullTime":r=vd(t,fd.Full);break;case"short":const e=Nd(t,"shortTime"),n=Nd(t,"shortDate");r=Ld(wd(t,fd.Short),[e,n]);break;case"medium":const i=Nd(t,"mediumTime"),o=Nd(t,"mediumDate");r=Ld(wd(t,fd.Medium),[i,o]);break;case"long":const s=Nd(t,"longTime"),a=Nd(t,"longDate");r=Ld(wd(t,fd.Long),[s,a]);break;case"full":const l=Nd(t,"fullTime"),c=Nd(t,"fullDate");r=Ld(wd(t,fd.Full),[l,c])}return r&&(xd[n][e]=r),r}function Ld(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Fd(t,e,n="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length0||a>-n)&&(a+=n),t===Id.Hours)0===a&&-12===n&&(a=12);else if(t===Id.FractionalSeconds)return function(t,e){return Fd(t,3).substr(0,e)}(a,e);const l=Cd(s,gd.MinusSign);return Fd(a,e,l,r,i)}}function Hd(t,e,n=dd.Format,r=!1){return function(i,o){return function(t,e,n,r,i,o){switch(n){case Pd.Months:return yd(e,i,r)[t.getMonth()];case Pd.Days:return _d(e,i,r)[t.getDay()];case Pd.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const t=function(t){const e=nl(t);return Ed(e),(e[ol.ExtraData][2]||[]).map(t=>"string"==typeof t?Od(t):[Od(t[0]),Od(t[1])])}(e),n=function(t,e,n){const r=nl(t);Ed(r);const i=kd([r[ol.ExtraData][0],r[ol.ExtraData][1]],e)||[];return kd(i,n)||[]}(e,i,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=s>=e.hours&&a>=e.minutes,i=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Rd.Short:return(i>=0?"+":"")+Fd(s,2,o)+Fd(Math.abs(i%60),2,o);case Rd.ShortGMT:return"GMT"+(i>=0?"+":"")+Fd(s,1,o);case Rd.Long:return"GMT"+(i>=0?"+":"")+Fd(s,2,o)+":"+Fd(Math.abs(i%60),2,o);case Rd.Extended:return 0===r?"Z":(i>=0?"+":"")+Fd(s,2,o)+":"+Fd(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function Bd(t){return Dd(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function jd(t,e=!1){return function(n,r){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=1+Math.floor((e+t)/7)}else{const t=Bd(n),e=function(t){const e=Dd(t,0,1).getDay();return Dd(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();i=1+Math.round(r/6048e5)}return Fd(i,t,Cd(r,gd.MinusSign))}}function zd(t,e=!1){return function(n,r){return Fd(Bd(n).getFullYear(),t,Cd(r,gd.MinusSign),e)}}const qd={};function Kd(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function $d(t){return t instanceof Date&&!isNaN(t.valueOf())}class Gd{}let Wd=(()=>{class t extends Gd{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(Sd(e||this.locale)(t)){case hd.Zero:return"zero";case hd.One:return"one";case hd.Two:return"two";case hd.Few:return"few";case hd.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(kr(nh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Yd(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let Qd=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Xs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${nt(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(sa(Fc),sa(Hc),sa(yc),sa(wc))},t.\u0275dir=Qt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Xd{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Zd=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}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(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Xd(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Jd(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new Jd(t,i);e.push(o)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(Yc),sa(Fc))},t.\u0275dir=Qt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Jd{constructor(t,e){this.record=t,this.view=e}}let tp=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ep,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){np("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){np("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(Yc))},t.\u0275dir=Qt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ep{constructor(){this.$implicit=null,this.ngIf=null}}function np(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${nt(e)}'.`)}class rp{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 ip=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new rp(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(Yc),sa(ip,9))},t.\u0275dir=Qt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),sp=(()=>{class t{constructor(t,e,n){n._addDefault(new rp(t,e))}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(Yc),sa(ip,9))},t.\u0275dir=Qt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),ap=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(sa(nu))},t.\u0275dir=Qt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ce]}),t})();function lp(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${nt(t)}'`)}class cp{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class up{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const hp=new up,dp=new cp;let pp=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(ma(e))return hp;if(_a(e))return dp;throw lp(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(sa(qc,16))},t.\u0275pipe=Xt({name:"async",type:t,pure:!1}),t})(),fp=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw lp(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"lowercase",type:t,pure:!0}),t})(),gp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[{provide:Gd,useClass:Wd}]}),t})();const mp="browser";let _p=(()=>{class t{}return t.\u0275prov=pt({token:t,providedIn:"root",factory:()=>new yp(kr(Gh),window)}),t})();class yp{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(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.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(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=bp(this.window.history)||bp(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 bp(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class vp{}class wp extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){Kh||(Kh=t)}(new wp)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!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=(Sp=Sp||document.querySelector("base"),Sp?Sp.getAttribute("href"):null);return null==e?null:function(t){Cp=Cp||document.createElement("a"),Cp.setAttribute("href",t);const e=Cp.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){Sp=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Yd(document.cookie,t)}}let Cp,Sp=null;const Ep=new er("TRANSITION_ID"),kp=[{provide:Gu,useFactory:function(t,e,n){return()=>{n.get(Wu).donePromise.then(()=>{const n=$h();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Ep,Gh,Bs],multi:!0}];class Op{static init(){!function(t){Eh=t}(new Op)}addToWindow(t){Mt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Mt.getAllAngularRootElements=()=>t.getAllRootElements(),Mt.frameworkStabilizers||(Mt.frameworkStabilizers=[]),Mt.frameworkStabilizers.push(t=>{const e=Mt.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?$h().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let Tp=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const xp=new er("EventManagerPlugins");let Ap=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Pp=(()=>{class t extends Ip{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(Mp),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Mp))}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function Mp(t){$h().remove(t)}const Dp={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/"},Np=/%COMP%/g;function Lp(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Up=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Hp(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case xt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Vp(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case xt.ShadowDom:return new Bp(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Lp(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(kr(Ap),kr(Pp),kr(Yu))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class Hp{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Dp[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=Dp[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Dp[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(Ii.DashCase|Ii.Important)?t.style.setProperty(e,n,r&Ii.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ii.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Fp(n)):this.eventManager.addEventListener(t,e,Fp(n))}}class Vp extends Hp{constructor(t,e,n,r){super(t),this.component=n;const i=Lp(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(Np,t)}(r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Np,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Bp extends Hp{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Lp(r.id,r.styles,[]);for(let o=0;o{class t extends Rp{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const zp=["alt","control","meta","shift"],qp={"\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"},Kp={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"},$p={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Gp=(()=>{class t extends Rp{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$h().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(zp.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Kp.hasOwnProperty(e)&&(e=Kp[e]))}return qp[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),zp.forEach(r=>{r!=n&&$p[r](t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Wp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return kr(Yp)},token:t,providedIn:"root"}),t})(),Yp=(()=>{class t extends Wp{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case _i.NONE:return e;case _i.HTML:return Kr(e,"HTML")?qr(e):gi(this._doc,String(e)).toString();case _i.STYLE:return Kr(e,"Style")?qr(e):e;case _i.SCRIPT:if(Kr(e,"Script"))return qr(e);throw new Error("unsafe value used in a script context");case _i.URL:return $r(e),Kr(e,"URL")?qr(e):Zr(String(e));case _i.RESOURCE_URL:if(Kr(e,"ResourceURL"))return qr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function(t){return new Hr(t)}(t)}bypassSecurityTrustStyle(t){return function(t){return new Vr(t)}(t)}bypassSecurityTrustScript(t){return function(t){return new Br(t)}(t)}bypassSecurityTrustUrl(t){return function(t){return new jr(t)}(t)}bypassSecurityTrustResourceUrl(t){return function(t){return new zr(t)}(t)}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:function(){return function(t){return new Yp(t.get(Gh))}(kr(Os))},token:t,providedIn:"root"}),t})();const Qp=Ih(jh,"browser",[{provide:Ju,useValue:mp},{provide:Zu,useValue:function(){wp.makeCurrent(),Op.init()},multi:!0},{provide:Gh,useFactory:function(){return function(t){me=t}(document),document},deps:[]}]),Xp=[[],{provide:xs,useValue:"root"},{provide:Oi,useFactory:function(){return new Oi},deps:[]},{provide:xp,useClass:jp,multi:!0,deps:[Gh,fh,Ju]},{provide:xp,useClass:Gp,multi:!0,deps:[Gh]},[],{provide:Up,useClass:Up,deps:[Ap,Pp,Yu]},{provide:vc,useExisting:Up},{provide:Ip,useExisting:Pp},{provide:Pp,useClass:Pp,deps:[Gh]},{provide:wh,useClass:wh,deps:[fh]},{provide:Ap,useClass:Ap,deps:[xp,fh]},{provide:vp,useClass:Tp,deps:[]},[]];let Zp=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Yu,useValue:e.appId},{provide:Ep,useExisting:Yu},kp]}}}return t.\u0275fac=function(e){return new(e||t)(kr(t,12))},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:Xp,imports:[gp,qh]}),t})();function Jp(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function tf(t,e){return function(n,r){e(n,r,t)}}function ef(...t){if(1===t.length){const e=t[0];if(l(e))return nf(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return nf(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return nf(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(N(t=>e(...t)))}return nf(t,null)}function nf(t,e){return new b(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),i[a]=t},error:t=>n.error(t),complete:()=>{o++,(o===r||!c)&&(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}"undefined"!=typeof window&&window;let rf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(sa(wc),sa(yc))},t.\u0275dir=Qt({type:t}),t})(),of=(()=>{class t extends rf{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,features:[zs]}),t})();const sf=new er("NgValueAccessor"),af={provide:sf,useExisting:ot(()=>cf),multi:!0},lf=new er("CompositionEventMode");let cf=(()=>{class t extends rf{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=$h()?$h().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(wc),sa(yc),sa(lf,8))},t.\u0275dir=Qt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&ba("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[uc([af]),zs]}),t})();const uf=new er("NgValidators"),hf=new er("NgAsyncValidators");function df(t){return null!=t}function pf(t){const e=ma(t)?H(t):t;return ya(e),e}function ff(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function gf(t,e){return e.map(e=>e(t))}function mf(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function _f(t){return null!=t?function(t){if(!t)return null;const e=t.filter(df);return 0==e.length?null:function(t){return ff(gf(t,e))}}(mf(t)):null}function yf(t){return null!=t?function(t){if(!t)return null;const e=t.filter(df);return 0==e.length?null:function(t){return ef(gf(t,e).map(pf)).pipe(N(ff))}}(mf(t)):null}function bf(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function vf(t){return t._rawValidators}function wf(t){return t._rawAsyncValidators}let Cf=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=_f(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=yf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t}),t})(),Sf=(()=>{class t extends Cf{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,features:[zs]}),t})();class Ef extends Cf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class kf{constructor(t){this._cd=t}is(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}let Of=(()=>{class t extends kf{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(Ef,2))},t.\u0275dir=Qt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Na("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[zs]}),t})(),Tf=(()=>{class t extends kf{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(Sf,10))},t.\u0275dir=Qt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&Na("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[zs]}),t})();function xf(t,e){return[...e.path,t]}function Af(t,e){Pf(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Df(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Df(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Rf(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Mf(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function If(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Pf(t,e){const n=vf(t);null!==e.validator?t.setValidators(bf(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=wf(t);null!==e.asyncValidator?t.setAsyncValidators(bf(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();If(e._rawValidators,i),If(e._rawAsyncValidators,i)}function Mf(t,e){let n=!1;if(null!==t){if(null!==e.validator){const r=vf(t);if(Array.isArray(r)&&r.length>0){const i=r.filter(t=>t!==e.validator);i.length!==r.length&&(n=!0,t.setValidators(i))}}if(null!==e.asyncValidator){const r=wf(t);if(Array.isArray(r)&&r.length>0){const i=r.filter(t=>t!==e.asyncValidator);i.length!==r.length&&(n=!0,t.setAsyncValidators(i))}}}const r=()=>{};return If(e._rawValidators,r),If(e._rawAsyncValidators,r),n}function Df(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Nf(t,e){Pf(t,e)}function Lf(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function Ff(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Uf(t,e){if(!e)return null;let n,r,i;return Array.isArray(e),e.forEach(t=>{t.constructor===cf?n=t:function(t){return Object.getPrototypeOf(t.constructor)===of}(t)?r=t:i=t}),i||r||n||null}function Hf(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Vf="VALID",Bf="INVALID",jf="PENDING",zf="DISABLED";function qf(t){return(Wf(t)?t.validators:t)||null}function Kf(t){return Array.isArray(t)?_f(t):t||null}function $f(t,e){return(Wf(e)?e.asyncValidators:t)||null}function Gf(t){return Array.isArray(t)?yf(t):t||null}function Wf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Yf{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=Kf(this._rawValidators),this._composedAsyncValidatorFn=Gf(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===Vf}get invalid(){return this.status===Bf}get pending(){return this.status==jf}get disabled(){return this.status===zf}get enabled(){return this.status!==zf}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=Kf(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Gf(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=jf,!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=zf,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Vf,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Vf||this.status===jf)&&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()?zf:Vf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=jf,this._hasOwnPendingAsyncValidator=!0;const e=pf(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{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(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(t=>{r=r instanceof Xf?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Zf&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ku,this.statusChanges=new ku}_calculateStatus(){return this._allControlsDisabled()?zf:this.errors?Bf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jf)?jf:this._anyControlsHaveStatus(Bf)?Bf:Vf}_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){Wf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Qf extends Yf{constructor(t=null,e,n){super(qf(e),$f(n,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(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Hf(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Hf(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 Xf extends Yf{constructor(t,e,n){super(qf(e),$f(n,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,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.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,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Qf?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Zf extends Yf{constructor(t,e,n){super(qf(e),$f(n,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,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Qf?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Jf={provide:Sf,useExisting:ot(()=>eg)},tg=(()=>Promise.resolve(null))();let eg=(()=>{class t extends Sf{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ku,this.form=new Xf({},_f(t),yf(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tg.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Af(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Hf(this._directives,t)})}addFormGroup(t){tg.then(()=>{const e=this._findContainer(t.path),n=new Xf({});Nf(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tg.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ff(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(sa(uf,10),sa(hf,10))},t.\u0275dir=Qt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ba("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[uc([Jf]),zs]}),t})();const ng={provide:Ef,useExisting:ot(()=>ig)},rg=(()=>Promise.resolve(null))();let ig=(()=>{class t extends Ef{constructor(t,e,n,r){super(),this.control=new Qf,this._registered=!1,this.update=new ku,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Uf(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Lf(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?xf(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Af(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){rg.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;rg.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(sa(Sf,9),sa(uf,10),sa(hf,10),sa(sf,10))},t.\u0275dir=Qt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[uc([ng]),zs,ce]}),t})(),og=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),sg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();const ag=new er("NgModelWithFormControlWarning"),lg={provide:Sf,useExisting:ot(()=>cg)};let cg=(()=>{class t extends Sf{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ku,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Mf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Af(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Rf(t.control||null,t,!1),Hf(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Ff(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(Rf(e||null,t),n instanceof Qf&&(Af(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Nf(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Mf(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pf(this.form,this),this._oldForm&&Mf(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(sa(uf,10),sa(hf,10))},t.\u0275dir=Qt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ba("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[uc([lg]),zs,ce]}),t})();const ug={provide:Ef,useExisting:ot(()=>hg)};let hg=(()=>{class t extends Ef{constructor(t,e,n,r,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new ku,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Uf(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Lf(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return xf(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 t.\u0275fac=function(e){return new(e||t)(sa(Sf,13),sa(uf,10),sa(hf,10),sa(sf,10),sa(ag,8))},t.\u0275dir=Qt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[uc([ug]),zs,ce]}),t._ngModelWarningSentOnce=!1,t})();const dg={provide:sf,useExisting:ot(()=>fg),multi:!0};function pg(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let fg=(()=>{class t extends of{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const n=pg(e,t);this.setProperty("value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&ba("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[uc([dg]),zs]}),t})(),gg=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(pg(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(wc),sa(fg,9))},t.\u0275dir=Qt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const mg={provide:sf,useExisting:ot(()=>yg),multi:!0};function _g(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let yg=(()=>{class t extends of{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(_g(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(_g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(wc),sa(yg,9))},t.\u0275dir=Qt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),vg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[sg]]}),t})(),wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[vg]}),t})(),Cg=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ag,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[vg]}),t})();class Sg extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(t){super.next(this._value=t)}}const Eg={};function kg(...t){let e=null,n=null;return O(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new Og(e))}class Og{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Tg(t,this.resultSelector))}}class Tg extends D{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Eg),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Ig extends Rg{constructor(t,e=Rg.now){super(t,()=>Ig.delegate&&Ig.delegate!==this?Ig.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Ig.delegate&&Ig.delegate!==this?Ig.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Pg=new Ig(Ag);function Mg(t){return!l(t)&&t-parseFloat(t)+1>=0}function Dg(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Ng(){}function Lg(t,e,n,i){return r(n)&&(i=n,n=void 0),i?Lg(t,e,n).pipe(N(t=>l(t)?i(...t):i(t))):new b(r=>{Fg(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function Fg(t,e,n,r,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(e,n,i),o=()=>r.removeEventListener(e,n,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(e,n),o=()=>r.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(e,n),o=()=>r.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;oBg(t,n,e)):e=>Bg(t,e)}function zg(t,e){return n=>n.lift(new qg(t,e))}class qg{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Kg(t,this.compare,this.keySelector))}}class Kg extends g{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function $g(t,e){return"function"==typeof e?n=>n.pipe($g((n,r)=>H(t(n,r)).pipe(N((t,i)=>e(n,t,r,i))))):e=>e.lift(new Gg(t))}class Gg{constructor(t){this.project=t}call(t,e){return e.subscribe(new Wg(t,this.project))}}class Wg extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const i=new T(this,e,n),o=this.destination;o.add(i),this.innerSubscription=M(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,i){this.destination.next(e)}}function Yg(t){return e=>e.lift(new Qg(t))}class Qg{constructor(t){this.notifier=t}call(t,e){const n=new Xg(t),r=M(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class Xg extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,r,i){this.seenValue=!0,this.complete()}notifyComplete(){}}function Zg(t,e){return function(n){return n.lift(new Jg(t,e))}}class Jg{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new tm(t,this.predicate,this.thisArg))}}class tm extends g{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const em=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),nm=new b(t=>t.complete());function rm(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):nm}function im(t){return e=>0===t?rm():e.lift(new om(t))}class om{constructor(t){if(this.total=t,this.total<0)throw new em}call(t,e){return e.subscribe(new sm(t,this.total))}}class sm extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function am(t,e,n){return function(r){return r.lift(new lm(t,e,n))}}class lm{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new cm(t,this.nextOrObserver,this.error,this.complete))}}class cm extends g{constructor(t,e,n,i){super(t),this._tapNext=Ng,this._tapError=Ng,this._tapComplete=Ng,this._tapError=n||Ng,this._tapComplete=i||Ng,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Ng,this._tapError=e.error||Ng,this._tapComplete=e.complete||Ng)}_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()}}function um(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new hm(t,n))}}class hm{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new dm(t,this.observables,this.project))}}class dm extends D{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let i=0;i0){const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function pm(t){return t instanceof Date&&!isNaN(+t)}function fm(t,e){return new b(e?n=>e.schedule(gm,0,{error:t,subscriber:n}):e=>e.error(t))}function gm({error:t,subscriber:e}){e.error(t)}class mm{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Vg(this.value);case"E":return fm(this.error);case"C":return rm()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new mm("N",t):mm.undefinedValueNotification}static createError(t){return new mm("E",void 0,t)}static createComplete(){return mm.completeNotification}}mm.completeNotification=new mm("C"),mm.undefinedValueNotification=new mm("N",void 0);class _m{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new ym(t,this.delay,this.scheduler))}}class ym extends g{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,i=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(ym.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new bm(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(mm.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(mm.createComplete()),this.unsubscribe()}}class bm{constructor(t,e){this.time=t,this.notification=e}}const vm=["*"],wm=["defaultDayTemplate"],Cm=["content"];function Sm(t,e){if(1&t&&ha(0,"div",7),2&t){const t=e.currentMonth,n=e.selected,r=e.disabled,i=e.focused;aa("date",e.date)("currentMonth",t)("selected",n)("disabled",r)("focused",i)}}function Em(t,e){if(1&t&&(ca(0,"div",12),Wa(1),ua()),2&t){const t=Ca().$implicit,e=Ca(2);xo(1),Xa(" ",e.i18n.getMonthFullName(t.number,t.year)," ",e.i18n.getYearNumerals(t.year)," ")}}function km(t,e){if(1&t&&(ca(0,"div",9),ia(1,Em,2,2,"div",10),ha(2,"ngb-datepicker-month",11),ua()),2&t){const t=e.$implicit,n=Ca(2);xo(1),aa("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),xo(1),aa("month",t.firstDate)}}function Om(t,e){1&t&&ia(0,km,3,2,"div",8),2&t&&aa("ngForOf",Ca().model.months)}function Tm(t,e){if(1&t){const t=ga();ca(0,"ngb-datepicker-navigation",13),ba("navigate",function(e){return Ne(t),Ca().onNavigateEvent(e)})("select",function(e){return Ne(t),Ca().onNavigateDateSelect(e)}),ua()}if(2&t){const t=Ca();aa("date",t.model.firstDate)("months",t.model.months)("disabled",t.model.disabled)("showSelect","select"===t.model.navigation)("prevDisabled",t.model.prevDisabled)("nextDisabled",t.model.nextDisabled)("selectBoxes",t.model.selectBoxes)}}function xm(t,e){}function Am(t,e){}function Rm(t,e){1&t&&ha(0,"div",5)}function Im(t,e){if(1&t&&(ca(0,"div",6),Wa(1),ua()),2&t){const t=e.$implicit,n=Ca(2);xo(1),Qa(" ",n.i18n.getWeekdayShortName(t)," ")}}function Pm(t,e){if(1&t&&(ca(0,"div",2),ia(1,Rm,1,0,"div",3),ia(2,Im,2,1,"div",4),ua()),2&t){const t=Ca();xo(1),aa("ngIf",t.datepicker.showWeekNumbers),xo(1),aa("ngForOf",t.viewModel.weekdays)}}function Mm(t,e){if(1&t&&(ca(0,"div",11),Wa(1),ua()),2&t){const t=Ca(2).$implicit,e=Ca();xo(1),Ya(e.i18n.getWeekNumerals(t.number))}}function Dm(t,e){}function Nm(t,e){if(1&t&&ia(0,Dm,0,0,"ng-template",14),2&t){const t=Ca().$implicit;aa("ngTemplateOutlet",Ca(3).datepicker.dayTemplate)("ngTemplateOutletContext",t.context)}}function Lm(t,e){if(1&t){const t=ga();ca(0,"div",12),ba("click",function(e){const n=Ne(t).$implicit;return Ca(3).doSelect(n),e.preventDefault()}),ia(1,Nm,1,2,"ng-template",13),ua()}if(2&t){const t=e.$implicit;Na("disabled",t.context.disabled)("hidden",t.hidden)("ngb-dp-today",t.context.today),aa("tabindex",t.tabindex),na("aria-label",t.ariaLabel),xo(1),aa("ngIf",!t.hidden)}}function Fm(t,e){if(1&t&&(ca(0,"div",8),ia(1,Mm,2,1,"div",9),ia(2,Lm,2,9,"div",10),ua()),2&t){const t=Ca().$implicit,e=Ca();xo(1),aa("ngIf",e.datepicker.showWeekNumbers),xo(1),aa("ngForOf",t.days)}}function Um(t,e){1&t&&ia(0,Fm,3,2,"div",7),2&t&&aa("ngIf",!e.$implicit.collapsed)}function Hm(t,e){if(1&t){const t=ga();ca(0,"ngb-datepicker-navigation-select",7),ba("select",function(e){return Ne(t),Ca().select.emit(e)}),ua()}if(2&t){const t=Ca();aa("date",t.date)("disabled",t.disabled)("months",t.selectBoxes.months)("years",t.selectBoxes.years)}}function Vm(t,e){1&t&&ha(0,"div",0)}function Bm(t,e){1&t&&ha(0,"div",0)}function jm(t,e){if(1&t&&(ia(0,Vm,1,0,"div",9),ca(1,"div",10),Wa(2),ua(),ia(3,Bm,1,0,"div",9)),2&t){const t=e.$implicit,n=e.index,r=Ca(2);aa("ngIf",n>0),xo(2),Xa(" ",r.i18n.getMonthFullName(t.number,t.year)," ",r.i18n.getYearNumerals(t.year)," "),xo(1),aa("ngIf",n!==r.months.length-1)}}function zm(t,e){1&t&&ia(0,jm,4,4,"ng-template",8),2&t&&aa("ngForOf",Ca().months)}const qm=["ngbDatepickerDayView",""],Km=["month"],$m=["year"];function Gm(t,e){if(1&t&&(ca(0,"option",5),Wa(1),ua()),2&t){const t=e.$implicit,n=Ca();aa("value",t),na("aria-label",n.i18n.getMonthFullName(t,null==n.date?null:n.date.year)),xo(1),Ya(n.i18n.getMonthShortName(t,null==n.date?null:n.date.year))}}function Wm(t,e){if(1&t&&(ca(0,"option",5),Wa(1),ua()),2&t){const t=e.$implicit,n=Ca();aa("value",t),xo(1),Ya(n.i18n.getYearNumerals(t))}}const Ym=["dialog"];function Qm(t,e){1&t&&Wa(0),2&t&&Ya(100===e.fill?"\u2605":"\u2606")}function Xm(t,e){}function Zm(t,e){if(1&t){const t=ga();ca(0,"span",2),Wa(1),ua(),ca(2,"span",3),ba("mouseenter",function(){const e=Ne(t).index;return Ca().enter(e+1)})("click",function(){const e=Ne(t).index;return Ca().handleClick(e+1)}),ia(3,Xm,0,0,"ng-template",4),ua()}if(2&t){const t=e.index,n=Ca(),r=oa(1);xo(1),Qa("(",t=12)("ngIfElse",t)}}function h_(t,e){if(1&t&&(ca(0,"span"),Wa(1),ua()),2&t){const t=Ca().$implicit;La(Ca().highlightClass),xo(1),Ya(t)}}function d_(t,e){1&t&&Wa(0),2&t&&Ya(Ca().$implicit)}function p_(t,e){if(1&t&&(ia(0,h_,2,3,"span",1),ia(1,d_,1,1,"ng-template",null,2,qu)),2&t){const t=e.odd,n=oa(2);aa("ngIf",t)("ngIfElse",n)}}function f_(t,e){if(1&t&&ha(0,"ngb-highlight",2),2&t){const t=e.term;aa("result",(0,e.formatter)(e.result))("term",t)}}function g_(t,e){}const m_=function(t,e,n){return{result:t,term:e,formatter:n}};function __(t,e){if(1&t){const t=ga();ca(0,"button",3),ba("mouseenter",function(){const e=Ne(t).index;return Ca().markActive(e)})("click",function(){const e=Ne(t).$implicit;return Ca().select(e)}),ia(1,g_,0,0,"ng-template",4),ua()}if(2&t){const t=e.$implicit,n=e.index,r=Ca(),i=oa(1);Na("active",n===r.activeIdx),aa("id",r.id+"-"+n),xo(1),aa("ngTemplateOutlet",r.resultTemplate||i)("ngTemplateOutletContext",bu(5,m_,t,r.term,r.formatter))}}function y_(t){return parseInt(`${t}`,10)}function b_(t){return null!=t?`${t}`:""}function v_(t){return"string"==typeof t}function w_(t){return!isNaN(y_(t))}function C_(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function S_(t){return null!=t}function E_(t){return w_(t)?`0${t}`.slice(-2):""}function k_(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});let O_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),T_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),x_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(t,e){2&t&&Na("btn",!0)("active",e.active)("disabled",e.disabled)("focus",e.focused)}}),t})();const A_={provide:sf,useExisting:ot(()=>R_),multi:!0};let R_=(()=>{let t=class{constructor(t,e){this._label=t,this._cd=e,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=t=>{},this.onTouched=()=>{}}set focused(t){this._label.focused=t,t||this.onTouched()}onInputChange(t){const e=t.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(e),this.onTouched(),this.writeValue(e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._label.disabled=t}writeValue(t){this.checked=t===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}};return t.\u0275fac=function(e){return new(e||t)(sa(x_),sa(qc))},t.\u0275dir=Qt({type:t,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(t,e){1&t&&ba("change",function(t){return e.onInputChange(t)})("focus",function(){return e.focused=!0})("blur",function(){return e.focused=!1}),2&t&&Za("checked",e.checked)("disabled",e.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[uc([A_])]}),Jp([Ku()],t.prototype,"disabled",void 0),Jp([Ku()],t.prototype,"valueChecked",void 0),Jp([Ku()],t.prototype,"valueUnChecked",void 0),t})();const I_={provide:sf,useExisting:ot(()=>M_),multi:!0};let P_=0,M_=(()=>{let t=class{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+P_++,this.onChange=t=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this.setDisabledState(t)}onRadioChange(t){this.writeValue(t.value),this.onChange(t.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(t){this._radios.add(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled=t,this._updateRadiosDisabled()}unregister(t){this._radios.delete(t)}writeValue(t){this._value=t,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(t=>t.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(t=>t.updateDisabled())}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[uc([I_])]}),Jp([Ku()],t.prototype,"name",void 0),t})(),D_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})(),N_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),L_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();class F_{constructor(t,e,n){this.year=C_(t)?t:null,this.month=C_(e)?e:null,this.day=C_(n)?n:null}static from(t){return t instanceof F_?t:t?new F_(t.year,t.month,t.day):null}equals(t){return null!=t&&this.year===t.year&&this.month===t.month&&this.day===t.day}before(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.dayt.day:this.month>t.month:this.year>t.year)}}function U_(t){return new F_(t.getFullYear(),t.getMonth()+1,t.getDate())}function H_(t){const e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function V_(){return new j_}let B_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:V_,token:t,providedIn:"root"}),t})(),j_=(()=>{let t=class extends B_{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){let r=H_(t),i=!0,o=r.getMonth();switch(e){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":o+=n,r.setMonth(o),o%=12,o<0&&(o+=12);break;case"d":r.setDate(r.getDate()+n),i=!1;break;default:return t}return i&&r.getMonth()!==o&&r.setDate(0),U_(r)}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){let e=H_(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=H_(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}getToday(){return U_(new Date)}isValid(t){if(!(t&&C_(t.year)&&C_(t.month)&&C_(t.day)&&0!==t.year))return!1;const e=H_(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day}};return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275prov=pt({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();function z_(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function q_(t,e){return!(!t&&!e||t&&e&&t.year===e.year&&t.month===e.month)}function K_(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t||null}function $_(t,e){const{minDate:n,maxDate:r,disabled:i,markDisabled:o}=e;return!(null==t||i||o&&o(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}let G_=(()=>{let t=class{getDayNumerals(t){return`${t.day}`}getWeekNumerals(t){return`${t}`}getYearNumerals(t){return`${t}`}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return function(t){return new W_(t)}(kr(nh))},token:t,providedIn:"root"}),t})(),W_=(()=>{let t=class extends G_{constructor(t){super(),this._locale=t;const e=_d(t,dd.Standalone,pd.Short);this._weekdaysShort=e.map((t,n)=>e[(n+1)%7]),this._monthsShort=yd(t,dd.Standalone,pd.Abbreviated),this._monthsFull=yd(t,dd.Standalone,pd.Wide)}getWeekdayShortName(t){return this._weekdaysShort[t-1]||""}getMonthShortName(t){return this._monthsShort[t-1]||""}getMonthFullName(t){return this._monthsFull[t-1]||""}getDayAriaLabel(t){return Md(new Date(t.year,t.month-1,t.day),"fullDate",this._locale)}};return t.\u0275fac=function(e){return new(e||t)(kr(nh))},t.\u0275prov=pt({token:t,factory:function(e){return t.\u0275fac(e)}}),t=Jp([tf(0,Ir(nh))],t),t})(),Y_=(()=>{let t=class{constructor(t,e){this._calendar=t,this._i18n=e,this._VALIDATORS={dayTemplateData:t=>{if(this._state.dayTemplateData!==t)return{dayTemplateData:t}},displayMonths:t=>{if(C_(t=y_(t))&&t>0&&this._state.displayMonths!==t)return{displayMonths:t}},disabled:t=>{if(this._state.disabled!==t)return{disabled:t}},firstDayOfWeek:t=>{if(C_(t=y_(t))&&t>=0&&this._state.firstDayOfWeek!==t)return{firstDayOfWeek:t}},focusVisible:t=>{if(this._state.focusVisible!==t&&!this._state.disabled)return{focusVisible:t}},markDisabled:t=>{if(this._state.markDisabled!==t)return{markDisabled:t}},maxDate:t=>{const e=this.toValidDate(t,null);if(z_(this._state.maxDate,e))return{maxDate:e}},minDate:t=>{const e=this.toValidDate(t,null);if(z_(this._state.minDate,e))return{minDate:e}},navigation:t=>{if(this._state.navigation!==t)return{navigation:t}},outsideDays:t=>{if(this._state.outsideDays!==t)return{outsideDays:t}}},this._model$=new E,this._dateSelect$=new E,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}get model$(){return this._model$.pipe(Zg(t=>t.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Zg(t=>null!==t))}set(t){let e=Object.keys(t).map(e=>this._VALIDATORS[e](t[e])).reduce((t,e)=>Object.assign(Object.assign({},t),e),{});Object.keys(e).length>0&&this._nextState(e)}focus(t){const e=this.toValidDate(t,null);null!=e&&!this._state.disabled&&z_(this._state.focusDate,e)&&this._nextState({focusDate:t})}focusSelect(){$_(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(t){const e=this.toValidDate(t,this._calendar.getToday());null!=e&&!this._state.disabled&&(!this._state.firstDate||q_(this._state.firstDate,e))&&this._nextState({firstDate:e})}select(t,e={}){const n=this.toValidDate(t,null);null!=n&&!this._state.disabled&&(z_(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&$_(n,this._state)&&this._dateSelect$.next(n))}toValidDate(t,e){const n=F_.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e}getMonth(t){for(let e of this._state.months)if(t.month===e.number&&t.year===e.year)return e;throw new Error(`month ${t.month} of year ${t.year} not found`)}_nextState(t){const e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)}_patchContexts(t){const{months:e,displayMonths:n,selectedDate:r,focusDate:i,focusVisible:o,disabled:s,outsideDays:a}=t;t.months.forEach(t=>{t.weeks.forEach(l=>{l.days.forEach(l=>{i&&(l.context.focused=i.equals(l.date)&&o),l.tabindex=!s&&i&&l.date.equals(i)&&i.month===t.number?0:-1,!0===s&&(l.context.disabled=!0),void 0!==r&&(l.context.selected=null!==r&&r.equals(l.date)),t.number!==l.date.month&&(l.hidden="hidden"===a||"collapsed"===a||n>1&&l.date.after(e[0].firstDate)&&l.date.before(e[n-1].lastDate))})})})}_updateState(t){const e=Object.assign({},this._state,t);let n=e.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error(`'maxDate' ${e} should be greater than 'minDate' ${t}`)}(e.minDate,e.maxDate),e.focusDate=K_(e.focusDate,e.minDate,e.maxDate),e.firstDate=K_(e.firstDate,e.minDate,e.maxDate),n=e.focusDate),"disabled"in t&&(e.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(n=e.selectedDate),"focusVisible"in t||"focusDate"in t&&(e.focusDate=K_(e.focusDate,e.minDate,e.maxDate),n=e.focusDate,0!==e.months.length&&e.focusDate&&!e.focusDate.before(e.firstDate)&&!e.focusDate.after(e.lastDate)))return e;if("firstDate"in t&&(e.firstDate=K_(e.firstDate,e.minDate,e.maxDate),n=e.firstDate),n){const r=function(t,e,n,r,i){const{displayMonths:o,months:s}=n,a=s.splice(0,s.length);return Array.from({length:o},(n,r)=>{const o=Object.assign(t.getNext(e,"m",r),{day:1});if(s[r]=null,!i){const t=a.findIndex(t=>t.firstDate.equals(o));-1!==t&&(s[r]=a.splice(t,1)[0])}return o}).forEach((e,i)=>{null===s[i]&&(s[i]=function(t,e,n,r,i={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u}=n,h=t.getToday();i.firstDate=null,i.lastDate=null,i.number=e.month,i.year=e.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],e=function(t,e,n){const r=t.getDaysPerWeek(),i=new F_(e.year,e.month,1),o=t.getWeekday(i)%r;return t.getPrev(i,"d",(r+o-n)%r)}(t,e,l);for(let d=0;dt.date),l),n.collapsed="collapsed"===u&&p[0].date.month!==i.number&&p[p.length-1].date.month!==i.number}return i}(t,e,n,r,a.shift()||{}))}),s}(this._calendar,n,e,this._i18n,"dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t);e.months=r,e.firstDate=r[0].firstDate,e.lastDate=r[r.length-1].lastDate,"selectedDate"in t&&!$_(e.selectedDate,e)&&(e.selectedDate=null),"firstDate"in t&&(!e.focusDate||e.focusDate.before(e.firstDate)||e.focusDate.after(e.lastDate))&&(e.focusDate=n);const i=!this._state.firstDate||this._state.firstDate.year!==e.firstDate.year,o=!this._state.firstDate||this._state.firstDate.month!==e.firstDate.month;"select"===e.navigation?(("minDate"in t||"maxDate"in t||0===e.selectBoxes.years.length||i)&&(e.selectBoxes.years=function(t,e,n){if(!t)return[];const r=e?Math.max(e.year,t.year-500):t.year-10,i=(n?Math.min(n.year,t.year+500):t.year+10)-r+1,o=Array(i);for(let s=0;st===n.month);i=i.slice(t)}if(r&&e.year===r.year){const t=i.findIndex(t=>t===r.month);i=i.slice(0,t+1)}return i}(this._calendar,e.firstDate,e.minDate,e.maxDate))):e.selectBoxes={years:[],months:[]},("arrows"===e.navigation||"select"===e.navigation)&&(o||i||"minDate"in t||"maxDate"in t||"disabled"in t)&&(e.prevDisabled=e.disabled||function(t,e,n){const r=Object.assign(t.getPrev(e,"m"),{day:1});return null!=n&&(r.year===n.year&&r.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Q_||(Q_={})),Q_))();let X_=(()=>{let t=class{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();function Z_(){return new ty}let J_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:Z_,token:t,providedIn:"root"}),t})(),ty=(()=>{let t=class extends J_{fromModel(t){return t&&C_(t.year)&&C_(t.month)&&C_(t.day)?{year:t.year,month:t.month,day:t.day}:null}toModel(t){return t&&C_(t.year)&&C_(t.month)&&C_(t.day)?{year:t.year,month:t.month,day:t.day}:null}};return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275prov=pt({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();const ey={provide:sf,useExisting:ot(()=>ry),multi:!0};let ny=(()=>{let t=class{constructor(t){this.templateRef=t}};return t.\u0275fac=function(e){return new(e||t)(sa(Yc))},t.\u0275dir=Qt({type:t,selectors:[["ng-template","ngbDatepickerContent",""]]}),t})(),ry=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a){this._service=t,this._calendar=e,this.i18n=n,this._elementRef=o,this._ngbDateAdapter=s,this._ngZone=a,this._controlValue=null,this._destroyed$=new E,this._publicState={},this.navigate=new ku,this.dateSelect=new ku,this.select=this.dateSelect,this.onChange=t=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(t=>this[t]=r[t]),t.dateSelect$.pipe(Yg(this._destroyed$)).subscribe(t=>{this.dateSelect.emit(t)}),t.model$.pipe(Yg(this._destroyed$)).subscribe(t=>{const e=t.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:t.maxDate,minDate:t.minDate,firstDate:t.firstDate,lastDate:t.lastDate,focusedDate:t.focusDate,months:t.months.map(t=>t.firstDate)};let r=!1;if(!e.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month},preventDefault:()=>r=!0}),r&&null!==n))return void this._service.open(n);const o=t.selectedDate,s=t.focusDate,a=this.model?this.model.focusDate:null;this.model=t,z_(o,this._controlValue)&&(this._controlValue=o,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(o))),z_(s,a)&&a&&t.focusVisible&&this.focus(),i.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(t){this._service.focus(F_.from(t))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(im(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');t&&t.focus()})}navigateTo(t){this._service.open(F_.from(t?t.day?t:Object.assign(Object.assign({},t),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=Lg(this._contentEl.nativeElement,"focusin"),e=Lg(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;K(t,e).pipe(Zg(({target:t,relatedTarget:e})=>!(k_(t,"ngb-dp-day")&&k_(e,"ngb-dp-day")&&n.contains(t)&&n.contains(e))),Yg(this._destroyed$)).subscribe(({type:t})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===t})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const t={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>t[e]=this[e]),this._service.set(t),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(t){const e={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(e=>e in t).forEach(t=>e[t]=this[t]),this._service.set(e),"startDate"in t){const{currentValue:e,previousValue:n}=t.startDate;q_(n,e)&&this.navigateTo(this.startDate)}}onDateSelect(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})}onNavigateDateSelect(t){this._service.open(t)}onNavigateEvent(t){switch(t){case Q_.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Q_.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._service.set({disabled:t})}writeValue(t){this._controlValue=F_.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)}};return t.\u0275fac=function(e){return new(e||t)(sa(Y_),sa(B_),sa(G_),sa(X_),sa(qc),sa(yc),sa(J_),sa(fh))},t.\u0275cmp=qt({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(t,e,n){if(1&t&&Hu(n,ny,7),2&t){let t;Fu(t=Vu())&&(e.contentTemplate=t.first)}},viewQuery:function(t,e){if(1&t&&(Uu(wm,7),Uu(Cm,7)),2&t){let t;Fu(t=Vu())&&(e._defaultDayTemplate=t.first),Fu(t=Vu())&&(e._contentEl=t.first)}},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect",select:"select"},exportAs:["ngbDatepicker"],features:[uc([ey,Y_]),ce],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(t,e){if(1&t&&(ia(0,Sm,1,5,"ng-template",null,0,qu),ia(2,Om,1,1,"ng-template",null,1,qu),ca(4,"div",2),ia(5,Tm,1,7,"ngb-datepicker-navigation",3),ua(),ca(6,"div",4,5),ia(8,xm,0,0,"ng-template",6),ua(),ia(9,Am,0,0,"ng-template",6)),2&t){const t=oa(3);xo(5),aa("ngIf","none"!==e.navigation),xo(1),Na("ngb-dp-months",!e.contentTemplate),xo(2),aa("ngTemplateOutlet",(null==e.contentTemplate?null:e.contentTemplate.templateRef)||t),xo(1),aa("ngTemplateOutlet",e.footerTemplate)}},directives:function(){return[tp,ap,ky,Zd,sy,ay]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),Jp([sr("defaultDayTemplate",{static:!0})],t.prototype,"_defaultDayTemplate",void 0),Jp([sr("content",{static:!0})],t.prototype,"_contentEl",void 0),Jp([or(ny,{static:!0})],t.prototype,"contentTemplate",void 0),Jp([Ku()],t.prototype,"dayTemplate",void 0),Jp([Ku()],t.prototype,"dayTemplateData",void 0),Jp([Ku()],t.prototype,"displayMonths",void 0),Jp([Ku()],t.prototype,"firstDayOfWeek",void 0),Jp([Ku()],t.prototype,"footerTemplate",void 0),Jp([Ku()],t.prototype,"markDisabled",void 0),Jp([Ku()],t.prototype,"maxDate",void 0),Jp([Ku()],t.prototype,"minDate",void 0),Jp([Ku()],t.prototype,"navigation",void 0),Jp([Ku()],t.prototype,"outsideDays",void 0),Jp([Ku()],t.prototype,"showWeekdays",void 0),Jp([Ku()],t.prototype,"showWeekNumbers",void 0),Jp([Ku()],t.prototype,"startDate",void 0),Jp([$u()],t.prototype,"navigate",void 0),Jp([$u()],t.prototype,"dateSelect",void 0),Jp([$u()],t.prototype,"select",void 0),t})();var iy=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(iy||(iy={})),iy))();let oy=(()=>{let t=class{processKey(t,e){const{state:n,calendar:r}=e;switch(t.which){case iy.PageUp:e.focusDate(r.getPrev(n.focusedDate,t.shiftKey?"y":"m",1));break;case iy.PageDown:e.focusDate(r.getNext(n.focusedDate,t.shiftKey?"y":"m",1));break;case iy.End:e.focusDate(t.shiftKey?n.maxDate:n.lastDate);break;case iy.Home:e.focusDate(t.shiftKey?n.minDate:n.firstDate);break;case iy.ArrowLeft:e.focusDate(r.getPrev(n.focusedDate,"d",1));break;case iy.ArrowUp:e.focusDate(r.getPrev(n.focusedDate,"d",r.getDaysPerWeek()));break;case iy.ArrowRight:e.focusDate(r.getNext(n.focusedDate,"d",1));break;case iy.ArrowDown:e.focusDate(r.getNext(n.focusedDate,"d",r.getDaysPerWeek()));break;case iy.Enter:case iy.Space:e.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),sy=(()=>{let t=class{constructor(t,e,n,r){this.i18n=t,this.datepicker=e,this._keyboardService=n,this._service=r}set month(t){this.viewModel=this._service.getMonth(t)}onKeyDown(t){this._keyboardService.processKey(t,this.datepicker)}doSelect(t){!t.context.disabled&&!t.hidden&&this.datepicker.onDateSelect(t.date)}};return t.\u0275fac=function(e){return new(e||t)(sa(G_),sa(ry),sa(oy),sa(Y_))},t.\u0275cmp=qt({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(t,e){1&t&&ba("keydown",function(t){return e.onKeyDown(t)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(ia(0,Pm,3,2,"div",0),ia(1,Um,1,1,"ng-template",1)),2&t&&(aa("ngIf",e.datepicker.showWeekdays),xo(1),aa("ngForOf",e.viewModel.weeks))},directives:[tp,Zd,ap],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),Jp([Ku()],t.prototype,"month",null),t})(),ay=(()=>{let t=class{constructor(t){this.i18n=t,this.navigation=Q_,this.months=[],this.navigate=new ku,this.select=new ku}onClickPrev(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}};return t.\u0275fac=function(e){return new(e||t)(sa(G_))},t.\u0275cmp=qt({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let t,e,n,r;return t=$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,e=$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,n=$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,r=$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",t,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",n,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(t,e){1&t&&(ca(0,"div",0),ca(1,"button",1),ba("click",function(t){return e.onClickPrev(t)}),ha(2,"span",2),ua(),ua(),ia(3,Hm,1,4,"ngb-datepicker-navigation-select",3),ia(4,zm,1,1,void 0,4),ca(5,"div",5),ca(6,"button",6),ba("click",function(t){return e.onClickNext(t)}),ha(7,"span",2),ua(),ua()),2&t&&(xo(1),aa("disabled",e.prevDisabled),xo(2),aa("ngIf",e.showSelect),xo(1),aa("ngIf",!e.showSelect),xo(2),aa("disabled",e.nextDisabled))},directives:function(){return[tp,Oy,Zd]},styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),Jp([Ku()],t.prototype,"date",void 0),Jp([Ku()],t.prototype,"disabled",void 0),Jp([Ku()],t.prototype,"months",void 0),Jp([Ku()],t.prototype,"showSelect",void 0),Jp([Ku()],t.prototype,"prevDisabled",void 0),Jp([Ku()],t.prototype,"nextDisabled",void 0),Jp([Ku()],t.prototype,"selectBoxes",void 0),Jp([$u()],t.prototype,"navigate",void 0),Jp([$u()],t.prototype,"select",void 0),t})();const ly=(t,e)=>!!e&&e.some(e=>e.contains(t)),cy=(t,e)=>!e||null!=function(t,e){return e&&void 0!==t.closest?t.closest(e):null}(t,e),uy="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function hy(t,e,n,r,i,o,s,a){n&&t.runOutsideAngular((t=>uy?()=>setTimeout(()=>t(),100):t)(()=>{const c=Lg(e,"keydown").pipe(Yg(i),Zg(t=>t.which===iy.Escape),am(t=>t.preventDefault())),u=Lg(e,"mousedown").pipe(N(t=>{const e=t.target;return 2!==t.button&&!ly(e,s)&&("inside"===n?ly(e,o)&&cy(e,a):"outside"===n?!ly(e,o):cy(e,a)||!ly(e,o))}),Yg(i)),h=Lg(e,"mouseup").pipe(um(u),Zg(([t,e])=>e),function(t,e=Pg){const n=pm(t)?+t-e.now():Math.abs(t);return t=>t.lift(new _m(n,e))}(0),Yg(i));(function(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return q(t,void 0).lift(new Ug)})([c.pipe(N(t=>0)),h.pipe(N(t=>1))]).subscribe(e=>t.run(()=>r(e)))}))}const dy=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function py(t){const e=Array.from(t.querySelectorAll(dy)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const fy=(t,e,n,r=!1)=>{t.runOutsideAngular(()=>{const t=Lg(e,"focusin").pipe(Yg(n),N(t=>t.target));Lg(e,"keydown").pipe(Yg(n),Zg(t=>t.which===iy.Tab),um(t)).subscribe(([t,n])=>{const[r,i]=py(e);(n===r||n===e)&&t.shiftKey&&(i.focus(),t.preventDefault()),n===i&&!t.shiftKey&&(r.focus(),t.preventDefault())}),r&&Lg(e,"click").pipe(Yg(n),um(t),N(t=>t[1])).subscribe(t=>t.focus())})},gy=/\s+/,my=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 n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(r=this.offset(e,!1)),r.top+=e.clientTop,r.left+=e.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let o={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(t,e,n,r){const[i="top",o="center"]=n.split("-"),s=r?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,p=0;switch(i){case"top":d=s.top-(e.offsetHeight+l+c);break;case"bottom":d=s.top+s.height;break;case"left":p=s.left-(e.offsetWidth+u+h);break;case"right":p=s.left+s.width}switch(o){case"top":d=s.top;break;case"bottom":d=s.top+s.height-e.offsetHeight;break;case"left":p=s.left;break;case"right":p=s.left+s.width-e.offsetWidth;break;case"center":"top"===i||"bottom"===i?p=s.left+s.width/2-e.offsetWidth/2:d=s.top+s.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=e.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,_=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=_&&f.bottom<=m}};function _y(t,e,n,r,i){let o=Array.isArray(n)?n:n.split(gy);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,l=t=>{const[e,n]=t.split("-"),r=[];return i&&(r.push(`${i}-${e}`),n&&r.push(`${i}-${e}-${n}`),r.forEach(t=>{a.add(t)})),r};i&&s.forEach(t=>{a.remove(`${i}-${t}`)});let c=o.findIndex(t=>"auto"===t);c>=0&&s.forEach(function(t){null==o.find(e=>-1!==e.search("^"+t))&&o.splice(c++,1,t)});const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of o){let n=l(h);if(my.positionElements(t,e,h,r)){d=!0;break}i&&n.forEach(t=>{a.remove(t)})}return d||(h=o[0],l(h),my.positionElements(t,e,h,r)),h}function yy(){return new vy}let by=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:yy,token:t,providedIn:"root"}),t})(),vy=(()=>{let t=class extends by{parse(t){if(null!=t){const e=t.trim().split("-");if(1===e.length&&w_(e[0]))return{year:y_(e[0]),month:null,day:null};if(2===e.length&&w_(e[0])&&w_(e[1]))return{year:y_(e[0]),month:y_(e[1]),day:null};if(3===e.length&&w_(e[0])&&w_(e[1])&&w_(e[2]))return{year:y_(e[0]),month:y_(e[1]),day:y_(e[2])}}return null}format(t){return t?`${t.year}-${w_(t.month)?E_(t.month):""}-${w_(t.day)?E_(t.day):""}`:""}};return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275prov=pt({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),wy=(()=>{let t=class extends X_{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}};return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Cy={provide:sf,useExisting:ot(()=>Ey),multi:!0},Sy={provide:uf,useExisting:ot(()=>Ey),multi:!0};let Ey=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a,l,c,u){this._parserFormatter=t,this._elRef=e,this._vcRef=n,this._renderer=r,this._cfr=i,this._ngZone=o,this._calendar=s,this._dateAdapter=a,this._document=l,this._changeDetector=c,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new ku,this.navigate=new ku,this.closed=new ku,this._onChange=t=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(t=>this[t]=u[t]),this._zoneSubscription=o.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(t){this._disabled=""===t||t&&"false"!==t,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}registerOnValidatorChange(t){this._validatorChange=t}setDisabledState(t){this.disabled=t}validate(t){const{value:e}=t;if(null!=e){const t=this._fromDateStruct(this._dateAdapter.fromModel(e));if(!t)return{ngbDate:{invalid:e}};if(this.minDate&&t.before(F_.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:e}}};if(this.maxDate&&t.after(F_.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:e}}}}return null}writeValue(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)}manualDateChange(t,e=!1){const n=t!==this._inputValue;n&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),(n||!e)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===t?null:t),e&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const t=this._cfr.resolveComponentFactory(ry);this._cRef=this._vcRef.createComponent(t),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(t=>{this.writeValue(t),this._onChange(t),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,fy(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),hy(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let t=this._elWithFocus;v_(this.restoreFocus)?t=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(t=this.restoreFocus),t&&t.focus?t.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(t){this.isOpen()&&this._cRef.instance.navigateTo(t)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(t){(t.minDate||t.maxDate)&&(this._validatorChange(),this.isOpen()&&(t.minDate&&(this._cRef.instance.minDate=this.minDate),t.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(t)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(t){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(e=>{void 0!==this[e]&&(t[e]=this[e])}),t.startDate=this.startDate||this._model}_applyPopupStyling(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.addClass(t,"show"),"body"===this.container&&this._renderer.addClass(t,"ngb-dp-body")}_subscribeForDatepickerOutputs(t){t.navigate.subscribe(t=>this.navigate.emit(t)),t.dateSelect.subscribe(t=>{this.dateSelect.emit(t),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(t){const e=this._parserFormatter.format(t);this._inputValue=e,this._renderer.setProperty(this._elRef.nativeElement,"value",e),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())}_fromDateStruct(t){const e=t?new F_(t.year,t.month,t.day):null;return this._calendar.isValid(e)?e:null}_updatePopupPosition(){if(!this._cRef)return;let t;if(t=v_(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");_y(t,this._cRef.location.nativeElement,this.placement,"body"===this.container)}};return t.\u0275fac=function(e){return new(e||t)(sa(by),sa(yc),sa(nu),sa(wc),sa(fc),sa(fh),sa(B_),sa(J_),sa(Gh),sa(qc),sa(wy))},t.\u0275dir=Qt({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(t,e){1&t&&ba("input",function(t){return e.manualDateChange(t.target.value)})("change",function(t){return e.manualDateChange(t.target.value,!0)})("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&Za("disabled",e.disabled)},inputs:{disabled:"disabled",autoClose:"autoClose",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[uc([Cy,Sy,{provide:X_,useExisting:wy}]),ce]}),Jp([Ku()],t.prototype,"autoClose",void 0),Jp([Ku()],t.prototype,"dayTemplate",void 0),Jp([Ku()],t.prototype,"dayTemplateData",void 0),Jp([Ku()],t.prototype,"displayMonths",void 0),Jp([Ku()],t.prototype,"firstDayOfWeek",void 0),Jp([Ku()],t.prototype,"footerTemplate",void 0),Jp([Ku()],t.prototype,"markDisabled",void 0),Jp([Ku()],t.prototype,"minDate",void 0),Jp([Ku()],t.prototype,"maxDate",void 0),Jp([Ku()],t.prototype,"navigation",void 0),Jp([Ku()],t.prototype,"outsideDays",void 0),Jp([Ku()],t.prototype,"placement",void 0),Jp([Ku()],t.prototype,"restoreFocus",void 0),Jp([Ku()],t.prototype,"showWeekdays",void 0),Jp([Ku()],t.prototype,"showWeekNumbers",void 0),Jp([Ku()],t.prototype,"startDate",void 0),Jp([Ku()],t.prototype,"container",void 0),Jp([Ku()],t.prototype,"positionTarget",void 0),Jp([$u()],t.prototype,"dateSelect",void 0),Jp([$u()],t.prototype,"navigate",void 0),Jp([$u()],t.prototype,"closed",void 0),Jp([Ku()],t.prototype,"disabled",null),t=Jp([tf(8,Ir(Gh))],t),t})(),ky=(()=>{let t=class{constructor(t){this.i18n=t}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}};return t.\u0275fac=function(e){return new(e||t)(sa(G_))},t.\u0275cmp=qt({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(t,e){2&t&&Na("bg-primary",e.selected)("text-white",e.selected)("text-muted",e.isMuted())("outside",e.isMuted())("active",e.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:qm,decls:1,vars:1,template:function(t,e){1&t&&Wa(0),2&t&&Ya(e.i18n.getDayNumerals(e.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),Jp([Ku()],t.prototype,"currentMonth",void 0),Jp([Ku()],t.prototype,"date",void 0),Jp([Ku()],t.prototype,"disabled",void 0),Jp([Ku()],t.prototype,"focused",void 0),Jp([Ku()],t.prototype,"selected",void 0),t})(),Oy=(()=>{let t=class{constructor(t,e){this.i18n=t,this._renderer=e,this.select=new ku,this._month=-1,this._year=-1}changeMonth(t){this.select.emit(new F_(this.date.year,y_(t),1))}changeYear(t){this.select.emit(new F_(y_(t),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}};return t.\u0275fac=function(e){return new(e||t)(sa(G_),sa(wc))},t.\u0275cmp=qt({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(t,e){if(1&t&&(Uu(Km,7,yc),Uu($m,7,yc)),2&t){let t;Fu(t=Vu())&&(e.monthSelect=t.first),Fu(t=Vu())&&(e.yearSelect=t.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let t,e,n,r;return t=$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,e=$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,n=$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,r=$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,[["aria-label",t,"title",e,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",n,"title",r,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(t,e){1&t&&(ca(0,"select",0,1),ba("change",function(t){return e.changeMonth(t.target.value)}),ia(2,Gm,2,3,"option",2),ua(),ca(3,"select",3,4),ba("change",function(t){return e.changeYear(t.target.value)}),ia(5,Wm,2,2,"option",2),ua()),2&t&&(aa("disabled",e.disabled),xo(2),aa("ngForOf",e.months),xo(1),aa("disabled",e.disabled),xo(2),aa("ngForOf",e.years))},directives:[Zd,gg,bg],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),Jp([Ku()],t.prototype,"date",void 0),Jp([Ku()],t.prototype,"disabled",void 0),Jp([Ku()],t.prototype,"months",void 0),Jp([Ku()],t.prototype,"years",void 0),Jp([$u()],t.prototype,"select",void 0),Jp([sr("month",{static:!0,read:yc})],t.prototype,"monthSelect",void 0),Jp([sr("year",{static:!0,read:yc})],t.prototype,"yearSelect",void 0),t})();new Date(1882,10,12),new Date(2174,10,25);let Ty=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp,wg]]}),t})(),xy=(()=>{let t=class{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();var Ay;let Ry=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t,selectors:[["",8,"navbar"]]}),t})(),Iy=(()=>{let t=class{constructor(t){this.elementRef=t,this._disabled=!1}set disabled(t){this._disabled=""===t||!0===t}get disabled(){return this._disabled}};return t.\u0275fac=function(e){return new(e||t)(sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(t,e){2&t&&Na("disabled",e.disabled)},inputs:{disabled:"disabled"}}),Jp([Ku()],t.prototype,"disabled",null),t})(),Py=(()=>{let t=class{constructor(t,e){this.dropdown=t,this.placement="bottom",this.isOpen=!1,this.nativeElement=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(sa(ot(()=>Ny)),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(t,e,n){if(1&t&&Hu(n,Iy,4),2&t){let t;Fu(t=Vu())&&(e.menuItems=t)}},hostVars:5,hostBindings:function(t,e){1&t&&ba("keydown.ArrowUp",function(t){return e.dropdown.onKeyDown(t)})("keydown.ArrowDown",function(t){return e.dropdown.onKeyDown(t)})("keydown.Home",function(t){return e.dropdown.onKeyDown(t)})("keydown.End",function(t){return e.dropdown.onKeyDown(t)})("keydown.Enter",function(t){return e.dropdown.onKeyDown(t)})("keydown.Space",function(t){return e.dropdown.onKeyDown(t)})("keydown.Tab",function(t){return e.dropdown.onKeyDown(t)})("keydown.Shift.Tab",function(t){return e.dropdown.onKeyDown(t)}),2&t&&(na("x-placement",e.placement),Na("dropdown-menu",!0)("show",e.dropdown.isOpen()))}}),Jp([ir(Iy)],t.prototype,"menuItems",void 0),t=Jp([tf(0,Ir(ot(()=>Ny)))],t),t})(),My=(()=>{let t=class{constructor(t,e){this.dropdown=t,this.nativeElement=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(sa(ot(()=>Ny)),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){2&t&&na("aria-expanded",e.dropdown.isOpen())}}),t=Jp([tf(0,Ir(ot(()=>Ny)))],t),t})(),Dy=Ay=class extends My{constructor(t,e){super(t,e)}};Dy.\u0275fac=function(t){return new(t||Dy)(sa(ot(()=>Ny)),sa(yc))},Dy.\u0275dir=Qt({type:Dy,selectors:[["","ngbDropdownToggle",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){1&t&&ba("click",function(){return e.dropdown.toggle()})("keydown.ArrowUp",function(t){return e.dropdown.onKeyDown(t)})("keydown.ArrowDown",function(t){return e.dropdown.onKeyDown(t)})("keydown.Home",function(t){return e.dropdown.onKeyDown(t)})("keydown.End",function(t){return e.dropdown.onKeyDown(t)})("keydown.Tab",function(t){return e.dropdown.onKeyDown(t)})("keydown.Shift.Tab",function(t){return e.dropdown.onKeyDown(t)}),2&t&&na("aria-expanded",e.dropdown.isOpen())},features:[uc([{provide:My,useExisting:ot(()=>Ay)}]),zs]}),Dy.ctorParameters=()=>[{type:void 0,decorators:[{type:Ir,args:[ot(()=>Ny)]}]},{type:yc}],Dy=Ay=Jp([tf(0,Ir(ot(()=>Ny)))],Dy);let Ny=(()=>{let t=class{constructor(t,e,n,r,i,o,s){this._changeDetector=t,this._document=n,this._ngZone=r,this._elementRef=i,this._renderer=o,this._closed$=new E,this._bodyContainer=null,this._open=!1,this.openChange=new ku,this.placement=e.placement,this.container=e.container,this.autoClose=e.autoClose,this.display=s?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(im(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){hy(this._ngZone,this._document,this.autoClose,t=>{this.close(),0===t&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(t){const e=t.which,n=this._getMenuElements();let r=-1,i=null;const o=this._isEventFromToggle(t);if(!o&&n.length&&n.forEach((e,n)=>{e.contains(t.target)&&(i=e),e===this._document.activeElement&&(r=n)}),e!==iy.Space&&e!==iy.Enter){if(e!==iy.Tab){if(o||i){if(this.open(),n.length){switch(e){case iy.ArrowDown:r=Math.min(r+1,n.length-1);break;case iy.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case iy.Home:r=0;break;case iy.End:r=n.length-1}n[r].focus()}t.preventDefault()}}else if(t.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===t.target)return void("body"!==this.container||t.shiftKey?t.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const e=this._menu.nativeElement.querySelectorAll(dy);t.shiftKey&&t.target===e[0]?(this._anchor.nativeElement.focus(),t.preventDefault()):!t.shiftKey&&t.target===e[e.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Lg(t.target,"focusout").pipe(im(1)).subscribe(({relatedTarget:t})=>{this._elementRef.nativeElement.contains(t)||this.close()})}}else i&&(!0===this.autoClose||"inside"===this.autoClose)&&Lg(i,"click").pipe(im(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.nativeElement.contains(t.target)}_getMenuElements(){const t=this._menu;return null==t?[]:t.menuItems.filter(t=>!t.disabled).map(t=>t.elementRef.nativeElement)}_positionMenu(){const t=this._menu;this.isOpen()&&t&&this._applyPlacementClasses("dynamic"===this.display?_y(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){const t=this._renderer;if(this._menu){const e=this._menu.nativeElement;t.appendChild(this._elementRef.nativeElement,e),t.removeStyle(e,"position"),t.removeStyle(e,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),"body"===t){const t=this._renderer,e=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(e,"position","static"),t.setStyle(n,"z-index","1050"),t.appendChild(n,e),t.appendChild(this._document.body,n)}}_applyPlacementClasses(t){const e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));const n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),e.placement="static"===this.display?null:t;const i=-1!==t.search("^top")?"dropup":"dropdown";n.addClass(r,i);const o=this._bodyContainer;o&&(n.removeClass(o,"dropup"),n.removeClass(o,"dropdown"),n.addClass(o,i))}}};return t.\u0275fac=function(e){return new(e||t)(sa(qc),sa(xy),sa(Gh),sa(fh),sa(yc),sa(wc),sa(Ry,8))},t.\u0275dir=Qt({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(t,e,n){if(1&t&&(Hu(n,Py,5),Hu(n,My,5)),2&t){let t;Fu(t=Vu())&&(e._menu=t.first),Fu(t=Vu())&&(e._anchor=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&Na("show",e.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[ce]}),Jp([or(Py,{static:!1})],t.prototype,"_menu",void 0),Jp([or(My,{static:!1})],t.prototype,"_anchor",void 0),Jp([Ku()],t.prototype,"autoClose",void 0),Jp([Ku("open")],t.prototype,"_open",void 0),Jp([Ku()],t.prototype,"placement",void 0),Jp([Ku()],t.prototype,"container",void 0),Jp([Ku()],t.prototype,"display",void 0),Jp([$u()],t.prototype,"openChange",void 0),t=Jp([tf(2,Ir(Gh)),tf(6,Pr())],t),t})(),Ly=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})(),Fy=(()=>{let t=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Uy{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class Hy{constructor(t,e,n,r,i,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._componentFactoryResolver=i,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes)),this._windowRef}close(){var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}_getContentRef(t,e){if(t){if(t instanceof Yc){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new Uy([n.rootNodes],n)}return new Uy([[this._renderer.createText(`${t}`)]])}return new Uy([])}}const Vy=()=>{};let By=(()=>{let t=class{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Vy}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${r+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}};return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh))},token:t,providedIn:"root"}),t=Jp([tf(0,Ir(Gh))],t),t})(),jy=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(t,e){2&t&&La("modal-backdrop fade show"+(e.backdropClass?" "+e.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),Jp([Ku()],t.prototype,"backdropClass",void 0),t})();class zy{close(t){}dismiss(t){}}class qy{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}_dismiss(t){this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){const t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var Ky=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Ky||(Ky={})),Ky))();let $y=(()=>{let t=class{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new E,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ku}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:t}=this._elRef;if(this._zone.runOutsideAngular(()=>{Lg(t,"keydown").pipe(Yg(this._closed$),Zg(t=>t.which===iy.Escape&&this.keyboard)).subscribe(t=>requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Ky.ESC))}));let e=!1;Lg(this._dialogEl.nativeElement,"mousedown").pipe(Yg(this._closed$),am(()=>e=!1),$g(()=>Lg(t,"mouseup").pipe(Yg(this._closed$),im(1))),Zg(({target:e})=>t===e)).subscribe(()=>{e=!0}),Lg(t,"click").pipe(Yg(this._closed$)).subscribe(({target:n})=>{!0===this.backdrop&&t===n&&!e&&this._zone.run(()=>this.dismiss(Ky.BACKDROP_CLICK)),e=!1})}),!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=py(t)[0];(e||n||t).focus()}}ngOnDestroy(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}};return t.\u0275fac=function(e){return new(e||t)(sa(Gh),sa(yc),sa(fh))},t.\u0275cmp=qt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&Uu(Ym,7),2&t){let t;Fu(t=Vu())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(t,e){2&t&&(na("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),La("modal fade show d-block"+(e.windowClass?" "+e.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:vm,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(Ea(),ca(0,"div",0,1),ca(2,"div",2),ka(3),ua(),ua()),2&t&&La("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),Jp([sr("dialog",{static:!0})],t.prototype,"_dialogEl",void 0),Jp([Ku()],t.prototype,"ariaLabelledBy",void 0),Jp([Ku()],t.prototype,"ariaDescribedBy",void 0),Jp([Ku()],t.prototype,"backdrop",void 0),Jp([Ku()],t.prototype,"centered",void 0),Jp([Ku()],t.prototype,"keyboard",void 0),Jp([Ku()],t.prototype,"scrollable",void 0),Jp([Ku()],t.prototype,"size",void 0),Jp([Ku()],t.prototype,"windowClass",void 0),Jp([$u("dismiss")],t.prototype,"dismissEvent",void 0),t=Jp([tf(0,Ir(Gh))],t),t})(),Gy=(()=>{let t=class{constructor(t,e,n,r,i,o){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=i,this._ngZone=o,this._activeWindowCmptHasChanged=new E,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new ku,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];fy(this._ngZone,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,r){const i=r.container instanceof HTMLElement?r.container:S_(r.container)?this._document.querySelector(r.container):this._document.body,o=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new zy,c=this._getContentRef(t,r.injector||e,n,l,r);let u=!1!==r.backdrop?this._attachBackdrop(t,i):void 0,h=this._attachWindowComponent(t,i,c),d=new qy(h,c,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(s,s),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,r),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(jy).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let r=t.resolveComponentFactory($y).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{S_(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{S_(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,r,i){return n?n instanceof Yc?this._createFromTemplateRef(n,r):v_(n)?this._createFromString(n):this._createFromComponent(t,e,n,r,i):new Uy([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Uy([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new Uy([[e]])}_createFromComponent(t,e,n,r,i){const o=t.resolveComponentFactory(n),s=Bs.create({providers:[{provide:zy,useValue:r}],parent:e}),a=o.create(s),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Uy([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}};return t.\u0275fac=function(e){return new(e||t)(kr(Nh),kr(Bs),kr(Gh),kr(By),kr(vc),kr(fh))},t.\u0275prov=pt({factory:function(){return new t(kr(Nh),kr(Os),kr(Gh),kr(By),kr(vc),kr(fh))},token:t,providedIn:"root"}),t=Jp([tf(2,Ir(Gh))],t),t})(),Wy=(()=>{let t=class{constructor(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}open(t,e={}){const n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return t.\u0275fac=function(e){return new(e||t)(kr(fc),kr(Bs),kr(Gy),kr(Fy))},t.\u0275prov=pt({factory:function(){return new t(kr(fc),kr(Os),kr(Gy),kr(Fy))},token:t,providedIn:"root"}),t})(),Yy=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[Wy]}),t})(),Qy=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),Xy=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),Zy=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),Jy=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),tb=(()=>{let t=class{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const eb={provide:sf,useExisting:ot(()=>nb),multi:!0};let nb=(()=>{let t=class{constructor(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new ku,this.leave=new ku,this.rateChange=new ku(!0),this.onChange=t=>{},this.onTouched=()=>{},this.max=t.max,this.readonly=t.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}enter(t){!this.readonly&&!this.disabled&&this._updateState(t),this.hover.emit(t)}handleBlur(){this.onTouched()}handleClick(t){!this.readonly&&!this.disabled&&this.update(this.resettable&&this.rate===t?0:t)}handleKeyDown(t){switch(t.which){case iy.ArrowDown:case iy.ArrowLeft:this.update(this.rate-1);break;case iy.ArrowUp:case iy.ArrowRight:this.update(this.rate+1);break;case iy.Home:this.update(0);break;case iy.End:this.update(this.max);break;default:return}t.preventDefault()}ngOnChanges(t){t.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(t,e)=>({fill:0,index:e})),this._updateState(this.rate)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(t){this.disabled=t}update(t,e=!0){const n=function(t,e,n=0){return Math.max(Math.min(t,e),n)}(t,this.max,0);!this.readonly&&!this.disabled&&this.rate!==n&&(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(t){this.update(t,!1),this._changeDetectorRef.markForCheck()}_getFillValue(t){const e=this.nextRate-t;return e>=1?100:e<1&&e>0?parseInt((100*e).toFixed(2),10):0}_updateState(t){this.nextRate=t,this.contexts.forEach((t,e)=>t.fill=this._getFillValue(e))}};return t.\u0275fac=function(e){return new(e||t)(sa(tb),sa(qc))},t.\u0275cmp=qt({type:t,selectors:[["ngb-rating"]],contentQueries:function(t,e,n){if(1&t&&Hu(n,Yc,5),2&t){let t;Fu(t=Vu())&&(e.starTemplateFromContent=t.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(t,e){1&t&&ba("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)})("mouseleave",function(){return e.reset()}),2&t&&(Za("tabindex",e.disabled?-1:0),na("aria-valuemax",e.max)("aria-valuenow",e.nextRate)("aria-valuetext",e.ariaValueText())("aria-disabled",!!e.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[uc([eb]),ce],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(ia(0,Qm,1,1,"ng-template",null,0,qu),ia(2,Zm,4,5,"ng-template",1)),2&t&&(xo(2),aa("ngForOf",e.contexts))},directives:[Zd,ap],encapsulation:2,changeDetection:0}),Jp([Ku()],t.prototype,"max",void 0),Jp([Ku()],t.prototype,"rate",void 0),Jp([Ku()],t.prototype,"readonly",void 0),Jp([Ku()],t.prototype,"resettable",void 0),Jp([Ku()],t.prototype,"starTemplate",void 0),Jp([or(Yc,{static:!1})],t.prototype,"starTemplateFromContent",void 0),Jp([$u()],t.prototype,"hover",void 0),Jp([$u()],t.prototype,"leave",void 0),Jp([$u()],t.prototype,"rateChange",void 0),t})(),rb=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),ib=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})();class ob{constructor(t,e,n){this.hour=y_(t),this.minute=y_(e),this.second=y_(n)}changeHour(t=1){this.updateHour((isNaN(this.hour)?0:this.hour)+t)}updateHour(t){this.hour=w_(t)?(t<0?24+t:t)%24:NaN}changeMinute(t=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+t)}updateMinute(t){w_(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN}changeSecond(t=1){this.updateSecond((isNaN(this.second)?0:this.second)+t)}updateSecond(t){w_(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN}isValid(t=!0){return w_(this.hour)&&w_(this.minute)&&(!t||w_(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let sb=(()=>{let t=class{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();function ab(){return new cb}let lb=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:ab,token:t,providedIn:"root"}),t})(),cb=(()=>{let t=class extends lb{fromModel(t){return t&&C_(t.hour)&&C_(t.minute)?{hour:t.hour,minute:t.minute,second:C_(t.second)?t.second:null}:null}toModel(t){return t&&C_(t.hour)&&C_(t.minute)?{hour:t.hour,minute:t.minute,second:C_(t.second)?t.second:null}:null}};return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275prov=pt({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),ub=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return function(t){return new hb(t)}(kr(nh))},token:t,providedIn:"root"}),t})(),hb=(()=>{let t=class extends ub{constructor(t){super(),this._periods=md(t,dd.Standalone,pd.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}};return t.\u0275fac=function(e){return new(e||t)(kr(nh))},t.\u0275prov=pt({token:t,factory:function(e){return t.\u0275fac(e)}}),t=Jp([tf(0,Ir(nh))],t),t})();const db=/[^0-9]/g,pb={provide:sf,useExisting:ot(()=>fb),multi:!0};let fb=(()=>{let t=class{constructor(t,e,n,r){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.i18n=r,this.onChange=t=>{},this.onTouched=()=>{},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}set hourStep(t){this._hourStep=C_(t)?t:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(t){this._minuteStep=C_(t)?t:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(t){this._secondStep=C_(t)?t:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(t){const e=this._ngbTimeAdapter.fromModel(t);this.model=e?new ob(e.hour,e.minute,e.second):new ob,!this.seconds&&(!e||!w_(e.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}changeHour(t){this.model.changeHour(t),this.propagateModelChange()}changeMinute(t){this.model.changeMinute(t),this.propagateModelChange()}changeSecond(t){this.model.changeSecond(t),this.propagateModelChange()}updateHour(t){const e=this.model.hour>=12,n=y_(t);this.model.updateHour(this.meridian&&(e&&n<12||!e&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(t){this.model.updateMinute(y_(t)),this.propagateModelChange()}updateSecond(t){this.model.updateSecond(y_(t)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(t){t.value=t.value.replace(db,"")}formatHour(t){return w_(t)?E_(this.meridian?t%12==0?12:t%12:t%24):E_(NaN)}formatMinSec(t){return E_(w_(t)?t:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(t){t.seconds&&!this.seconds&&this.model&&!w_(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(t=!0){t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}};return t.\u0275fac=function(e){return new(e||t)(sa(sb),sa(lb),sa(qc),sa(ub))},t.\u0275cmp=qt({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[uc([pb]),ce],decls:16,vars:25,consts:function(){let t,e,n,r,i,o,s,a,l,c,u,h,d,p;return t=$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,e=$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`,n=$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,r=$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`,i=$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,o=$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,s=$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,a=$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,l=$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,c=$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`,u=$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,d=$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",t,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],i,[1,"chevron","ngb-tp-chevron","bottom"],o,s,a,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",l,"aria-label",c,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],u,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],d,p]},template:function(t,e){1&t&&(ca(0,"fieldset",0),ca(1,"div",1),ca(2,"div",2),ia(3,Jm,4,7,"button",3),ca(4,"input",4),ba("change",function(t){return e.updateHour(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeHour(e.hourStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeHour(-e.hourStep),t.preventDefault()}),ua(),ia(5,t_,4,7,"button",3),ua(),ca(6,"div",5),Wa(7,":"),ua(),ca(8,"div",6),ia(9,e_,4,7,"button",3),ca(10,"input",7),ba("change",function(t){return e.updateMinute(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeMinute(e.minuteStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeMinute(-e.minuteStep),t.preventDefault()}),ua(),ia(11,n_,4,7,"button",3),ua(),ia(12,r_,2,0,"div",8),ia(13,s_,4,9,"div",9),ia(14,a_,1,0,"div",8),ia(15,u_,5,9,"div",10),ua(),ua()),2&t&&(Na("disabled",e.disabled),aa("disabled",e.disabled),xo(3),aa("ngIf",e.spinners),xo(1),Na("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),aa("value",e.formatHour(null==e.model?null:e.model.hour))("readOnly",e.readonlyInputs)("disabled",e.disabled),xo(1),aa("ngIf",e.spinners),xo(4),aa("ngIf",e.spinners),xo(1),Na("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),aa("value",e.formatMinSec(null==e.model?null:e.model.minute))("readOnly",e.readonlyInputs)("disabled",e.disabled),xo(1),aa("ngIf",e.spinners),xo(1),aa("ngIf",e.seconds),xo(1),aa("ngIf",e.seconds),xo(1),aa("ngIf",e.meridian),xo(1),aa("ngIf",e.meridian))},directives:[tp],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}'],encapsulation:2}),Jp([Ku()],t.prototype,"meridian",void 0),Jp([Ku()],t.prototype,"spinners",void 0),Jp([Ku()],t.prototype,"seconds",void 0),Jp([Ku()],t.prototype,"hourStep",null),Jp([Ku()],t.prototype,"minuteStep",null),Jp([Ku()],t.prototype,"secondStep",null),Jp([Ku()],t.prototype,"readonlyInputs",void 0),Jp([Ku()],t.prototype,"size",void 0),t})(),gb=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),mb=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})(),_b=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})(),yb=(()=>{let t=class{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(t){const e=b_(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(t=>function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(b_(t))).filter(t=>t);this.parts=n.length?e.split(new RegExp(`(${n.join("|")})`,"gmi")):[e]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[ce],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(t,e){1&t&&ia(0,p_,3,2,"ng-template",0),2&t&&aa("ngForOf",e.parts)},directives:[Zd,tp],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),Jp([Ku()],t.prototype,"highlightClass",void 0),Jp([Ku()],t.prototype,"result",void 0),Jp([Ku()],t.prototype,"term",void 0),t})(),bb=(()=>{let t=class{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=b_,this.selectEvent=new ku,this.activeChangeEvent=new ku}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(t,e){1&t&&ba("mousedown",function(t){return t.preventDefault()}),2&t&&Za("id",e.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(ia(0,f_,1,2,"ng-template",null,0,qu),ia(2,__,2,9,"ng-template",1)),2&t&&(xo(2),aa("ngForOf",e.results))},directives:[Zd,yb,ap],encapsulation:2}),Jp([Ku()],t.prototype,"id",void 0),Jp([Ku()],t.prototype,"focusFirst",void 0),Jp([Ku()],t.prototype,"results",void 0),Jp([Ku()],t.prototype,"term",void 0),Jp([Ku()],t.prototype,"formatter",void 0),Jp([Ku()],t.prototype,"resultTemplate",void 0),Jp([$u("select")],t.prototype,"selectEvent",void 0),Jp([$u("activeChange")],t.prototype,"activeChangeEvent",void 0),t})();const vb=new er("live announcer delay",{providedIn:"root",factory:function(){return 100}});function wb(t,e=!1){let n=t.body.querySelector("#ngb-live");return null==n&&e&&(n=t.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}let Cb=(()=>{let t=class{constructor(t,e){this._document=t,this._delay=e}ngOnDestroy(){const t=wb(this._document);t&&t.parentElement.removeChild(t)}say(t){const e=wb(this._document,!0),n=this._delay;if(null!=e){e.textContent="";const r=()=>e.textContent=t;null===n?r():setTimeout(r,n)}}};return t.\u0275fac=function(e){return new(e||t)(kr(Gh),kr(vb))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh),kr(vb))},token:t,providedIn:"root"}),t=Jp([tf(0,Ir(Gh)),tf(1,Ir(vb))],t),t})(),Sb=(()=>{let t=class{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Eb={provide:sf,useExisting:ot(()=>Ob),multi:!0};let kb=0,Ob=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a,l,c,u,h){this._elementRef=t,this._renderer=n,this._live=a,this._document=l,this._ngZone=c,this._changeDetector=u,this._subscription=null,this._closed$=new E,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new ku,this.activeDescendant=null,this.popupId="ngb-typeahead-"+kb++,this._onTouched=()=>{},this._onChange=t=>{},this.container=o.container,this.editable=o.editable,this.focusFirst=o.focusFirst,this.showHint=o.showHint,this.placement=o.placement,this._valueChanges=Lg(t.nativeElement,"input").pipe(N(t=>t.target.value)),this._resubscribeTypeahead=new Sg(null),this._popupService=new Hy(bb,r,e,n,i,h),this._zoneSubscription=s.onStable.subscribe(()=>{this.isPopupOpen()&&_y(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const t=this._valueChanges.pipe(am(t=>{this._inputValueBackup=this.showHint?t:null,this._onChange(this.editable?t:void 0)})).pipe(this.ngbTypeahead),e=this._resubscribeTypeahead.pipe($g(()=>t));this._subscription=this._subscribeToUserInput(e)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.which){case iy.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case iy.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case iy.Enter:case iy.Tab:const e=this._windowRef.instance.getActive();S_(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}}_openPopup(){this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(t=>this._selectResultClosePopup(t)),this._windowRef.instance.activeChangeEvent.subscribe(t=>this.activeDescendant=t),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),hy(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}_closePopup(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=null}_selectResult(t){let e=!1;this.selectItem.emit({item:t,preventDefault:()=>{e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){var t;if(this.showHint&&(null===(t=this._windowRef)||void 0===t?void 0:t.instance.hasActive())&&null!=this._inputValueBackup){const t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}}_formatItemForInput(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):b_(t)}_writeInputValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",b_(t))}_subscribeToUserInput(t){return t.subscribe(t=>{t&&0!==t.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=t,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const e=t?t.length:0;this._live.say(0===e?"No results available":`${e} result${1===e?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(nu),sa(wc),sa(Bs),sa(fc),sa(Sb),sa(fh),sa(Cb),sa(Gh),sa(fh),sa(qc),sa(Nh))},t.\u0275dir=Qt({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(t,e){1&t&&ba("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)}),2&t&&(Za("autocomplete",e.autocomplete),na("aria-autocomplete",e.showHint?"both":"list")("aria-activedescendant",e.activeDescendant)("aria-owns",e.isPopupOpen()?e.popupId:null)("aria-expanded",e.isPopupOpen()),Na("open",e.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[uc([Eb])]}),Jp([Ku()],t.prototype,"autocomplete",void 0),Jp([Ku()],t.prototype,"container",void 0),Jp([Ku()],t.prototype,"editable",void 0),Jp([Ku()],t.prototype,"focusFirst",void 0),Jp([Ku()],t.prototype,"inputFormatter",void 0),Jp([Ku()],t.prototype,"ngbTypeahead",void 0),Jp([Ku()],t.prototype,"resultFormatter",void 0),Jp([Ku()],t.prototype,"resultTemplate",void 0),Jp([Ku()],t.prototype,"showHint",void 0),Jp([Ku()],t.prototype,"placement",void 0),Jp([$u()],t.prototype,"selectItem",void 0),t=Jp([tf(8,Ir(Gh))],t),t})(),Tb=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp]]}),t})();const xb=[O_,T_,D_,N_,L_,Ty,Ly,Yy,Qy,Xy,Zy,Jy,rb,gb,mb,_b,Tb,ib];let Ab=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[xb,O_,T_,D_,N_,L_,Ty,Ly,Yy,Qy,Xy,Zy,Jy,rb,gb,mb,_b,Tb,ib]}),t})();function Rb(t){return null!=t&&"false"!=`${t}`}function Ib(t,e=0){return Pb(t)?Number(t):e}function Pb(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Mb(t){return Array.isArray(t)?t:[t]}function Db(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Nb(t){return t instanceof yc?t.nativeElement:t}new class extends Ig{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let Lb=1;const Fb=Promise.resolve(),Ub={};function Hb(t){return t in Ub&&(delete Ub[t],!0)}const Vb={setImmediate(t){const e=Lb++;return Ub[e]=!0,Fb.then(()=>Hb(e)&&t()),e},clearImmediate(t){Hb(t)}};new class extends Ig{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=Vb.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(Vb.clearImmediate(e),t.scheduled=void 0)}});class Bb{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new jb(t,this.durationSelector))}}class jb extends D{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const r=M(this,n);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function zb(t,e=Pg){return function(t){return function(e){return e.lift(new Bb(t))}}(()=>function(t=0,e,n){let r=-1;return Mg(e)?r=Number(e)<1?1:Number(e):O(e)&&(n=e),O(n)||(n=Pg),new b(e=>{const i=Mg(t)?t:+t-n.now();return n.schedule(Dg,i,{index:0,period:r,subscriber:e})})}(t,e))}let qb;new class extends Ig{}(class extends Ag{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}});try{qb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(d){qb=!1}let Kb,$b,Gb,Wb=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function(t){return t===mp}(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&&!qb)&&"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 t.\u0275fac=function(e){return new(e||t)(kr(Ju))},t.\u0275prov=pt({factory:function(){return new t(kr(Ju))},token:t,providedIn:"root"}),t})(),Yb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();function Qb(t){return function(){if(null==Kb&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Kb=!0}))}finally{Kb=Kb||!1}return Kb}()?t:!!t.capture}function Xb(){if(null==$b){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $b=!1,$b;if("scrollBehavior"in document.documentElement.style)$b=!0;else{const t=Element.prototype.scrollTo;$b=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return $b}function Zb(t){return t.composedPath?t.composedPath()[0]:t.target}const Jb=new er("cdk-dir-doc",{providedIn:"root",factory:function(){return Or(Gh)}});let tv=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new ku,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(kr(Jb,8))},t.\u0275prov=pt({factory:function(){return new t(kr(Jb,8))},token:t,providedIn:"root"}),t})(),ev=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();function nv(t){return t&&"function"==typeof t.connect}class rv{applyChanges(t,e,n,r,i){t.forEachOperation((t,r,o)=>{let s,a;if(null==t.previousIndex){const i=n(t,r,o);s=e.createEmbeddedView(i.templateRef,i.context,i.index),a=1}else null==o?(e.remove(r),a=3):(s=e.get(r),e.move(s,o),a=2);i&&i({context:null==s?void 0:s.context,operation:a,record:t})})}detach(){}}class iv{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new E,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):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(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),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){}}const ov=new er("_ViewRepeater");let sv=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(zb(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Vg()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Zg(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,t)&&e.push(r)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=Nb(e),r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Lg(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(kr(fh),kr(Wb),kr(Gh,8))},t.\u0275prov=pt({factory:function(){return new t(kr(fh),kr(Wb),kr(Gh,8))},token:t,providedIn:"root"}),t})(),av=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(zb(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(kr(Wb),kr(fh),kr(Gh,8))},t.\u0275prov=pt({factory:function(){return new t(kr(Wb),kr(fh),kr(Gh,8))},token:t,providedIn:"root"}),t})(),lv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})(),cv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[ev,Yb,lv],ev,lv]}),t})();class uv{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 hv extends uv{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class dv extends uv{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}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 pv extends uv{constructor(t){super(),this.element=t instanceof yc?t.nativeElement:t}}class fv extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof hv?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof dv?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof pv?(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)}}{constructor(t,e,n,r,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let gv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();class mv{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new _v(t,this.predicate,this.inclusive))}}class _v extends g{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}function yv(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const bv=Xb();class vv{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=Db(-this._previousScrollPosition.left),t.style.top=Db(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),bv&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),bv&&(e.scrollBehavior=r,n.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class wv{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,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 t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-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 Cv{enable(){}disable(){}attach(){}}function Sv(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Ev(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class kv{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Sv(t,[{width:e,height:n,bottom:n,right:e,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 Ov=(()=>{class t{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Cv,this.close=t=>new wv(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new vv(this._viewportRuler,this._document),this.reposition=t=>new kv(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(kr(sv),kr(av),kr(fh),kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(sv),kr(av),kr(fh),kr(Gh))},token:t,providedIn:"root"}),t})();class Tv{constructor(t){if(this.scrollStrategy=new Cv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class xv{constructor(t,e,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Av{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Rv=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh))},token:t,providedIn:"root"}),t})(),Iv=(()=>{class t extends Rv{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),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 t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh))},token:t,providedIn:"root"}),t})(),Pv=(()=>{class t extends Rv{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=Zb(t),n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){const i=n[r];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh),kr(Wb))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh),kr(Wb))},token:t,providedIn:"root"}),t})();const Mv="undefined"!=typeof window?window:{},Dv=void 0!==Mv.__karma__&&!!Mv.__karma__||void 0!==Mv.jasmine&&!!Mv.jasmine||void 0!==Mv.jest&&!!Mv.jest||void 0!==Mv.Mocha&&!!Mv.Mocha;let Nv=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Dv){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.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(im(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.detachBackdrop(),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=Db(this._config.width),t.height=Db(this._config.height),t.minWidth=Db(this._config.minWidth),t.minHeight=Db(this._config.minHeight),t.maxWidth=Db(this._config.maxWidth),t.maxHeight=Db(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(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),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",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const r=t.classList;Mb(e).forEach(t=>{t&&(n?r.add(t):r.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Yg(K(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())}}const Fv="cdk-overlay-connected-position-bounding-box",Uv=/([A-Za-z%]+)$/;class Hv{constructor(t,e,n,r,i){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i,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 E,this._resizeSubscription=h.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(Fv),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,n=this._viewportRect,r=[];let i;for(let o of this._preferredPositions){let s=this._getOriginPoint(t,o),a=this._getOverlayPoint(s,e,o),l=this._getOverlayFit(a,e,n,o);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(l,a,n)?r.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!i||i.overlayFit.visibleAreae&&(e=r,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Vv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fv),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 n,r;if("center"==e.originX)n=t.left+t.width/2;else{const r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:r}}_getOverlayPoint(t,e,n){let r,i;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+i}}_getOverlayFit(t,e,n,r){const i=jv(e);let{x:o,y:s}=t,a=this._getOffset(r,"x"),l=this._getOffset(r,"y");a&&(o+=a),l&&(s+=l);let c=0-s,u=s+i.height-n.height,h=this._subtractOverflows(i.width,0-o,o+i.width-n.width),d=this._subtractOverflows(i.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:i.width*i.height===p,fitsInViewportVertically:d===i.height,fitsInViewportHorizontally:h==i.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,i=n.right-e.x,o=Bv(this._overlayRef.getConfig().minHeight),s=Bv(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=i;return(t.fitsInViewportVertically||null!=o&&o<=r)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=jv(e),i=this._viewportRect,o=Math.max(t.x+r.width-i.width,0),s=Math.max(t.y+r.height-i.height,0),a=Math.max(i.top-n.top-t.y,0),l=Math.max(i.left-n.left-t.x,0);let c=0,u=0;return c=r.width<=i.width?l||-o:t.xr&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-r/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),r=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>r&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-r/2)}return{top:o,left:l,bottom:s,right:c,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;r.height=Db(n.height),r.top=Db(n.top),r.bottom=Db(n.bottom),r.width=Db(n.width),r.left=Db(n.left),r.right=Db(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(r.maxHeight=Db(t)),i&&(r.maxWidth=Db(i))}this._lastBoundingBoxSize=n,Vv(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Vv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Vv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const r=this._viewportRuler.getViewportScrollPosition();Vv(n,this._getExactOverlayY(e,t,r)),Vv(n,this._getExactOverlayX(e,t,r))}else n.position="static";let s="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=Db(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Db(o.maxWidth):i&&(n.maxWidth="")),Vv(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=Db(i.y),r}_getExactOverlayX(t,e,n){let r,i={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),r=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===r?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Db(o.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ev(t,n),isOriginOutsideView:Sv(t,n),isOverlayClipped:Ev(e,n),isOverlayOutsideView:Sv(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.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&&Mb(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof yc)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Vv(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Bv(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Uv);return n&&"px"!==n?null:parseFloat(e)}return t||null}function jv(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class zv{constructor(t,e,n,r,i,o,s){this._preferredPositions=[],this._positionStrategy=new Hv(n,r,i,o,s).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,n,r){const i=new xv(t,e,n,r);return this._preferredPositions.push(i),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 qv="cdk-global-overlay-wrapper";class Kv{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(qv),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,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==i&&"100vh"!==i||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?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=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(qv),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let $v=(()=>{class t{constructor(t,e,n,r){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=r}global(){return new Kv}connectedTo(t,e,n){return new zv(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Hv(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(kr(av),kr(Gh),kr(Wb),kr(Nv))},t.\u0275prov=pt({factory:function(){return new t(kr(av),kr(Gh),kr(Wb),kr(Nv))},token:t,providedIn:"root"}),t})(),Gv=0,Wv=(()=>{class t{constructor(t,e,n,r,i,o,s,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=o,this._ngZone=s,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new Tv(t);return i.direction=i.direction||this._directionality.value,new Lv(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Gv++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Nh)),new fv(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(kr(Ov),kr(Nv),kr(fc),kr($v),kr(Iv),kr(Bs),kr(fh),kr(Gh),kr(tv),kr(ld),kr(Pv))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Yv=[{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"}],Qv=new er("cdk-connected-overlay-scroll-strategy");let Xv=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Zv=(()=>{class t{constructor(t,e,n,r,i){this._overlay=t,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ku,this.positionChange=new ku,this.attach=new ku,this.detach=new ku,this.overlayKeydown=new ku,this.overlayOutsideClick=new ku,this._templatePortal=new dv(e,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Rb(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Rb(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Rb(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Rb(t)}get push(){return this._push}set push(t){this._push=Rb(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Yv);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!yv(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Tv({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new mv(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(sa(Wv),sa(Yc),sa(nu),sa(Qv),sa(tv,8))},t.\u0275dir=Qt({type:t,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:[ce]}),t})();const Jv={provide:Qv,deps:[Wv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[Wv,Jv],imports:[[ev,gv,cv],cv]}),t})();class ew{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let nw=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new ew(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh))},token:t,providedIn:"root"}),t})();const rw=new er("CDK_COPY_TO_CLIPBOARD_CONFIG");let iw=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new ku,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}copy(t=this.attempts){if(t>1){let e=t;const n=this._clipboard.beginCopy(this.text);this._pending.add(n);const r=()=>{const t=n.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(n),n.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(r,1))};r()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(sa(nw),sa(fh),sa(rw,8))},t.\u0275dir=Qt({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&ba("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),ow=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();var sw=function(t,e){return(sw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function aw(t,e){function n(){this.constructor=t}sw(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var lw=function(){return(lw=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](function(t){t.CONTENT_TYPE="Content-Type",t.RETRY_AFTER="Retry-After",t.CCS_HEADER="X-AnchorMailbox"}(gw||(gw={})),gw))(),mw=(()=>(function(t){t.ID_TOKEN="idtoken",t.CLIENT_INFO="client.info",t.ADAL_ID_TOKEN="adal.idtoken",t.ERROR="error",t.ERROR_DESC="error.description",t.ACTIVE_ACCOUNT="active-account"}(mw||(mw={})),mw))(),_w=(()=>(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"}(_w||(_w={})),_w))(),yw=(()=>(function(t){t.CLIENT_ID="client_id",t.REDIRECT_URI="redirect_uri",t.RESPONSE_TYPE="response_type",t.RESPONSE_MODE="response_mode",t.GRANT_TYPE="grant_type",t.CLAIMS="claims",t.SCOPE="scope",t.ERROR="error",t.ERROR_DESCRIPTION="error_description",t.ACCESS_TOKEN="access_token",t.ID_TOKEN="id_token",t.REFRESH_TOKEN="refresh_token",t.EXPIRES_IN="expires_in",t.STATE="state",t.NONCE="nonce",t.PROMPT="prompt",t.SESSION_STATE="session_state",t.CLIENT_INFO="client_info",t.CODE="code",t.CODE_CHALLENGE="code_challenge",t.CODE_CHALLENGE_METHOD="code_challenge_method",t.CODE_VERIFIER="code_verifier",t.CLIENT_REQUEST_ID="client-request-id",t.X_CLIENT_SKU="x-client-SKU",t.X_CLIENT_VER="x-client-VER",t.X_CLIENT_OS="x-client-OS",t.X_CLIENT_CPU="x-client-CPU",t.X_CLIENT_CURR_TELEM="x-client-current-telemetry",t.X_CLIENT_LAST_TELEM="x-client-last-telemetry",t.X_MS_LIB_CAPABILITY="x-ms-lib-capability",t.POST_LOGOUT_URI="post_logout_redirect_uri",t.ID_TOKEN_HINT="id_token_hint",t.DEVICE_CODE="device_code",t.CLIENT_SECRET="client_secret",t.CLIENT_ASSERTION="client_assertion",t.CLIENT_ASSERTION_TYPE="client_assertion_type",t.TOKEN_TYPE="token_type",t.REQ_CNF="req_cnf",t.OBO_ASSERTION="assertion",t.REQUESTED_TOKEN_USE="requested_token_use",t.ON_BEHALF_OF="on_behalf_of",t.FOCI="foci",t.CCS_HEADER="X-AnchorMailbox"}(yw||(yw={})),yw))(),bw=(()=>(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"}(bw||(bw={})),bw))(),vw={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},ww=(()=>(function(t){t.ACCOUNT="account",t.SID="sid",t.LOGIN_HINT="login_hint",t.ID_TOKEN="id_token",t.DOMAIN_HINT="domain_hint",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers",t.ACCOUNT_ID="accountIdentifier",t.HOMEACCOUNT_ID="homeAccountIdentifier"}(ww||(ww={})),ww))(),Cw={PLAIN:"plain",S256:"S256"},Sw=(()=>(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"}(Sw||(Sw={})),Sw))(),Ew=(()=>(function(t){t.IMPLICIT_GRANT="implicit",t.AUTHORIZATION_CODE_GRANT="authorization_code",t.CLIENT_CREDENTIALS_GRANT="client_credentials",t.RESOURCE_OWNER_PASSWORD_GRANT="password",t.REFRESH_TOKEN_GRANT="refresh_token",t.DEVICE_CODE_GRANT="device_code",t.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(Ew||(Ew={})),Ew))(),kw=(()=>(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"}(kw||(kw={})),kw))(),Ow=(()=>(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."}(Ow||(Ow={})),Ow))(),Tw=(()=>(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"}(Tw||(Tw={})),Tw))(),xw=(()=>(function(t){t.ACCOUNT="Account",t.CREDENTIAL="Credential",t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.REFRESH_TOKEN="RefreshToken",t.APP_METADATA="AppMetadata",t.TEMPORARY="TempCache",t.TELEMETRY="Telemetry",t.UNDEFINED="Undefined",t.THROTTLING="Throttling"}(xw||(xw={})),xw))(),Aw=(()=>(function(t){t[t.ADFS=1001]="ADFS",t[t.MSA=1002]="MSA",t[t.MSSTS=1003]="MSSTS",t[t.GENERIC=1004]="GENERIC",t[t.ACCESS_TOKEN=2001]="ACCESS_TOKEN",t[t.REFRESH_TOKEN=2002]="REFRESH_TOKEN",t[t.ID_TOKEN=2003]="ID_TOKEN",t[t.APP_METADATA=3001]="APP_METADATA",t[t.UNDEFINED=9999]="UNDEFINED"}(Aw||(Aw={})),Aw))(),Rw="appmetadata",Iw=(()=>(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network"}(Iw||(Iw={})),Iw))(),Pw={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Mw=(()=>(function(t){t.POP="pop",t.BEARER="Bearer"}(Mw||(Mw={})),Mw))(),Dw=(()=>(function(t){t.username="username",t.password="password"}(Dw||(Dw={})),Dw))(),Nw=(()=>(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"}(Nw||(Nw={})),Nw))(),Lw=(()=>(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"}(Lw||(Lw={})),Lw))(),Fw=(()=>(function(t){t.CONFIGURED_MATCHES_DETECTED="1",t.CONFIGURED_NO_AUTO_DETECTION="2",t.CONFIGURED_NOT_DETECTED="3",t.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",t.AUTO_DETECTION_REQUESTED_FAILED="5"}(Fw||(Fw={})),Fw))(),Uw=(()=>(function(t){t.NO_CACHE_HIT="0",t.FORCE_REFRESH="1",t.NO_CACHED_ACCESS_TOKEN="2",t.CACHED_ACCESS_TOKEN_EXPIRED="3",t.REFRESH_CACHED_ACCESS_TOKEN="4"}(Uw||(Uw={})),Uw))(),Hw=(()=>(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"}(Hw||(Hw={})),Hw))(),Vw=(()=>(function(t){t.GET="GET",t.POST="POST"}(Vw||(Vw={})),Vw))(),Bw=(()=>(function(t){t.AUTHORITY="authority",t.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",t.SESSION_STATE="session.state",t.REQUEST_STATE="request.state",t.NONCE_IDTOKEN="nonce.id_token",t.ORIGIN_URI="request.origin",t.RENEW_STATUS="token.renew.status",t.URL_HASH="urlHash",t.REQUEST_PARAMS="request.params",t.SCOPES="scopes",t.INTERACTION_STATUS_KEY="interaction.status",t.CCS_CREDENTIAL="ccs.credential",t.CORRELATION_ID="request.correlationId"}(Bw||(Bw={})),Bw))(),jw=(()=>(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"}(jw||(jw={})),jw))(),zw=(()=>(function(t){t[t.acquireTokenRedirect=861]="acquireTokenRedirect",t[t.acquireTokenPopup=862]="acquireTokenPopup",t[t.ssoSilent=863]="ssoSilent",t[t.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",t[t.handleRedirectPromise=865]="handleRedirectPromise",t[t.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",t[t.logout=961]="logout",t[t.logoutPopup=962]="logoutPopup"}(zw||(zw={})),zw))(),qw=(()=>(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent"}(qw||(qw={})),qw))(),Kw=(()=>(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"}(Kw||(Kw={})),Kw))(),$w={scopes:pw},Gw="jwk",Ww=(()=>(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"}(Ww||(Ww={})),Ww))(),Yw=(()=>(function(t){t.ACCOUNT_ADDED="msal:accountAdded",t.ACCOUNT_REMOVED="msal:accountRemoved",t.LOGIN_START="msal:loginStart",t.LOGIN_SUCCESS="msal:loginSuccess",t.LOGIN_FAILURE="msal:loginFailure",t.ACQUIRE_TOKEN_START="msal:acquireTokenStart",t.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",t.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",t.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",t.SSO_SILENT_START="msal:ssoSilentStart",t.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",t.SSO_SILENT_FAILURE="msal:ssoSilentFailure",t.HANDLE_REDIRECT_START="msal:handleRedirectStart",t.HANDLE_REDIRECT_END="msal:handleRedirectEnd",t.POPUP_OPENED="msal:popupOpened",t.LOGOUT_START="msal:logoutStart",t.LOGOUT_SUCCESS="msal:logoutSuccess",t.LOGOUT_FAILURE="msal:logoutFailure",t.LOGOUT_END="msal:logoutEnd"}(Yw||(Yw={})),Yw))(),Qw=function(){function t(){}return t.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case Yw.LOGIN_START:return Kw.Login;case Yw.SSO_SILENT_START:return Kw.SsoSilent;case Yw.ACQUIRE_TOKEN_START:if(t.interactionType===qw.Redirect||t.interactionType===qw.Popup)return Kw.AcquireToken;break;case Yw.HANDLE_REDIRECT_START:return Kw.HandleRedirect;case Yw.LOGOUT_START:return Kw.Logout;case Yw.SSO_SILENT_SUCCESS:case Yw.SSO_SILENT_FAILURE:if(e&&e!==Kw.SsoSilent)break;return Kw.None;case Yw.LOGOUT_END:if(e&&e!==Kw.Logout)break;return Kw.None;case Yw.HANDLE_REDIRECT_END:if(e&&e!==Kw.HandleRedirect)break;return Kw.None;case Yw.LOGIN_SUCCESS:case Yw.LOGIN_FAILURE:case Yw.ACQUIRE_TOKEN_SUCCESS:case Yw.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===qw.Redirect||t.interactionType===qw.Popup){if(e&&e!==Kw.Login&&e!==Kw.AcquireToken)break;return Kw.None}}return null},t}(),Xw=function(t,e){return(Xw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Zw(t,e){function n(){this.constructor=t}Xw(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Jw=function(){return(Jw=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function rC(){for(var t=[],e=0;e=e.length&&t.lastIndexOf(e)===t.length-e.length},t.queryStringToObject=function(t){var e={},n=t.split("&"),r=function(t){return decodeURIComponent(t.replace(/\+/g," "))};return n.forEach(function(t){if(t.trim()){var n=t.split(/=(.+)/g,2),i=n[0],o=n[1];i&&o&&(e[r(i)]=r(o))}}),e},t.trimArrayEntries=function(t){return t.map(function(t){return t.trim()})},t.removeEmptyStringsFromArray=function(e){return e.filter(function(e){return!t.isEmpty(e)})},t.jsonParseHelper=function(t){try{return JSON.parse(t)}catch(e){return null}},t.matchPattern=function(t,e){return new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(e)},t}(),AE=function(){function t(e){if(this._urlString=e,xE.isEmpty(this._urlString))throw TE.createUrlEmptyError();xE.isEmpty(this.getHash())&&(this._urlString=t.canonicalizeUri(e))}return Object.defineProperty(t.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),t.canonicalizeUri=function(t){if(t){var e=t.toLowerCase();return xE.endsWith(e,"?")?e=e.slice(0,-1):xE.endsWith(e,"?/")&&(e=e.slice(0,-2)),xE.endsWith(e,"/")||(e+="/"),e}return t},t.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(e){throw TE.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw TE.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw TE.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(t,e){return xE.isEmpty(e)?t:t.indexOf("?")<0?t+"?"+e:t+"&"+e},t.removeHashFromUrl=function(e){return t.canonicalizeUri(e.split("#")[0])},t.prototype.replaceTenantPath=function(e){var n=this.getUrlComponents(),r=n.PathSegments;return e&&0!==r.length&&(r[0]===_w.COMMON||r[0]===_w.ORGANIZATIONS)&&(r[0]=e),t.constructAuthorityUriFromObject(n)},t.prototype.getHash=function(){return t.parseHash(this.urlString)},t.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),e=this.urlString.match(t);if(!e)throw TE.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:e[1],HostNameAndPort:e[4],AbsolutePath:e[5],QueryString:e[7]},r=n.AbsolutePath.split("/");return r=r.filter(function(t){return t&&t.length>0}),n.PathSegments=r,!xE.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},t.getDomainFromUrl=function(t){var e=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=t.match(e);if(!n)throw TE.createUrlParseError("Given url string: "+t);return n[2]},t.getAbsoluteUrl=function(e,n){if(e[0]===dw.FORWARD_SLASH){var r=new t(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+e}return e},t.parseHash=function(t){var e=t.indexOf("#"),n=t.indexOf("#/");return n>-1?t.substring(n+2):e>-1?t.substring(e+1):""},t.constructAuthorityUriFromObject=function(e){return new t(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},t.getDeserializedHash=function(e){if(xE.isEmpty(e))return{};var n=t.parseHash(e),r=xE.queryStringToObject(xE.isEmpty(n)?e:n);if(!r)throw $S.createHashNotDeserializedError(JSON.stringify(r));return r},t.hashContainsKnownProperties=function(e){if(xE.isEmpty(e)||e.indexOf("=")<0)return!1;var n=t.getDeserializedHash(e);return!!(n.code||n.error_description||n.error||n.state)},t}(),RE="pkce_not_created",IE="The PKCE code challenge and verifier could not be generated.",PE="crypto_nonexistent",ME="The crypto object or function is not available.",DE="http_method_not_implemented",NE="The HTTP method given has not been implemented in this library.",LE="empty_navigate_uri",FE="Navigation URI is empty. Please check stack trace for more info.",UE="hash_empty_error",HE="Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash.",VE="no_state_in_hash",BE="Hash does not contain state. Please verify that the request originated from msal.",jE="hash_does_not_contain_known_properties",zE="Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.",qE="unable_to_parse_state",KE="Unable to parse state. Please verify that the request originated from msal.",$E="state_interaction_type_mismatch",GE="Hash contains state but the interaction type does not match the caller.",WE="interaction_in_progress",YE="Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors.",QE="popup_window_error",XE="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",ZE="empty_window_error",JE="window.open returned null or undefined window object.",tk="user_cancelled",ek="User cancelled the flow.",nk="monitor_window_timeout",rk="Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",ik="monitor_window_timeout",ok="Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",sk="redirect_in_iframe",ak="Code flow is not supported inside an iframe. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",lk="block_iframe_reload",ck="Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors",uk="block_nested_popups",hk="Request was blocked inside a popup because MSAL detected it was running in a popup.",dk="iframe_closed_prematurely",pk="The iframe being monitored was closed prematurely.",fk="silent_logout_unsupported",gk="Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",mk="no_account_error",_k="No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",yk="silent_prompt_value_error",bk="The value given for the prompt value is not valid for silent requests - must be set to 'none'.",vk="no_token_request_cache_error",wk="No token request in found in cache.",Ck="unable_to_parse_token_request_cache_error",Sk="The cached token request could not be parsed.",Ek="no_cached_authority_error",kk="No cached authority found.",Ok="auth_request_not_set_error",Tk="Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",xk="invalid_cache_type",Ak="Invalid cache type",Rk="non_browser_environment",Ik="Login and token requests are not supported in non-browser environments.",Pk="database_not_open",Mk="Database is not open!",Dk="no_network_connectivity",Nk="No network connectivity. Check your internet connection.",Lk="post_request_failed",Fk="Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",Uk="get_request_failed",Hk="Network request failed. Please check the network trace to determine root cause.",Vk="failed_to_parse_response",Bk="Failed to parse network response. Check network trace.",jk="unable_to_load_token",zk="Error loading token to cache.",qk="crypto_key_not_found",Kk="Cryptographic Key or Keypair not found in browser storage.",$k=function(t){function e(n,r){var i=t.call(this,n,r)||this;return Object.setPrototypeOf(i,e.prototype),i.name="BrowserAuthError",i}return Zw(e,t),e.createPkceNotGeneratedError=function(t){return new e(RE,IE+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(PE,ME+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(DE,NE+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(LE,FE)},e.createEmptyHashError=function(t){return new e(UE,HE+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(VE,BE)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(jE,zE)},e.createUnableToParseStateError=function(){return new e(qE,KE)},e.createStateInteractionTypeMismatchError=function(){return new e($E,GE)},e.createInteractionInProgressError=function(){return new e(WE,YE)},e.createPopupWindowError=function(t){var n=XE;return n=xE.isEmpty(t)?n:n+" Details: "+t,new e(QE,n)},e.createEmptyWindowCreatedError=function(){return new e(ZE,JE)},e.createUserCancelledError=function(){return new e(tk,ek)},e.createMonitorPopupTimeoutError=function(){return new e(nk,rk)},e.createMonitorIframeTimeoutError=function(){return new e(ik,ok)},e.createRedirectInIframeError=function(t){return new e(sk,ak+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(lk,ck)},e.createBlockAcquireTokenInPopupsError=function(){return new e(uk,hk)},e.createIframeClosedPrematurelyError=function(){return new e(dk,pk)},e.createSilentLogoutUnsupportedError=function(){return new e(fk,gk)},e.createNoAccountError=function(){return new e(mk,_k)},e.createSilentPromptValueError=function(t){return new e(yk,bk+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(Ck,Sk)},e.createNoTokenRequestCacheError=function(){return new e(vk,wk)},e.createAuthRequestNotSetError=function(){return new e(Ok,Tk)},e.createNoCachedAuthorityError=function(){return new e(Ek,kk)},e.createInvalidCacheTypeError=function(){return new e(xk,""+Ak)},e.createNonBrowserEnvironmentError=function(){return new e(Rk,Ik)},e.createDatabaseNotOpenError=function(){return new e(Pk,Mk)},e.createNoNetworkConnectivityError=function(){return new e(Dk,Nk)},e.createPostRequestFailedError=function(t,n){return new e(Lk,Fk+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(Uk,Hk+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(Vk,Bk+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(jk,zk+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(qk,Kk+" | No match found for KeyId: "+t)},e}(sC),Gk=function(){function t(){}return t.prototype.sendGetRequestAsync=function(t,e){return tC(this,void 0,void 0,function(){var n,r,i;return eC(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,fetch(t,{method:Vw.GET,headers:this.getFetchHeaders(e)})];case 1:return n=o.sent(),[3,3];case 2:throw r=o.sent(),window.navigator.onLine?$k.createGetRequestFailedError(r,t):$k.createNoNetworkConnectivityError();case 3:return o.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=o.sent(),i.status=n.status,i)];case 5:throw o.sent(),$k.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(t,e){return tC(this,void 0,void 0,function(){var n,r,i,o;return eC(this,function(s){switch(s.label){case 0:n=e&&e.body||"",s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(t,{method:Vw.POST,headers:this.getFetchHeaders(e),body:n})];case 2:return r=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?$k.createPostRequestFailedError(i,t):$k.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(o.body=s.sent(),o.status=r.status,o)];case 6:throw s.sent(),$k.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},t.prototype.getFetchHeaders=function(t){var e=new Headers;if(!t||!t.headers)return e;var n=t.headers;return Object.keys(n).forEach(function(t){e.append(t,n[t])}),e},t.prototype.getHeaderDict=function(t){var e={};return t.forEach(function(t,n){e[n]=t}),e},t}(),Wk=function(){function t(){}return t.prototype.sendGetRequestAsync=function(t,e){return tC(this,void 0,void 0,function(){return eC(this,function(n){return[2,this.sendRequestAsync(t,Vw.GET,e)]})})},t.prototype.sendPostRequestAsync=function(t,e){return tC(this,void 0,void 0,function(){return eC(this,function(n){return[2,this.sendRequestAsync(t,Vw.POST,e)]})})},t.prototype.sendRequestAsync=function(t,e,n){var r=this;return new Promise(function(i,o){var s=new XMLHttpRequest;if(s.open(e,t,!0),r.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&o(e===Vw.POST?$k.createPostRequestFailedError("Failed with status "+s.status,t):$k.createGetRequestFailedError("Failed with status "+s.status,t));try{var n=JSON.parse(s.responseText),a={headers:r.getHeaderDict(s),body:n,status:s.status};i(a)}catch(l){o($k.createFailedToParseNetworkResponseError(t))}},s.onerror=function(){window.navigator.onLine?o(e===Vw.POST?$k.createPostRequestFailedError("Failed with status "+s.status,t):$k.createGetRequestFailedError("Failed with status "+s.status,t)):o($k.createNoNetworkConnectivityError())},e===Vw.POST&&n&&n.body)s.send(n.body);else{if(e!==Vw.GET)throw $k.createHttpMethodNotImplementedError(e);s.send()}})},t.prototype.setXhrHeaders=function(t,e){if(e&&e.headers){var n=e.headers;Object.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})}},t.prototype.getHeaderDict=function(t){var e=t.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};return e.forEach(function(t){var e=t.split(": "),r=e.shift(),i=e.join(": ");r&&i&&(n[r]=i)}),n},t}(),Yk=function(){function t(){}return t.clearHash=function(t){t.location.hash=dw.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,dw.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},t.replaceHash=function(t){var e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""},t.isInIframe=function(){return window.parent!==window},t.isInPopup=function(){return"undefined"!=typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf("msal.")},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var t=new AE(window.location.href).getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Gk:new Wk},t.blockReloadInHiddenIframes=function(){if(AE.hashContainsKnownProperties(window.location.hash)&&t.isInIframe())throw $k.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,n){var r=t.isInIframe();if(e===qw.Redirect&&r&&!n)throw $k.createRedirectInIframeError(r)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw $k.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(t){if(!t)throw $k.createNonBrowserEnvironmentError()},t.detectIEOrEdge=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),n=t.indexOf("Trident/"),r=t.indexOf("Edge/");return e>0||n>0||r>0},t}();function Qk(t,e){return V(t,e,1)}function Xk(t){return function(e){const n=new Zk(t),r=e.lift(n);return n.caught=r}}class Zk{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Jk(t,this.selector,this.caught))}}class Jk extends D{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new T(this,void 0,void 0);this.add(r);const i=M(this,n,void 0,void 0,r);i!==r&&this.add(i)}}}const tO=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function eO(t){return new b(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?H(n):rm()).subscribe(e)})}function nO(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new rO(t,e,n))}}class rO{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new iO(t,this.accumulator,this.seed,this.hasSeed))}}class iO extends g{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function oO(t){return function(e){return 0===t?rm():e.lift(new sO(t))}}class sO{constructor(t){if(this.total=t,this.total<0)throw new em}call(t,e){return e.subscribe(new aO(t,this.total))}}class aO extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;ie.lift(new cO(t))}class cO{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new uO(t,this.errorFactory))}}class uO extends g{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function hO(){return new tO}function dO(t=null){return e=>e.lift(new pO(t))}class pO{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new fO(t,this.defaultValue))}}class fO extends g{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 gO(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Zg((e,n)=>t(e,n,r)):y,im(1),n?dO(e):lO(()=>new tO))}function mO(t){return e=>e.lift(new _O(t))}class _O{constructor(t){this.callback=t}call(t,e){return e.subscribe(new yO(t,this.callback))}}class yO extends g{constructor(t,e){super(t),this.add(new h(e))}}class bO{constructor(t,e){this.id=t,this.url=e}}class vO extends bO{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wO extends bO{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class CO extends bO{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class SO extends bO{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class EO extends bO{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kO extends bO{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class OO extends bO{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class TO extends bO{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xO extends bO{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AO{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class RO{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class IO{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PO{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MO{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DO{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NO{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const LO="primary";class FO{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 UO(t){return new FO(t)}const HO="ngNavigationCancelingError";function VO(t){const e=Error("NavigationCancelingError: "+t);return e[HO]=!0,e}function BO(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function qO(t){return Array.prototype.concat.apply([],t)}function KO(t){return t.length>0?t[t.length-1]:null}function $O(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function GO(t){return ya(t)?t:ma(t)?H(Promise.resolve(t)):Vg(t)}const WO={exact:function t(e,n,r){if(!rT(e.segments,n.segments)||!JO(e.segments,n.segments,r)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!t(e.children[i],n.children[i],r))return!1;return!0},subset:XO},YO={exact:function(t,e){return jO(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>zO(t[n],e[n]))},ignored:()=>!0};function QO(t,e,n){return WO[n.paths](t.root,e.root,n.matrixParams)&&YO[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function XO(t,e,n){return ZO(t,e,e.segments,n)}function ZO(t,e,n,r){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!(!rT(i,n)||e.hasChildren()||!JO(i,n,r))}if(t.segments.length===n.length){if(!rT(t.segments,n)||!JO(t.segments,n,r))return!1;for(const n in e.children)if(!t.children[n]||!XO(t.children[n],e.children[n],r))return!1;return!0}{const i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!(rT(t.segments,i)&&JO(t.segments,i,r)&&t.children[LO])&&ZO(t.children[LO],e,o,r)}}function JO(t,e,n){return e.every((e,r)=>YO[n](t[r].parameters,e.parameters))}class tT{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=UO(this.queryParams)),this._queryParamMap}toString(){return sT.serialize(this)}}class eT{constructor(t,e){this.segments=t,this.children=e,this.parent=null,$O(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return aT(this)}}class nT{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=UO(this.parameters)),this._parameterMap}toString(){return fT(this)}}function rT(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class iT{}class oT{parse(t){const e=new bT(t);return new tT(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${`/${lT(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${uT(e)}=${uT(t)}`).join("&"):`${uT(e)}=${uT(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${function(t){return encodeURI(t)}(t.fragment)}`:""}`}}const sT=new oT;function aT(t){return t.segments.map(t=>fT(t)).join("/")}function lT(t,e){if(!t.hasChildren())return aT(t);if(e){const e=t.children[LO]?lT(t.children[LO],!1):"",n=[];return $O(t.children,(t,e)=>{e!==LO&&n.push(`${e}:${lT(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return $O(t.children,(t,r)=>{r===LO&&(n=n.concat(e(t,r)))}),$O(t.children,(t,r)=>{r!==LO&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>n===LO?[lT(t.children[LO],!1)]:[`${n}:${lT(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[LO]?`${aT(t)}/${e[0]}`:`${aT(t)}/(${e.join("//")})`}}function cT(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uT(t){return cT(t).replace(/%3B/gi,";")}function hT(t){return cT(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dT(t){return decodeURIComponent(t)}function pT(t){return dT(t.replace(/\+/g,"%20"))}function fT(t){return`${hT(t.path)}${function(t){return Object.keys(t).map(e=>`;${hT(e)}=${hT(t[e])}`).join("")}(t.parameters)}`}const gT=/^[^\/()?;=#]+/;function mT(t){const e=t.match(gT);return e?e[0]:""}const _T=/^[^=?&#]+/,yT=/^[^?&#]+/;class bT{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new eT([],{}):new eT([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[LO]=new eT(t,e)),n}parseSegment(){const t=mT(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new nT(dT(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=mT(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=mT(this.remaining);t&&(n=t,this.capture(n))}t[dT(e)]=dT(n)}parseQueryParam(t){const e=function(t){const e=t.match(_T);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(yT);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=pT(e),i=pT(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=mT(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=LO);const o=this.parseChildren();e[i]=1===Object.keys(o).length?o[LO]:new eT([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class vT{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=wT(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=wT(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=CT(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return CT(t,this._root).map(t=>t.value)}}function wT(t,e){if(t===e.value)return e;for(const n of e.children){const e=wT(t,n);if(e)return e}return null}function CT(t,e){if(t===e.value)return[e];for(const n of e.children){const r=CT(t,n);if(r.length)return r.unshift(e),r}return[]}class ST{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ET(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class kT extends vT{constructor(t,e){super(t),this.snapshot=e,IT(this,t)}toString(){return this.snapshot.toString()}}function OT(t,e){const n=function(t,e){const n=new AT([],{},{},"",{},LO,e,null,t.root,-1,{});return new RT("",new ST(n,[]))}(t,e),r=new Sg([new nT("",{})]),i=new Sg({}),o=new Sg({}),s=new Sg({}),a=new Sg(""),l=new TT(r,i,s,a,o,LO,e,n.root);return l.snapshot=n.root,new kT(new ST(l,[]),n)}class TT{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(N(t=>UO(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(N(t=>UO(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xT(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class AT{constructor(t,e,n,r,i,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=UO(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=UO(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class RT extends vT{constructor(t,e){super(e),this.url=t,IT(this,e)}toString(){return PT(this._root)}}function IT(t,e){e.value._routerState=t,e.children.forEach(e=>IT(t,e))}function PT(t){const e=t.children.length>0?` { ${t.children.map(PT).join(", ")} } `:"";return`${t.value}${e}`}function MT(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,jO(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),jO(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;njO(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||DT(t.parent,e.parent))}function NT(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const i=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return NT(t,e,r);return NT(t,e)})}(t,e,n);return new ST(r,i)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return LT(e,t),t}}const n=function(t){return new TT(new Sg(t.url),new Sg(t.params),new Sg(t.queryParams),new Sg(t.fragment),new Sg(t.data),t.outlet,t.component,t)}(e.value),r=e.children.map(e=>NT(t,e));return new ST(n,r)}}function LT(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new tT(n.root===t?e:VT(n.root,t,e),o,i)}function VT(t,e,n){const r={};return $O(t.children,(t,i)=>{r[i]=t===e?n:VT(t,e,n)}),new eT(t.segments,r)}class BT{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&FT(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(UT);if(r&&r!==KO(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jT{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function zT(t,e,n){if(t||(t=new eT([],{})),0===t.segments.length&&t.hasChildren())return qT(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const e=t.segments[i],s=n[r];if(UT(s))break;const a=`${s}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!WT(a,l,e))return o;r+=2}else{if(!WT(a,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=zT(t.children[r],e,n))}),$O(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new eT(t.segments,i)}}function KT(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=KT(new eT([],{}),0,t))}),e}function GT(t){const e={};return $O(t,(t,n)=>e[n]=`${t}`),e}function WT(t,e,n){return t==n.path&&jO(e,n.parameters)}class YT{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),MT(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=ET(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),$O(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,i=ET(t);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=ET(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new DO(t.value.snapshot))}),t.children.length&&this.forwardEvent(new PO(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(MT(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),QT(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function QT(t){MT(t.value),t.children.forEach(QT)}class XT{constructor(t,e){this.routes=t,this.module=e}}function ZT(t){return"function"==typeof t}function JT(t){return t instanceof tT}const tx=Symbol("INITIAL_VALUE");function ex(){return $g(t=>kg(t.map(t=>t.pipe(im(1),jg(tx)))).pipe(nO((t,e)=>{let n=!1;return e.reduce((t,r,i)=>t!==tx?t:(r===tx&&(n=!0),n||!1!==r&&i!==e.length-1&&!JT(r)?t:r),t)},tx),Zg(t=>t!==tx),N(t=>JT(t)?t:!0===t),im(1)))}let nx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ha(0,"router-outlet")},directives:function(){return[Zx]},encapsulation:2}),t})();function rx(t,e=""){for(let n=0;nax(t)===e);return n.push(...t.filter(t=>ax(t)!==e)),n}const cx={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ux(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},cx):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||BO)(n,t,e);if(!i)return Object.assign({},cx);const o={};$O(i.posParams,(t,e)=>{o[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function hx(t,e,n,r,i="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>dx(t,e,n)&&ax(n)!==LO)}(t,n,r)){const i=new eT(e,function(t,e,n,r){const i={};i[LO]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&ax(o)!==LO){const n=new eT([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[ax(o)]=n}return i}(t,e,r,new eT(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>dx(t,e,n))}(t,n,r)){const o=new eT(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(dx(t,n,a)&&!i[ax(a)]){const n=new eT([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[ax(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new eT(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function dx(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function px(t,e,n,r){return!!(ax(t)===r||r!==LO&&dx(e,n,t))&&("**"===t.path||ux(e,t,n).matched)}function fx(t,e,n){return 0===e.length&&!t.children[n]}class gx{constructor(t){this.segmentGroup=t||null}}class mx{constructor(t){this.urlTree=t}}function _x(t){return new b(e=>e.error(new gx(t)))}function yx(t){return new b(e=>e.error(new mx(t)))}function bx(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vx{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Jc)}apply(){const t=hx(this.urlTree.root,[],[],this.config).segmentGroup,e=new eT(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,LO).pipe(N(t=>this.createUrlTree(wx(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Xk(t=>{if(t instanceof mx)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof gx?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,LO).pipe(N(e=>this.createUrlTree(wx(e),t.queryParams,t.fragment))).pipe(Xk(t=>{throw t instanceof gx?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new eT([],{[LO]:t}):t;return new tT(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(N(t=>new eT([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const i of Object.keys(n.children))"primary"===i?r.unshift(i):r.push(i);return H(r).pipe(Qk(r=>{const i=n.children[r],o=lx(e,r);return this.expandSegmentGroup(t,o,i,r).pipe(N(t=>({segment:t,outlet:r})))}),nO((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Zg((e,n)=>t(e,n,r)):y,oO(1),n?dO(e):lO(()=>new tO))}())}expandSegment(t,e,n,r,i,o){return H(n).pipe(Qk(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Xk(t=>{if(t instanceof gx)return Vg(null);throw t}))),gO(t=>!!t),Xk((t,n)=>{if(t instanceof tO||"EmptyError"===t.name){if(fx(e,r,i))return Vg(new eT([],{}));throw new gx(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return px(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):_x(e):_x(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?yx(i):this.lineralizeSegments(n,i).pipe(V(n=>{const i=new eT(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=ux(e,r,i);if(!s)return _x(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?yx(u):this.lineralizeSegments(r,u).pipe(V(r=>this.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r,i){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Vg(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(N(t=>(n._loadedConfig=t,new eT(r,{})))):Vg(new eT(r,{}));const{matched:o,consumedSegments:s,lastChild:a}=ux(e,n,r);if(!o)return _x(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(V(t=>{const r=t.module,o=t.routes,{segmentGroup:a,slicedSegments:c}=hx(e,s,l,o),u=new eT(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,o,u).pipe(N(t=>new eT(s,t)));if(0===o.length&&0===c.length)return Vg(new eT(s,{}));const h=ax(n)===i;return this.expandSegment(r,u,o,c,h?LO:i,!0).pipe(N(t=>new eT(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Vg(new XT(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Vg(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(V(n=>n?this.configLoader.load(t.injector,e).pipe(N(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(VO(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Vg(new XT([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Vg(r.map(r=>{const i=t.get(r);let o;if(function(t){return t&&ZT(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!ZT(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return GO(o)})).pipe(ex(),am(t=>{if(!JT(t))return;const e=VO(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),N(t=>!0===t)):Vg(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Vg(n);if(r.numberOfChildren>1||!r.children[LO])return bx(t.redirectTo);r=r.children[LO]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new tT(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return $O(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return $O(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new eT(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function wx(t){const e={};for(const n of Object.keys(t.children)){const r=wx(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children[LO]){const e=t.children[LO];return new eT(t.segments.concat(e.segments),e.children)}return t}(new eT(t.segments,e))}class Cx{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Sx{constructor(t,e){this.component=t,this.route=e}}function Ex(t,e,n){const r=t._root;return Ox(r,e?e._root:null,n,[r.value])}function kx(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ox(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=ET(e);return t.children.forEach(t=>{(function(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!rT(t.url,e.url);case"pathParamsOrQueryParamsChange":return!rT(t.url,e.url)||!jO(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!DT(t,e)||!jO(t.queryParams,e.queryParams);case"paramsChange":default:return!DT(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Cx(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Ox(t,e,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Sx(a.outlet.component,s))}else s&&Tx(e,a,i),i.canActivateChecks.push(new Cx(r)),Ox(t,null,o.component?a?a.children:null:n,r,i)})(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),$O(o,(t,e)=>Tx(t,n.getContext(e),i)),i}function Tx(t,e,n){const r=ET(t),i=t.value;$O(r,(t,r)=>{Tx(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Sx(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class xx{}function Ax(t){return new b(e=>e.error(t))}class Rx{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const t=hx(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,LO);if(null===e)return null;const n=new AT([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},LO,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ST(n,e),i=new RT(this.url,r);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(t){const e=t.value,n=xT(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const r=e.children[i],o=lx(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const r=Px(n);return function(t){t.sort((t,e)=>t.value.outlet===LO?-1:e.value.outlet===LO?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,n,r){for(const i of t){const t=this.processSegmentAgainstRoute(i,e,n,r);if(null!==t)return t}return fx(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!px(t,e,n,r))return null;let i,o=[],s=[];if("**"===t.path){const r=n.length>0?KO(n).parameters:{};i=new AT(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Nx(t),ax(t),t.component,t,Mx(e),Dx(e)+n.length,Lx(t))}else{const r=ux(e,t,n);if(!r.matched)return null;o=r.consumedSegments,s=n.slice(r.lastChild),i=new AT(o,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Nx(t),ax(t),t.component,t,Mx(e),Dx(e)+o.length,Lx(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=hx(e,o,s,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new ST(i,t)]}if(0===a.length&&0===c.length)return[new ST(i,[])];const u=ax(t)===r,h=this.processSegment(a,l,c,u?LO:r);return null===h?null:[new ST(i,h)]}}function Ix(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Px(t){const e=[],n=new Set;for(const r of t){if(!Ix(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=Px(r.children);e.push(new ST(r.value,t))}return e.filter(t=>!n.has(t))}function Mx(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Dx(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Nx(t){return t.data||{}}function Lx(t){return t.resolve||{}}function Fx(t){return $g(e=>{const n=t(e);return n?H(n).pipe(N(()=>e)):Vg(e)})}class Ux 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 Hx=new er("ROUTES");class Vx{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(N(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new XT(qO(r.injector.get(Hx,void 0,Ct.Self|Ct.Optional)).map(sx),r)}),Xk(t=>{throw e._loader$=void 0,t}));return e._loader$=new Y(n,()=>new E).pipe($()),e._loader$}loadModuleFactory(t){return"string"==typeof t?H(this.loader.load(t)):GO(t()).pipe(V(t=>t instanceof tu?Vg(t):H(this.compiler.compileModuleAsync(t))))}}class Bx{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new jx,this.attachRef=null}}class jx{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Bx,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class zx{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function qx(t){throw t}function Kx(t,e,n){return e.parse("/")}function $x(t,e){return Vg(null)}const Gx={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wx={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Yx=(()=>{class t{constructor(t,e,n,r,i,o,s,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=qx,this.malformedUriErrorHandler=Kx,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:$x,afterPreactivation:$x},this.urlHandlingStrategy=new zx,this.routeReuseStrategy=new Ux,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=i.get(Jc),this.console=i.get(eh);const l=i.get(fh);this.isNgZoneEnabled=l instanceof fh&&fh.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new tT(new eT([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Vx(o,s,t=>this.triggerEvent(new AO(t)),t=>this.triggerEvent(new RO(t))),this.routerState=OT(this.currentUrlTree,this.rootComponentType),this.transitions=new Sg({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 t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(Zg(t=>0!==t.id),N(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),$g(t=>{let n=!1,r=!1;return Vg(t).pipe(am(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),$g(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Vg(t).pipe($g(t=>{const n=this.transitions.getValue();return e.next(new vO(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?nm:Promise.resolve(t)}),function(t,e,n,r){return $g(i=>function(t,e,n,r,i){return new vx(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(N(t=>Object.assign(Object.assign({},i),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),am(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,o){return V(s=>function(t,e,n,i,o="emptyOnly",s="legacy"){try{const r=new Rx(t,e,n,i,o,s).recognize();return null===r?Ax(new xx):Vg(r)}catch(r){return Ax(r)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,o).pipe(N(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),am(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new EO(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=t,a=new vO(n,this.serializeUrl(r),i,o);e.next(a);const l=OT(r,this.rootComponentType).snapshot;return Vg(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),nm}),Fx(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),am(t=>{const e=new kO(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),N(t=>Object.assign(Object.assign({},t),{guards:Ex(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return V(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Vg(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return H(t).pipe(V(t=>function(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Vg(o.map(o=>{const s=kx(o,e,i);let a;if(function(t){return t&&ZT(t.canDeactivate)}(s))a=GO(s.canDeactivate(t,e,n,r));else{if(!ZT(s))throw new Error("Invalid CanDeactivate guard");a=GO(s(t,e,n,r))}return a.pipe(gO())})).pipe(ex()):Vg(!0)}(t.component,t.route,n,e,r)),gO(t=>!0!==t,!0))}(s,r,i,t).pipe(V(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,r){return H(e).pipe(Qk(e=>Bg(function(t,e){return null!==t&&e&&e(new IO(t)),Vg(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new MO(t)),Vg(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>eO(()=>Vg(e.guards.map(i=>{const o=kx(i,e.node,n);let s;if(function(t){return t&&ZT(t.canActivateChild)}(o))s=GO(o.canActivateChild(r,t));else{if(!ZT(o))throw new Error("Invalid CanActivateChild guard");s=GO(o(r,t))}return s.pipe(gO())})).pipe(ex())));return Vg(i).pipe(ex())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Vg(r.map(r=>eO(()=>{const i=kx(r,e,n);let o;if(function(t){return t&&ZT(t.canActivate)}(i))o=GO(i.canActivate(e,t));else{if(!ZT(i))throw new Error("Invalid CanActivate guard");o=GO(i(e,t))}return o.pipe(gO())}))).pipe(ex()):Vg(!0)}(t,e.route,n))),gO(t=>!0!==t,!0))}(r,o,t,e):Vg(n)),N(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),am(t=>{if(JT(t.guardsResult)){const e=VO(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new OO(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Zg(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),Fx(t=>{if(t.guards.canActivateChecks.length)return Vg(t).pipe(am(t=>{const e=new TO(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),$g(t=>{let e=!1;return Vg(t).pipe(function(t,e){return V(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return Vg(n);let o=0;return H(i).pipe(Qk(n=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return Vg({});const o={};return H(i).pipe(V(i=>function(t,e,n,r){const i=kx(t,e,r);return GO(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(am(t=>{o[i]=t}))),oO(1),V(()=>Object.keys(o).length===i.length?Vg(o):nm))}(t._resolve,t,e,r).pipe(N(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),xT(t,n).resolve),null)))}(n.route,r,t,e)),am(()=>o++),oO(1),V(t=>o===i.length?Vg(n):nm))})}(this.paramsInheritanceStrategy,this.ngModule.injector),am({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),am(t=>{const e=new xO(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Fx(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),N(t=>{const e=function(t,e,n){const r=NT(t,e._root,n?n._root:void 0);return new kT(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),am(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>N(r=>(new YT(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),am({next(){n=!0},complete(){n=!0}}),mO(()=>{if(!n&&!r){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),Xk(n=>{if(r=!0,function(t){return t&&t[HO]}(n)){const r=JT(n.url);r||(this.navigated=!0,this.restoreHistory(t,!0));const i=new CO(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const r=new SO(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}return nm}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,i={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(i.state=t)}this.scheduleNavigation(r,t,n,i)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){rx(t),this.config=t.map(sx),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(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=e,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,i){if(0===n.length)return HT(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new BT(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return $O(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new BT(n,e,r)}(n);if(o.toRoot())return HT(e.root,new eT([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new jT(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new jT(t,t===e.root,0)}const r=FT(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new jT(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?qT(s.segmentGroup,s.index,o.commands):zT(s.segmentGroup,s.index,o.commands);return HT(s.segmentGroup,a,e,r,i)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=JT(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new wO(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;i?(u=i.resolve,h=i.reject,d=i.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}restoreHistory(t,e=!1){var n,r;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new CO(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(kr(ar),kr(iT),kr(jx),kr(ld),kr(Bs),kr(Fh),kr(hh),kr(void 0))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),Qx=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new E,this.subscription=t.events.subscribe(t=>{t instanceof wO&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,i){if(0!==t||e||n||r||i||"string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:Xx(this.skipLocationChange),replaceUrl:Xx(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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:Xx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(sa(Yx),sa(TT),sa(rd))},t.\u0275dir=Qt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&ba("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Za("href",e.href,bi),na("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ce]}),t})();function Xx(t){return""===t||!!t}let Zx=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new ku,this.deactivateEvents=new ku,this.name=r||LO,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Jx(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(sa(jx),sa(nu),sa(fc),Yn("name"),sa(qc))},t.\u0275dir=Qt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Jx{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===TT?this.route:t===jx?this.childContexts:this.parent.get(t,e)}}class tA{}class eA{preload(t,e){return Vg(null)}}let nA=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Vx(e,n,e=>t.triggerEvent(new AO(e)),e=>t.triggerEvent(new RO(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Zg(t=>t instanceof wO),Qk(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Jc);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return H(n).pipe(z(),N(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Vg(e._loadedConfig):this.loader.load(t.injector,e)).pipe(V(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(kr(Yx),kr(Fh),kr(hh),kr(Bs),kr(tA))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),rA=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof vO?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof wO&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof NO&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new NO(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(kr(Yx),kr(_p),kr(void 0))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const iA=new er("ROUTER_CONFIGURATION"),oA=new er("ROUTER_FORROOT_GUARD"),sA=[ld,{provide:iT,useClass:oT},{provide:Yx,useFactory:function(t,e,n,r,i,o,s,a={},l,c){const u=new Yx(null,t,e,n,r,i,o,qO(s));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[iT,jx,ld,Bs,Fh,hh,Hx,iA,[class{},new Pr],[class{},new Pr]]},jx,{provide:TT,useFactory:function(t){return t.routerState.root},deps:[Yx]},{provide:Fh,useClass:Vh},nA,eA,class{preload(t,e){return e().pipe(Xk(()=>Vg(null)))}},{provide:iA,useValue:{enableTracing:!1}}];function aA(){return new Rh("Router",Yx)}let lA=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[sA,dA(e),{provide:oA,useFactory:hA,deps:[[Yx,new Pr,new Mr]]},{provide:iA,useValue:n||{}},{provide:rd,useFactory:uA,deps:[Wh,[new Ir(od),new Pr],iA]},{provide:rA,useFactory:cA,deps:[Yx,_p,iA]},{provide:tA,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:eA},{provide:Rh,multi:!0,useFactory:aA},[pA,{provide:Gu,multi:!0,useFactory:fA,deps:[pA]},{provide:mA,useFactory:gA,deps:[pA]},{provide:th,multi:!0,useExisting:mA}]]}}static forChild(e){return{ngModule:t,providers:[dA(e)]}}}return t.\u0275fac=function(e){return new(e||t)(kr(oA,8),kr(Yx,8))},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})();function cA(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new rA(t,e,n)}function uA(t,e,n={}){return n.useHash?new ad(t,e):new sd(t,e)}function hA(t){return"guarded"}function dA(t){return[{provide:nr,multi:!0,useValue:t},{provide:Hx,multi:!0,useValue:t}]}let pA=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(Qh,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Yx),r=this.injector.get(iA);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Vg(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(iA),n=this.injector.get(nA),r=this.injector.get(rA),i=this.injector.get(Yx),o=this.injector.get(Nh);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(kr(Bs))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();function fA(t){return t.appInitializer.bind(t)}function gA(t){return t.bootstrapListener.bind(t)}const mA=new er("Router Initializer"),_A=new er("MSAL_INSTANCE"),yA=new er("MSAL_GUARD_CONFIG"),bA=new er("MSAL_INTERCEPTOR_CONFIG"),vA="@azure/msal-angular",wA="2.0.4";let CA=(()=>{class t{constructor(t,e){this.instance=t,this.location=e;const n=this.location.path(!0).split("#").pop();n&&(this.redirectHash=`#${n}`),this.instance.initializeWrapperLibrary(Ww.Angular,wA)}acquireTokenPopup(t){return H(this.instance.acquireTokenPopup(t))}acquireTokenRedirect(t){return H(this.instance.acquireTokenRedirect(t))}acquireTokenSilent(t){return H(this.instance.acquireTokenSilent(t))}handleRedirectObservable(t){return H(this.instance.handleRedirectPromise(t||this.redirectHash))}loginPopup(t){return H(this.instance.loginPopup(t))}loginRedirect(t){return H(this.instance.loginRedirect(t))}logout(t){return H(this.instance.logout(t))}logoutRedirect(t){return H(this.instance.logoutRedirect(t))}logoutPopup(t){return H(this.instance.logoutPopup(t))}ssoSilent(t){return H(this.instance.ssoSilent(t))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(vA,wA)),this.logger}setLogger(t){this.logger=t.clone(vA,wA),this.instance.setLogger(t)}}return t.\u0275fac=function(e){return new(e||t)(kr(_A),kr(ld))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),SA=(()=>{class t{constructor(t,e){this.msalInstance=t,this.authService=e,this._msalSubject=new E,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new Sg(Kw.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(t=>{this._msalSubject.next(t);const e=Qw.getInteractionStatusFromEvent(t,this._inProgress.value);null!==e&&(this.authService.getLogger().verbose(`BroadcastService - ${t.eventType} results in setting inProgress from ${this._inProgress.value} to ${e}`),this._inProgress.next(e))})}}return t.\u0275fac=function(e){return new(e||t)(kr(_A),kr(CA))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),EA=(()=>{class t{constructor(t,e,n,r,i){this.msalGuardConfig=t,this.msalBroadcastService=e,this.authService=n,this.location=r,this.router=i,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(t){return this.router.parseUrl(t)}getDestinationUrl(t){this.authService.getLogger().verbose("Guard - getting destination url");const e=document.getElementsByTagName("base"),n=this.location.normalize(e.length?e[0].href:window.location.origin),r=this.location.prepareExternalUrl(t);return r.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${n}/${r}`):`${n}${t}`}loginInteractively(t){const e="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,t):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===qw.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(e).pipe(N(t=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(t.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const n=this.getDestinationUrl(t.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:n},e)).pipe(N(()=>!1))}activateHelper(t){if(this.msalGuardConfig.interactionType!==qw.Popup&&this.msalGuardConfig.interactionType!==qw.Redirect)throw new bC("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),"undefined"==typeof window)return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),Vg(!0);if(AE.hashContainsKnownProperties(window.location.hash)&&Yk.isInIframe())return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),Vg(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const e=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(Qk(()=>this.authService.instance.getAllAccounts().length?(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),t&&t.url.indexOf("code=")>-1?(this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),e.indexOf("#")>-1?Vg(this.parseUrl(this.location.path())):Vg(this.parseUrl(""))):Vg(!0)):t?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(t)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),Vg(!1))),Xk(e=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${e.message}`),this.loginFailedRoute&&parseInt(kc.major,10)>9&&t?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Vg(this.loginFailedRoute)):Vg(!1))))}canActivate(t,e){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(e)}canActivateChild(t,e){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(e)}canLoad(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return t.\u0275fac=function(e){return new(e||t)(kr(yA),kr(SA),kr(CA),kr(ld),kr(Yx))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),kA=(()=>{class t{constructor(t,e,n,r){this.msalInterceptorConfig=t,this.authService=e,this.location=n,this._document=r}intercept(t,e){if(this.msalInterceptorConfig.interactionType!==qw.Popup&&this.msalInterceptorConfig.interactionType!==qw.Redirect)throw new bC("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");const n=this.getScopesForEndpoint(t.url,t.method);if(!n||0===n.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),e.handle(t);let r;this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),r=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),r=this.authService.instance.getAllAccounts()[0]);const i="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,t,{account:r}):Object.assign(Object.assign({},this.msalInterceptorConfig.authRequest),{account:r});return this.authService.getLogger().info(`Interceptor - ${n.length} scopes found for endpoint`),this.authService.getLogger().infoPii(`Interceptor - [${n}] scopes found for ${t.url}`),this.authService.acquireTokenSilent(Object.assign(Object.assign({},i),{scopes:n,account:r})).pipe(Xk(()=>(this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),this.acquireTokenInteractively(i,n))),$g(t=>t.accessToken?Vg(t):(this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),this.acquireTokenInteractively(i,n))),$g(n=>{this.authService.getLogger().verbose("Interceptor - setting authorization headers");const r=t.headers.set("Authorization",`Bearer ${n.accessToken}`),i=t.clone({headers:r});return e.handle(i)}))}acquireTokenInteractively(t,e){if(this.msalInterceptorConfig.interactionType===qw.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup(Object.assign(Object.assign({},t),{scopes:e}));this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");const n=window.location.href;return this.authService.acquireTokenRedirect(Object.assign(Object.assign({},t),{scopes:e,redirectStartPage:n})),nm}getScopesForEndpoint(t,e){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");const n=this.location.normalize(t),r=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),i=this.matchResourcesToEndpoint(r,n);return i.absoluteResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,i.absoluteResources,e):i.relativeResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,i.relativeResources,e):null}matchResourcesToEndpoint(t,e){const n={absoluteResources:[],relativeResources:[]};return t.forEach(t=>{const r=this.location.normalize(t);xE.matchPattern(r,e)&&n.absoluteResources.push(t);const i=this.getAbsoluteUrl(t),o=new AE(i).getUrlComponents(),s=this.getAbsoluteUrl(e),a=new AE(s).getUrlComponents(),l=o.QueryString?`${o.AbsolutePath}?${o.QueryString}`:this.location.normalize(o.AbsolutePath);o.HostNameAndPort===a.HostNameAndPort&&xE.matchPattern(l,s)&&""!==l&&"/*"!==l&&n.relativeResources.push(t)}),n}getAbsoluteUrl(t){const e=this._document.createElement("a");return e.href=t,e.href}matchScopesToEndpoint(t,e,n){const r=[];return e.forEach(e=>{const i=[],o=t.get(e);null!==o?(o.forEach(t=>{if("string"==typeof t)i.push(t);else{const e=n.toLowerCase();t.httpMethod.toLowerCase()===e&&(null===t.scopes?r.push(null):t.scopes.forEach(t=>{i.push(t)}))}}),i.length>0&&r.push(i)):r.push(null)}),r.length>0?(r.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),r[0]):null}}return t.\u0275fac=function(e){return new(e||t)(kr(bA),kr(CA),kr(ld),kr(Gh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),OA=(()=>{class t{static forRoot(e,n,r){return{ngModule:t,providers:[{provide:_A,useValue:e},{provide:yA,useValue:n},{provide:bA,useValue:r},CA]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[EA,SA],imports:[[gp]]}),t})();class TA{}class xA{}class AA{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof AA?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 AA;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof AA?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class RA{encodeKey(t){return IA(t)}encodeValue(t){return IA(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function IA(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function PA(t){return`${t}`}class MA{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new RA,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const r=t.indexOf("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,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(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new MA({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(PA(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(PA(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class DA{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 NA(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function LA(t){return"undefined"!=typeof Blob&&t instanceof Blob}function FA(t){return"undefined"!=typeof FormData&&t instanceof FormData}class UA{constructor(t,e,n,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new AA),this.context||(this.context=new DA),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new UA(n,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var HA=(()=>((HA=HA||{})[HA.Sent=0]="Sent",HA[HA.UploadProgress=1]="UploadProgress",HA[HA.ResponseHeader=2]="ResponseHeader",HA[HA.DownloadProgress=3]="DownloadProgress",HA[HA.Response=4]="Response",HA[HA.User=5]="User",HA))();class VA{constructor(t,e=200,n="OK"){this.headers=t.headers||new AA,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class BA extends VA{constructor(t={}){super(t),this.type=HA.ResponseHeader}clone(t={}){return new BA({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 jA extends VA{constructor(t={}){super(t),this.type=HA.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new jA({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 zA extends VA{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 qA(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let KA=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof UA)r=t;else{let i,o;i=n.headers instanceof AA?n.headers:new AA(n.headers),n.params&&(o=n.params instanceof MA?n.params:new MA({fromObject:n.params})),r=new UA(t,e,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Vg(r).pipe(Qk(t=>this.handler.handle(t)));if(t instanceof UA||"events"===n.observe)return i;const o=i.pipe(Zg(t=>t instanceof jA));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(N(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(N(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(N(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(N(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new MA).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,qA(n,e))}post(t,e,n={}){return this.request("POST",t,qA(n,e))}put(t,e,n={}){return this.request("PUT",t,qA(n,e))}}return t.\u0275fac=function(e){return new(e||t)(kr(TA))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class $A{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const GA=new er("HTTP_INTERCEPTORS");let WA=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const YA=/^\)\]\}',?\n/;let QA=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new AA(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new BA({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(YA,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new jA({body:l,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new zA({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new zA({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let l=!1;const c=r=>{l||(e.next(o()),l=!0);let i={type:HA.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&!!n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:HA.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:HA.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(kr(vp))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const XA=new er("XSRF_COOKIE_NAME"),ZA=new er("XSRF_HEADER_NAME");class JA{}let tR=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Yd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh),kr(Ju),kr(XA))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),eR=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null!==r&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(kr(JA),kr(ZA))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),nR=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(GA,[]);this.chain=t.reduceRight((t,e)=>new $A(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(kr(xA),kr(Bs))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),rR=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:eR,useClass:WA}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:XA,useValue:e.cookieName}:[],e.headerName?{provide:ZA,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[eR,{provide:GA,useExisting:eR,multi:!0},{provide:JA,useClass:tR},{provide:XA,useValue:"XSRF-TOKEN"},{provide:ZA,useValue:"X-XSRF-TOKEN"}]}),t})(),iR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[KA,{provide:TA,useClass:nR},QA,{provide:xA,useExisting:QA}],imports:[[rR.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class oR{}const sR="*";function aR(t,e){return{type:7,name:t,definitions:e,options:{}}}function lR(t,e=null){return{type:4,styles:e,timings:t}}function cR(t,e=null){return{type:2,steps:t,options:e}}function uR(t){return{type:6,styles:t,offset:null}}function hR(t,e,n){return{type:0,name:t,styles:e,options:n}}function dR(t){return{type:5,steps:t}}function pR(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function fR(t=null){return{type:9,options:t}}function gR(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function mR(t){Promise.resolve(null).then(t)}class _R{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(){mR(()=>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(t=>t()),e.length=0}}class yR{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,n=0,r=0;const i=this.players.length;0==i?mR(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.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(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,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(t=>t()),e.length=0}}function bR(){return"undefined"!=typeof window&&void 0!==window.document}function vR(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function wR(t){switch(t.length){case 0:return new _R;case 1:return t[0];default:return new yR(t)}}function CR(t,e,n,r,i={},o={}){const s=[],a=[];let l=-1,c=null;if(r.forEach(t=>{const n=t.offset,r=n==l,u=r&&c||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case"!":a=i[n];break;case sR:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}u[r]=a}),r||a.push(u),c=u,l=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function SR(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&ER(n,"start",t)));break;case"done":t.onDone(()=>r(n&&ER(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&ER(n,"destroy",t)))}}function ER(t,e,n){const r=n.totalTime,i=kR(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function kR(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function OR(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function TR(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let xR=(t,e)=>!1,AR=(t,e)=>!1,RR=(t,e,n)=>[];const IR=vR();(IR||"undefined"!=typeof Element)&&(xR=bR()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),AR=(()=>{if(IR||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):AR}})(),RR=(t,e,n)=>{let r=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let HR=(()=>{class t{validateStyleProperty(t){return DR(t)}matchesElement(t,e){return NR(t,e)}containsElement(t,e){return LR(t,e)}query(t,e,n){return FR(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,o=[],s){return new _R(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class VR{}VR.NOOP=new HR;const BR="ng-enter",jR="ng-leave",zR="ng-trigger",qR=".ng-trigger",KR="ng-animating",$R=".ng-animating";function GR(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:WR(parseFloat(e[1]),e[2])}function WR(t,e){switch(e){case"s":return 1e3*t;default:return t}}function YR(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=WR(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=WR(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=t;if(!n){let n=!1,o=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:o}}(t,e,n)}function QR(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function XR(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else QR(t,n);return n}function ZR(t,e,n){return n?e+":"+n+";":""}function JR(t){let e="";for(let n=0;n{const i=lI(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),vR()&&JR(t))}function eI(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=lI(e);t.style[n]=""}),vR()&&JR(t))}function nI(t){return Array.isArray(t)?1==t.length?t[0]:cR(t):t}const rI=new RegExp("{{\\s*(.+?)\\s*}}","g");function iI(t){let e=[];if("string"==typeof t){let n;for(;n=rI.exec(t);)e.push(n[1]);rI.lastIndex=0}return e}function oI(t,e,n){const r=t.toString(),i=r.replace(rI,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),i=""),i.toString()});return i==r?t:i}function sI(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const aI=/-+([a-z0-9])/g;function lI(t){return t.replace(aI,(...t)=>t[1].toUpperCase())}function cI(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function uI(t,e){return 0===t||0===e}function hI(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],s=[];if(r.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var i=1;ifunction(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],o=r[2],s=r[3];e.push(_I(i,s));"<"==o[0]&&!("*"==i&&"*"==s)&&e.push(_I(s,i))}(t,n,e)):n.push(t),n}const gI=new Set(["true","1"]),mI=new Set(["false","0"]);function _I(t,e){const n=gI.has(t)||mI.has(t),r=gI.has(e)||mI.has(e);return(i,o)=>{let s="*"==t||t==i,a="*"==e||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?gI.has(t):mI.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?gI.has(e):mI.has(e)),s&&a}}const yI=new RegExp("s*:selfs*,?","g");function bI(t,e,n){return new vI(t).build(e,n)}class vI{constructor(t){this._driver=t}build(t,e){const n=new wI(e);return this._resetContextStyleTimingState(n),dI(this,nI(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const i=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,o.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,o=r||{};if(n.styles.forEach(t=>{if(CI(t)){const e=t;Object.keys(e).forEach(t=>{iI(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=sI(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=dI(this,nI(t.animation),e);return{type:1,matchers:fI(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:SI(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>dI(this,t,e)),options:SI(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=dI(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:SI(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return EI(YR(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=EI(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||YR(r,e),EI(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,i=t.styles?t.styles:uR({});if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,o=!1;if(!i){o=!0;const t={};n.easing&&(t.easing=n.easing),i=uR(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,e);s.isEmptyStep=o,r=s}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==sR?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,i=null;return n.forEach(t=>{if(CI(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=iI(t);i.length&&i.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let o=!1,s=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(CI(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(CI(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),s=s||c<0||c>1,o=o||c0&&r{const o=u>0?r==h?1:u*r:i[r],s=o*f;e.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:dI(this,nI(t.animation),e),options:SI(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:SI(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:SI(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(yI,"")),[t=t.replace(/@\*/g,qR).replace(/@\w+/g,t=>qR+"-"+t.substr(1)).replace(/:animating/g,$R),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,OR(e.collectedStyles,e.currentQuerySelector,{});const s=dI(this,nI(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:SI(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:YR(t.timings,e.errors,!0);return{type:12,animation:dI(this,nI(t.animation),e),timings:n,options:null}}}class wI{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 CI(t){return!Array.isArray(t)&&"object"==typeof t}function SI(t){return t?(t=QR(t)).params&&(t.params=function(t){return t?QR(t):null}(t.params)):t={},t}function EI(t,e,n){return{duration:t,delay:e,easing:n}}function kI(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class OI{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 n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const TI=new RegExp(":enter","g"),xI=new RegExp(":leave","g");function AI(t,e,n,r,i,o={},s={},a,l,c=[]){return(new RI).buildKeyframes(t,e,n,r,i,o,s,a,l,c)}class RI{buildKeyframes(t,e,n,r,i,o,s,a,l,c=[]){l=l||new OI;const u=new PI(t,e,l,r,i,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),dI(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[kI(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const i=null!=n.duration?GR(n.duration):null,o=null!=n.delay?GR(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),dI(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=II);const t=GR(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>dI(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?GR(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),dI(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return YR(e.params?oI(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?GR(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=II);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),dI(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;dI(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const II={};class PI{constructor(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=II,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new MI(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=GR(n.duration)),null!=n.delay&&(r.delay=GR(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=oI(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,i=new PI(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=II,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new DI(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,o){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(TI,"."+this._enterClassName)).replace(xI,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return!i&&0==s.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class MI{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,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 MI(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(t=>{this._backFill[t]=this._globalTimelineStyles[t]||sR,this._currentKeyframe[t]=sR}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},o=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=sR})):XR(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=oI(o[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:sR),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}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 n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,o)=>{const s=XR(i,!0);Object.keys(s).forEach(n=>{const r=s[n];"!"==r?t.add(n):r==sR&&e.add(n)}),n||(s.offset=o/this.duration),r.push(s)});const i=t.size?sI(t.values()):[],o=e.size?sI(e.values()):[];if(n){const t=r[0],e=QR(t);t.offset=0,e.offset=1,r=[t,e]}return kI(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}}class DI extends MI{constructor(t,e,n,r,i,o,s=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],o=n+e,s=e/o,a=XR(t[0],!1);a.offset=0,i.push(a);const l=XR(t[0],!1);l.offset=NI(s),i.push(l);const c=t.length-1;for(let r=1;r<=c;r++){let s=XR(t[r],!1);s.offset=NI((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return kI(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function NI(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class LI{}class FI extends LI{normalizePropertyName(t,e){return lI(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(UI[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+i}}const UI=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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 HI(t,e,n,r,i,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const VI={};class BI{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}build(t,e,n,r,i,o,s,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||VI,d=this.buildStyles(n,s&&s.params||VI,u),p=a&&a.params||VI,f=this.buildStyles(r,p,u),g=new Set,m=new Map,_=new Map,y="void"===r,b={params:Object.assign(Object.assign({},h),p)},v=c?[]:AI(t,e,this.ast.animation,i,o,d,f,b,l,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return HI(e,this._triggerName,n,r,y,d,f,[],[],m,_,w,u);v.forEach(t=>{const n=t.element,r=OR(m,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=OR(_,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const C=sI(g.values());return HI(e,this._triggerName,n,r,y,d,f,v,C,m,_,w)}}class jI{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},r=QR(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let o=i[t];o.length>1&&(o=oI(o,r,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o})}}),n}}class zI{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new jI(t.style,t.options&&t.options.params||{},n)}),qI(this.states,"true","1"),qI(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new BI(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new BI(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function qI(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const KI=new OI;class $I{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=bI(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,i=CR(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let o;const s=new Map;if(i?(o=AI(this._driver,e,i,BR,jR,{},{},n,KI,r),o.forEach(t=>{const e=OR(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,sR)})});const a=wR(o.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,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,n,r){const i=kR(e,"","","");return SR(this._getPlayer(t),n,i,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const GI="ng-animate-queued",WI="ng-animate-disabled",YI=".ng-animate-disabled",QI=[],XI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},JI="__ng_removed";class tP{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){const e=QR(t);delete e.value,this.options=e}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const eP="void",nP=new tP(eP);class rP{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,hP(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(t){return"start"==t||"done"==t}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);const i=OR(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const s=OR(this._engine.statesByElement,t,{});return s.hasOwnProperty(e)||(hP(t,zR),hP(t,zR+"-"+e),s[e]=nP),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete s[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,n,r=!0){const i=this._getTrigger(e),o=new oP(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(hP(t,zR),hP(t,zR+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new tP(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=nP),l.value!==eP&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i{eI(t,n),tI(t,r)})}return}const c=OR(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=i.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!r)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(hP(t,GI),o.onStart(()=>{dP(t,GI)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),c.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,qR,!0);n.forEach(t=>{if(t[JI])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const i=this._engine.statesByElement.get(t);if(i){const o=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,eP,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&wR(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(e=>{const i=e.name;if(r.has(i))return;r.add(i);const o=this._triggers[i].fallbackTransition,s=n[i]||nP,a=new tP(eP),l=new oP(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:o,fromState:s,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t[JI];(!r||r===XI)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){hP(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(e=>{if(e.name==n.triggerName){const r=kR(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,SR(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class iP{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new rP(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),hP(t,WI)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),dP(t,WI))}removeNode(t,e,n,r){if(sP(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e[JI]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,i){return sP(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,qR,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,$R,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return wR(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[JI];if(e&&e.setForRemoval){if(t[JI]=XI,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,YI)&&this.markElementAsDisabled(t,!1),this.driver.query(t,YI,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?wR(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new OI,r=[],i=new Map,o=[],s=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=BR+f++;p.set(e,n),t.forEach(t=>hP(t,n))});const g=[],m=new Set,_=new Set;for(let R=0;Rm.add(t)):_.add(t))}const y=new Map,b=cP(h,Array.from(m));b.forEach((t,e)=>{const n=jR+f++;y.set(e,n),t.forEach(t=>hP(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>dP(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>dP(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.push(e),this.collectedEnterElements.length){const t=i[JI];if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,i),h=y.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>eI(i,f.fromStyles)),e.onDestroy(()=>tI(i,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>eI(i,f.fromStyles)),e.onDestroy(()=>tI(i,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),o.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>OR(s,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=l.get(e);r||l.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,S=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{OR(C,e,[]).push(t),t.destroy()})});const E=g.filter(t=>gP(t,a,l)),k=new Map;lP(k,this.driver,_,l,sR).forEach(t=>{gP(t,a,l)&&E.push(t)});const O=new Map;d.forEach((t,e)=>{lP(O,this.driver,new Set(t),a,"!")}),E.forEach(t=>{const e=k.get(t),n=O.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],x=[],A={};o.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(c.has(e))return o.onDestroy(()=>tI(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=A;if(S.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>S.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,C,i,O,k);if(o.setRealPlayer(n),t===A)T.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=wR(e)),r.push(o)}}else eI(e,s.fromStyles),o.onDestroy(()=>tI(e,s.toStyles)),x.push(o),c.has(e)&&r.push(o)}),x.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=wR(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R!t.destroyed);r.length?pP(this,t,r):this.processLeaveNode(t)}return g.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const r=e[JI];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,i){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==eP;e.forEach(e=>{e.queued||!t&&e.triggerName!=r||o.push(e)})}}return(n||r)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==r,l=OR(n,t,[]);this._getPreviousPlayers(t,a,i,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}eI(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,o){const s=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h[JI];if(d&&d.removedBeforeQueried)return new _R(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return fP(t,e),e}((n.get(h)||QI).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=i.get(h),m=o.get(h),_=CR(0,this._normalizer,0,e.keyframes,g,m),y=this._buildPlayer(e,_,f);if(e.subTimeline&&r&&u.add(h),p){const e=new oP(t,s,h);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{OR(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>hP(t,KR));const d=wR(h);return d.onDestroy(()=>{c.forEach(t=>dP(t,KR)),tI(a,e.toStyles)}),u.forEach(t=>{OR(r,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new _R(t.duration,t.delay)}}class oP{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new _R,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(n=>SR(t,e,void 0,n))}),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){OR(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 sP(t){return t&&1===t.nodeType}function aP(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function lP(t,e,n,r,i){const o=[];n.forEach(t=>o.push(aP(t)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(r,t,i);(!n||0==n.length)&&(r[JI]=ZI,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>aP(t,o[a++])),s}function cP(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;function o(t){if(!t)return 1;let e=i.get(t);if(e)return e;const s=t.parentNode;return e=n.has(s)?s:r.has(s)?1:o(s),i.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&n.get(e).push(t)}),n}const uP="$$classes";function hP(t,e){if(t.classList)t.classList.add(e);else{let n=t[uP];n||(n=t[uP]={}),n[e]=!0}}function dP(t,e){if(t.classList)t.classList.remove(e);else{let n=t[uP];n&&delete n[e]}}function pP(t,e,n){wR(n).onDone(()=>t.processLeaveNode(e))}function fP(t,e){for(let n=0;ni.add(t)):e.set(t,r),n.delete(t),!0}class mP{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new iP(t,e,n),this._timelineEngine=new $I(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const o=t+"-"+r;let s=this._triggerCache[o];if(!s){const t=[],e=bI(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e,n){return new zI(t,e,n)}(r,e,this._normalizer),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,i]=TR(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=TR(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _P(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=bP(e[0]),e.length>1&&(r=bP(e[e.length-1]))):e&&(n=bP(e)),n||r?new yP(t,n,r):null}class yP{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let r=yP.initialStylesByElement.get(t);r||yP.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&tI(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(tI(this._element,this._initialStyles),this._endStyles&&(tI(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(yP.initialStylesByElement.delete(this._element),this._startStyles&&(eI(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(eI(this._element,this._endStyles),this._endStyles=null),tI(this._element,this._initialStyles),this._state=3)}}function bP(t){let e=null;const n=Object.keys(t);for(let r=0;rthis._handleCallback(t)}apply(){(function(t,e){const n=AP(t,"").trim();let r=0;n.length&&(function(t,e){let n=0;for(let r=0;r=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),TP(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=AP(t,"").split(","),r=OP(n,e);r>=0&&(n.splice(r,1),xP(t,"",n.join(",")))}(this._element,this._name))}}function EP(t,e,n){xP(t,"PlayState",n,kP(t,e))}function kP(t,e){const n=AP(t,"");return n.indexOf(",")>0?OP(n.split(","),e):OP([n],e)}function OP(t,e){for(let n=0;n=0)return n;return-1}function TP(t,e,n){n?t.removeEventListener(CP,e):t.addEventListener(CP,e)}function xP(t,e,n,r){const i=wP+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function AP(t,e){return t.style[wP+e]||""}class RP{constructor(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,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 SP(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(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:pI(this.element,n))})}this.currentSnapshot=t}}class IP extends _R{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=UR(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 PP{constructor(){this._count=0}validateStyleProperty(t){return DR(t)}matchesElement(t,e){return NR(t,e)}containsElement(t,e){return LR(t,e)}query(t,e,n){return FR(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>UR(t));let r=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${e}: ${n};\n`)}}),r+=`${i}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,n,r,i,o=[],s){const a=o.filter(t=>t instanceof RP),l={};uI(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=hI(t,e,l));if(0==n)return new IP(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=_P(t,e),p=new RP(t,e,u,n,r,i,c,d);return p.onDestroy(()=>function(t){t.parentNode.removeChild(t)}(h)),p}}class MP{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,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=n.duration,this._delay=n.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,n){return t.animate(e,n)}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]:pI(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class DP{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(NP().toString()),this._cssKeyframesDriver=new PP}validateStyleProperty(t){return DR(t)}matchesElement(t,e){return NR(t,e)}containsElement(t,e){return LR(t,e)}query(t,e,n){return FR(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const l={},c=o.filter(t=>t instanceof MP);uI(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=_P(t,e=hI(t,e=e.map(t=>XR(t,!1)),l));return new MP(t,e,a,u)}}function NP(){return bR()&&Element.prototype.animate||{}}let LP=(()=>{class t extends oR{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:xt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?cR(t):t;return HP(this._renderer,null,e,"register",[n]),new FP(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(kr(vc),kr(Gh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class FP extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new UP(this._id,t,e||{},this._renderer)}}class UP{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return HP(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 HP(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const VP="@.disabled";let BP=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new jP("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(o),new zP(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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 t.\u0275fac=function(e){return new(e||t)(kr(vc),kr(mP),kr(fh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class jP{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):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,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}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,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==VP?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class zP extends jP{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==VP?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let qP=(()=>{class t extends mP{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh),kr(VR),kr(LI))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const KP=new er("AnimationModuleType"),$P=[{provide:oR,useClass:LP},{provide:LI,useFactory:function(){return new FI}},{provide:mP,useClass:qP},{provide:vc,useFactory:function(t,e,n){return new BP(t,e,n)},deps:[Up,mP,fh]}],GP=[{provide:VR,useFactory:function(){return"function"==typeof NP()?new DP:new PP}},{provide:KP,useValue:"BrowserAnimations"},...$P],WP=[{provide:VR,useClass:HR},{provide:KP,useValue:"NoopAnimations"},...$P];let YP=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?WP:GP}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:GP,imports:[Zp]}),t})();const QP=[[["caption"]],[["colgroup"],["col"]]],XP=["caption","colgroup, col"];function ZP(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Rb(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const JP=new er("CDK_TABLE");let tM=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc))},t.\u0275dir=Qt({type:t,selectors:[["","cdkCellDef",""]]}),t})(),eM=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc))},t.\u0275dir=Qt({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),nM=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc))},t.\u0275dir=Qt({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class rM{}const iM=ZP(rM);let oM=(()=>{class t extends iM{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Rb(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(sa(JP,8))},t.\u0275dir=Qt({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(Hu(n,tM,5),Hu(n,eM,5),Hu(n,nM,5)),2&t){let t;Fu(t=Vu())&&(e.cell=t.first),Fu(t=Vu())&&(e.headerCell=t.first),Fu(t=Vu())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[uc([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),zs]}),t})();class sM{constructor(t,e){const n=e.nativeElement.classList;for(const r of t._columnCssClassName)n.add(r)}}let aM=(()=>{class t extends sM{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(sa(oM),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[zs]}),t})(),lM=(()=>{class t extends sM{constructor(t,e){var n;if(super(t,e),1===(null===(n=t._table)||void 0===n?void 0:n._elementRef.nativeElement.nodeType)){const n=t._table._elementRef.nativeElement.getAttribute("role");e.nativeElement.setAttribute("role","grid"===n||"treegrid"===n?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(sa(oM),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[zs]}),t})();class cM{constructor(){this.tasks=[],this.endTasks=[]}}const uM=new er("_COALESCED_STYLE_SCHEDULER");let hM=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new E}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new cM,this._getScheduleObservable().pipe(Yg(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new cM;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?H(Promise.resolve(void 0)):this._ngZone.onStable.pipe(im(1))}}return t.\u0275fac=function(e){return new(e||t)(kr(fh))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),dM=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof gM?t.headerCell.template:this instanceof yM?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc),sa(Fc))},t.\u0275dir=Qt({type:t,features:[ce]}),t})();class pM extends dM{}const fM=ZP(pM);let gM=(()=>{class t extends fM{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc),sa(Fc),sa(JP,8))},t.\u0275dir=Qt({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[zs,ce]}),t})();class mM extends dM{}const _M=ZP(mM);let yM=(()=>{class t extends _M{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc),sa(Fc),sa(JP,8))},t.\u0275dir=Qt({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[zs,ce]}),t})(),bM=(()=>{class t extends dM{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc),sa(Fc),sa(JP,8))},t.\u0275dir=Qt({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[zs]}),t})(),vM=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(sa(nu))},t.\u0275dir=Qt({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),wM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&fa(0,0)},directives:[vM],encapsulation:2}),t})(),CM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&fa(0,0)},directives:[vM],encapsulation:2}),t})(),SM=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(sa(Yc))},t.\u0275dir=Qt({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const EM=["top","bottom","left","right"];class kM{constructor(t,e,n,r,i=!0,o=!0,s){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=i,this._needsPositionStickyOnElement=o,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const n=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,r=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const i=t[0],o=i.children.length,s=this._getCellWidths(i,r),a=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,n),c=e.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const r="rtl"===this.direction,i=r?"right":"left",h=r?"left":"right";for(const s of t)for(let t=0;te[n]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:s.slice(u).map((t,e)=>n[e+u]?t:null).reverse()}))})}stickRows(t,e,n){if(!this._isBrowser)return;const r="bottom"===n?t.slice().reverse():t,i="bottom"===n?e.slice().reverse():e,o=[],s=[],a=[];for(let c=0,u=0;c{var t,e;for(let s=0;s{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="",t.classList.remove(this._borderCellCss[n]);EM.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const r of EM)t.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=t.children;for(let i=0;i0;i--)e[i]&&(n[i]=r,r+=t[i]);return n}}const OM=new er("CDK_SPL");let TM=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","rowOutlet",""]]}),t})(),xM=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),AM=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),RM=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(sa(nu),sa(yc))},t.\u0275dir=Qt({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),IM=(()=>{class t{constructor(t,e,n,r,i,o,s,a,l,c,u){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=i,this._platform=s,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._stickyPositioningListener=u,this._onDestroy=new E,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new Sg({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Rb(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Rb(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(Yg(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),nv(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let r=0;r{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{const i=n&&n.has(r)?n.get(r):[];if(i.length){const t=i.shift();return t.dataIndex=e,t}return{data:t,rowDef:r,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),PM(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=PM(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=PM(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=PM(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(t,!1);return r&&this._forceRenderFooterRows(),e||n||r}_switchDataSource(t){this._data=[],nv(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;nv(this.dataSource)?t=this.dataSource.connect(this):function(t){return!!t&&(t instanceof b||"function"==typeof t.lift&&"function"==typeof t.subscribe)}(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Vg(this.dataSource)),this._renderChangeSubscription=t.pipe(Yg(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),r=n.map(t=>t.sticky),i=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,r,i,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let r=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;r&&n.push(r)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,r={}){const i=t.viewContainer.createEmbeddedView(e.template,r,n);return this._renderCellTemplateForItem(e,r),i}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))vM.mostRecentCellOutlet&&vM.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new kM(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Vg()).pipe(Yg(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(sa(Fc),sa(qc),sa(yc),Yn("role"),sa(tv,8),sa(Gh),sa(Wb),sa(ov),sa(uM),sa(av),sa(OM,12))},t.\u0275cmp=qt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(Hu(n,SM,5),Hu(n,oM,5),Hu(n,bM,5),Hu(n,gM,5),Hu(n,yM,5)),2&t){let t;Fu(t=Vu())&&(e._noDataRow=t.first),Fu(t=Vu())&&(e._contentColumnDefs=t),Fu(t=Vu())&&(e._contentRowDefs=t),Fu(t=Vu())&&(e._contentHeaderRowDefs=t),Fu(t=Vu())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Uu(TM,7),Uu(xM,7),Uu(AM,7),Uu(RM,7)),2&t){let t;Fu(t=Vu())&&(e._rowOutlet=t.first),Fu(t=Vu())&&(e._headerRowOutlet=t.first),Fu(t=Vu())&&(e._footerRowOutlet=t.first),Fu(t=Vu())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&Na("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[uc([{provide:JP,useExisting:t},{provide:ov,useClass:rv},{provide:uM,useClass:hM},{provide:OM,useValue:null}])],ngContentSelectors:XP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Ea(QP),ka(0),ka(1,1),fa(2,0),fa(3,1),fa(4,2),fa(5,3))},directives:[xM,TM,RM,AM],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function PM(t,e){return t.concat(Array.from(e))}let MM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[cv]]}),t})();function DM(t,e=Pg){return n=>n.lift(new NM(t,e))}class NM{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new LM(t,this.dueTime,this.scheduler))}}class LM extends g{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,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(FM,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 FM(t){t.debouncedNext()}function UM(t){return e=>e.lift(new HM(t))}class HM{constructor(t){this.total=t}call(t,e){return e.subscribe(new VM(t,this.total))}}class VM extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let BM=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),jM=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Nb(t);return new b(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new E,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(kr(BM))},t.\u0275prov=pt({factory:function(){return new t(kr(BM))},token:t,providedIn:"root"}),t})(),zM=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new ku,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Rb(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Ib(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(DM(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(sa(jM),sa(yc),sa(fh))},t.\u0275dir=Qt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),qM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[BM]}),t})();function KM(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const $M="cdk-describedby-message-container",GM="cdk-describedby-message",WM="cdk-describedby-host";let YM=0;const QM=new Map;let XM=null,ZM=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const r=JM(e,n);"string"!=typeof e?(tD(e),QM.set(r,{messageElement:e,referenceCount:0})):QM.has(r)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const r=JM(e,n);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),"string"==typeof e){const t=QM.get(r);t&&0===t.referenceCount&&this._deleteMessageElement(r)}XM&&0===XM.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${WM}]`);for(let e=0;e0!=t.indexOf(GM));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=QM.get(e);(function(t,e,n){const r=KM(t,e);r.some(t=>t.trim()==n.trim())||(r.push(n.trim()),t.setAttribute(e,r.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(WM,""),n.referenceCount++}_removeMessageReference(t,e){const n=QM.get(e);n.referenceCount--,function(t,e,n){const r=KM(t,e).filter(t=>t!=n.trim());r.length?t.setAttribute(e,r.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(WM)}_isElementDescribedByMessage(t,e){const n=KM(t,"aria-describedby"),r=QM.get(e),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),r=t.getAttribute("aria-label");return!(!n||r&&r.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(Gh))},token:t,providedIn:"root"}),t})();function JM(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function tD(t){t.id||(t.id=`${GM}-${YM++}`)}class eD extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new E,this.change=new E,t instanceof Tu&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}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(am(t=>this._pressedLetters.push(t)),DM(t),Zg(()=>this._pressedLetters.length>0),N(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||yv(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(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Tu?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}function nD(t){return 0===t.offsetX&&0===t.offsetY}function rD(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const iD=new er("cdk-input-modality-detector-options"),oD={ignoreKeys:[18,17,224,91,16]},sD=Qb({passive:!0,capture:!0});let aD=(()=>{class t{constructor(t,e,n,r){this._platform=t,this._mostRecentTarget=null,this._modality=new Sg(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Zb(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(nD(t)?"keyboard":"mouse"),this._mostRecentTarget=Zb(t))},this._onTouchstart=t=>{rD(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zb(t))},this._options=Object.assign(Object.assign({},oD),r),this.modalityDetected=this._modality.pipe(UM(1)),this.modalityChanged=this.modalityDetected.pipe(zg()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,sD),n.addEventListener("mousedown",this._onMousedown,sD),n.addEventListener("touchstart",this._onTouchstart,sD)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,sD),document.removeEventListener("mousedown",this._onMousedown,sD),document.removeEventListener("touchstart",this._onTouchstart,sD))}}return t.\u0275fac=function(e){return new(e||t)(kr(Wb),kr(fh),kr(Gh),kr(iD,8))},t.\u0275prov=pt({factory:function(){return new t(kr(Wb),kr(fh),kr(Gh),kr(iD,8))},token:t,providedIn:"root"}),t})();const lD=new er("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),cD=new er("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let uD=(()=>{class t{constructor(t,e,n,r){this._ngZone=e,this._defaultOptions=r,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let r,i;return 1===e.length&&"number"==typeof e[0]?i=e[0]:[r,i]=e,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),null==i&&n&&(i=n.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof i&&(this._previousTimeout=setTimeout(()=>this.clear(),i))},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 t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let r=0;r{class t{constructor(t,e,n,r,i){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,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 E,this._rootNodeFocusAndBlurListener=t=>{const e=Zb(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let r=e;r;r=r.parentElement)n.call(this,t,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Nb(t);if(!this._platform.isBrowser||1!==n.nodeType)return Vg(null);const r=function(t){if(function(){if(null==Gb){const t="undefined"!=typeof document?document.head:null;Gb=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Gb}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const o={checkChildren:e,subject:new E,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Nb(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const r=Nb(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof r.focus&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),r=Zb(t);!n||!n.checkChildren&&e!==r||this._originChanged(e,this._getFocusOrigin(r),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,dD),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,dD)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Yg(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,dD),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dD),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,r)=>{(r===t||n.checkChildren&&r.contains(t))&&e.push([r,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(kr(fh),kr(Wb),kr(aD),kr(Gh,8),kr(hD,8))},t.\u0275prov=pt({factory:function(){return new t(kr(fh),kr(Wb),kr(aD),kr(Gh,8),kr(hD,8))},token:t,providedIn:"root"}),t})();const fD="cdk-high-contrast-black-on-white",gD="cdk-high-contrast-white-on-black",mD="cdk-high-contrast-active";let _D=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),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 t=this._document.body.classList;t.remove(mD),t.remove(fD),t.remove(gD),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(mD),t.add(fD)):2===e&&(t.add(mD),t.add(gD))}}}return t.\u0275fac=function(e){return new(e||t)(kr(Wb),kr(Gh))},t.\u0275prov=pt({factory:function(){return new t(kr(Wb),kr(Gh))},token:t,providedIn:"root"}),t})(),yD=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(kr(_D))},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[Yb,qM]]}),t})();const bD=new Ec("12.1.4");function vD(t,e){if(1&t&&ha(0,"mat-pseudo-checkbox",4),2&t){const t=Ca();aa("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function wD(t,e){if(1&t&&(ca(0,"span",5),Wa(1),ua()),2&t){const t=Ca();xo(1),Qa("(",t.group.label,")")}}const CD=["*"],SD=new Ec("12.1.4"),ED=new er("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let kD,OD=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Th()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.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._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&SD.full!==bD.full&&console.warn("The Angular Material version ("+SD.full+") does not match the Angular CDK version ("+bD.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(kr(_D),kr(ED,8),kr(Gh))},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[ev],ev]}),t})();function TD(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Rb(t)}}}function xD(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function AD(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Rb(t)}}}function RD(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Ib(t):this.defaultTabIndex}}}function ID(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new E,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function PD(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}try{kD="undefined"!=typeof Intl}catch(d){kD=!1}let MD=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class DD{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ND={enterDuration:225,exitDuration:150},LD=Qb({passive:!0}),FD=["mousedown","touchstart"],UD=["mouseup","mouseleave","touchend","touchcancel"];class HD{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Nb(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},ND),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=n.radius||function(t,e,n){const r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,r),s=t-r.left,a=e-r.top,l=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-o+"px",c.style.top=a-o+"px",c.style.height=2*o+"px",c.style.width=2*o+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),function(t){window.getComputedStyle(t).getPropertyValue("opacity")}(c),c.style.transform="scale(1)";const u=new DD(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,r=Object.assign(Object.assign({},ND),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Nb(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(FD))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(UD),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=nD(t),n=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(t=>{this._triggerElement.addEventListener(t,this,LD)})})}_removeTriggerEvents(){this._triggerElement&&(FD.forEach(t=>{this._triggerElement.removeEventListener(t,this,LD)}),this._pointerUpEventsRegistered&&UD.forEach(t=>{this._triggerElement.removeEventListener(t,this,LD)}))}}const VD=new er("mat-ripple-global-options");let BD=(()=>{class t{constructor(t,e,n,r,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new HD(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(fh),sa(Wb),sa(VD,8),sa(KP,8))},t.\u0275dir=Qt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Na("mat-ripple-unbounded",e.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"]}),t})(),jD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[OD,Yb],OD]}),t})(),zD=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(sa(KP,8))},t.\u0275cmp=qt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Na("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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}),t})(),qD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[OD]]}),t})();const KD=new er("MAT_OPTION_PARENT_COMPONENT"),$D=TD(class{});let GD=0,WD=(()=>{class t extends $D{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+GD++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(sa(KD,8))},t.\u0275dir=Qt({type:t,inputs:{label:"label"},features:[zs]}),t})();const YD=new er("MatOptgroup");let QD=0;class XD{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let ZD=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+QD++,this.onSelectionChange=new ku,this._stateChanges=new E}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(t){this._disabled=Rb(t)}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(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!yv(t)&&(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new XD(this,t))}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(qc),sa(void 0),sa(WD))},t.\u0275dir=Qt({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),JD=(()=>{class t extends ZD{constructor(t,e,n,r){super(t,e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(qc),sa(KD,8),sa(YD,8))},t.\u0275cmp=qt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ba("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(Za("id",e.id),na("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Na("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[zs],ngContentSelectors:CD,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(t,e){1&t&&(Ea(),ia(0,vD,1,2,"mat-pseudo-checkbox",0),ca(1,"span",1),ka(2),ua(),ia(3,wD,2,1,"span",2),ha(4,"div",3)),2&t&&(aa("ngIf",e.multiple),xo(3),aa("ngIf",e.group&&e.group._inert),xo(1),aa("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[tp,BD,zD],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}),t})();function tN(t,e,n){if(n.length){let r=e.toArray(),i=n.toArray(),o=0;for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[jD,gp,OD,qD]]}),t})();const nN=[[["caption"]],[["colgroup"],["col"]]],rN=["caption","colgroup, col"];let iN=(()=>{class t extends IM{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275cmp=qt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&Na("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[uc([{provide:ov,useClass:rv},{provide:IM,useExisting:t},{provide:JP,useExisting:t},{provide:uM,useClass:hM},{provide:OM,useValue:null}]),zs],ngContentSelectors:rN,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(Ea(nN),ka(0),ka(1,1),fa(2,0),fa(3,1),fa(4,2),fa(5,3))},directives:[xM,TM,RM,AM],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),oN=(()=>{class t extends tM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["","matCellDef",""]],features:[uc([{provide:tM,useExisting:t}]),zs]}),t})(),sN=(()=>{class t extends eM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["","matHeaderCellDef",""]],features:[uc([{provide:eM,useExisting:t}]),zs]}),t})(),aN=(()=>{class t extends oM{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[uc([{provide:oM,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),zs]}),t})(),lN=(()=>{class t extends aM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[zs]}),t})(),cN=(()=>{class t extends lM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[zs]}),t})(),uN=(()=>{class t extends gM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[uc([{provide:gM,useExisting:t}]),zs]}),t})(),hN=(()=>{class t extends bM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[uc([{provide:bM,useExisting:t}]),zs]}),t})(),dN=(()=>{class t extends wM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275cmp=qt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[uc([{provide:wM,useExisting:t}]),zs],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&fa(0,0)},directives:[vM],encapsulation:2}),t})(),pN=(()=>{class t extends CM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275cmp=qt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[uc([{provide:CM,useExisting:t}]),zs],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&fa(0,0)},directives:[vM],encapsulation:2}),t})(),fN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[MM,OD],OD]}),t})();class gN extends class extends class{}{constructor(t=[]){super(),this._renderData=new Sg([]),this._filter=new Sg(""),this._internalPageChanges=new E,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Pb(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,r=e.direction;return n&&""!=r?t.sort((t,e)=>{let i=this.sortingDataAccessor(t,n),o=this.sortingDataAccessor(e,n);const s=typeof i,a=typeof o;s!==a&&("number"===s&&(i+=""),"number"===a&&(o+=""));let l=0;return null!=i&&null!=o?i>o?l=1:i{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),r=e.trim().toLowerCase();return-1!=n.indexOf(r)},this._data=new Sg(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?K(this._sort.sortChange,this._sort.initialized):Vg(null),n=this._paginator?K(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Vg(null),r=kg([this._data,this._filter]).pipe(N(([t])=>this._filterData(t))),i=kg([r,e]).pipe(N(([t])=>this._orderData(t))),o=kg([i,n]).pipe(N(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}const mN=["*"];function _N(t){return Error(`Unable to find icon with the name "${t}"`)}function yN(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function bN(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class vN{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let wN=(()=>{class t{constructor(t,e,n,r){this._httpClient=t,this._sanitizer=e,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=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,r){return this._addSvgIconConfig(t,e,new vN(n,null,r))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,r){const i=this._sanitizer.sanitize(_i.HTML,n);if(!i)throw bN(n);return this._addSvgIconConfig(t,e,new vN("",i,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new vN(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(_i.HTML,e);if(!r)throw bN(e);return this._addSvgIconSetConfig(t,new vN("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(_i.RESOURCE_URL,t);if(!e)throw yN(t);const n=this._cachedIconsByUrl.get(e);return n?Vg(CN(n)):this._loadSvgIconFromConfig(new vN(t,null)).pipe(am(t=>this._cachedIconsByUrl.set(e,t)),N(t=>CN(t)))}getNamedSvgIcon(t,e=""){const n=SN(e,t);let r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(e,t),r)return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);const i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):fm(_N(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Vg(CN(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(N(t=>CN(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Vg(n):ef(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Xk(e=>{const n=`Loading icon set URL: ${this._sanitizer.sanitize(_i.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler.handleError(new Error(n)),Vg(null)})))).pipe(N(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw _N(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.svgText&&r.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(r),n=this._extractSvgIconFromSet(e,t,r.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(am(e=>t.svgText=e),N(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Vg(null):this._fetchIcon(t).pipe(am(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const r=t.querySelector(`[id="${e}"]`);if(!r)return null;const i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);const o=this._svgElementFromString("");return o.appendChild(i),this._setSvgAttributes(o,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let r=0;rthis._inProgressUrlFetches.delete(o)),J());return this._inProgressUrlFetches.set(o,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(SN(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),TN=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xN=TN.map(t=>`[${t}]`).join(", "),AN=/^url\(['"]?#(.*?)['"]?\)$/;let RN=(()=>{class t extends kN{constructor(t,e,n,r,i){super(t),this._iconRegistry=e,this._location=r,this._errorHandler=i,this._inline=!1,this._currentIconFetch=h.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Rb(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let r=0;r{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(xN),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const i=e[r],o=i.getAttribute(t),s=o?o.match(AN):null;if(s){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:s[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(im(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(wN),Yn("aria-hidden"),sa(ON),sa(Oi))},t.\u0275cmp=qt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(na("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Na("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[zs],ngContentSelectors:mN,decls:1,vars:0,template:function(t,e){1&t&&(Ea(),ka(0))},styles:[".mat-icon{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}),t})(),IN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[OD],OD]}),t})();const PN=new Set;let MN,DN=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):NN}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!PN.has(t))try{MN||(MN=document.createElement("style"),MN.setAttribute("type","text/css"),document.head.appendChild(MN)),MN.sheet&&(MN.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),PN.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(kr(Wb))},t.\u0275prov=pt({factory:function(){return new t(kr(Wb))},token:t,providedIn:"root"}),t})();function NN(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let LN=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return FN(Mb(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=kg(FN(Mb(t)).map(t=>this._registerQuery(t).observable));return e=Bg(e.pipe(im(1)),e.pipe(UM(1),DM(0))),e.pipe(N(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new b(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(jg(e),N(({matches:e})=>({query:t,matches:e})),Yg(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(kr(DN),kr(fh))},t.\u0275prov=pt({factory:function(){return new t(kr(DN),kr(fh))},token:t,providedIn:"root"}),t})();function FN(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const UN={tooltipState:aR("state",[hR("initial, void, hidden",uR({opacity:0,transform:"scale(0)"})),hR("visible",uR({transform:"scale(1)"})),pR("* => visible",lR("200ms cubic-bezier(0, 0, 0.2, 1)",dR([uR({opacity:0,transform:"scale(0)",offset:0}),uR({opacity:.5,transform:"scale(0.99)",offset:.5}),uR({opacity:1,transform:"scale(1)",offset:1})]))),pR("* => hidden",lR("100ms cubic-bezier(0, 0, 0.2, 1)",uR({opacity:0})))])},HN="tooltip-panel",VN=Qb({passive:!0}),BN=new er("mat-tooltip-scroll-strategy"),jN={provide:BN,deps:[Wv],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},zN=new er("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let qN=(()=>{class t{constructor(t,e,n,r,i,o,s,a,l,c,u,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._platform=o,this._ariaDescriber=s,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!yv(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,this._document=h,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),c.change.pipe(Yg(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),i.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Rb(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Yg(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,VN)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new hv(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Yg(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(Yg(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${HN}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Yg(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Yg(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),r=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),r.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),r.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:r,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:r,originY:i}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:r,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:r,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(im(1),Yg(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:r}=t;let i;if(i="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===r?"above":"below",i!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${HN}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+i)}this._currentPosition=i}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,VN)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(sa(Wv),sa(yc),sa(sv),sa(nu),sa(fh),sa(Wb),sa(ZM),sa(pD),sa(void 0),sa(tv),sa(void 0),sa(Gh))},t.\u0275dir=Qt({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),KN=(()=>{class t extends qN{constructor(t,e,n,r,i,o,s,a,l,c,u,h){super(t,e,n,r,i,o,s,a,l,c,u,h),this._tooltipComponent=GN}}return t.\u0275fac=function(e){return new(e||t)(sa(Wv),sa(yc),sa(sv),sa(nu),sa(fh),sa(Wb),sa(ZM),sa(pD),sa(BN),sa(tv,8),sa(zN,8),sa(Gh))},t.\u0275dir=Qt({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[zs]}),t})(),$N=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(sa(qc))},t.\u0275dir=Qt({type:t}),t})(),GN=(()=>{class t extends $N{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(sa(qc),sa(LN))},t.\u0275cmp=qt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&Da("zoom","visible"===e._visibility?1:null)},features:[zs],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(ca(0,"div",0),ba("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),Cu(1,"async"),Wa(2),ua()),2&t){let t;Na("mat-tooltip-handset",null==(t=Su(1,5,e._isHandset))?null:t.matches),aa("ngClass",e.tooltipClass)("@state",e._visibility),xo(2),Ya(e.message)}},directives:[Qd],pipes:[pp],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[UN.tooltipState]},changeDetection:0}),t})(),WN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[jN],imports:[[yD,gp,tw,OD],OD,lv]}),t})(),YN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})(),QN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp,OD,YN,gv]]}),t})();const XN=["mat-button",""],ZN=["*"],JN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],tL=xD(TD(AD(class{constructor(t){this._elementRef=t}})));let eL=(()=>{class t extends tL{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of JN)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(pD),sa(KP,8))},t.\u0275cmp=qt({type:t,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(t,e){if(1&t&&Uu(BD,5),2&t){let t;Fu(t=Vu())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(na("disabled",e.disabled||null),Na("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[zs],attrs:XN,ngContentSelectors:ZN,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(t,e){1&t&&(Ea(),ca(0,"span",0),ka(1),ua(),ha(2,"span",1),ha(3,"span",2)),2&t&&(xo(2),Na("mat-button-ripple-round",e.isRoundButton||e.isIconButton),aa("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[BD],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}),t})(),nL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[jD,OD],OD]}),t})();const rL=["underline"],iL=["connectionContainer"],oL=["inputContainer"],sL=["label"];function aL(t,e){1&t&&(da(0),ca(1,"div",14),ha(2,"div",15),ha(3,"div",16),ha(4,"div",17),ua(),ca(5,"div",18),ha(6,"div",15),ha(7,"div",16),ha(8,"div",17),ua(),pa())}function lL(t,e){1&t&&(ca(0,"div",19),ka(1,1),ua())}function cL(t,e){if(1&t&&(da(0),ka(1,2),ca(2,"span"),Wa(3),ua(),pa()),2&t){const t=Ca(2);xo(3),Ya(t._control.placeholder)}}function uL(t,e){1&t&&ka(0,3,["*ngSwitchCase","true"])}function hL(t,e){1&t&&(ca(0,"span",23),Wa(1," *"),ua())}function dL(t,e){if(1&t){const t=ga();ca(0,"label",20,21),ba("cdkObserveContent",function(){return Ne(t),Ca().updateOutlineGap()}),ia(2,cL,4,1,"ng-container",12),ia(3,uL,1,0,"ng-content",12),ia(4,hL,2,0,"span",22),ua()}if(2&t){const t=Ca();Na("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),aa("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),na("for",t._control.id)("aria-owns",t._control.id),xo(2),aa("ngSwitchCase",!1),xo(1),aa("ngSwitchCase",!0),xo(1),aa("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function pL(t,e){1&t&&(ca(0,"div",24),ka(1,4),ua())}function fL(t,e){if(1&t&&(ca(0,"div",25,26),ha(2,"span",27),ua()),2&t){const t=Ca();xo(2),Na("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function gL(t,e){1&t&&(ca(0,"div"),ka(1,5),ua()),2&t&&aa("@transitionMessages",Ca()._subscriptAnimationState)}function mL(t,e){if(1&t&&(ca(0,"div",31),Wa(1),ua()),2&t){const t=Ca(2);aa("id",t._hintLabelId),xo(1),Ya(t.hintLabel)}}function _L(t,e){if(1&t&&(ca(0,"div",28),ia(1,mL,2,2,"div",29),ka(2,6),ha(3,"div",30),ka(4,7),ua()),2&t){const t=Ca();aa("@transitionMessages",t._subscriptAnimationState),xo(1),aa("ngIf",t.hintLabel)}}const yL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],vL=new er("MatError"),wL={transitionMessages:aR("transitionMessages",[hR("enter",uR({opacity:1,transform:"translateY(0%)"})),pR("void => enter",[uR({opacity:0,transform:"translateY(-5px)"}),lR("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let CL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t}),t})();const SL=new er("MatHint");let EL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t,selectors:[["mat-label"]]}),t})(),kL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t,selectors:[["mat-placeholder"]]}),t})();const OL=new er("MatPrefix"),TL=new er("MatSuffix");let xL=0;const AL=xD(class{constructor(t){this._elementRef=t}},"primary"),RL=new er("MAT_FORM_FIELD_DEFAULT_OPTIONS"),IL=new er("MatFormField");let PL=(()=>{class t extends AL{constructor(t,e,n,r,i,o,s,a){super(t),this._changeDetectorRef=e,this._dir=r,this._defaults=i,this._platform=o,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+xL++,this._labelId="mat-form-field-label-"+xL++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=i&&i.appearance?i.appearance:"legacy",this._hideRequiredMarker=!(!i||null==i.hideRequiredMarker)&&i.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Rb(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(jg(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Yg(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Yg(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),K(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jg(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jg(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Yg(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,Lg(this._label.nativeElement,"transitionend").pipe(im(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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const i=r.getBoundingClientRect();if(0===i.width&&0===i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(i),s=t.children,a=this._getStartEnd(s[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let s=0;s{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[gp,OD,qM],OD]}),t})();const DL=["trigger"],NL=["panel"];function LL(t,e){if(1&t&&(ca(0,"span",8),Wa(1),ua()),2&t){const t=Ca();xo(1),Ya(t.placeholder)}}function FL(t,e){if(1&t&&(ca(0,"span",12),Wa(1),ua()),2&t){const t=Ca(2);xo(1),Ya(t.triggerValue)}}function UL(t,e){1&t&&ka(0,0,["*ngSwitchCase","true"])}function HL(t,e){1&t&&(ca(0,"span",9),ia(1,FL,2,1,"span",10),ia(2,UL,1,0,"ng-content",11),ua()),2&t&&(aa("ngSwitch",!!Ca().customTrigger),xo(2),aa("ngSwitchCase",!0))}function VL(t,e){if(1&t){const t=ga();ca(0,"div",13),ca(1,"div",14,15),ba("@transformPanel.done",function(e){return Ne(t),Ca()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Ne(t),Ca()._handleKeydown(e)}),ka(3,1),ua(),ua()}if(2&t){const t=Ca();aa("@transformPanelWrap",void 0),xo(1),function(t,e,n){Ha(pr,Fa,ra(Me(),t,e,n),!0)}("mat-select-panel ",t._getPanelTheme(),""),Da("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),aa("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),na("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const BL=[[["mat-select-trigger"]],"*"],jL=["mat-select-trigger","*"],zL={transformPanelWrap:aR("transformPanelWrap",[pR("* => void",gR("@transformPanel",[fR()],{optional:!0}))]),transformPanel:aR("transformPanel",[hR("void",uR({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),hR("showing",uR({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),hR("showing-multiple",uR({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),pR("void => *",lR("120ms cubic-bezier(0, 0, 0.2, 1)")),pR("* => void",lR("100ms 25ms linear",uR({opacity:0})))])};let qL=0;const KL=new er("mat-select-scroll-strategy"),$L=new er("MAT_SELECT_CONFIG"),GL={provide:KL,deps:[Wv],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class WL{constructor(t,e){this.source=t,this.value=e}}const YL=AD(RD(TD(ID(class{constructor(t,e,n,r,i){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}})))),QL=new er("MatSelectTrigger");let XL=(()=>{class t extends YL{constructor(t,e,n,r,i,o,s,a,l,c,u,h,d,p){var f,g,m;super(i,r,s,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=l,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+qL++,this._triggerAriaLabelledBy=null,this._destroy=new E,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+qL++,this._panelDoneAnimatingStream=new E,this._overlayPanelClass=(null===(f=this._defaultOptions)||void 0===f?void 0:f.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=eO(()=>{const t=this.options;return t?t.changes.pipe(jg(t),$g(()=>K(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(im(1),$g(()=>this.optionSelectionChanges))}),this.openedChange=new ku,this._openedStream=this.openedChange.pipe(Zg(t=>t),N(()=>{})),this._closedStream=this.openedChange.pipe(Zg(t=>!t),N(()=>{})),this.selectionChange=new ku,this.valueChange=new ku,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Rb(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Rb(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Rb(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Ib(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new iv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(zg(),Yg(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Yg(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(jg(null),Yg(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=40===e||38===e||37===e||39===e,r=13===e||32===e,i=this._keyManager;if(!i.isTyping()&&r&&!yv(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;i.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,r=40===n||38===n,i=e.isTyping();if(r&&t.altKey)t.preventDefault(),this.close();else if(i||13!==n&&32!==n||!e.activeItem||yv(t))if(!i&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&r&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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(im(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(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new eD(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Yg(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Yg(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 t=K(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Yg(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),K(...this.options.map(t=>t._stateChanges)).pipe(Yg(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(sa(av),sa(qc),sa(fh),sa(MD),sa(yc),sa(tv,8),sa(eg,8),sa(cg,8),sa(IL,8),sa(Ef,10),Yn("tabindex"),sa(KL),sa(uD),sa($L,8))},t.\u0275dir=Qt({type:t,viewQuery:function(t,e){if(1&t&&(Uu(DL,5),Uu(NL,5),Uu(Zv,5)),2&t){let t;Fu(t=Vu())&&(e.trigger=t.first),Fu(t=Vu())&&(e.panel=t.first),Fu(t=Vu())&&(e._overlayDir=t.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:[zs,ce]}),t})(),ZL=(()=>{class t extends XL{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(t,e,n){const r=this._getItemHeight();return Math.min(Math.max(0,r*t-e+r/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Yg(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(im(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=tN(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:function(t,e,n,r){return tn+256?Math.max(0,t-256+e):n}((t+e)*n,n,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new WL(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;let i;if(this.multiple)i=40;else if(this.disableOptionCentering)i=16;else{let t=this._selectionModel.selected[0]||this.options.first;i=t&&t.group?32:16}n||(i*=-1);const o=0-(t.left+i-(n?r:0)),s=t.right+i-e.width+(n?0:r);o>0?i+=o+8:s>0&&(i-=s+8),this._overlayDir.offsetX=Math.round(i),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const r=this._getItemHeight(),i=(r-this._triggerRect.height)/2,o=Math.floor(256/r);let s;return this.disableOptionCentering?0:(s=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*s-i))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;s>i?this._adjustPanelUp(s,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n;let i;i=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),i+=tN(i,this.options,this.optionGroups);const o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Gn(t)))(n||t)}}(),t.\u0275cmp=qt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(Hu(n,QL,5),Hu(n,JD,5),Hu(n,YD,5)),2&t){let t;Fu(t=Vu())&&(e.customTrigger=t.first),Fu(t=Vu())&&(e.options=t),Fu(t=Vu())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&ba("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(na("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Na("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[uc([{provide:CL,useExisting:t},{provide:KD,useExisting:t}]),zs],ngContentSelectors:jL,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(t,e){if(1&t&&(Ea(BL),ca(0,"div",0,1),ba("click",function(){return e.toggle()}),ca(3,"div",2),ia(4,LL,2,1,"span",3),ia(5,HL,3,2,"span",4),ua(),ca(6,"div",5),ha(7,"div",6),ua(),ua(),ia(8,VL,4,14,"ng-template",7),ba("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=oa(1);na("aria-owns",e.panelOpen?e.id+"-panel":null),xo(3),aa("ngSwitch",e.empty),na("id",e._valueId),xo(1),aa("ngSwitchCase",!0),xo(1),aa("ngSwitchCase",!1),xo(3),aa("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Xv,ip,op,Zv,sp,Qd],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:[zL.transformPanelWrap,zL.transformPanel]},changeDetection:0}),t})(),JL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[GL],imports:[[gp,tw,eN,OD],lv,ML,eN,OD]}),t})();function tF(t,e){if(1&t&&(ca(0,"mat-option",19),Wa(1),ua()),2&t){const t=e.$implicit;aa("value",t),xo(1),Qa(" ",t," ")}}function eF(t,e){if(1&t){const t=ga();ca(0,"mat-form-field",16),ca(1,"mat-select",17),ba("selectionChange",function(e){return Ne(t),Ca(2)._changePageSize(e.value)}),ia(2,tF,2,2,"mat-option",18),ua(),ua()}if(2&t){const t=Ca(2);aa("appearance",t._formFieldAppearance)("color",t.color),xo(1),aa("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),xo(1),aa("ngForOf",t._displayedPageSizeOptions)}}function nF(t,e){if(1&t&&(ca(0,"div",20),Wa(1),ua()),2&t){const t=Ca(2);xo(1),Ya(t.pageSize)}}function rF(t,e){if(1&t&&(ca(0,"div",12),ca(1,"div",13),Wa(2),ua(),ia(3,eF,3,6,"mat-form-field",14),ia(4,nF,2,1,"div",15),ua()),2&t){const t=Ca();xo(2),Qa(" ",t._intl.itemsPerPageLabel," "),xo(1),aa("ngIf",t._displayedPageSizeOptions.length>1),xo(1),aa("ngIf",t._displayedPageSizeOptions.length<=1)}}function iF(t,e){if(1&t){const t=ga();ca(0,"button",21),ba("click",function(){return Ne(t),Ca().firstPage()}),hn(),ca(1,"svg",7),ha(2,"path",22),ua(),ua()}if(2&t){const t=Ca();aa("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),na("aria-label",t._intl.firstPageLabel)}}function oF(t,e){if(1&t){const t=ga();hn(),dn(),ca(0,"button",23),ba("click",function(){return Ne(t),Ca().lastPage()}),hn(),ca(1,"svg",7),ha(2,"path",24),ua(),ua()}if(2&t){const t=Ca();aa("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),na("aria-label",t._intl.lastPageLabel)}}let sF=(()=>{class t{constructor(){this.changes=new E,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const r=t*e;return`${r+1} \u2013 ${r<(n=Math.max(n,0))?Math.min(r+e,n):r+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const aF={provide:sF,deps:[[new Pr,new Mr,sF]],useFactory:function(t){return t||new sF}},lF=new er("MAT_PAGINATOR_DEFAULT_OPTIONS"),cF=TD(PD(class{}));let uF=(()=>{class t extends cF{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new ku,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:r,showFirstLastButtons:i}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=r&&(this._hidePageSize=r),null!=i&&(this._showFirstLastButtons=i)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Ib(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Ib(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Ib(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Ib(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Rb(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Rb(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(sa(sF),sa(qc),sa(void 0))},t.\u0275dir=Qt({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[zs]}),t})(),hF=(()=>{class t extends uF{constructor(t,e,n){super(t,e,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(sa(sF),sa(qc),sa(lF,8))},t.\u0275cmp=qt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[zs],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(ca(0,"div",0),ca(1,"div",1),ia(2,rF,5,3,"div",2),ca(3,"div",3),ca(4,"div",4),Wa(5),ua(),ia(6,iF,3,5,"button",5),ca(7,"button",6),ba("click",function(){return e.previousPage()}),hn(),ca(8,"svg",7),ha(9,"path",8),ua(),ua(),dn(),ca(10,"button",9),ba("click",function(){return e.nextPage()}),hn(),ca(11,"svg",7),ha(12,"path",10),ua(),ua(),ia(13,oF,3,5,"button",11),ua(),ua(),ua()),2&t&&(xo(2),aa("ngIf",!e.hidePageSize),xo(3),Qa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),xo(1),aa("ngIf",e.showFirstLastButtons),xo(1),aa("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),na("aria-label",e._intl.previousPageLabel),xo(3),aa("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),na("aria-label",e._intl.nextPageLabel),xo(3),aa("ngIf",e.showFirstLastButtons))},directives:[tp,eL,KN,PL,ZL,Zd,JD],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),dF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[aF],imports:[[gp,nL,JL,WN,OD]]}),t})();const pF=["thumbContainer"],fF=["toggleBar"],gF=["input"],mF=function(t){return{enterDuration:t}},_F=["*"],yF=new er("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let bF=0;const vF={provide:sf,useExisting:ot(()=>SF),multi:!0};class wF{constructor(t,e){this.source=t,this.checked=e}}const CF=RD(xD(AD(TD(class{constructor(t){this._elementRef=t}}))));let SF=(()=>{class t extends CF{constructor(t,e,n,r,i,o){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=i,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++bF,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new ku,this.toggleChange=new ku,this.tabIndex=parseInt(r)||0,this.color=this.defaultColor=i.color||"accent",this._noopAnimations="NoopAnimations"===o}get required(){return this._required}set required(t){this._required=Rb(t)}get checked(){return this._checked}set checked(t){this._checked=Rb(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new wF(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(sa(yc),sa(pD),sa(qc),Yn("tabindex"),sa(yF),sa(KP,8))},t.\u0275cmp=qt({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(Uu(pF,5),Uu(fF,5),Uu(gF,5)),2&t){let t;Fu(t=Vu())&&(e._thumbEl=t.first),Fu(t=Vu())&&(e._thumbBarEl=t.first),Fu(t=Vu())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(Za("id",e.id),na("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Na("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[uc([vF]),zs],ngContentSelectors:_F,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Ea(),ca(0,"label",0,1),ca(2,"div",2,3),ca(4,"input",4,5),ba("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),ua(),ca(6,"div",6,7),ha(8,"div",8),ca(9,"div",9),ha(10,"div",10),ua(),ua(),ua(),ca(11,"span",11,12),ba("cdkObserveContent",function(){return e._onLabelTextChange()}),ca(13,"span",13),Wa(14,"\xa0"),ua(),ka(15),ua(),ua()),2&t){const t=oa(1),n=oa(12);na("for",e.inputId),xo(2),Na("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),xo(2),aa("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),na("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),xo(5),aa("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",yu(17,mF,e._noopAnimations?0:150))}},directives:[BD,zM],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),EF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({}),t})(),kF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({imports:[[EF,jD,OD,qM],EF,OD]}),t})();function OF(t,e){1&t&&(ca(0,"a",13),ca(1,"mat-icon"),Wa(2,"history"),ua(),Wa(3," Batch History"),ua())}function TF(t,e){1&t&&(ca(0,"a",14),ca(1,"mat-icon"),Wa(2,"assignment_returned"),ua(),Wa(3," Milestone Update"),ua())}function xF(t,e){if(1&t){const t=ga();ca(0,"a",15),ba("click",function(){return Ne(t),Ca().logout()}),ca(1,"mat-icon"),Wa(2,"logout"),ua(),Wa(3,"\xa0\xa0Logout"),ua()}}function AF(t,e){1&t&&(ca(0,"div",16),ca(1,"div",17),ha(2,"div"),ha(3,"div"),ha(4,"div"),ha(5,"div"),ha(6,"div"),ha(7,"div"),ha(8,"div"),ha(9,"div"),ua(),ua())}let RF=(()=>{class t{constructor(t,e,n,r){this.msalGuardConfig=t,this.router=e,this.authService=n,this.msalBroadcastService=r,this.title="nostra-batch-ui",this.isIframe=!1,this.loggedIn=!1,this._destroying$=new E}ngOnInit(){this.isIframe=window!==window.parent&&!window.opener,this.setLoggedIn(),this.msalBroadcastService.msalSubject$.pipe(Zg(t=>t.eventType===Yw.LOGIN_SUCCESS||t.eventType===Yw.ACQUIRE_TOKEN_SUCCESS),Yg(this._destroying$)).subscribe(t=>{this.setLoggedIn()})}getTriggerLoad(){return this.triggerLoad}setTriggerLoad(t){this.triggerLoad=t}setLoggedIn(){this.loggedIn=this.authService.instance.getAllAccounts().length>0}getAccountRoles(){var t;return null===(t=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===t?void 0:t.roles}loginRedirect(){this.msalGuardConfig.authRequest?this.authService.loginRedirect(Object.assign({},this.msalGuardConfig.authRequest)):this.authService.loginRedirect()}loginPopup(){this.msalGuardConfig.authRequest?this.authService.loginPopup(Object.assign({},this.msalGuardConfig.authRequest)).subscribe(t=>{this.authService.instance.setActiveAccount(t.account)}):this.authService.loginPopup().subscribe(t=>{this.authService.instance.setActiveAccount(t.account)})}logout(t){t?this.authService.logoutPopup({mainWindowRedirectUri:"/"}):this.authService.logoutRedirect()}ngOnDestroy(){this._destroying$.next(null),this._destroying$.complete()}}return t.\u0275fac=function(e){return new(e||t)(sa(yA),sa(Yx),sa(CA),sa(SA))},t.\u0275cmp=qt({type:t,selectors:[["app-root"]],decls:16,vars:4,consts:[[1,"app-frame"],[1,"navbar","navbar-expand"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAoCAYAAADpE0oSAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TtSIVByOIOGSoThZERR2likWwUNoKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cWWsR4cNyPd/ced+8AoVZimtUxDmi6bSaiESmdWZUCr+hCACJmMCAzy4glF1PwHF/38PH1LsyzvM/9OXrVrMUAn0Q8xwzTJt4gnt60Dc77xCIryCrxOfGYSRckfuS60uA3znmXBZ4pmqnEPLFILOXbWGljVjA14inikKrplC+kG6xy3uKslSqseU/+wmBWX0lyneYwolhCDHFIUFBBESXYCNOqk2IhQfsRD/+Q64+TSyFXEYwcCyhDg+z6wf/gd7dWbnKikRSMAJ0vjvMxAgR2gXrVcb6PHad+AvifgSu95S/XgNlP0qstLXQE9G0DF9ctTdkDLneAwSdDNmVX8tMUcjng/Yy+KQP03wI9a43emvs4fQBS1NXyDXBwCIzmKXvd493d7b39e6bZ3w+agXK32oekqAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB+QGBxUCLqebMPsAAAgYSURBVFjDrZh7jF1FHcc/M3POfe97l90tBfpIWyiFJaKAQAPVPzRUUApVpEooURsIGKJYbZRIjJhgxGDA1takNA2L1FRREkiJCEW2pRKD2ie0bLsVln20233evffcc2bGP87s3bvdrRCzk9zcOTNz5ju/3/we398RzFbbjASGgfnA6XOus/FPMrtNOPAWQM0wX40C5OwDjwD/BF4CSsD3gLlOzt8BRzGMAAu8WQbOArcDe4FGoBt42c1tAr4K3ARsnG2JpZMKd88jwIWAAf7m1pwALp5t4Nh8JndNA2dc36sYy882cAAcAT7pJDzoniXwC2d0TwC/krMqKfwSOA/4LtAOXAMknarfAl50hrdF/F8QCtjo+uvKfnyu1gL0OFebYgwf3ZaetfEmAOqBen5z1gEi119XXj0K/Lz85ObEx4hIEyCLgL9XzDznVHhnxdjVwFFgkHUzaKEAPDgZaaaqUM8IfB3Q4cJhF9AE9LsV9cAgsBB4D7gWeLNC4hn3ni7xRkBNO0J7WTLDciS7gIybG8ewEslu9/w0cM+U69QY7pvu8NNPBuuBfwEL3GhZnWuaeOnqFMIdWlyVwt7RxAsVO6xx/wvdHg/NFLXl/4hAbUAnlo4VGUjG7kKVT+7eNjJ1AlMnMPe1kav1qQJICeyKDAksbzi1t50jWSDPYV495Z7murVt2IeXEKKxc+sIgwg2XEq0YSmlIII5NURo7I+WEN3ThiXi+oq9emfKYYItZfefUJ8V8CkBrxrIUsI8vRxZikCArVEUhzTphcn4tc4AqhWFEU0KEAkPu/YNIIGQMGbhRgtvl+1JxJHcixVIAii6SaPg5PoFRIMF9FgIw0VOeYqmhIDbmklu6cZenGXcAEeLZFY3k9z6IZQs5AucumsOjRkf05BBP9rJH12imBAwBQQxsKAErAZ2AjIyzNeW/CfOR0UWFibJzU8T7BrEVwq5thWdkmQB1railUIFFntTHcVjBarTFyE9AcdO42G4sMKSVgEBFgQyjkQCpIU9GK5xJzObr8KGFlXrYde0IjAEeF8ThM/4ZLdqkOPk767GWxOh2zWS5DM92OEI4Qv0urcQDgEh2Qsst2C4d+KOrfNvy4ofL+aFtEdWG8SlNYQ3NuAPhyLIKSvqfRLU7skzfF2Gxr74zk43Q83rJYZuSAyEBGNa2FrfpnYPEB4axlcSihGFR46xUsFrumzVlgbghzp2l1ePDSDrs4jGHPRpvKJGX5i2yfrqxyWN7w0Qdmdp/GAcr7qIVxXQ1NtP2Jug8fhAQ/Xj/kVpmypodJ/Ga8xBfRbePQNYXnUYDwONipv5DvBTACHgQB6/NqTUXIVq8ClkJKY5e1eAfzWYAUXVF0DVphC+j/A9ZDZLcnGJ4pseospgvLArf8COGcLhEP/N/xC0nyIlJu95BTAigUeBByYSKoDnEc1JUfxKK5nLqkgTbc8hqyB3Sxbh+/ERK53S98ndnEakJPrZ9LIqkqtbSDcnGU94cei1ky98G3hUlDOIZd5nc7yzZhmeMajIgLGYLzehG9Jft2TuNvgXWJKL0jOGnNLxkPBkRH6bOl3crnf0k/AEypMgJfrZg0SvjHEJghNTQ6ag470i3s7DWCEoFQzc0kBQ6+Nh9vuMrQd/rjpn+vRaYPQhD/Nvr84j9aUGCgUDQlDaeRh7rIiH4I1JuM1cAvwVaBWAjf3a7rqG4U/XkQktiYbkCkPDDoswIcgSqql6Cqg+NYbVHsgEA3cwELwmfYHeN0Txc3tJA1KIsrp7gM9IYAnQWhFZoifboCukdmsvie4iIXafoP88IKmI+r3JQsT9wlMCkfLpbwa7T3QXibb2ok6UyD55RbyiwihagSUS+JMLlZfaiMO/vhKkQBiDvSBBuDSHCE1B2NRjAf11itLJFH2rAvRAiB6I6FtVIOzK0F+HST1WCE1BLM3B3AShMVgpkBuvRJqIQ8Ayh/Vnwab4pgXgw/dL8LOLFChBccNl6JRHOrSIO5shqVAknxyl+ECW+ncNQhoGFiVs+qlhUby/phihn+1HJAUmH5H/yX58AckPIkRSsr5kedzGZMJljBi8BhiaIKqfrya4/WKSkYE5PvrmFuzzvdhbm5M+xgOaLQgDvQoZ2ef7AnNrC+KFXugJkZ6E546Qf2WUbEXqzSHI8y2QbC7b9uuVDPmLi5DjJaKeEayCoc3vI09HKERg/3ImPxbZ4zo0nXr3YL6ACOgvIba8j5CW0d5R7HiJaNXicvabaK9jYx7nVZQXP3BHCKsU6fbDbBvS1BwcR/z2WqoFSAF8kCffWSSXGUJbUO8WSCzKU1CStLHQY0g+chhxWRpZoxjJKm7LW4L4JtETtM+rYMO7ykTYsqqjSJ17NL7EL2js2z0UB0MSNR6cDDCONKj2PsTxU4xf0Uo6LUlh0QdCFCH1TqgXp7n9FBrqA0+Bq2knyJ/sGaHwYheJjjzpBxW6vgVe7kIL8JbPgw/P4G3uxrt+CL1yHgGyzEABLgDgfiCsBK5skxPnuwKsa0GCtg2HKAoZX0QhRJ0eY2x7DzmApU2UChE+EvYUUB2HyCzOkDwasB+Y5/aaAjozr45j97XASVdYAxxwPsjlCXbvL3CVUrFUWpNfluIfB0NuqFh7uevPcbRn39kEX85Y88UVfXeFRT7h/o8cKbECxTY9wfgVO94JuRE4NGVt/O6HwD5KM38s+Ti100KXwO92hzVln4fairGnXW7vnFbCfExCf3Y7AXwDgD+4Dw0xOVwNwO/LY990az+y/RdqKRucRIYQugAAAABJRU5ErkJggg==",1,"navbar-brand"],[1,"collapse","navbar-collapse"],[1,"navbar-nav","ml-auto","mt-3","mr-4","mt-lg-0"],[1,"batchPage","nav-item","active"],["class","nav-item nav-link","routerLink","/","title","Batch History",4,"ngIf"],[2,"color","#aaa","margin-top","5%"],[1,"uploadPage","nav-item","active"],["class","nav-item nav-link","routerLink","msUpload","title","Milestone Update",4,"ngIf"],[1,"nav-item","active"],["class","btn btn-danger btn-sm mt-3","id","logoutBtn",3,"click",4,"ngIf"],["class","overlay",4,"ngIf"],["routerLink","/","title","Batch History",1,"nav-item","nav-link"],["routerLink","msUpload","title","Milestone Update",1,"nav-item","nav-link"],["id","logoutBtn",1,"btn","btn-danger","btn-sm","mt-3",3,"click"],[1,"overlay"],[1,"loader"]],template:function(t,e){1&t&&(ca(0,"html",0),ca(1,"nav",1),ca(2,"a"),ha(3,"img",2),ua(),ca(4,"div",3),ca(5,"ul",4),ca(6,"li",5),ia(7,OF,4,0,"a",6),ua(),ca(8,"span",7),Wa(9," | "),ua(),ca(10,"li",8),ia(11,TF,4,0,"a",9),ua(),ua(),ca(12,"ul",10),ia(13,xF,4,0,"a",11),ua(),ua(),ua(),ia(14,AF,10,0,"div",12),ha(15,"router-outlet"),ua()),2&t&&(xo(7),aa("ngIf",e.loggedIn),xo(4),aa("ngIf",e.loggedIn),xo(2),aa("ngIf",e.loggedIn),xo(1),aa("ngIf",1==e.triggerLoad))},directives:[Ry,tp,Zx,Qx,RN],styles:['.navbar[_ngcontent-%COMP%]{height:9%;border:6px solid;box-shadow:2px 2px 2px 2px #3552064d;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%}.navbar[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{transition-duration:.1s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#41aaa333;transition-duration:.4s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;display:inline-block;position:relative;font-size:14px;transition:.5s}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%]{color:#fae9e9;padding:4px 8px 2px 5px;vertical-align:text-top}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}table[_ngcontent-%COMP%]{z-index:30;padding:5px;overflow:auto;box-shadow:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-bottom:40px}table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:10px}mat-icon[_ngcontent-%COMP%]{padding:0;font-size:24px;font-family:"Material Icons"!important;vertical-align:middle}[_ngcontent-%COMP%]:focus:not(input){outline:none}.card-body[_ngcontent-%COMP%]{padding-bottom:10%}h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], table[_ngcontent-%COMP%], .card-body[_ngcontent-%COMP%]{font-family:"Helvetica Neue",Arial}h1[_ngcontent-%COMP%]{color:green}h3[_ngcontent-%COMP%]{color:#797979;font-weight:bold;line-height:.9}small[_ngcontent-%COMP%]{color:#888;font-weight:normal;background-color:transparent}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover{transition:all .2s}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1}.overlay[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flexbox;z-index:1000;position:fixed;padding:10% 46%;transition:all .4s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100px;height:100px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline;position:absolute;-webkit-animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;-ms-transform-origin:40px 40px;transform-origin:40px 40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#39b300;margin:-4px 0 0 -4px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){-webkit-animation-delay:-36ms;animation-delay:-36ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-72ms;animation-delay:-72ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.108s;animation-delay:-.108s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.144s;animation-delay:-.144s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.18s;animation-delay:-.18s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.216s;animation-delay:-.216s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.252s;animation-delay:-.252s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.288s;animation-delay:-.288s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@-webkit-keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-bar{width:46px;height:23px;border-radius:30px;background:url(toggle_light.047f4c937055752ab28f.png) no-repeat;background-size:100%} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:4px;margin-top:6px;width:16px;height:16px;background-image:url(sun.893919eb166ebaf97f24.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background:url(toggle_dark.ef5103f454dcae0a70e8.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:10px;background:url(moon.b060c4743dbb011a1d1f.png) no-repeat;background-size:100%} .mat-tooltip{margin-top:-1px!important;padding:2px;font-size:12px}[_nghost-%COMP%] .lightMode ::-moz-selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode ::selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode html, [_nghost-%COMP%] .lightMode body, [_nghost-%COMP%] .lightMode .app-frame, [_nghost-%COMP%] .lightMode app-root{color:#555;background-color:#f0eee8}[_nghost-%COMP%] .lightMode html h1, [_nghost-%COMP%] .lightMode body h1, [_nghost-%COMP%] .lightMode .app-frame h1, [_nghost-%COMP%] .lightMode app-root h1{background-color:transparent}[_nghost-%COMP%] .lightMode .overlay{background-color:#fff9}[_nghost-%COMP%] .lightMode .updatePg{padding:2%;background-color:#fff}[_nghost-%COMP%] .lightMode #resultsTable td, [_nghost-%COMP%] .lightMode #projTable td{color:#000}[_nghost-%COMP%] .lightMode .navbar-expand{background-color:#fff}[_nghost-%COMP%] .lightMode .navbar-expand li.nav-item.active>a{color:green}[_nghost-%COMP%] .lightMode table{color:#9e9e9e;border:none;background-color:#fff}[_nghost-%COMP%] .lightMode table thead tr{border:none}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .successful{color:#2e2e2e;background-color:#fcffe1}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .errors{color:#2e2e2e;background-color:#ffe9c7}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .running, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .running{color:#aaa;background-color:#fff}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .timeCol hr, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .timeCol hr{margin:.4em}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.errors{color:#f33}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.successful{color:#3d8330}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted :last-child button:not(.copy), [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td :last-child button:not(.copy){color:#5f5f5f;border:1.5px rgba(100,100,100,.8) solid;box-shadow:0 2px #646464cc}[_nghost-%COMP%] .lightMode input, [_nghost-%COMP%] .lightMode select:not(.updatePg select){color:gray;width:93%;border:none;background-color:transparent}[_nghost-%COMP%] .lightMode input:focus, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus{border:none;outline:none;transition:all .4s;padding-left:2%;border-bottom:#bbb 1.5px solid}[_nghost-%COMP%] .lightMode input:focus mat-icon, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .lightMode .updatePg select{color:#333;background-color:#fff}[_nghost-%COMP%] .lightMode mat-paginator{color:gray;opacity:1;background-color:transparent}[_nghost-%COMP%] .lightMode .sticky{background-color:#fff6}[_nghost-%COMP%] .lightMode .sticky:hover{background-color:#fff}[_nghost-%COMP%] .lightMode #popUpBox{color:#004600;background-color:#fcfcfc}[_nghost-%COMP%] .darkMode ::-moz-selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode ::selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode html>.mat-body, [_nghost-%COMP%] .darkMode .mat-body-1, [_nghost-%COMP%] .darkMode body, [_nghost-%COMP%] .darkMode html>body.mat-typography, [_nghost-%COMP%] .darkMode .updatePg{color:#d3d3d3;max-height:auto;background-size:auto;background-color:#222}[_nghost-%COMP%] .darkMode .overlay{background-color:#0009}[_nghost-%COMP%] .darkMode .nav-item a{color:#d3d3d3}[_nghost-%COMP%] .darkMode .updatePg{padding:2%;background-color:#111}[_nghost-%COMP%] .darkMode #resultsTable td, [_nghost-%COMP%] .darkMode #projTable td{color:#d3d3d3}[_nghost-%COMP%] .darkMode .navbar-expand{background-color:#111}[_nghost-%COMP%] .darkMode table th{color:#7c7c7c;background-color:#111;border:none}[_nghost-%COMP%] .darkMode table th:not(:last-child){border-right:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass){border-top:#444 1px solid;border-bottom:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass) :last-child button:not(.copy){color:#d3d3d3;border:1.5px rgba(197,197,197,.4) solid;box-shadow:0 2px #c5c5c566}[_nghost-%COMP%] .darkMode table .timeCol hr{margin:.4em}[_nghost-%COMP%] .darkMode table .statusCol.errors{color:#da2a2a}[_nghost-%COMP%] .darkMode table .statusCol.successful{color:#63d350}[_nghost-%COMP%] .darkMode table .successful{color:#d3d3d3;background-color:#1e3021}[_nghost-%COMP%] .darkMode table .errors{color:#d3d3d3;background-color:#301e18}[_nghost-%COMP%] .darkMode table .running{color:#aaa;background-color:#333}[_nghost-%COMP%] .darkMode h1, [_nghost-%COMP%] .darkMode mat-paginator, [_nghost-%COMP%] .darkMode span, [_nghost-%COMP%] .darkMode svg{color:#d3d3d3;background-color:transparent}[_nghost-%COMP%] .darkMode input, [_nghost-%COMP%] .darkMode select:not(.updatePg select){color:#fff;width:93%;border:none;background-color:#111}[_nghost-%COMP%] .darkMode input:focus, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus{color:#fff;border:none;outline:none;transition:all .2s;padding-left:2%;border-bottom:#444 1.5px solid}[_nghost-%COMP%] .darkMode input:focus mat-icon, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .darkMode .updatePg select{color:#fff;border:#333 2px solid;box-shadow:inset 0 0 10px #000;background-color:#333}[_nghost-%COMP%] .darkMode mat-paginator{color:#d3d3d3;opacity:1;background-color:transparent}[_nghost-%COMP%] .darkMode .sticky{opacity:.4;background-color:#29292966;border:grey solid 1px}[_nghost-%COMP%] .darkMode .sticky:hover{transition:all .2s;opacity:1;background-color:#1b1b1b}[_nghost-%COMP%] .darkMode #popUpBox{background-color:#2b2b2b}[_nghost-%COMP%] .darkMode #popUpBox pre, [_nghost-%COMP%] .darkMode #popUpBox hr, [_nghost-%COMP%] .darkMode #popUpBox button{color:#d3d3d3}']}),t})(),IF=(()=>{class t{constructor(){this.messages=[]}add(t){this.messages.push(t)}clear(){this.messages=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),PF=(()=>{class t{constructor(t){this.authService=t}canActivate(t){var e,n;const r=t.data.expectedRole,i=this.authService.instance.getAllAccounts()[0];return(null===(e=i.idTokenClaims)||void 0===e?void 0:e.roles)?!!(null==r||Array.isArray(r)&&(null===(n=i.idTokenClaims)||void 0===n?void 0:n.roles.filter(t=>r.includes(t).length>0)))||(window.alert("You do not have access as expected role is missing. Please ensure that your account is assigned to an app role and then sign-out and sign-in again."),!1):(window.alert("Token does not have roles claim. Please ensure that your account is assigned to an app role and then sign-out and sign-in again."),!1)}canSee(){var t;return!!(null===(t=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===t?void 0:t.roles)||(window.alert("Token does not have roles claim. Please ensure that your account is assigned to an app role and then sign-out and sign-in again."),!1)}}return t.\u0275fac=function(e){return new(e||t)(kr(CA))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const MF=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();class DF{constructor(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}call(t,e){return e.subscribe(new NF(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class NF extends D{constructor(t,e,n,r,i){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=r,this.scheduler=i,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(M(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(NF.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}function LF(t,e=Pg){return function(t,e,n=Pg){return r=>{let i=pm(t),o=i?+t-n.now():Math.abs(t);return r.lift(new DF(o,i,e,n))}}(t,fm(new MF),e)}const FF="https://api-001-nonprod.testweb.bp.com/tst/iepb-tarinostrasync/papi/v1/api",UF=[["https://api-001-nonprod.testweb.bp.com",["https://api-001-nonprod.testweb.bp.com/tst/iepb-tarinostrasync/papi/v1/Primavera"]]];let HF=(()=>{class t{constructor(t){this.messageService=t,this.createHandleError=(t="")=>(e="operation",n={})=>this.handleError(t,e,n)}handleError(t="",e="operation",n={}){return r=>{console.error(r);const i=r.error instanceof ErrorEvent?r.error.message:`server returned code ${r.status} with body "${r.error}"`;return this.messageService.add(`${t}: ${e} failed: ${i}`),Vg(n)}}}return t.\u0275fac=function(e){return new(e||t)(kr(IF))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const VF={headers:new AA({"Content-Type":"application/json"})};let BF=(()=>{class t{constructor(t,e){this.http=t,this.nostraProjectsUrl=`${FF}`,this.handleError=e.createHandleError("UploaderService")}sync(t){let e=t.toLocaleLowerCase();return this.http.post(`${this.nostraProjectsUrl}/ui/sites/${e}/milestones/sync`,VF).pipe(LF(36e4))}authorize(){return this.http.post(`${this.nostraProjectsUrl}/ui/authorize`,VF).pipe(LF(36e4))}refresh(t){return this.http.get(`${this.nostraProjectsUrl}/ui/batch/${t}/status/projects`,VF).pipe(LF(36e4))}}return t.\u0275fac=function(e){return new(e||t)(kr(KA),kr(HF))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),jF=(()=>{class t{constructor(t){this.rd=t.createRenderer(null,null)}init(){"darkMode"==localStorage.getItem("colorMode")||window.matchMedia("(prefers-color-scheme: dark)").matches?(this.colorMode="darkMode",this.check=!0):(this.colorMode="lightMode",this.check=!1)}getColorMode(){return null==this.colorMode&&this.init(),this.colorMode}getCheck(){return this.check}load(t){this.getColorMode(),this.page=t,this.check="darkMode"==this.getColorMode(),this.rd.addClass(document.querySelector(t),this.colorMode)}setColorMode(t){this.colorMode="darkMode"==t?"lightMode":"darkMode",localStorage.setItem("colorMode",this.colorMode),this.rd.removeClass(document.querySelector(this.page),t),this.rd.addClass(document.querySelector(this.page),this.colorMode),this.check=!this.check}}return t.\u0275fac=function(e){return new(e||t)(kr(vc))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function zF(t,e){if(1&t&&(ca(0,"option",32),Wa(1),ua()),2&t){const t=e.$implicit,n=Ca();Oa("value",t.site),aa("ngClass",n.getAccountRoles().includes(t.site)?"d-block":"d-none"),xo(1),Ya(t.description)}}function qF(t,e){if(1&t&&(ca(0,"small",33),Wa(1),ua()),2&t){const t=Ca();xo(1),Ya(t.errorMessage)}}function KF(t,e){1&t&&ha(0,"img",34)}function $F(t,e){1&t&&ha(0,"img",35)}function GF(t,e){1&t&&(ca(0,"span",36),Wa(1,"\u231b"),ua())}function WF(t,e){if(1&t){const t=ga();ca(0,"button",37),ba("click",function(){Ne(t);const e=Ca();return e.refresh(e.nostraProjects.batch_id)}),ca(1,"mat-icon"),Wa(2,"autorenew"),ua(),Wa(3,"Refresh"),ua()}}function YF(t,e){if(1&t&&(ca(0,"tr"),ca(1,"td",38),Wa(2),ua(),ua()),2&t){const t=e.$implicit;xo(2),Qa(" ",t.primaveraNumber,"")}}function QF(t,e){if(1&t&&(ca(0,"small",33),Wa(1),ua()),2&t){const t=Ca();xo(1),Ya(t.errorMessage)}}const XF=function(){return{SUCCESSFUL:"success",ERRORS:"fail",WAITING:"running"}};let ZF=(()=>{class t{constructor(t,e,n,r){this.authService=t,this.uploaderService=e,this.cmService=n,this.app=r,this.site="",this.errorMessage="",this.displayedColumns=["site","project"]}ngOnInit(){this.cmService.load("body > app-root > html"),this.getSites(),this.clearResponse(),this.check=this.cmService.getCheck(),this.form=this.buildForm(),this.form.get("site").disable()}getSites(){this.app.setTriggerLoad(!0),this.uploaderService.authorize().subscribe(t=>{this.sites=t,this.hasSiteError=!1,this.form.get("site").enable(),this.app.setTriggerLoad(!1)},t=>{this.errorMessage=t.status<500?t.error.message:"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",this.hasSiteError=!0,this.app.setTriggerLoad(!1)})}sync(){this.clearResponse(),this.app.setTriggerLoad(!0),this.site=this.form.value.site,this.uploaderService.sync(this.site).subscribe(t=>{this.nostraProjects=t,this.app.setTriggerLoad(!1),this.hasProjectError=!1},t=>{this.errorMessage=t.status<500?t.error.message:"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",this.app.setTriggerLoad(!1),this.hasProjectError=!0})}refresh(t){this.clearResponse(),this.app.setTriggerLoad(!0),this.uploaderService.refresh(t).subscribe(t=>{this.nostraProjects=t[0],this.app.setTriggerLoad(!1),this.hasProjectError=!1},t=>{this.errorMessage=t.status<500?t.error.message:"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",this.app.setTriggerLoad(!1),this.hasProjectError=!0})}buildForm(){let t=new Xf({});return this.displayedColumns.forEach(e=>t.addControl(e,new Qf(""))),t}setColorMode(){this.cmService.setColorMode(this.cmService.getColorMode()),this.check=this.cmService.getCheck()}getAccountRoles(){var t;return null===(t=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===t?void 0:t.roles}clearResponse(){this.nostraProjects={batch_id:"",status:"",message:"",projects:[{}]},this.errorMessage=""}}return t.\u0275fac=function(e){return new(e||t)(sa(CA),sa(BF),sa(jF),sa(RF))},t.\u0275cmp=qt({type:t,selectors:[["app-uploader"]],features:[uc([BF])],decls:59,vars:18,consts:[[1,"card-body"],[1,"container",2,"margin-top","20px","max-width","50%"],[1,"row","float-right","mr-2"],[3,"checked","ngModel","title","ngModelChange"],["id","updatePgTitle"],[1,"updatePg","bg"],[1,"panel"],[1,"float-left","mr-3"],[2,"line-height","1.8"],[3,"formGroup"],["formControlName","site"],[3,"value","ngClass",4,"ngFor","ngForOf"],["id","syncBtn",1,"btn","btn-warning",3,"disabled","click"],["class","warning",4,"ngIf"],[1,"sync","hideOnSync"],[1,"sync","panel","hideOnSync"],[1,"d-flex"],["id","resultsTable",1,"table-bordered","float-left"],[1,"table-active","pl-2","pr-2","text-nowrap"],[1,"p-1","text-nowrap","w-100","pl-2"],[1,"table-active","pl-2","pr-2","text-nowrap","border-bottom"],[1,"w-25","table-active","pl-2","border-bottom"],[1,"p-1","statusCol","pl-2",3,"ngClass"],["class","mx-auto ms-auto d-block","src","../../assets/success.png","height","20px",4,"ngIf"],["class","mx-auto ms-auto d-block","src","../../assets/fail.png","height","20px",4,"ngIf"],["class","mx-auto ms-auto d-block","class","hourglass",4,"ngIf"],[2,"margin-left","14px"],["id","refreshNpBtn","class","btn btn-warning float-right align-self-end",3,"click",4,"ngIf"],["id","projTable",1,"table-bordered","w-100"],[1,"text-center"],[1,"table-active","p-2"],[4,"ngFor","ngForOf"],[3,"value","ngClass"],[1,"warning"],["src","../../assets/success.png","height","20px",1,"mx-auto","ms-auto","d-block"],["src","../../assets/fail.png","height","20px",1,"mx-auto","ms-auto","d-block"],[1,"hourglass"],["id","refreshNpBtn",1,"btn","btn-warning","float-right","align-self-end",3,"click"],[1,"p-2"]],template:function(t,e){1&t&&(ca(0,"body"),ca(1,"div",0),ca(2,"div",1),ca(3,"div",2),ca(4,"mat-slide-toggle",3),ba("ngModelChange",function(t){return e.check=t})("ngModelChange",function(){return e.setColorMode()}),ua(),ua(),ca(5,"h1",4),Wa(6,"MILESTONE UPDATE"),ua(),ca(7,"small"),Wa(8,"Execute a schedule refresh on Nostra."),ua(),ca(9,"div",5),ca(10,"div",6),ca(11,"div",7),ca(12,"h3",8),Wa(13,"CHOOSE SITE : "),ua(),ua(),ca(14,"div"),ca(15,"form",9),ca(16,"select",10),ia(17,zF,2,3,"option",11),ua(),ca(18,"button",12),ba("click",function(){return e.sync()}),ca(19,"mat-icon"),Wa(20,"autorenew"),ua(),Wa(21," Synchronise"),ua(),ha(22,"br"),ia(23,qF,2,1,"small",13),ua(),ua(),ua(),ha(24,"hr",14),ca(25,"div",15),ca(26,"h3"),Wa(27,"RESULTS: "),ua(),ca(28,"div",16),ca(29,"table",17),ca(30,"tbody"),ca(31,"tr"),ca(32,"th",18),Wa(33,"Message"),ua(),ca(34,"td",19),Wa(35),ua(),ua(),ca(36,"tr"),ca(37,"th",20),Wa(38,"Batch ID"),ua(),ca(39,"td",19),Wa(40),ua(),ua(),ca(41,"tr"),ca(42,"th",21),Wa(43,"Status"),ua(),ca(44,"td",22),ia(45,KF,1,0,"img",23),ia(46,$F,1,0,"img",24),ia(47,GF,2,0,"span",25),ca(48,"span",26),Wa(49),ua(),ua(),ua(),ua(),ua(),ia(50,WF,4,0,"button",27),ua(),ha(51,"hr"),ca(52,"table",28),ca(53,"tbody",29),ca(54,"th",30),Wa(55,"PRIMAVERA PROJECT #"),ua(),ia(56,YF,3,1,"tr",31),ua(),ua(),ua(),ha(57,"br"),ia(58,QF,2,1,"small",13),ua(),ua(),ua(),ua()),2&t&&(xo(4),Ta("title","",e.cmService.getColorMode()," on"),aa("checked",!1)("ngModel",e.check),xo(11),aa("formGroup",e.form),xo(2),aa("ngForOf",e.sites),xo(1),aa("disabled",""==e.form.value.site),xo(5),aa("ngIf",e.hasSiteError),xo(12),Ya(e.nostraProjects.message),xo(5),Ya(e.nostraProjects.batch_id),xo(4),aa("ngClass",_u(17,XF)[e.nostraProjects.status]),xo(1),aa("ngIf","SUCCESSFUL"==e.nostraProjects.status),xo(1),aa("ngIf","ERRORS"==e.nostraProjects.status),xo(1),aa("ngIf","WAITING"==e.nostraProjects.status||"RUNNING"==e.nostraProjects.status),xo(2),Ya(e.nostraProjects.status),xo(1),aa("ngIf",0==e.hasProjectError),xo(6),aa("ngForOf",e.nostraProjects.projects),xo(2),aa("ngIf",1==e.hasProjectError))},directives:[SF,Of,ig,og,Tf,cg,fg,hg,Zd,RN,tp,Qd,gg,bg],styles:['.navbar[_ngcontent-%COMP%]{height:9%;border:6px solid;box-shadow:2px 2px 2px 2px #3552064d;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%}.navbar[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{transition-duration:.1s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#41aaa333;transition-duration:.4s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;display:inline-block;position:relative;font-size:14px;transition:.5s}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%]{color:#fae9e9;padding:4px 8px 2px 5px;vertical-align:text-top}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}table[_ngcontent-%COMP%]{z-index:30;padding:5px;overflow:auto;box-shadow:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-bottom:40px}table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:10px}mat-icon[_ngcontent-%COMP%]{padding:0;font-size:24px;font-family:"Material Icons"!important;vertical-align:middle}[_ngcontent-%COMP%]:focus:not(input){outline:none}.card-body[_ngcontent-%COMP%]{padding-bottom:10%}h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], table[_ngcontent-%COMP%], .card-body[_ngcontent-%COMP%]{font-family:"Helvetica Neue",Arial}h1[_ngcontent-%COMP%]{color:green}h3[_ngcontent-%COMP%]{color:#797979;font-weight:bold;line-height:.9}small[_ngcontent-%COMP%]{color:#888;font-weight:normal;background-color:transparent}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover{transition:all .2s}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1}.overlay[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flexbox;z-index:1000;position:fixed;padding:10% 46%;transition:all .4s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100px;height:100px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline;position:absolute;-webkit-animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;-ms-transform-origin:40px 40px;transform-origin:40px 40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#39b300;margin:-4px 0 0 -4px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){-webkit-animation-delay:-36ms;animation-delay:-36ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-72ms;animation-delay:-72ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.108s;animation-delay:-.108s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.144s;animation-delay:-.144s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.18s;animation-delay:-.18s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.216s;animation-delay:-.216s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.252s;animation-delay:-.252s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.288s;animation-delay:-.288s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@-webkit-keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-bar{width:46px;height:23px;border-radius:30px;background:url(toggle_light.047f4c937055752ab28f.png) no-repeat;background-size:100%} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:4px;margin-top:6px;width:16px;height:16px;background-image:url(sun.893919eb166ebaf97f24.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background:url(toggle_dark.ef5103f454dcae0a70e8.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:10px;background:url(moon.b060c4743dbb011a1d1f.png) no-repeat;background-size:100%} .mat-tooltip{margin-top:-1px!important;padding:2px;font-size:12px}[_nghost-%COMP%] .lightMode ::-moz-selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode ::selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode html, [_nghost-%COMP%] .lightMode body, [_nghost-%COMP%] .lightMode .app-frame, [_nghost-%COMP%] .lightMode app-root{color:#555;background-color:#f0eee8}[_nghost-%COMP%] .lightMode html h1, [_nghost-%COMP%] .lightMode body h1, [_nghost-%COMP%] .lightMode .app-frame h1, [_nghost-%COMP%] .lightMode app-root h1{background-color:transparent}[_nghost-%COMP%] .lightMode .overlay{background-color:#fff9}[_nghost-%COMP%] .lightMode .updatePg{padding:2%;background-color:#fff}[_nghost-%COMP%] .lightMode #resultsTable td, [_nghost-%COMP%] .lightMode #projTable td{color:#000}[_nghost-%COMP%] .lightMode .navbar-expand{background-color:#fff}[_nghost-%COMP%] .lightMode .navbar-expand li.nav-item.active>a{color:green}[_nghost-%COMP%] .lightMode table{color:#9e9e9e;border:none;background-color:#fff}[_nghost-%COMP%] .lightMode table thead tr{border:none}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .successful{color:#2e2e2e;background-color:#fcffe1}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .errors{color:#2e2e2e;background-color:#ffe9c7}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .running, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .running{color:#aaa;background-color:#fff}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .timeCol hr, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .timeCol hr{margin:.4em}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.errors{color:#f33}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.successful{color:#3d8330}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted :last-child button:not(.copy), [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td :last-child button:not(.copy){color:#5f5f5f;border:1.5px rgba(100,100,100,.8) solid;box-shadow:0 2px #646464cc}[_nghost-%COMP%] .lightMode input, [_nghost-%COMP%] .lightMode select:not(.updatePg select){color:gray;width:93%;border:none;background-color:transparent}[_nghost-%COMP%] .lightMode input:focus, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus{border:none;outline:none;transition:all .4s;padding-left:2%;border-bottom:#bbb 1.5px solid}[_nghost-%COMP%] .lightMode input:focus mat-icon, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .lightMode .updatePg select{color:#333;background-color:#fff}[_nghost-%COMP%] .lightMode mat-paginator{color:gray;opacity:1;background-color:transparent}[_nghost-%COMP%] .lightMode .sticky{background-color:#fff6}[_nghost-%COMP%] .lightMode .sticky:hover{background-color:#fff}[_nghost-%COMP%] .lightMode #popUpBox{color:#004600;background-color:#fcfcfc}[_nghost-%COMP%] .darkMode ::-moz-selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode ::selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode html>.mat-body, [_nghost-%COMP%] .darkMode .mat-body-1, [_nghost-%COMP%] .darkMode body, [_nghost-%COMP%] .darkMode html>body.mat-typography, [_nghost-%COMP%] .darkMode .updatePg{color:#d3d3d3;max-height:auto;background-size:auto;background-color:#222}[_nghost-%COMP%] .darkMode .overlay{background-color:#0009}[_nghost-%COMP%] .darkMode .nav-item a{color:#d3d3d3}[_nghost-%COMP%] .darkMode .updatePg{padding:2%;background-color:#111}[_nghost-%COMP%] .darkMode #resultsTable td, [_nghost-%COMP%] .darkMode #projTable td{color:#d3d3d3}[_nghost-%COMP%] .darkMode .navbar-expand{background-color:#111}[_nghost-%COMP%] .darkMode table th{color:#7c7c7c;background-color:#111;border:none}[_nghost-%COMP%] .darkMode table th:not(:last-child){border-right:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass){border-top:#444 1px solid;border-bottom:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass) :last-child button:not(.copy){color:#d3d3d3;border:1.5px rgba(197,197,197,.4) solid;box-shadow:0 2px #c5c5c566}[_nghost-%COMP%] .darkMode table .timeCol hr{margin:.4em}[_nghost-%COMP%] .darkMode table .statusCol.errors{color:#da2a2a}[_nghost-%COMP%] .darkMode table .statusCol.successful{color:#63d350}[_nghost-%COMP%] .darkMode table .successful{color:#d3d3d3;background-color:#1e3021}[_nghost-%COMP%] .darkMode table .errors{color:#d3d3d3;background-color:#301e18}[_nghost-%COMP%] .darkMode table .running{color:#aaa;background-color:#333}[_nghost-%COMP%] .darkMode h1, [_nghost-%COMP%] .darkMode mat-paginator, [_nghost-%COMP%] .darkMode span, [_nghost-%COMP%] .darkMode svg{color:#d3d3d3;background-color:transparent}[_nghost-%COMP%] .darkMode input, [_nghost-%COMP%] .darkMode select:not(.updatePg select){color:#fff;width:93%;border:none;background-color:#111}[_nghost-%COMP%] .darkMode input:focus, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus{color:#fff;border:none;outline:none;transition:all .2s;padding-left:2%;border-bottom:#444 1.5px solid}[_nghost-%COMP%] .darkMode input:focus mat-icon, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .darkMode .updatePg select{color:#fff;border:#333 2px solid;box-shadow:inset 0 0 10px #000;background-color:#333}[_nghost-%COMP%] .darkMode mat-paginator{color:#d3d3d3;opacity:1;background-color:transparent}[_nghost-%COMP%] .darkMode .sticky{opacity:.4;background-color:#29292966;border:grey solid 1px}[_nghost-%COMP%] .darkMode .sticky:hover{transition:all .2s;opacity:1;background-color:#1b1b1b}[_nghost-%COMP%] .darkMode #popUpBox{background-color:#2b2b2b}[_nghost-%COMP%] .darkMode #popUpBox pre, [_nghost-%COMP%] .darkMode #popUpBox hr, [_nghost-%COMP%] .darkMode #popUpBox button{color:#d3d3d3}',"#syncBtn[_ngcontent-%COMP%], #refreshNpBtn[_ngcontent-%COMP%]{padding:3px 6px 0 1px;font-size:13px;font-weight:bold;margin-left:20px;margin-bottom:3px}#syncBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], #refreshNpBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{top:5px;font-size:18px;vertical-align:middle}#updatePgTitle[_ngcontent-%COMP%]{line-height:0}.panel[_ngcontent-%COMP%]{padding-left:10px;border-left:4px solid;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 0 1%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 0 1%}.warning[_ngcontent-%COMP%]{color:red}.hourglass[_ngcontent-%COMP%], #resultsTable[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding:0;float:left}.hourglass[_ngcontent-%COMP%]{display:block;-webkit-animation:spin 1.3s infinite ease-in-out;animation:spin 1.3s infinite ease-in-out;text-align:center}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}"]}),t})();const JF={headers:new AA({"Content-Type":"application/json"})};let tU=(()=>{class t{constructor(t,e){this.http=t,this.nBatchesUrl=`${FF}/ui/batch/all/status`,this.handleError=e.createHandleError("BatchesService")}getBatches(){return this.http.get(this.nBatchesUrl,JF).pipe(LF(36e4))}getBatchDetails(t,e){return this.http.get(`${FF}/ui/batch/${t}/${e}`,JF).pipe(LF(36e4),Xk(this.handleError("getBatchDetails",["Data Not Available"])))}}return t.\u0275fac=function(e){return new(e||t)(kr(KA),kr(HF))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),eU=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"prettyprint",type:t,pure:!0}),t})();const nU=["modal"],rU=["formDirective"];function iU(t,e){if(1&t){const t=ga();ca(0,"th",37),ca(1,"input",38),ba("keyup",function(e){return Ne(t),Ca().filter(e.target.value,!1)})("search",function(e){return Ne(t),Ca().filter(e.target.value,!1)}),ua(),ca(2,"mat-icon"),Wa(3,"search"),ua(),ua()}}const oU=function(t){return[t]};function sU(t,e){if(1&t&&(ca(0,"td",39),Cu(1,"lowercase"),Wa(2),ua()),2&t){const t=e.$implicit;aa("ngClass",yu(4,oU,""==t.status?"running border-0":Su(1,2,t.status))),xo(2),Qa(" ",t.batch_input.site," ")}}function aU(t,e){if(1&t){const t=ga();ca(0,"th",37),ca(1,"input",40),ba("keyup",function(e){return Ne(t),Ca().filter(e.target.value,!1)})("search",function(e){return Ne(t),Ca().filter(e.target.value,!1)}),ua(),ca(2,"mat-icon"),Wa(3,"search"),ua(),ua()}}function lU(t,e){if(1&t&&(ca(0,"td",39),Cu(1,"lowercase"),Wa(2),ua()),2&t){const t=e.$implicit;aa("ngClass",yu(4,oU,""==t.status?"running":Su(1,2,t.status))),xo(2),Qa(" ",t.batch_input.entity," ")}}function cU(t,e){if(1&t){const t=ga();ca(0,"th",41),ca(1,"select",42),ba("change",function(e){return Ne(t),Ca().filter(e.target.options.selectedIndex,!1)}),ha(2,"option"),ca(3,"option",43),Wa(4,"SUCCESSFUL"),ua(),ca(5,"option",44),Wa(6,"ERRORS"),ua(),ca(7,"option",45),Wa(8,"RUNNING"),ua(),ua(),ua()}}function uU(t,e){1&t&&ha(0,"img",49),2&t&&Oa("matTooltip",Ca().$implicit.status)}function hU(t,e){1&t&&ha(0,"img",50),2&t&&Oa("matTooltip",Ca().$implicit.status)}function dU(t,e){1&t&&(ca(0,"span",51),Wa(1,"\u231b"),ua()),2&t&&Oa("matTooltip",Ca().$implicit.status)}function pU(t,e){if(1&t&&(ca(0,"td",39),Cu(1,"lowercase"),ia(2,uU,1,1,"img",46),ia(3,hU,1,1,"img",47),ia(4,dU,2,1,"span",48),ua()),2&t){const t=e.$implicit;aa("ngClass",yu(6,oU,""==t.status?"running":Su(1,4,t.status))),xo(2),aa("ngIf","SUCCESSFUL"==t.status),xo(1),aa("ngIf","ERRORS"==t.status),xo(1),aa("ngIf","RUNNING"==t.status)}}function fU(t,e){if(1&t){const t=ga();ca(0,"th",37),ca(1,"input",52),ba("keyup",function(e){return Ne(t),Ca().filter(e.target.value,!1)})("search",function(e){return Ne(t),Ca().filter(e.target.value,!1)}),ua(),ca(2,"mat-icon"),Wa(3,"search"),ua(),ua()}}function gU(t,e){if(1&t){const t=ga();ca(0,"button",56),ba("click",function(){Ne(t);const e=Ca().$implicit;return Ca().openDialog(e.batch_id,"errors",!0)}),ca(1,"mat-icon",57),Wa(2,"launch"),ua(),ua()}2&t&&aa("matTooltipPosition","right")}function mU(t,e){if(1&t){const t=ga();ca(0,"td",53),Cu(1,"lowercase"),Wa(2),ia(3,gU,3,1,"button",54),ha(4,"br"),ca(5,"button",55),ba("click",function(){return Ne(t),Ca().copy()}),ca(6,"small"),Wa(7),ua(),ca(8,"div",36),ca(9,"mat-icon"),Wa(10),ua(),ua(),ua(),ua()}if(2&t){const t=e.$implicit,n=Ca();aa("ngClass",yu(10,oU,n.hasError?"text-danger text-center ml-0 mr-5 running":Su(1,8,t.status))),xo(2),Qa(" ",t.message," "),xo(1),aa("ngIf","ERRORS"==t.status),xo(2),Oa("matTooltip",n.isCopied?t.batch_id:"Copy Batch ID to clipboard"),aa("cdkCopyToClipboard",t.batch_id)("matTooltipPosition","right"),xo(2),Qa("",t.batch_id," "),xo(3),Ya(n.isCopied?"done":"content_copy")}}function _U(t,e){1&t&&ha(0,"th",58)}function yU(t,e){if(1&t&&(ca(0,"small",59),Wa(1),ua()),2&t){const t=e.$implicit;xo(1),Qa("",t.batch_id," ")}}function bU(t,e){if(1&t){const t=ga();ca(0,"th",37),ca(1,"input",60),ba("change",function(e){return Ne(t),Ca().filter(e.target.value,!1)}),ua(),ua()}}function vU(t,e){if(1&t&&(ha(0,"td",61),Cu(1,"lowercase")),2&t){const t=e.$implicit,n=Ca();aa("ngClass",yu(4,oU,""==t.status?"running border-0":Su(1,2,t.status)))("innerHTML",n.splitTimeString(t.batch_start_time),yi)}}function wU(t,e){1&t&&(ca(0,"th",37),Wa(1," DETAILS "),ua())}function CU(t,e){if(1&t){const t=ga();ca(0,"button",65),ba("click",function(){Ne(t);const e=Ca().$implicit;return Ca().openDialog(e.batch_input,"",!1)}),ca(1,"mat-icon",66),Wa(2,"system_update_alt"),ua(),ua()}}function SU(t,e){if(1&t){const t=ga();ca(0,"button",67),ba("click",function(){Ne(t);const e=Ca().$implicit;return Ca().openDialog(e.batch_id,"status/projects",!0)}),ca(1,"mat-icon"),Wa(2,"format_list_bulleted"),ua(),ua()}}function EU(t,e){if(1&t&&(ca(0,"td",62),Cu(1,"lowercase"),ia(2,CU,3,0,"button",63),ia(3,SU,3,0,"button",64),ua()),2&t){const t=e.$implicit;aa("ngClass",yu(5,oU,""==t.status?"running":Su(1,3,t.status))),xo(2),aa("ngIf",""!=t.status),xo(1),aa("ngIf",""!=t.status)}}function kU(t,e){1&t&&ha(0,"tr",68)}function OU(t,e){1&t&&ha(0,"tr",69)}const TU=function(){return[5,10,25,100]},xU=lA.forRoot([{path:"",component:(()=>{class t{constructor(t,e,n,r,i){this.cmService=t,this.BatchesService=e,this.prettyPrint=n,this.authService=r,this.app=i,this.searchFieldOpen=!1,this.displayedColumns=["batchId","site","object","status","message","startTime","additional"]}ngOnInit(){this.getBatches(),this.cmService.load(".app-frame"),this.check=this.cmService.getCheck(),this.isCopied=!1,this.form=this.buildForm()}ngAfterViewInit(){this.dataSource.paginator=this.paginator}getBatches(){this.app.setTriggerLoad(!0),this.BatchesService.getBatches().subscribe(t=>{this.hasError=!1,0==t.length&&(t=[{batch_input:{site:"",object:""},batch_stats:"",status:"",message:"Loading successful: No batch found.",batch_start_time:"",resources:""}]),this.dataSource=new gN(t),this.dataSource.paginator=this.paginator,this.app.setTriggerLoad(!1)},t=>{let e="";e=404==t.status?"No Batch Found":t.status<500?JSON.stringify(t.error.message):"P6 web service is not currently available. \nPlease contact the support team: gdownstreamtarintegrationops@bp.com.",this.dataSource=new gN([{batch_input:{site:"",object:""},batch_stats:"",status:"",message:e,batch_start_time:"",resources:""}]),this.dataSource.paginator=this.paginator,this.hasError=!0,this.app.setTriggerLoad(!1)})}buildForm(){let t=new Xf({});return this.displayedColumns.forEach(e=>t.addControl(e,new Qf(""))),t}getBatchDetails(t,e){this.BatchesService.getBatchDetails(t,e).subscribe(t=>this.popUp=t)}setColorMode(){this.cmService.setColorMode(this.cmService.getColorMode()),this.check=this.cmService.getCheck()}copy(){this.isCopied=!0,setTimeout(()=>{this.isCopied=!1},1e3)}filter(t,e){let n=this.form.value;e?(this.dataSource.filterPredicate=null,this.formDirective.resetForm(),this.form=this.buildForm()):this.dataSource.filterPredicate=t=>-1!=this.cut(t.batch_input.site).indexOf(n.site)&&-1!=this.cut(t.batch_input.entity).indexOf(this.cut(n.object))&&(this.cut(t.message).includes(this.cut(n.message))||-1!=this.cut(t.batch_id).indexOf(this.cut(n.message)))&&-1!=t.status.indexOf(n.status)&&this.dateDiff(t.batch_start_time,n.startTime),this.dataSource.filter=t}dateDiff(t,e){return""==e||new Date(e).getDate()==new Date(t).getDate()}splitString(t){return t.replace(/(?!^)([A-Z]|\d+)/g," $1")}splitTimeString(t){return t.replace("T","
").replace(/\..*/,"")}cut(t){return null==t?"":t.trim().toLocaleLowerCase()}backToTop(){document.querySelector("#body").scrollTo(0,0)}openDialog(t,e,n){this.isPopUpOpen=!0,this.popUp="Loading...",n?this.getBatchDetails(t,e):this.popUp=t}close(){this.popUp="Loading...",this.isPopUpOpen=!1}getAccountRoles(){var t;return null===(t=this.authService.instance.getAllAccounts()[0].idTokenClaims)||void 0===t?void 0:t.roles}}return t.\u0275fac=function(e){return new(e||t)(sa(jF),sa(tU),sa(eU),sa(CA),sa(RF))},t.\u0275cmp=qt({type:t,selectors:[["app-batches"]],viewQuery:function(t,e){if(1&t&&(Uu(nU,5),Uu(hF,5),Uu(rU,5)),2&t){let t;Fu(t=Vu())&&(e.modal=t.first),Fu(t=Vu())&&(e.paginator=t.first),Fu(t=Vu())&&(e.formDirective=t.first)}},features:[uc([tU,eU])],decls:58,vars:24,consts:[["id","body"],[1,"card-body"],[1,"d-inline-flex","w-100","justify-content-between","position-relative"],[1,"row","float-left"],[1,"row","float-right","mr-2"],["ngDefaultControl","",3,"checked","ngModel","matTooltip","ngModelChange"],[1,"sticky"],["showFirstLastButtons","",3,"pageSizeOptions"],["paginator",""],["id","backToTopBtn","matTooltip","Back to top",1,"btn","btn-sucess","round",3,"click"],["id","refreshBtn","matTooltip","Refresh",1,"btn","btn-info",3,"click"],["id","resetBtn","matTooltip","Reset Search",1,"btn","btn-danger",3,"click"],[1,"p-0",3,"formGroup"],["formDirective","ngForm"],["mat-table","","matSort","",1,"table",3,"dataSource"],["matColumnDef","site"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","object"],["matColumnDef","status"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["matColumnDef","message"],["mat-cell","","class","statusCol emText",3,"ngClass",4,"matCellDef"],["matColumnDef","batchId",1,"d-none"],["style","display: none;","mat-header-cell","",4,"matHeaderCellDef"],["style","display: none;",4,"matCellDef"],["matColumnDef","startTime"],["mat-cell","","class","timeCol",3,"ngClass","innerHTML",4,"matCellDef"],["matColumnDef","additional"],["mat-cell","","class","detailsCol",3,"ngClass",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["id","popUpBox",3,"ngClass"],[2,"width","100%","height","82%",3,"innerHTML"],[1,"btn-close","btn","btn-danger","float-right",3,"click"],[1,"btn","btn-outline","float-right",3,"cdkCopyToClipboard","matTooltip","matTooltipPosition","click"],[1,"copy"],["mat-header-cell",""],["type","search","id","site","formControlName","site","autocomplete","off","placeholder","SITE",3,"keyup","search"],["mat-cell","",3,"ngClass"],["type","search","id","object","formControlName","object","autocomplete","off","placeholder","OBJ",3,"keyup","search"],["mat-header-cell","",1,"text-center"],["formControlName","status",3,"change"],["value","SUCCESSFUL"],["value","ERRORS"],["value","RUNNING"],["class","mx-auto ms-auto d-block","src","../../assets/success.png","height","40px",3,"matTooltip",4,"ngIf"],["class","mx-auto ms-auto d-block","src","../../assets/fail.png","height","40px",3,"matTooltip",4,"ngIf"],["class","mx-auto ms-auto d-block","class","hourglass",3,"matTooltip",4,"ngIf"],["src","../../assets/success.png","height","40px",1,"mx-auto","ms-auto","d-block",3,"matTooltip"],["src","../../assets/fail.png","height","40px",1,"mx-auto","ms-auto","d-block",3,"matTooltip"],[1,"hourglass",3,"matTooltip"],["type","search","id","message","formControlName","message","autocomplete","off","placeholder","BATCH ID / MESSAGE",3,"keyup","search"],["mat-cell","",1,"statusCol","emText",3,"ngClass"],["type","button","matTooltip","View All Errors","style","padding: 4px 2px 0px 2px;","class","btn btn-link border-0",3,"matTooltipPosition","click",4,"ngIf"],[1,"copy-container","d-flex",3,"cdkCopyToClipboard","matTooltip","matTooltipPosition","click"],["type","button","matTooltip","View All Errors",1,"btn","btn-link","border-0",2,"padding","4px 2px 0px 2px",3,"matTooltipPosition","click"],[2,"color","coral","font-size","19px","margin-bottom","3px"],["mat-header-cell","",2,"display","none"],[2,"display","none"],["formControlName","startTime","type","text","placeholder","START TIME (UTC+0)","onFocus","(this.type='date')","onBlur","(this.type='text')",3,"change"],["mat-cell","",1,"timeCol",3,"ngClass","innerHTML"],["mat-cell","",1,"detailsCol",3,"ngClass"],["type","button","matTooltip","Batch Input",3,"click",4,"ngIf"],["type","button","matTooltip","Related Projects",3,"click",4,"ngIf"],["type","button","matTooltip","Batch Input",3,"click"],[2,"width","100%","height","100%","background","-webkit-linear-gradient(rgb(42, 138, 42), rgb(160, 185, 18))","-webkit-background-clip","text","-webkit-text-fill-color","transparent"],["type","button","matTooltip","Related Projects",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(ca(0,"body",0),ca(1,"div",1),ca(2,"div",2),ca(3,"h1",3),Wa(4,"BATCH HISTORY"),ua(),ca(5,"div",4),ca(6,"mat-slide-toggle",5),ba("ngModelChange",function(t){return e.check=t})("ngModelChange",function(){return e.setColorMode()}),ua(),ua(),ua(),ca(7,"div",6),ha(8,"mat-paginator",7,8),ca(10,"button",9),ba("click",function(){return e.backToTop()}),ca(11,"mat-icon"),Wa(12,"expand_less"),ua(),ua(),ca(13,"button",10),ba("click",function(){return e.getBatches()}),ca(14,"mat-icon"),Wa(15,"autorenew"),ua(),ua(),ca(16,"button",11),ba("click",function(){return e.filter("",!0)}),ca(17,"mat-icon"),Wa(18,"youtube_searched_for"),ua(),ua(),ua(),ca(19,"form",12,13),ca(21,"table",14),da(22,15),ia(23,iU,4,0,"th",16),ia(24,sU,3,6,"td",17),pa(),da(25,18),ia(26,aU,4,0,"th",16),ia(27,lU,3,6,"td",17),pa(),da(28,19),ia(29,cU,9,0,"th",20),ia(30,pU,5,8,"td",17),pa(),da(31,21),ia(32,fU,4,0,"th",16),ia(33,mU,11,12,"td",22),pa(),da(34,23),ia(35,_U,1,0,"th",24),ia(36,yU,2,1,"small",25),pa(),da(37,26),ia(38,bU,2,0,"th",16),ia(39,vU,2,6,"td",27),pa(),da(40,28),ia(41,wU,2,0,"th",16),ia(42,EU,4,7,"td",29),pa(),ia(43,kU,1,0,"tr",30),ia(44,OU,1,0,"tr",31),ua(),ca(45,"section",32),ha(46,"pre",33),Cu(47,"prettyprint"),ca(48,"footer"),ha(49,"hr"),ca(50,"button",34),ba("click",function(){return e.close()}),Wa(51,"Close"),ua(),ca(52,"button",35),ba("click",function(){return e.copy()}),Cu(53,"prettyprint"),ca(54,"div",36),Wa(55),ca(56,"mat-icon"),Wa(57),ua(),ua(),ua(),ua(),ua(),ua(),ua(),ua()),2&t&&(xo(6),Ta("matTooltip","",e.cmService.getColorMode()," on"),aa("checked",!1)("ngModel",e.check),xo(2),aa("pageSizeOptions",_u(19,TU)),xo(11),aa("formGroup",e.form),xo(2),aa("dataSource",e.dataSource),xo(22),aa("matHeaderRowDef",e.displayedColumns),xo(1),aa("matRowDefColumns",e.displayedColumns),xo(1),aa("ngClass",yu(20,oU,e.isPopUpOpen?"opacity-100 d-block":"opacity-0 d-none")),xo(1),aa("innerHTML",Su(47,15,e.popUp),yi),xo(6),Oa("matTooltip",e.isCopied?"Copied":"Copy to clipboard"),aa("cdkCopyToClipboard",yu(22,oU,Su(53,17,e.popUp)))("matTooltipPosition","right"),xo(3),Qa(" ",e.isCopied?"Copied":"Copy to clipboard"," "),xo(2),Ya(e.isCopied?"done":"content_copy"))},directives:[SF,cf,Of,ig,KN,hF,RN,og,Tf,cg,iN,aN,sN,oN,uN,hN,Qd,iw,lN,hg,cN,fg,gg,bg,tp,dN,pN],pipes:[eU,fp],styles:['.navbar[_ngcontent-%COMP%]{height:9%;border:6px solid;box-shadow:2px 2px 2px 2px #3552064d;-o-border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%;border-image:linear-gradient(to bottom,#007f00,#dcff13) 1 100%}.navbar[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{transition-duration:.1s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#41aaa333;transition-duration:.4s}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;display:inline-block;position:relative;font-size:14px;transition:.5s}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%]{color:#fae9e9;padding:4px 8px 2px 5px;vertical-align:text-top}.navbar[_ngcontent-%COMP%] #logoutBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}table[_ngcontent-%COMP%]{z-index:30;padding:5px;overflow:auto;box-shadow:none}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-bottom:40px}table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:10px}mat-icon[_ngcontent-%COMP%]{padding:0;font-size:24px;font-family:"Material Icons"!important;vertical-align:middle}[_ngcontent-%COMP%]:focus:not(input){outline:none}.card-body[_ngcontent-%COMP%]{padding-bottom:10%}h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], table[_ngcontent-%COMP%], .card-body[_ngcontent-%COMP%]{font-family:"Helvetica Neue",Arial}h1[_ngcontent-%COMP%]{color:green}h3[_ngcontent-%COMP%]{color:#797979;font-weight:bold;line-height:.9}small[_ngcontent-%COMP%]{color:#888;font-weight:normal;background-color:transparent}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover{transition:all .2s}thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1}.overlay[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flexbox;z-index:1000;position:fixed;padding:10% 46%;transition:all .4s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100px;height:100px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline;position:absolute;-webkit-animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:loader 1.2s cubic-bezier(.5,0,.5,1) infinite;-ms-transform-origin:40px 40px;transform-origin:40px 40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#39b300;margin:-4px 0 0 -4px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){-webkit-animation-delay:-36ms;animation-delay:-36ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-72ms;animation-delay:-72ms}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.108s;animation-delay:-.108s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.144s;animation-delay:-.144s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.18s;animation-delay:-.18s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.216s;animation-delay:-.216s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.252s;animation-delay:-.252s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.288s;animation-delay:-.288s}.overlay[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@-webkit-keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loader{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-bar{width:46px;height:23px;border-radius:30px;background:url(toggle_light.047f4c937055752ab28f.png) no-repeat;background-size:100%} .mat-slide-toggle:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:4px;margin-top:6px;width:16px;height:16px;background-image:url(sun.893919eb166ebaf97f24.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background:url(toggle_dark.ef5103f454dcae0a70e8.png);background-size:100%} .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{margin-left:10px;background:url(moon.b060c4743dbb011a1d1f.png) no-repeat;background-size:100%} .mat-tooltip{margin-top:-1px!important;padding:2px;font-size:12px}[_nghost-%COMP%] .lightMode ::-moz-selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode ::selection{background-color:#e2f8a466}[_nghost-%COMP%] .lightMode html, [_nghost-%COMP%] .lightMode body, [_nghost-%COMP%] .lightMode .app-frame, [_nghost-%COMP%] .lightMode app-root{color:#555;background-color:#f0eee8}[_nghost-%COMP%] .lightMode html h1, [_nghost-%COMP%] .lightMode body h1, [_nghost-%COMP%] .lightMode .app-frame h1, [_nghost-%COMP%] .lightMode app-root h1{background-color:transparent}[_nghost-%COMP%] .lightMode .overlay{background-color:#fff9}[_nghost-%COMP%] .lightMode .updatePg{padding:2%;background-color:#fff}[_nghost-%COMP%] .lightMode #resultsTable td, [_nghost-%COMP%] .lightMode #projTable td{color:#000}[_nghost-%COMP%] .lightMode .navbar-expand{background-color:#fff}[_nghost-%COMP%] .lightMode .navbar-expand li.nav-item.active>a{color:green}[_nghost-%COMP%] .lightMode table{color:#9e9e9e;border:none;background-color:#fff}[_nghost-%COMP%] .lightMode table thead tr{border:none}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .successful{color:#2e2e2e;background-color:#fcffe1}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .errors{color:#2e2e2e;background-color:#ffe9c7}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .running, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .running{color:#aaa;background-color:#fff}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .timeCol hr, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .timeCol hr{margin:.4em}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.errors, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.errors{color:#f33}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted .statusCol.successful, [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td .statusCol.successful{color:#3d8330}[_nghost-%COMP%] .lightMode table tbody .ng-star-inserted :last-child button:not(.copy), [_nghost-%COMP%] .lightMode table #resultsTable>tbody>tr:nth-child(2)>td :last-child button:not(.copy){color:#5f5f5f;border:1.5px rgba(100,100,100,.8) solid;box-shadow:0 2px #646464cc}[_nghost-%COMP%] .lightMode input, [_nghost-%COMP%] .lightMode select:not(.updatePg select){color:gray;width:93%;border:none;background-color:transparent}[_nghost-%COMP%] .lightMode input:focus, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus{border:none;outline:none;transition:all .4s;padding-left:2%;border-bottom:#bbb 1.5px solid}[_nghost-%COMP%] .lightMode input:focus mat-icon, [_nghost-%COMP%] .lightMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .lightMode .updatePg select{color:#333;background-color:#fff}[_nghost-%COMP%] .lightMode mat-paginator{color:gray;opacity:1;background-color:transparent}[_nghost-%COMP%] .lightMode .sticky{background-color:#fff6}[_nghost-%COMP%] .lightMode .sticky:hover{background-color:#fff}[_nghost-%COMP%] .lightMode #popUpBox{color:#004600;background-color:#fcfcfc}[_nghost-%COMP%] .darkMode ::-moz-selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode ::selection{background-color:#6d83594d}[_nghost-%COMP%] .darkMode html>.mat-body, [_nghost-%COMP%] .darkMode .mat-body-1, [_nghost-%COMP%] .darkMode body, [_nghost-%COMP%] .darkMode html>body.mat-typography, [_nghost-%COMP%] .darkMode .updatePg{color:#d3d3d3;max-height:auto;background-size:auto;background-color:#222}[_nghost-%COMP%] .darkMode .overlay{background-color:#0009}[_nghost-%COMP%] .darkMode .nav-item a{color:#d3d3d3}[_nghost-%COMP%] .darkMode .updatePg{padding:2%;background-color:#111}[_nghost-%COMP%] .darkMode #resultsTable td, [_nghost-%COMP%] .darkMode #projTable td{color:#d3d3d3}[_nghost-%COMP%] .darkMode .navbar-expand{background-color:#111}[_nghost-%COMP%] .darkMode table th{color:#7c7c7c;background-color:#111;border:none}[_nghost-%COMP%] .darkMode table th:not(:last-child){border-right:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass){border-top:#444 1px solid;border-bottom:#444 1px solid}[_nghost-%COMP%] .darkMode table tbody .ng-star-inserted:not(img):not(.hourglass) :last-child button:not(.copy){color:#d3d3d3;border:1.5px rgba(197,197,197,.4) solid;box-shadow:0 2px #c5c5c566}[_nghost-%COMP%] .darkMode table .timeCol hr{margin:.4em}[_nghost-%COMP%] .darkMode table .statusCol.errors{color:#da2a2a}[_nghost-%COMP%] .darkMode table .statusCol.successful{color:#63d350}[_nghost-%COMP%] .darkMode table .successful{color:#d3d3d3;background-color:#1e3021}[_nghost-%COMP%] .darkMode table .errors{color:#d3d3d3;background-color:#301e18}[_nghost-%COMP%] .darkMode table .running{color:#aaa;background-color:#333}[_nghost-%COMP%] .darkMode h1, [_nghost-%COMP%] .darkMode mat-paginator, [_nghost-%COMP%] .darkMode span, [_nghost-%COMP%] .darkMode svg{color:#d3d3d3;background-color:transparent}[_nghost-%COMP%] .darkMode input, [_nghost-%COMP%] .darkMode select:not(.updatePg select){color:#fff;width:93%;border:none;background-color:#111}[_nghost-%COMP%] .darkMode input:focus, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus{color:#fff;border:none;outline:none;transition:all .2s;padding-left:2%;border-bottom:#444 1.5px solid}[_nghost-%COMP%] .darkMode input:focus mat-icon, [_nghost-%COMP%] .darkMode select:not(.updatePg select):focus mat-icon{opacity:1}[_nghost-%COMP%] .darkMode .updatePg select{color:#fff;border:#333 2px solid;box-shadow:inset 0 0 10px #000;background-color:#333}[_nghost-%COMP%] .darkMode mat-paginator{color:#d3d3d3;opacity:1;background-color:transparent}[_nghost-%COMP%] .darkMode .sticky{opacity:.4;background-color:#29292966;border:grey solid 1px}[_nghost-%COMP%] .darkMode .sticky:hover{transition:all .2s;opacity:1;background-color:#1b1b1b}[_nghost-%COMP%] .darkMode #popUpBox{background-color:#2b2b2b}[_nghost-%COMP%] .darkMode #popUpBox pre, [_nghost-%COMP%] .darkMode #popUpBox hr, [_nghost-%COMP%] .darkMode #popUpBox button{color:#d3d3d3}',"table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%]{padding:10px;font-size:15px}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .emText[_ngcontent-%COMP%]{font-size:17px;font-weight:bold}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol[_ngcontent-%COMP%]{color:gray;width:17%}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol.successful[_ngcontent-%COMP%]{border-right:1px solid rgba(93,168,90,.6)}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol.errors[_ngcontent-%COMP%]{border-right:1px solid rgba(196,117,80,.6)}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .timeCol.running[_ngcontent-%COMP%]{border-right:1px solid rgba(133,132,132,.6)}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .detailsCol[_ngcontent-%COMP%]{width:14%}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] #status[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .hourglass[_ngcontent-%COMP%]{padding:0;float:center}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] .hourglass[_ngcontent-%COMP%]{display:block;-webkit-animation:spin 1.3s infinite ease-in-out;animation:spin 1.3s infinite ease-in-out;text-align:center}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child button[_ngcontent-%COMP%]:not(.copy){width:45px;border:none;text-align:left;box-shadow:none;margin-right:3%;margin-bottom:6px;padding-left:6.5px;padding-bottom:8px;vertical-align:top;background-color:transparent}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child button[_ngcontent-%COMP%]:not(.copy) mat-icon[_ngcontent-%COMP%]{font-size:30px}table[_ngcontent-%COMP%] .ng-star-inserted[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child button[_ngcontent-%COMP%]:hover{transition:all .2s;background-color:#bbbaba1a}input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{width:100%;height:30px;color:#fff;border:transparent;margin-left:-4px;padding:0 0 0 4px;background-color:transparent}input[_ngcontent-%COMP%]::-moz-placeholder{padding-left:4px}input[_ngcontent-%COMP%]:-ms-input-placeholder{padding-left:4px}input[_ngcontent-%COMP%]::placeholder{padding-left:4px}th[_ngcontent-%COMP%]:nth-child(2), th[_ngcontent-%COMP%]:nth-child(3){width:120px}th[_ngcontent-%COMP%]:nth-child(2) input[_ngcontent-%COMP%], th[_ngcontent-%COMP%]:nth-child(3) input[_ngcontent-%COMP%]{width:70%}th[_ngcontent-%COMP%]:nth-child(2) input[_ngcontent-%COMP%]:focus, th[_ngcontent-%COMP%]:nth-child(3) input[_ngcontent-%COMP%]:focus{padding-left:4%}th[_ngcontent-%COMP%]:nth-child(4){width:160px}th[_ngcontent-%COMP%]:nth-child(4) select[_ngcontent-%COMP%]{border-bottom:#aaa 1.5px solid}th[_ngcontent-%COMP%]:nth-child(5){width:38%}th[_ngcontent-%COMP%]:nth-child(7){width:10%}th[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{opacity:0}th[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{opacity:1;transition:all .4s}.statusCol[_ngcontent-%COMP%]{font-weight:bold}.statusCol[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-family:consolas}.successful.ng-star-inserted[_ngcontent-%COMP%]:first-of-type{border-left:#b9c406 4px solid}.errors.ng-star-inserted[_ngcontent-%COMP%]:first-of-type{border-left:#f06553 4px solid}.running.ng-star-inserted[_ngcontent-%COMP%]:first-of-type, .mat-column-fileName.running[_ngcontent-%COMP%]{border-left:#bbb 4px solid}.hourglass[_ngcontent-%COMP%]{display:inline-block;-webkit-animation:spin 1.3s infinite ease-in-out;animation:spin 1.3s infinite ease-in-out;text-align:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.copy-container[_ngcontent-%COMP%]{border:none;z-index:1;transition:all .2s;margin-left:-1%;background-color:transparent}.copy-container[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%]{border:none;padding:0;opacity:0;z-index:1;font-size:11px;transition:all .2s;background-color:transparent}.copy-container[_ngcontent-%COMP%] .copy[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:gray;z-index:1;font-size:13px;margin-top:2px}.copy-container[_ngcontent-%COMP%]:hover .copy[_ngcontent-%COMP%]{opacity:1}.sticky[_ngcontent-%COMP%]{left:23%;width:auto;border:2px solid rgba(100,100,100,.2);bottom:0px;display:-ms-inline-flexbox;display:inline-flex;z-index:100;opacity:.6;position:fixed}.sticky[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] .mat-paginator-outer-container[_ngcontent-%COMP%]{width:auto;display:-ms-flexbox;display:flex;padding:0}.sticky[_ngcontent-%COMP%] mat-paginator-container[_ngcontent-%COMP%]{padding:0}.sticky[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{float:left;padding-left:30px}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #refreshBtn[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #resetBtn[_ngcontent-%COMP%]{float:right;right:0%;width:45px;height:60px;bottom:0px;padding:1px;text-align:center;border-radius:0%}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #refreshBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #resetBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff}.sticky[_ngcontent-%COMP%] #refreshBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .sticky[_ngcontent-%COMP%] #resetBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:29px;margin-right:5px}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%]{background:linear-gradient(#2a8a2a,#a0b912)}.sticky[_ngcontent-%COMP%] #backToTopBtn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:41px;margin-right:30px;margin-bottom:10px}.sticky[_ngcontent-%COMP%]:hover{transition:all .2s;opacity:1}section[_ngcontent-%COMP%]{margin:0 17%;bottom:16%}#popUpBox[_ngcontent-%COMP%]{width:60%;height:70%;padding:20px;position:fixed;font-size:18px;overflow-y:scroll;box-shadow:0 3px 10px #0003;border-radius:4px}"]}),t})(),canActivate:[EA]},{path:"msUpload",component:ZF,canActivate:[EA,PF],data:{expectedRole:["lin","gsk"]}},{path:"**",redirectTo:""}],{relativeLinkResolution:"legacy"});var AU=function(){function t(){}return t.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},t}(),RU=function(){function t(t){this.cryptoObj=t}return t.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,AU.decimalToHex(t[0])+AU.decimalToHex(t[1])+AU.decimalToHex(t[2])+AU.decimalToHex(t[3])+"-"+AU.decimalToHex(t[4])+AU.decimalToHex(t[5])+"-"+AU.decimalToHex(t[6])+AU.decimalToHex(t[7])+"-"+AU.decimalToHex(t[8])+AU.decimalToHex(t[9])+"-"+AU.decimalToHex(t[10])+AU.decimalToHex(t[11])+AU.decimalToHex(t[12])+AU.decimalToHex(t[13])+AU.decimalToHex(t[14])+AU.decimalToHex(t[15])}catch(s){for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,i="",o=0;o<36;o++)"-"!==e[o]&&"4"!==e[o]&&(r=16*Math.random()|0),"x"===e[o]?i+=n[r]:"y"===e[o]?(r&=3,i+=n[r|=8]):i+=e[o];return i}},t.isGuid=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},t}(),IU=function(){function t(){}return t.stringToUtf8Arr=function(t){for(var e,n=0,r=t.length,i=0;i>>6),o[s++]=128+(63&e)):e<65536?(o[s++]=224+(e>>>12),o[s++]=128+(e>>>6&63),o[s++]=128+(63&e)):e<2097152?(o[s++]=240+(e>>>18),o[s++]=128+(e>>>12&63),o[s++]=128+(e>>>6&63),o[s++]=128+(63&e)):e<67108864?(o[s++]=248+(e>>>24),o[s++]=128+(e>>>18&63),o[s++]=128+(e>>>12&63),o[s++]=128+(e>>>6&63),o[s++]=128+(63&e)):(o[s++]=252+(e>>>30),o[s++]=128+(e>>>24&63),o[s++]=128+(e>>>18&63),o[s++]=128+(e>>>12&63),o[s++]=128+(e>>>6&63),o[s++]=128+(63&e));return o},t.stringToArrayBuffer=function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),r=0;r251&&n<254&&i+5247&&n<252&&i+4239&&n<248&&i+3223&&n<240&&i+2191&&n<224&&i+1>>(r=s%3)&24),(2===r||t.length-s==1)&&(n+=String.fromCharCode(this.uint6ToB64(o>>>18&63),this.uint6ToB64(o>>>12&63),this.uint6ToB64(o>>>6&63),this.uint6ToB64(63&o)),o=0);return 0===e?n:n.substring(0,n.length-e)+(1===e?"=":"==")},t.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65},t}(),MU=function(){function t(){}return t.prototype.decode=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(e);return IU.utf8ArrToString(n)},t.prototype.base64DecToArr=function(t,e){for(var n=t.replace(/[^A-Za-z0-9\+\/]/g,""),r=n.length,i=e?Math.ceil((3*r+1>>>2)/e)*e:3*r+1>>>2,o=new Uint8Array(i),s=void 0,a=void 0,l=0,c=0,u=0;u>>(16>>>s&24)&255;l=0}return o},t.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0},t}(),DU=function(){function t(t){this.base64Encode=new PU,this.cryptoObj=t}return t.prototype.generateCodes=function(){return tC(this,void 0,void 0,function(){var t,e;return eC(this,function(n){switch(n.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return e=n.sent(),[2,{verifier:t,challenge:e}]}})})},t.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(32);return this.cryptoObj.getRandomValues(t),this.base64Encode.urlEncodeArr(t)}catch(e){throw $k.createPkceNotGeneratedError(e)}},t.prototype.generateCodeChallengeFromVerifier=function(t){return tC(this,void 0,void 0,function(){var e,n;return eC(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return e=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(e))];case 2:throw n=r.sent(),$k.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}(),NU="SHA-256",LU=new Uint8Array([1,0,1]),FU=function(){function t(){if(!this.hasCryptoAPI())throw $k.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:NU,modulusLength:2048,publicExponent:LU}}return t.prototype.sha256Digest=function(t){return tC(this,void 0,void 0,function(){var e;return eC(this,function(n){return e=IU.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(NU,e):this.getSubtleCryptoDigest(NU,e)]})})},t.prototype.getRandomValues=function(t){var e=window.msCrypto||window.crypto;if(!e.getRandomValues)throw $k.createCryptoNotAvailableError("getRandomValues does not exist.");e.getRandomValues(t)},t.prototype.generateKeyPair=function(t,e){return tC(this,void 0,void 0,function(){return eC(this,function(n){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(t,e):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,t,e)]})})},t.prototype.exportJwk=function(t){return tC(this,void 0,void 0,function(){return eC(this,function(e){return[2,this.hasIECrypto()?this.msCryptoExportJwk(t):window.crypto.subtle.exportKey(Gw,t)]})})},t.prototype.importJwk=function(e,n,r){return tC(this,void 0,void 0,function(){var i,o;return eC(this,function(s){return i=t.getJwkString(e),o=IU.stringToArrayBuffer(i),[2,this.hasIECrypto()?this.msCryptoImportKey(o,n,r):window.crypto.subtle.importKey(Gw,e,this._keygenAlgorithmOptions,n,r)]})})},t.prototype.sign=function(t,e){return tC(this,void 0,void 0,function(){return eC(this,function(n){return[2,this.hasIECrypto()?this.msCryptoSign(t,e):window.crypto.subtle.sign(this._keygenAlgorithmOptions,t,e)]})})},t.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},t.prototype.hasIECrypto=function(){return"msCrypto"in window},t.prototype.hasBrowserCrypto=function(){return"crypto"in window},t.prototype.getSubtleCryptoDigest=function(t,e){return tC(this,void 0,void 0,function(){return eC(this,function(n){return[2,window.crypto.subtle.digest(t,e)]})})},t.prototype.getMSCryptoDigest=function(t,e){return tC(this,void 0,void 0,function(){return eC(this,function(n){return[2,new Promise(function(n,r){var i=window.msCrypto.subtle.digest(t,e.buffer);i.addEventListener("complete",function(t){n(t.target.result)}),i.addEventListener("error",function(t){r(t)})})]})})},t.prototype.msCryptoGenerateKey=function(t,e){return tC(this,void 0,void 0,function(){var n=this;return eC(this,function(r){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.generateKey(n._keygenAlgorithmOptions,t,e);o.addEventListener("complete",function(t){r(t.target.result)}),o.addEventListener("error",function(t){i(t)})})]})})},t.prototype.msCryptoExportJwk=function(t){return tC(this,void 0,void 0,function(){return eC(this,function(e){return[2,new Promise(function(e,n){var r=window.msCrypto.subtle.exportKey(Gw,t);r.addEventListener("complete",function(t){var r=IU.utf8ArrToString(new Uint8Array(t.target.result)).replace(/\r/g,"").replace(/\n/g,"").replace(/\t/g,"").split(" ").join("").replace("\0","");try{e(JSON.parse(r))}catch(i){n(i)}}),r.addEventListener("error",function(t){n(t)})})]})})},t.prototype.msCryptoImportKey=function(t,e,n){return tC(this,void 0,void 0,function(){var r=this;return eC(this,function(i){return[2,new Promise(function(i,o){var s=window.msCrypto.subtle.importKey(Gw,t,r._keygenAlgorithmOptions,e,n);s.addEventListener("complete",function(t){i(t.target.result)}),s.addEventListener("error",function(t){o(t)})})]})})},t.prototype.msCryptoSign=function(t,e){return tC(this,void 0,void 0,function(){var n=this;return eC(this,function(r){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.sign(n._keygenAlgorithmOptions,t,e);o.addEventListener("complete",function(t){r(t.target.result)}),o.addEventListener("error",function(t){i(t)})})]})})},t.getJwkString=function(t){return JSON.stringify(t,Object.keys(t).sort())},t}(),UU=function(){function t(t,e,n){this.dbName=t,this.tableName=e,this.version=n,this.dbOpen=!1}return t.prototype.open=function(){return tC(this,void 0,void 0,function(){var t=this;return eC(this,function(e){return[2,new Promise(function(e,n){var r=window.indexedDB.open(t.dbName,t.version);r.addEventListener("upgradeneeded",function(e){e.target.result.createObjectStore(t.tableName)}),r.addEventListener("success",function(n){t.db=n.target.result,t.dbOpen=!0,e()}),r.addEventListener("error",function(t){return n(t)})})]})})},t.prototype.get=function(t){return tC(this,void 0,void 0,function(){var e=this;return eC(this,function(n){switch(n.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:n.sent(),n.label=2;case 2:return[2,new Promise(function(n,r){if(!e.db)return r($k.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).get(t);i.addEventListener("success",function(t){n(t.target.result)}),i.addEventListener("error",function(t){return r(t)})})]}})})},t.prototype.put=function(t,e){return tC(this,void 0,void 0,function(){var n=this;return eC(this,function(r){switch(r.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:r.sent(),r.label=2;case 2:return[2,new Promise(function(r,i){if(!n.db)return i($k.createDatabaseNotOpenError());var o=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(e,t);o.addEventListener("success",function(t){r(t.target.result)}),o.addEventListener("error",function(t){return i(t)})})]}})})},t.prototype.delete=function(t){return tC(this,void 0,void 0,function(){var e=this;return eC(this,function(n){switch(n.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:n.sent(),n.label=2;case 2:return[2,new Promise(function(n,r){if(!e.db)return r($k.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readwrite").objectStore(e.tableName).delete(t);i.addEventListener("success",function(t){n(void 0===t.target.result)}),i.addEventListener("error",function(t){return r(t)})})]}})})},t.prototype.clear=function(){return tC(this,void 0,void 0,function(){var t=this;return eC(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:e.sent(),e.label=2;case 2:return[2,new Promise(function(e,n){if(!t.db)return n($k.createDatabaseNotOpenError());var r=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).clear();r.addEventListener("success",function(t){e(void 0===t.target.result)}),r.addEventListener("error",function(t){return n(t)})})]}})})},t}(),HU=function(){function t(){this.browserCrypto=new FU,this.b64Encode=new PU,this.b64Decode=new MU,this.guidGenerator=new RU(this.browserCrypto),this.pkceGenerator=new DU(this.browserCrypto),this.cache=new UU(t.DB_NAME,t.TABLE_NAME,t.DB_VERSION)}return t.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},t.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},t.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},t.prototype.generatePkceCodes=function(){return tC(this,void 0,void 0,function(){return eC(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){return tC(this,void 0,void 0,function(){var n,r,i,o,s,a,l;return eC(this,function(c){switch(c.label){case 0:return[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return n=c.sent(),[4,this.browserCrypto.exportJwk(n.publicKey)];case 2:return r=c.sent(),i=FU.getJwkString({e:r.e,kty:r.kty,n:r.n}),[4,this.browserCrypto.sha256Digest(i)];case 3:return o=c.sent(),s=this.b64Encode.urlEncodeArr(new Uint8Array(o)),[4,this.browserCrypto.exportJwk(n.privateKey)];case 4:return a=c.sent(),[4,this.browserCrypto.importJwk(a,!1,["sign"])];case 5:return l=c.sent(),[4,this.cache.put(s,{privateKey:l,publicKey:n.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return c.sent(),[2,s]}})})},t.prototype.removeTokenBindingKey=function(t){return tC(this,void 0,void 0,function(){return eC(this,function(e){return[2,this.cache.delete(t)]})})},t.prototype.clearKeystore=function(){return tC(this,void 0,void 0,function(){return eC(this,function(t){return[2,this.cache.clear()]})})},t.prototype.signJwt=function(t,e){return tC(this,void 0,void 0,function(){var n,r,i,o,s,a,l,c,u;return eC(this,function(h){switch(h.label){case 0:return[4,this.cache.get(e)];case 1:if(!(n=h.sent()))throw $k.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(n.publicKey)];case 2:return r=h.sent(),i=FU.getJwkString(r),o=this.b64Encode.urlEncode(JSON.stringify({alg:r.alg,type:Gw})),t.cnf={jwk:JSON.parse(i)},s=this.b64Encode.urlEncode(JSON.stringify(t)),l=IU.stringToArrayBuffer(a=o+"."+s),[4,this.browserCrypto.sign(n.privateKey,l)];case 3:return c=h.sent(),u=this.b64Encode.urlEncodeArr(new Uint8Array(c)),[2,a+"."+u]}})})},t.POP_KEY_USAGES=["sign","verify"],t.EXTRACTABLE=!0,t.DB_VERSION=1,t.TABLE_NAME=(t.DB_NAME="msal.db")+".keys",t}(),VU=(()=>(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"}(VU||(VU={})),VU))(),BU=function(){function t(t,e,n){this.level=VU.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:VU.Info,this.correlationId=t.correlationId||"",this.packageName=e||dw.EMPTY_STRING,this.packageVersion=n||dw.EMPTY_STRING}return t.prototype.clone=function(e,n,r){return new t({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,n)},t.prototype.logMessage=function(t,e){if(!(e.logLevel>this.level||!this.piiLoggingEnabled&&e.containsPii)){var n,r=(new Date).toUTCString();n=xE.isEmpty(e.correlationId)?xE.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+e.correlationId+"]",this.executeCallback(e.logLevel,n+" : "+this.packageName+"@"+this.packageVersion+" : "+VU[e.logLevel]+" - "+t,e.containsPii||!1)}},t.prototype.executeCallback=function(t,e,n){this.localCallback&&this.localCallback(t,e,n)},t.prototype.error=function(t,e){this.logMessage(t,{logLevel:VU.Error,containsPii:!1,correlationId:e||""})},t.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:VU.Error,containsPii:!0,correlationId:e||""})},t.prototype.warning=function(t,e){this.logMessage(t,{logLevel:VU.Warning,containsPii:!1,correlationId:e||""})},t.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:VU.Warning,containsPii:!0,correlationId:e||""})},t.prototype.info=function(t,e){this.logMessage(t,{logLevel:VU.Info,containsPii:!1,correlationId:e||""})},t.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:VU.Info,containsPii:!0,correlationId:e||""})},t.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:VU.Verbose,containsPii:!1,correlationId:e||""})},t.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:VU.Verbose,containsPii:!0,correlationId:e||""})},t.prototype.trace=function(t,e){this.logMessage(t,{logLevel:VU.Trace,containsPii:!1,correlationId:e||""})},t.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:VU.Trace,containsPii:!0,correlationId:e||""})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}(),jU={createNewGuid:function(){throw sC.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw sC.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw sC.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})}},zU=function(t){function e(n,r,i){var o=t.call(this,n,r,i)||this;return o.name="ServerError",Object.setPrototypeOf(o,e.prototype),o}return aw(e,t),e}(sC),qU=["interaction_required","consent_required","login_required"],KU=["message_only","additional_action","basic_action","user_password_expired","consent_required"],$U="no_tokens_found",GU="No refresh token found in the cache. Please sign-in.",WU=function(t){function e(n,r,i){var o=t.call(this,n,r,i)||this;return o.name="InteractionRequiredAuthError",Object.setPrototypeOf(o,e.prototype),o}return aw(e,t),e.isInteractionRequiredError=function(t,e,n){var r=!!t&&qU.indexOf(t)>-1,i=!!n&&KU.indexOf(n)>-1,o=!!e&&qU.some(function(t){return e.indexOf(t)>-1});return r||o||i},e.createNoTokensFoundError=function(){return new e($U,GU)},e}(sC);function YU(t,e){if(xE.isEmpty(t))throw $S.createClientInfoEmptyError();try{var n=e.base64Decode(t);return JSON.parse(n)}catch(r){throw $S.createClientInfoDecodingError(r)}}function QU(t){if(xE.isEmpty(t))throw $S.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(Ow.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?dw.EMPTY_STRING:e[1]}}var XU=(()=>(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs"}(XU||(XU={})),XU))(),ZU=function(){function t(){}return t.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(Ow.CACHE_KEY_SEPARATOR).toLowerCase()},t.prototype.generateAccountKey=function(){return t.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},t.prototype.generateType=function(){switch(this.authorityType){case kw.ADFS_ACCOUNT_TYPE:return Aw.ADFS;case kw.MSAV1_ACCOUNT_TYPE:return Aw.MSA;case kw.MSSTS_ACCOUNT_TYPE:return Aw.MSSTS;case kw.GENERIC_ACCOUNT_TYPE:return Aw.GENERIC;default:throw $S.createUnexpectedAccountTypeError()}},t.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims}},t.generateAccountCacheKey=function(t){return[t.homeAccountId,t.environment||"",t.tenantId||""].join(Ow.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,n,r,i,o,s,a,l){var c,u,h,d,p,f,g=new t;g.authorityType=kw.MSSTS_ACCOUNT_TYPE,g.clientInfo=e,g.homeAccountId=n;var m=l||i&&i.getPreferredCache();if(!m)throw $S.createInvalidCacheEnvironmentError();return g.environment=m,g.realm=(null===(c=null==r?void 0:r.claims)||void 0===c?void 0:c.tid)||"",g.oboAssertion=o,r&&(g.idTokenClaims=r.claims,g.localAccountId=(null===(u=null==r?void 0:r.claims)||void 0===u?void 0:u.oid)||(null===(h=null==r?void 0:r.claims)||void 0===h?void 0:h.sub)||"",g.username=(null===(d=null==r?void 0:r.claims)||void 0===d?void 0:d.preferred_username)||((null===(p=null==r?void 0:r.claims)||void 0===p?void 0:p.emails)?r.claims.emails[0]:""),g.name=null===(f=null==r?void 0:r.claims)||void 0===f?void 0:f.name),g.cloudGraphHostName=s,g.msGraphHost=a,g},t.createGenericAccount=function(e,n,r,i,o,s,a){var l,c,u,h,d=new t;d.authorityType=r&&r.authorityType===XU.Adfs?kw.ADFS_ACCOUNT_TYPE:kw.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm="",d.oboAssertion=i;var p=a||r&&r.getPreferredCache();if(!p)throw $S.createInvalidCacheEnvironmentError();return n&&(d.localAccountId=(null===(l=null==n?void 0:n.claims)||void 0===l?void 0:l.oid)||(null===(c=null==n?void 0:n.claims)||void 0===c?void 0:c.sub)||"",d.username=(null===(u=null==n?void 0:n.claims)||void 0===u?void 0:u.upn)||"",d.name=(null===(h=null==n?void 0:n.claims)||void 0===h?void 0:h.name)||"",d.idTokenClaims=null==n?void 0:n.claims),d.environment=p,d.cloudGraphHostName=o,d.msGraphHost=s,d},t.generateHomeAccountId=function(t,e,n,r,i){var o,s=(null===(o=null==i?void 0:i.claims)||void 0===o?void 0:o.sub)?i.claims.sub:dw.EMPTY_STRING;if(e===XU.Adfs)return s;if(t)try{var a=YU(t,r);if(!xE.isEmpty(a.uid)&&!xE.isEmpty(a.utid))return""+a.uid+Ow.CLIENT_INFO_SEPARATOR+a.utid}catch(l){}return n.verbose("No client info in response"),s},t.isAccountEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType")},t.accountInfoIsEqual=function(t,e,n){if(!t||!e)return!1;var r=!0;if(n){var i=t.idTokenClaims||{},o=e.idTokenClaims||{};r=i.iat===o.iat&&i.nonce===o.nonce}return t.homeAccountId===e.homeAccountId&&t.localAccountId===e.localAccountId&&t.username===e.username&&t.tenantId===e.tenantId&&t.environment===e.environment&&r},t}(),JU=function(){function t(){}return t.prototype.generateAccountId=function(){return t.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},t.prototype.generateCredentialId=function(){return t.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},t.prototype.generateTarget=function(){return t.generateTargetForCacheKey(this.target)},t.prototype.generateCredentialKey=function(){return t.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType)},t.prototype.generateType=function(){switch(this.credentialType){case Tw.ID_TOKEN:return Aw.ID_TOKEN;case Tw.ACCESS_TOKEN:case Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Aw.ACCESS_TOKEN;case Tw.REFRESH_TOKEN:return Aw.REFRESH_TOKEN;default:throw $S.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(t){return-1!==t.indexOf(Tw.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME:Tw.ACCESS_TOKEN:-1!==t.indexOf(Tw.ID_TOKEN.toLowerCase())?Tw.ID_TOKEN:-1!==t.indexOf(Tw.REFRESH_TOKEN.toLowerCase())?Tw.REFRESH_TOKEN:dw.NOT_DEFINED},t.generateCredentialCacheKey=function(t,e,n,r,i,o,s,a){var l=[this.generateAccountIdForCacheKey(t,e),this.generateCredentialIdForCacheKey(n,r,i,s),this.generateTargetForCacheKey(o)];return a===Mw.POP&&l.push(a.toLowerCase()),l.join(Ow.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(t,e){return[t,e].join(Ow.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(t,e,n,r){return[t,t===Tw.REFRESH_TOKEN&&r||e,n||""].join(Ow.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateTargetForCacheKey=function(t){return(t||"").toLowerCase()},t}(),tH=function(){function t(t){var e=this,n=t?xE.trimArrayEntries(hw(t)):[],r=n?xE.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(t){return e.scopes.add(t)})}return t.fromString=function(e){return new t((e||"").split(" "))},t.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw TE.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var n=new t(this.printScopesLowerCase().split(" "));return!xE.isEmpty(e)&&n.scopes.has(e.toLowerCase())},t.prototype.containsScopeSet=function(t){var e=this;return!(!t||t.scopes.size<=0)&&this.scopes.size>=t.scopes.size&&t.asArray().every(function(t){return e.containsScope(t)})},t.prototype.containsOnlyOIDCScopes=function(){var t=this,e=0;return fw.forEach(function(n){t.containsScope(n)&&(e+=1)}),this.scopes.size===e},t.prototype.appendScope=function(t){xE.isEmpty(t)||this.scopes.add(t.trim())},t.prototype.appendScopes=function(t){var e=this;try{t.forEach(function(t){return e.appendScope(t)})}catch(n){throw $S.createAppendScopeSetError(n)}},t.prototype.removeScope=function(t){if(xE.isEmpty(t))throw $S.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},t.prototype.removeOIDCScopes=function(){var t=this;fw.forEach(function(e){t.scopes.delete(e)})},t.prototype.unionScopeSets=function(t){if(!t)throw $S.createEmptyInputScopeSetError();var e=new Set;return t.scopes.forEach(function(t){return e.add(t.toLowerCase())}),this.scopes.forEach(function(t){return e.add(t.toLowerCase())}),e},t.prototype.intersectingScopeSets=function(t){if(!t)throw $S.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),n=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw $S.createMultipleMatchingTokensInCacheError();return r[0]},t.prototype.readAccessTokenFromCache=function(t,e,n,r){var i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:r===Mw.POP?Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME:Tw.ACCESS_TOKEN,clientId:t,realm:e.tenantId,target:n.printScopesLowerCase(),tokenType:r},o=this.getCredentialsFilteredBy(i),s=Object.keys(o.accessTokens).map(function(t){return o.accessTokens[t]}),a=s.length;if(a<1)return null;if(a>1)throw $S.createMultipleMatchingTokensInCacheError();return s[0]},t.prototype.readRefreshTokenFromCache=function(t,e,n){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Tw.REFRESH_TOKEN,clientId:t,familyId:n?"1":void 0}),i=Object.keys(r.refreshTokens).map(function(t){return r.refreshTokens[t]});return i.length<1?null:i[0]},t.prototype.readAppMetadataFromCache=function(t,e){var n=this.getAppMetadataFilteredBy({environment:t,clientId:e}),r=Object.keys(n).map(function(t){return n[t]}),i=r.length;if(i<1)return null;if(i>1)throw $S.createMultipleMatchingAppMetadataInCacheError();return r[0]},t.prototype.isAppMetadataFOCI=function(t,e){var n=this.readAppMetadataFromCache(t,e);return!(!n||"1"!==n.familyId)},t.prototype.matchHomeAccountId=function(t,e){return!(!t.homeAccountId||e!==t.homeAccountId)},t.prototype.matchOboAssertion=function(t,e){return!(!t.oboAssertion||e!==t.oboAssertion)},t.prototype.matchEnvironment=function(t,e){var n=this.getAuthorityMetadataByAlias(e);return!!(n&&n.aliases.indexOf(t.environment)>-1)},t.prototype.matchCredentialType=function(t,e){return t.credentialType&&e.toLowerCase()===t.credentialType.toLowerCase()},t.prototype.matchClientId=function(t,e){return!(!t.clientId||e!==t.clientId)},t.prototype.matchFamilyId=function(t,e){return!(!t.familyId||e!==t.familyId)},t.prototype.matchRealm=function(t,e){return!(!t.realm||e!==t.realm)},t.prototype.matchTarget=function(t,e){if(t.credentialType!==Tw.ACCESS_TOKEN&&t.credentialType!==Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var n=tH.fromString(t.target),r=tH.fromString(e);return r.containsOnlyOIDCScopes()?r.removeScope(dw.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),n.containsScopeSet(r)},t.prototype.matchTokenType=function(t,e){return!(!t.tokenType||t.tokenType!==e)},t.prototype.isAppMetadata=function(t){return-1!==t.indexOf(Rw)},t.prototype.isAuthorityMetadata=function(t){return-1!==t.indexOf("authority-metadata")},t.prototype.generateAuthorityMetadataCacheKey=function(t){return"authority-metadata-"+this.clientId+"-"+t},t.prototype.getSpecificCredential=function(t,e){switch(e){case Tw.ID_TOKEN:return this.getIdTokenCredential(t);case Tw.ACCESS_TOKEN:case Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case Tw.REFRESH_TOKEN:return this.getRefreshTokenCredential(t);default:return null}},t.toObject=function(t,e){for(var n in e)t[n]=e[n];return t},t}(),rH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aw(e,t),e.prototype.setAccount=function(){throw sC.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},e.prototype.getAccount=function(){throw sC.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},e.prototype.setIdTokenCredential=function(){throw sC.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.getIdTokenCredential=function(){throw sC.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.setAccessTokenCredential=function(){throw sC.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.getAccessTokenCredential=function(){throw sC.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.setRefreshTokenCredential=function(){throw sC.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.getRefreshTokenCredential=function(){throw sC.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.setAppMetadata=function(){throw sC.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.getAppMetadata=function(){throw sC.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.setServerTelemetry=function(){throw sC.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},e.prototype.getServerTelemetry=function(){throw sC.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},e.prototype.setAuthorityMetadata=function(){throw sC.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.getAuthorityMetadata=function(){throw sC.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.getAuthorityMetadataKeys=function(){throw sC.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},e.prototype.setThrottlingCache=function(){throw sC.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},e.prototype.getThrottlingCache=function(){throw sC.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},e.prototype.removeItem=function(){throw sC.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},e.prototype.containsKey=function(){throw sC.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},e.prototype.getKeys=function(){throw sC.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},e.prototype.clear=function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},e}(nH),iH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aw(e,t),e.createIdTokenEntity=function(t,n,r,i,o,s){var a=new e;return a.credentialType=Tw.ID_TOKEN,a.homeAccountId=t,a.environment=n,a.clientId=i,a.secret=r,a.realm=o,a.oboAssertion=s,a},e.isIdTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Tw.ID_TOKEN},e}(JU),oH=function(){function t(){}return t.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},t.isTokenExpired=function(e,n){var r=Number(e)||0;return t.nowSeconds()+n>r},t.wasClockTurnedBack=function(e){return Number(e)>t.nowSeconds()},t.delay=function(t,e){return new Promise(function(n){return setTimeout(function(){return n(e)},t)})},t}(),sH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aw(e,t),e.createAccessTokenEntity=function(t,n,r,i,o,s,a,l,c,u,h,d){var p,f=new e;f.homeAccountId=t,f.credentialType=Tw.ACCESS_TOKEN,f.secret=r;var g=oH.nowSeconds();if(f.cachedAt=g.toString(),f.expiresOn=a.toString(),f.extendedExpiresOn=l.toString(),u&&(f.refreshOn=u.toString()),f.environment=n,f.clientId=i,f.realm=o,f.target=s,f.oboAssertion=d,f.tokenType=xE.isEmpty(h)?Mw.BEARER:h,f.tokenType===Mw.POP){f.credentialType=Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME;var m=eH.extractTokenClaims(r,c);if(!(null===(p=null==m?void 0:m.cnf)||void 0===p?void 0:p.kid))throw $S.createTokenClaimsRequiredError();f.keyId=m.cnf.kid}return f},e.isAccessTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===Tw.ACCESS_TOKEN||t.credentialType===Tw.ACCESS_TOKEN_WITH_AUTH_SCHEME)},e}(JU),aH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aw(e,t),e.createRefreshTokenEntity=function(t,n,r,i,o,s){var a=new e;return a.clientId=i,a.credentialType=Tw.REFRESH_TOKEN,a.environment=n,a.homeAccountId=t,a.secret=r,a.oboAssertion=s,o&&(a.familyId=o),a},e.isRefreshTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Tw.REFRESH_TOKEN},e}(JU),lH=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(t,e){return[Rw,t,e].join(Ow.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAppMetadataEntity=function(e,n,r){var i=new t;return i.clientId=e,i.environment=n,r&&(i.familyId=r),i},t.isAppMetadataEntity=function(t,e){return!!e&&0===t.indexOf(Rw)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},t}(),cH=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(t,e){var n=0===t.indexOf(Pw.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),n&&r},t}(),uH=function(){function t(){this.expiresAt=oH.nowSeconds()+86400}return t.prototype.updateCloudDiscoveryMetadata=function(t,e){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=e},t.prototype.updateEndpointMetadata=function(t,e){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=e},t.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},t.prototype.resetExpiresAt=function(){this.expiresAt=oH.nowSeconds()+86400},t.prototype.isExpired=function(){return this.expiresAt<=oH.nowSeconds()},t.isAuthorityMetadataEntity=function(t,e){return!!e&&0===t.indexOf("authority-metadata")&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("end_session_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")},t}(),hH=function(){function t(){}return t.isThrottlingEntity=function(t,e){var n=!1;t&&(n=0===t.indexOf("throttling"));var r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),n&&r},t}(),dH=function(){function t(){}return t.setRequestState=function(e,n,r){var i=t.generateLibraryState(e,r);return xE.isEmpty(n)?i:""+i+dw.RESOURCE_DELIM+n},t.generateLibraryState=function(t,e){if(!t)throw $S.createNoCryptoObjectError("generateLibraryState");var n={id:t.createNewGuid()};e&&(n.meta=e);var r=JSON.stringify(n);return t.base64Encode(r)},t.parseRequestState=function(t,e){if(!t)throw $S.createNoCryptoObjectError("parseRequestState");if(xE.isEmpty(e))throw $S.createInvalidStateError(e,"Null, undefined or empty state");try{var n=e.split(dw.RESOURCE_DELIM),r=n[0],i=n.length>1?n.slice(1).join(dw.RESOURCE_DELIM):"",o=t.base64Decode(r),s=JSON.parse(o);return{userRequestState:xE.isEmpty(i)?"":i,libraryState:s}}catch(a){throw $S.createInvalidStateError(e,a)}},t}(),pH=(()=>(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"}(pH||(pH={})),pH))(),fH=function(){function t(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return t.prototype.validateWindowStorage=function(t){if(t!==Hw.LocalStorage&&t!==Hw.SessionStorage)throw bC.createStorageNotSupportedError(t);if(!window[t])throw bC.createStorageNotSupportedError(t)},t.prototype.getItem=function(t){return this.windowStorage.getItem(t)},t.prototype.setItem=function(t,e){this.windowStorage.setItem(t,e)},t.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},t.prototype.getKeys=function(){return Object.keys(this.windowStorage)},t.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},t}(),gH=function(){function t(){this.cache=new Map}return t.prototype.getItem=function(t){return this.cache.get(t)||null},t.prototype.setItem=function(t,e){this.cache.set(t,e)},t.prototype.removeItem=function(t){this.cache.delete(t)},t.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(e,n){t.push(n)}),t},t.prototype.containsKey=function(t){return this.cache.has(t)},t.prototype.clear=function(){this.cache.clear()},t}(),mH=function(){function t(){}return t.extractBrowserRequestState=function(t,e){if(xE.isEmpty(e))return null;try{return dH.parseRequestState(t,e).libraryState.meta}catch(n){throw $S.createInvalidStateError(e,n)}},t.parseServerResponseFromHash=function(t){if(!t)return{};var e=new AE(t);return AE.getDeserializedHash(e.getHash())},t}(),_H=function(t){function e(e,n,r,i){var o=t.call(this,e,r)||this;return o.COOKIE_LIFE_MULTIPLIER=864e5,o.cacheConfig=n,o.logger=i,o.internalStorage=new gH,o.browserStorage=o.setupBrowserStorage(o.cacheConfig.cacheLocation),o.temporaryCacheStorage=o.setupTemporaryCacheStorage(o.cacheConfig.cacheLocation),o.migrateCacheEntries(),o}return Zw(e,t),e.prototype.setupBrowserStorage=function(t){switch(t){case Hw.LocalStorage:case Hw.SessionStorage:try{return new fH(t)}catch(e){this.logger.verbose(e);break}}return this.cacheConfig.cacheLocation=Hw.MemoryStorage,new gH},e.prototype.setupTemporaryCacheStorage=function(t){switch(t){case Hw.LocalStorage:case Hw.SessionStorage:try{return new fH(Hw.SessionStorage)}catch(e){return this.logger.verbose(e),this.internalStorage}case Hw.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,e=dw.CACHE_PREFIX+"."+mw.CLIENT_INFO,n=dw.CACHE_PREFIX+"."+mw.ERROR,r=dw.CACHE_PREFIX+"."+mw.ERROR_DESC,i=[this.browserStorage.getItem(dw.CACHE_PREFIX+"."+mw.ID_TOKEN),this.browserStorage.getItem(e),this.browserStorage.getItem(n),this.browserStorage.getItem(r)];[mw.ID_TOKEN,mw.CLIENT_INFO,mw.ERROR,mw.ERROR_DESC].forEach(function(e,n){return t.migrateCacheEntry(e,i[n])})},e.prototype.migrateCacheEntry=function(t,e){e&&this.setTemporaryCache(t,e,!0)},e.prototype.validateAndParseJson=function(t){try{var e=JSON.parse(t);return e&&"object"==typeof e?e:null}catch(n){return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,e){this.browserStorage.setItem(t,e)},e.prototype.getAccount=function(t){var e=this.getItem(t);if(!e)return null;var n=this.validateAndParseJson(e);return n&&ZU.isAccountEntity(n)?nH.toObject(new ZU,n):null},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var e=t.generateAccountKey();this.setItem(e,JSON.stringify(t))},e.prototype.getIdTokenCredential=function(t){var e=this.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&iH.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),nH.toObject(new iH,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var e=t.generateCredentialKey();this.setItem(e,JSON.stringify(t))},e.prototype.getAccessTokenCredential=function(t){var e=this.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&sH.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),nH.toObject(new sH,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var e=t.generateCredentialKey();this.setItem(e,JSON.stringify(t))},e.prototype.getRefreshTokenCredential=function(t){var e=this.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&aH.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),nH.toObject(new aH,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var e=t.generateCredentialKey();this.setItem(e,JSON.stringify(t))},e.prototype.getAppMetadata=function(t){var e=this.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&lH.isAppMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),nH.toObject(new lH,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var e=t.generateAppMetadataKey();this.setItem(e,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var e=this.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&cH.isServerTelemetryEntity(t,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),nH.toObject(new cH,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},e.prototype.setServerTelemetry=function(t,e){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(e))},e.prototype.getAuthorityMetadata=function(t){var e=this.internalStorage.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&uH.isAuthorityMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),nH.toObject(new uH,n)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this;return this.internalStorage.getKeys().filter(function(e){return t.isAuthorityMetadata(e)})},e.prototype.setWrapperMetadata=function(t,e){this.internalStorage.setItem(jw.WRAPPER_SKU,t),this.internalStorage.setItem(jw.WRAPPER_VER,e)},e.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(jw.WRAPPER_SKU)||"",this.internalStorage.getItem(jw.WRAPPER_VER)||""]},e.prototype.setAuthorityMetadata=function(t,e){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(e))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(mw.ACTIVE_ACCOUNT),e=this.browserStorage.getItem(t);return e&&this.getAccountInfoByFilter({localAccountId:e})[0]||null},e.prototype.setActiveAccount=function(t){var e=this.generateCacheKey(mw.ACTIVE_ACCOUNT);t?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(e,t.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(e))},e.prototype.getAccountInfoByFilter=function(t){return this.getAllAccounts().filter(function(e){return!(t.username&&t.username.toLowerCase()!==e.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==e.homeAccountId||t.localAccountId&&t.localAccountId!==e.localAccountId||t.tenantId&&t.tenantId!==e.tenantId||t.environment&&t.environment!==e.environment)})},e.prototype.getThrottlingCache=function(t){var e=this.getItem(t);if(!e)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(e);return n&&hH.isThrottlingEntity(t,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),nH.toObject(new hH,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},e.prototype.setThrottlingCache=function(t,e){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(e))},e.prototype.getTemporaryCache=function(t,e){var n=e?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var i=this.temporaryCacheStorage.getItem(n);if(!i){if(this.cacheConfig.cacheLocation===Hw.LocalStorage){var o=this.browserStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i},e.prototype.setTemporaryCache=function(t,e,n){var r=n?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(r,e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,e))},e.prototype.removeItem=function(t){return this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t)),!0},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return rC(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return tC(this,void 0,void 0,function(){var t=this;return eC(this,function(e){switch(e.label){case 0:return[4,this.removeAllAccounts()];case 1:return e.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(e){(t.browserStorage.containsKey(e)||t.temporaryCacheStorage.containsKey(e))&&(-1!==e.indexOf(dw.CACHE_PREFIX)||-1!==e.indexOf(t.clientId))&&t.removeItem(e)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(t,e,n){var r=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/;";n&&(r+="expires="+this.getCookieExpirationTime(n)+";"),this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},e.prototype.getItemCookie=function(t){for(var e=encodeURIComponent(t)+"=",n=document.cookie.split(";"),r=0;r(function(t){t.AAD="AAD",t.OIDC="OIDC"}(yH||(yH={})),yH))(),bH={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},vH={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:VU.Info,correlationId:""},wH={sendGetRequestAsync:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return cw(this,void 0,void 0,function(){return uw(this,function(t){throw sC.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},CH={sku:dw.SKU,version:"5.0.1",cpu:"",os:""},SH={clientSecret:"",clientAssertion:void 0};function EH(t){return lw({clientCapabilities:[]},t)}var kH={sendGetRequestAsync:function(){return Promise.reject(sC.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(sC.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},OH=function(){function t(){}return t.prototype.navigateInternal=function(e,n){return t.defaultNavigateWindow(e,n)},t.prototype.navigateExternal=function(e,n){return t.defaultNavigateWindow(e,n)},t.defaultNavigateWindow=function(t,e){return e.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(t){setTimeout(function(){t(!0)},e.timeout)})},t}(),TH="2.18.0",xH=function(){function t(t,e){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=e,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return t.prototype.addEventCallback=function(t){if("undefined"!=typeof window){var e=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(e,t),this.logger.verbose("Event callback registered with id: "+e),e}return null},t.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},t.prototype.enableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},t.prototype.disableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},t.prototype.emitEvent=function(t,e,n,r){var i=this;if("undefined"!=typeof window){var o={eventType:t,interactionType:e||null,payload:n||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(e,n){i.logger.verbose("Emitting event to callback "+n+": "+t),e.apply(null,[o])})}},t.prototype.handleAccountCacheChange=function(t){try{var e=t.newValue||t.oldValue;if(!e)return;var n=JSON.parse(e);if("object"!=typeof n||!ZU.isAccountEntity(n))return;var r=nH.toObject(new ZU,n).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Yw.ACCOUNT_ADDED,void 0,r)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Yw.ACCOUNT_REMOVED,void 0,r))}catch(i){return}},t}(),AH=function(){function t(){}return t.generateThrottlingStorageKey=function(t){return"throttling."+JSON.stringify(t)},t.preProcess=function(e,n){var r,i=t.generateThrottlingStorageKey(n),o=e.getThrottlingCache(i);if(o){if(o.throttleTime=500&&t.status<600},t.checkResponseForRetryAfter=function(t){return!!t.headers&&t.headers.hasOwnProperty(gw.RETRY_AFTER)&&(t.status<200||t.status>=300)},t.calculateThrottleTime=function(t){var e=t<=0?0:t,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(e||60),n+3600))},t.removeThrottle=function(t,e,n,r){var i=this.generateThrottlingStorageKey({clientId:e,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims});return t.removeItem(i,xw.THROTTLING)},t}(),RH=function(){function t(t,e){this.networkClient=t,this.cacheManager=e}return t.prototype.sendPostRequest=function(t,e,n){return cw(this,void 0,void 0,function(){var r,i;return uw(this,function(o){switch(o.label){case 0:AH.preProcess(this.cacheManager,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(e,n)];case 2:return r=o.sent(),[3,4];case 3:throw(i=o.sent())instanceof sC?i:$S.createNetworkError(e,i);case 4:return AH.postProcess(this.cacheManager,t,r),[2,r]}})})},t}(),IH=function(){function t(t){this.config=function(t){var e=t.authOptions,n=t.systemOptions,r=t.loggerOptions,i=t.storageInterface,o=t.networkInterface,s=t.cryptoInterface,a=t.clientCredentials,l=t.libraryInfo,c=t.serverTelemetryManager,u=t.persistencePlugin,h=t.serializableCache,d=lw(lw({},vH),r);return{authOptions:EH(e),systemOptions:lw(lw({},bH),n),loggerOptions:d,storageInterface:i||new rH(e.clientId,jU),networkInterface:o||wH,cryptoInterface:s||jU,clientCredentials:a||SH,libraryInfo:lw(lw({},CH),l),serverTelemetryManager:c||null,persistencePlugin:u||null,serializableCache:h||null}}(t),this.logger=new BU(this.config.loggerOptions,"@azure/msal-common","5.0.1"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new RH(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority}return t.prototype.createTokenRequestHeaders=function(t){var e={};if(e[gw.CONTENT_TYPE]=dw.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case pH.HOME_ACCOUNT_ID:try{var n=QU(t.credential);e[gw.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case pH.UPN:e[gw.CCS_HEADER]="UPN: "+t.credential}return e},t.prototype.executePostToTokenEndpoint=function(t,e,n,r){return cw(this,void 0,void 0,function(){var i;return uw(this,function(o){switch(o.label){case 0:return[4,this.networkManager.sendPostRequest(r,t,{body:e,headers:n})];case 1:return i=o.sent(),this.config.serverTelemetryManager&&i.status<500&&429!==i.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},t.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw $S.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},t}(),PH=function(){function t(){}return t.validateRedirectUri=function(t){if(xE.isEmpty(t))throw TE.createRedirectUriEmptyError()},t.validatePrompt=function(t){var e=[];for(var n in vw)e.push(vw[n]);if(e.indexOf(t)<0)throw TE.createInvalidPromptError(t)},t.validateClaims=function(t){try{JSON.parse(t)}catch(e){throw TE.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(t,e){if(xE.isEmpty(t)||xE.isEmpty(e))throw TE.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},t.validateCodeChallengeMethod=function(t){if([Cw.PLAIN,Cw.S256].indexOf(t)<0)throw TE.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(t,e){return t?(e.forEach(function(e,n){t[n]&&delete t[n]}),t):{}},t}(),MH=function(){function t(){this.parameters=new Map}return t.prototype.addResponseTypeCode=function(){this.parameters.set(yw.RESPONSE_TYPE,encodeURIComponent(dw.CODE_RESPONSE_TYPE))},t.prototype.addResponseMode=function(t){this.parameters.set(yw.RESPONSE_MODE,encodeURIComponent(t||Sw.QUERY))},t.prototype.addScopes=function(t,e){void 0===e&&(e=!0);var n=e?hw(t||[],pw):t||[],r=new tH(n);this.parameters.set(yw.SCOPE,encodeURIComponent(r.printScopes()))},t.prototype.addClientId=function(t){this.parameters.set(yw.CLIENT_ID,encodeURIComponent(t))},t.prototype.addRedirectUri=function(t){PH.validateRedirectUri(t),this.parameters.set(yw.REDIRECT_URI,encodeURIComponent(t))},t.prototype.addPostLogoutRedirectUri=function(t){PH.validateRedirectUri(t),this.parameters.set(yw.POST_LOGOUT_URI,encodeURIComponent(t))},t.prototype.addIdTokenHint=function(t){this.parameters.set(yw.ID_TOKEN_HINT,encodeURIComponent(t))},t.prototype.addDomainHint=function(t){this.parameters.set(ww.DOMAIN_HINT,encodeURIComponent(t))},t.prototype.addLoginHint=function(t){this.parameters.set(ww.LOGIN_HINT,encodeURIComponent(t))},t.prototype.addCcsUpn=function(t){this.parameters.set(gw.CCS_HEADER,encodeURIComponent("UPN:"+t))},t.prototype.addCcsOid=function(t){this.parameters.set(gw.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},t.prototype.addSid=function(t){this.parameters.set(ww.SID,encodeURIComponent(t))},t.prototype.addClaims=function(t,e){var n=this.addClientCapabilitiesToClaims(t,e);PH.validateClaims(n),this.parameters.set(yw.CLAIMS,encodeURIComponent(n))},t.prototype.addCorrelationId=function(t){this.parameters.set(yw.CLIENT_REQUEST_ID,encodeURIComponent(t))},t.prototype.addLibraryInfo=function(t){this.parameters.set(yw.X_CLIENT_SKU,t.sku),this.parameters.set(yw.X_CLIENT_VER,t.version),this.parameters.set(yw.X_CLIENT_OS,t.os),this.parameters.set(yw.X_CLIENT_CPU,t.cpu)},t.prototype.addPrompt=function(t){PH.validatePrompt(t),this.parameters.set(""+yw.PROMPT,encodeURIComponent(t))},t.prototype.addState=function(t){xE.isEmpty(t)||this.parameters.set(yw.STATE,encodeURIComponent(t))},t.prototype.addNonce=function(t){this.parameters.set(yw.NONCE,encodeURIComponent(t))},t.prototype.addCodeChallengeParams=function(t,e){if(PH.validateCodeChallengeParams(t,e),!t||!e)throw TE.createInvalidCodeChallengeParamsError();this.parameters.set(yw.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(yw.CODE_CHALLENGE_METHOD,encodeURIComponent(e))},t.prototype.addAuthorizationCode=function(t){this.parameters.set(yw.CODE,encodeURIComponent(t))},t.prototype.addDeviceCode=function(t){this.parameters.set(yw.DEVICE_CODE,encodeURIComponent(t))},t.prototype.addRefreshToken=function(t){this.parameters.set(yw.REFRESH_TOKEN,encodeURIComponent(t))},t.prototype.addCodeVerifier=function(t){this.parameters.set(yw.CODE_VERIFIER,encodeURIComponent(t))},t.prototype.addClientSecret=function(t){this.parameters.set(yw.CLIENT_SECRET,encodeURIComponent(t))},t.prototype.addClientAssertion=function(t){this.parameters.set(yw.CLIENT_ASSERTION,encodeURIComponent(t))},t.prototype.addClientAssertionType=function(t){this.parameters.set(yw.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},t.prototype.addOboAssertion=function(t){this.parameters.set(yw.OBO_ASSERTION,encodeURIComponent(t))},t.prototype.addRequestTokenUse=function(t){this.parameters.set(yw.REQUESTED_TOKEN_USE,encodeURIComponent(t))},t.prototype.addGrantType=function(t){this.parameters.set(yw.GRANT_TYPE,encodeURIComponent(t))},t.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},t.prototype.addExtraQueryParameters=function(t){var e=this;PH.sanitizeEQParams(t,this.parameters),Object.keys(t).forEach(function(n){e.parameters.set(n,t[n])})},t.prototype.addClientCapabilitiesToClaims=function(t,e){var n;if(t)try{n=JSON.parse(t)}catch(r){throw TE.createInvalidClaimsRequestError()}else n={};return e&&e.length>0&&(n.hasOwnProperty(bw.ACCESS_TOKEN)||(n[bw.ACCESS_TOKEN]={}),n[bw.ACCESS_TOKEN][bw.XMS_CC]={values:e}),JSON.stringify(n)},t.prototype.addUsername=function(t){this.parameters.set(Dw.username,t)},t.prototype.addPassword=function(t){this.parameters.set(Dw.password,t)},t.prototype.addPopToken=function(t){xE.isEmpty(t)||(this.parameters.set(yw.TOKEN_TYPE,Mw.POP),this.parameters.set(yw.REQ_CNF,encodeURIComponent(t)))},t.prototype.addServerTelemetry=function(t){this.parameters.set(yw.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(yw.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},t.prototype.addThrottling=function(){this.parameters.set(yw.X_MS_LIB_CAPABILITY,"retry-after, h429")},t.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(e,n){t.push(n+"="+e)}),t.join("&")},t}(),DH=function(t,e,n,r,i){this.account=t||null,this.idToken=e||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=i||null},NH=(()=>(function(t){t.SW="sw",t.UHW="uhw"}(NH||(NH={})),NH))(),LH=function(){function t(t){this.cryptoUtils=t}return t.prototype.generateCnf=function(t){return cw(this,void 0,void 0,function(){var e;return uw(this,function(n){switch(n.label){case 0:return[4,this.generateKid(t)];case 1:return e=n.sent(),[2,this.cryptoUtils.base64Encode(JSON.stringify(e))]}})})},t.prototype.generateKid=function(t){return cw(this,void 0,void 0,function(){return uw(this,function(e){switch(e.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:e.sent(),xms_ksl:NH.SW}]}})})},t.prototype.signPopToken=function(t,e){var n;return cw(this,void 0,void 0,function(){var r;return uw(this,function(i){if(r=eH.extractTokenClaims(t,this.cryptoUtils),!(null===(n=null==r?void 0:r.cnf)||void 0===n?void 0:n.kid))throw $S.createTokenClaimsRequiredError();return[2,this.signPayload(t,r.cnf.kid,e)]})})},t.prototype.signPayload=function(t,e,n,r){return cw(this,void 0,void 0,function(){var i,o,s,a,l;return uw(this,function(c){switch(c.label){case 0:return i=n.resourceRequestMethod,s=n.shrClaims,a=(o=n.resourceRequestUri)?new AE(o):void 0,l=null==a?void 0:a.getUrlComponents(),[4,this.cryptoUtils.signJwt(lw({at:t,ts:oH.nowSeconds(),m:null==i?void 0:i.toUpperCase(),u:null==l?void 0:l.HostNameAndPort,nonce:this.cryptoUtils.createNewGuid(),p:null==l?void 0:l.AbsolutePath,q:(null==l?void 0:l.QueryString)?[[],l.QueryString]:void 0,client_claims:s||void 0},r),e)];case 1:return[2,c.sent()]}})})},t}(),FH=function(){function t(t,e){this.cache=t,this.hasChanged=e}return Object.defineProperty(t.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),t}(),UH=function(){function t(t,e,n,r,i,o){this.clientId=t,this.cacheStorage=e,this.cryptoObj=n,this.logger=r,this.serializableCache=i,this.persistencePlugin=o}return t.prototype.validateServerAuthorizationCodeResponse=function(t,e,n){if(!t.state||!e)throw $S.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw $S.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw WU.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new WU(t.error||dw.EMPTY_STRING,t.error_description,t.suberror):new zU(t.error||dw.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&YU(t.client_info,n)},t.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(WU.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new WU(t.error,t.error_description,t.suberror);throw new zU(t.error,t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id,t.suberror)}},t.prototype.handleServerTokenResponse=function(e,n,r,i,o,s,a){return cw(this,void 0,void 0,function(){var l,c,u,h,d;return uw(this,function(p){switch(p.label){case 0:if(e.id_token&&(l=new eH(e.id_token||dw.EMPTY_STRING,this.cryptoObj),o&&!xE.isEmpty(o.nonce)&&l.claims.nonce!==o.nonce))throw $S.createNonceMismatchError();this.homeAccountIdentifier=ZU.generateHomeAccountId(e.client_info||dw.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,l),!!o&&!!o.state&&(c=dH.parseRequestState(this.cryptoObj,o.state)),u=this.generateCacheRecord(e,n,r,l,i.scopes,s,o),p.label=1;case 1:return p.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new FH(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:p.sent(),p.label=3;case 3:return a&&u.account&&(d=u.account.generateAccountKey(),!this.cacheStorage.getAccount(d))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,t.generateAuthenticationResult(this.cryptoObj,n,u,!1,i,l,c)]):[4,this.cacheStorage.saveCacheRecord(u)];case 4:return p.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&h?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(h)]):[3,7];case 6:p.sent(),p.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,n,u,!1,i,l,c)]}})})},t.prototype.generateCacheRecord=function(t,e,n,r,i,o,s){var a,l,c=e.getPreferredCache();if(xE.isEmpty(c))throw $S.createInvalidCacheEnvironmentError();!xE.isEmpty(t.id_token)&&r&&(a=iH.createIdTokenEntity(this.homeAccountIdentifier,c,t.id_token||dw.EMPTY_STRING,this.clientId,r.claims.tid||dw.EMPTY_STRING,o),l=this.generateAccountEntity(t,r,e,o,s));var u=null;if(!xE.isEmpty(t.access_token)){var h=t.scope?tH.fromString(t.scope):new tH(i||[]),d=("string"==typeof t.expires_in?parseInt(t.expires_in,10):t.expires_in)||0,p=("string"==typeof t.ext_expires_in?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,f=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,g=n+d,m=g+p,_=f&&f>0?n+f:void 0;u=sH.createAccessTokenEntity(this.homeAccountIdentifier,c,t.access_token||dw.EMPTY_STRING,this.clientId,r?r.claims.tid||dw.EMPTY_STRING:e.tenant,h.printScopes(),g,m,this.cryptoObj,_,t.token_type,o)}var y=null;xE.isEmpty(t.refresh_token)||(y=aH.createRefreshTokenEntity(this.homeAccountIdentifier,c,t.refresh_token||dw.EMPTY_STRING,this.clientId,t.foci,o));var b=null;return xE.isEmpty(t.foci)||(b=lH.createAppMetadataEntity(this.clientId,c,t.foci)),new DH(l,a,u,y,b)},t.prototype.generateAccountEntity=function(t,e,n,r,i){var o=i?i.cloud_graph_host_name:"",s=i?i.msgraph_host:"";if(n.authorityType===XU.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),ZU.createGenericAccount(this.homeAccountIdentifier,e,n,r,o,s);if(xE.isEmpty(t.client_info)&&"AAD"===n.protocolMode)throw $S.createClientInfoEmptyError();return t.client_info?ZU.createAccount(t.client_info,this.homeAccountIdentifier,e,n,r,o,s):ZU.createGenericAccount(this.homeAccountIdentifier,e,n,r,o,s)},t.generateAuthenticationResult=function(t,e,n,r,i,o,s){var a,l,c;return cw(this,void 0,void 0,function(){var u,h,d,p,f;return uw(this,function(g){switch(g.label){case 0:return u="",h=[],d=null,f=dw.EMPTY_STRING,n.accessToken?n.accessToken.tokenType!==Mw.POP?[3,2]:[4,new LH(t).signPopToken(n.accessToken.secret,i)]:[3,4];case 1:return u=g.sent(),[3,3];case 2:u=n.accessToken.secret,g.label=3;case 3:h=tH.fromString(n.accessToken.target).asArray(),d=new Date(1e3*Number(n.accessToken.expiresOn)),p=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),g.label=4;case 4:return n.appMetadata&&(f="1"===n.appMetadata.familyId?"1":dw.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:(null==o?void 0:o.claims.oid)||(null==o?void 0:o.claims.sub)||dw.EMPTY_STRING,tenantId:(null==o?void 0:o.claims.tid)||dw.EMPTY_STRING,scopes:h,account:n.account?n.account.getAccountInfo():null,idToken:o?o.rawToken:dw.EMPTY_STRING,idTokenClaims:o?o.claims:{},accessToken:u,fromCache:r,expiresOn:d,correlationId:i.correlationId,extExpiresOn:p,familyId:f,tokenType:(null===(a=n.accessToken)||void 0===a?void 0:a.tokenType)||dw.EMPTY_STRING,state:s?s.userRequestState:dw.EMPTY_STRING,cloudGraphHostName:(null===(l=n.account)||void 0===l?void 0:l.cloudGraphHostName)||dw.EMPTY_STRING,msGraphHost:(null===(c=n.account)||void 0===c?void 0:c.msGraphHost)||dw.EMPTY_STRING}]}})})},t}(),HH=function(t){function e(e){return t.call(this,e)||this}return aw(e,t),e.prototype.getAuthCodeUrl=function(t){return cw(this,void 0,void 0,function(){var e;return uw(this,function(n){return e=this.createAuthCodeUrlQueryString(t),[2,AE.appendQueryString(this.authority.authorizationEndpoint,e)]})})},e.prototype.acquireToken=function(t,e){return cw(this,void 0,void 0,function(){var n,r,i;return uw(this,function(o){switch(o.label){case 0:if(this.logger.info("in acquireToken call"),!t||xE.isEmpty(t.code))throw $S.createTokenRequestCannotBeMadeError();return n=oH.nowSeconds(),[4,this.executeTokenRequest(this.authority,t)];case 1:return r=o.sent(),(i=new UH(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[4,i.handleServerTokenResponse(r.body,this.authority,n,t,e)];case 2:return[2,o.sent()]}})})},e.prototype.handleFragmentResponse=function(t,e){var n=new UH(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new AE(t),i=AE.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(i,e,this.cryptoUtils),!i.code)throw $S.createNoAuthCodeInServerResponseError();return lw(lw({},i),{code:i.code})},e.prototype.getLogoutUri=function(t){if(!t)throw TE.createEmptyLogoutRequestError();var e=this.createLogoutUrlQueryString(t);return AE.appendQueryString(this.authority.endSessionEndpoint,e)},e.prototype.executeTokenRequest=function(t,e){return cw(this,void 0,void 0,function(){var n,r,i,o,s,a,l;return uw(this,function(c){switch(c.label){case 0:return n={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims},[4,this.createTokenRequestBody(e)];case 1:if(r=c.sent(),i=this.createTokenQueryParameters(e),o=void 0,e.clientInfo)try{s=YU(e.clientInfo,this.cryptoUtils),o={credential:""+s.uid+Ow.CLIENT_INFO_SEPARATOR+s.utid,type:pH.HOME_ACCOUNT_ID}}catch(u){this.logger.verbose("Could not parse client info for CCS Header: "+u)}return a=this.createTokenRequestHeaders(o||e.ccsCredential),l=xE.isEmpty(i)?t.tokenEndpoint:t.tokenEndpoint+"?"+i,[2,this.executePostToTokenEndpoint(l,r,a,n)]}})})},e.prototype.createTokenQueryParameters=function(t){var e=new MH;return t.tokenQueryParameters&&e.addExtraQueryParameters(t.tokenQueryParameters),e.createQueryString()},e.prototype.createTokenRequestBody=function(t){return cw(this,void 0,void 0,function(){var e,n,r,i,o,s;return uw(this,function(a){switch(a.label){case 0:return(e=new MH).addClientId(this.config.authOptions.clientId),e.addRedirectUri(t.redirectUri),e.addScopes(t.scopes),e.addAuthorizationCode(t.code),e.addLibraryInfo(this.config.libraryInfo),e.addThrottling(),this.serverTelemetryManager&&e.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&e.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&e.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(e.addClientAssertion((n=this.config.clientCredentials.clientAssertion).assertion),e.addClientAssertionType(n.assertionType)),e.addGrantType(Ew.AUTHORIZATION_CODE_GRANT),e.addClientInfo(),t.authenticationScheme!==Mw.POP?[3,2]:[4,new LH(this.cryptoUtils).generateCnf(t)];case 1:r=a.sent(),e.addPopToken(r),a.label=2;case 2:if(i=t.correlationId||this.config.cryptoInterface.createNewGuid(),e.addCorrelationId(i),(!xE.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&e.addClaims(t.claims,this.config.authOptions.clientCapabilities),o=void 0,t.clientInfo)try{s=YU(t.clientInfo,this.cryptoUtils),o={credential:""+s.uid+Ow.CLIENT_INFO_SEPARATOR+s.utid,type:pH.HOME_ACCOUNT_ID}}catch(l){this.logger.verbose("Could not parse client info for CCS Header: "+l)}else o=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&o)switch(o.type){case pH.HOME_ACCOUNT_ID:try{s=QU(o.credential),e.addCcsOid(s)}catch(l){this.logger.verbose("Could not parse home account ID for CCS Header: "+l)}break;case pH.UPN:e.addCcsUpn(o.credential)}return[2,e.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var e=new MH;e.addClientId(this.config.authOptions.clientId);var n=hw(t.scopes||[],t.extraScopesToConsent||[]);e.addScopes(n),e.addRedirectUri(t.redirectUri);var r=t.correlationId||this.config.cryptoInterface.createNewGuid();if(e.addCorrelationId(r),e.addResponseMode(t.responseMode),e.addResponseTypeCode(),e.addLibraryInfo(this.config.libraryInfo),e.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&e.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&e.addPrompt(t.prompt),t.domainHint&&e.addDomainHint(t.domainHint),t.prompt!==vw.SELECT_ACCOUNT)if(t.sid&&t.prompt===vw.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),e.addSid(t.sid);else if(t.account){var i=this.extractAccountSid(t.account);if(i&&t.prompt===vw.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),e.addSid(i);try{var o=QU(t.account.homeAccountId);e.addCcsOid(o)}catch(s){this.logger.verbose("Could not parse home account ID for CCS Header: "+s)}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),e.addLoginHint(t.loginHint),e.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),e.addLoginHint(t.account.username);try{o=QU(t.account.homeAccountId),e.addCcsOid(o)}catch(s){this.logger.verbose("Could not parse home account ID for CCS Header: "+s)}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),e.addLoginHint(t.loginHint),e.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&e.addNonce(t.nonce),t.state&&e.addState(t.state),(!xE.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&e.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&e.addExtraQueryParameters(t.extraQueryParameters),e.createQueryString()},e.prototype.createLogoutUrlQueryString=function(t){var e=new MH;return t.postLogoutRedirectUri&&e.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&e.addCorrelationId(t.correlationId),t.idTokenHint&&e.addIdTokenHint(t.idTokenHint),t.state&&e.addState(t.state),t.extraQueryParameters&&e.addExtraQueryParameters(t.extraQueryParameters),e.createQueryString()},e.prototype.extractAccountSid=function(t){return t.idTokenClaims&&t.idTokenClaims.sid||null},e}(IH);function VH(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("end_session_endpoint")&&t.hasOwnProperty("issuer")}var BH=function(){function t(t){this.networkInterface=t}return t.prototype.detectRegion=function(t,e){return cw(this,void 0,void 0,function(){var n,r,i,o;return uw(this,function(s){switch(s.label){case 0:if(n=t)return[3,8];s.label=1;case 1:return s.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(dw.IMDS_VERSION)];case 2:return(r=s.sent()).status===Nw.httpSuccess&&(n=r.body,e.region_source=Lw.IMDS),r.status!==Nw.httpBadRequest?[3,5]:[4,this.getCurrentVersion()];case 3:return(i=s.sent())?[4,this.getRegionFromIMDS(i)]:(e.region_source=Lw.FAILED_AUTO_DETECTION,[2,null]);case 4:(o=s.sent()).status===Nw.httpSuccess&&(n=o.body,e.region_source=Lw.IMDS),s.label=5;case 5:return[3,7];case 6:return s.sent(),e.region_source=Lw.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Lw.ENVIRONMENT_VARIABLE,s.label=9;case 9:return n||(e.region_source=Lw.FAILED_AUTO_DETECTION),[2,n||null]}})})},t.prototype.getRegionFromIMDS=function(e){return cw(this,void 0,void 0,function(){return uw(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(dw.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t.IMDS_OPTIONS,dw.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(){return cw(this,void 0,void 0,function(){var e;return uw(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(dw.IMDS_ENDPOINT+"?format=json",t.IMDS_OPTIONS)];case 1:return(e=n.sent()).status===Nw.httpBadRequest&&e.body&&e.body["newest-versions"]&&e.body["newest-versions"].length>0?[2,e.body["newest-versions"][0]]:[2,null];case 2:return n.sent(),[2,null];case 3:return[2]}})})},t.IMDS_OPTIONS={headers:{Metadata:"true"}},t}(),jH=function(){function t(t,e,n,r){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=e,this.cacheManager=n,this.authorityOptions=r,this.regionDiscovery=new BH(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0}}return Object.defineProperty(t.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===dw.ADFS?XU.Adfs:XU.Default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new AE(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(t)}throw $S.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(t)}throw $S.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(t)}throw $S.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw $S.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.issuer);return this.replaceTenant(t)}throw $S.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),t.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},t.prototype.replacePath=function(t){var e=t,n=new AE(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(t,r){var i=n[r];t!==i&&(e=e.replace("/"+i+"/","/"+t+"/"))}),e},Object.defineProperty(t.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===XU.Adfs||this.protocolMode===yH.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),t.prototype.discoveryComplete=function(){return!!this.metadata},t.prototype.resolveEndpointsAsync=function(){return cw(this,void 0,void 0,function(){var t,e,n,r;return uw(this,function(i){switch(i.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new uH).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(t)];case 1:return e=i.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network),[4,this.updateEndpointMetadata(t)];case 2:return n=i.sent(),e!==Iw.CACHE&&n!==Iw.CACHE&&(t.resetExpiresAt(),t.updateCanonicalAuthority(this.canonicalAuthority)),r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache),this.cacheManager.setAuthorityMetadata(r,t),this.metadata=t,[2]}})})},t.prototype.updateEndpointMetadata=function(e){var n;return cw(this,void 0,void 0,function(){var r,i,o;return uw(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(r,!1),[2,Iw.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Iw.CACHE]:[4,this.getEndpointMetadataFromNetwork()];case 1:return(r=s.sent())?(null===(n=this.authorityOptions.azureRegionConfiguration)||void 0===n?void 0:n.azureRegion)?[4,this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration.environmentRegion,this.regionDiscoveryMetadata)]:[3,3]:[3,4];case 2:i=s.sent(),o=this.authorityOptions.azureRegionConfiguration.azureRegion===dw.AZURE_REGION_AUTO_DISCOVER_FLAG?i:this.authorityOptions.azureRegionConfiguration.azureRegion,this.regionDiscoveryMetadata.region_outcome=this.authorityOptions.azureRegionConfiguration.azureRegion===dw.AZURE_REGION_AUTO_DISCOVER_FLAG?i?Fw.AUTO_DETECTION_REQUESTED_SUCCESSFUL:Fw.AUTO_DETECTION_REQUESTED_FAILED:i?this.authorityOptions.azureRegionConfiguration.azureRegion===i?Fw.CONFIGURED_MATCHES_DETECTED:Fw.CONFIGURED_NOT_DETECTED:Fw.CONFIGURED_NO_AUTO_DETECTION,o&&(this.regionDiscoveryMetadata.region_used=o,r=t.replaceWithRegionalInformation(r,o)),s.label=3;case 3:return e.updateEndpointMetadata(r,!0),[2,Iw.NETWORK];case 4:throw $S.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(t){return new AE(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},t.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(t){throw TE.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return cw(this,void 0,void 0,function(){var t;return uw(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint)];case 1:return[2,VH((t=e.sent()).body)?t.body:null];case 2:return e.sent(),[2,null];case 3:return[2]}})})},t.prototype.updateCloudDiscoveryMetadata=function(t){return cw(this,void 0,void 0,function(){var e;return uw(this,function(n){switch(n.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,Iw.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,Iw.CACHE]:[4,this.getCloudDiscoveryMetadataFromNetwork()];case 1:if(e=n.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,Iw.NETWORK];throw TE.createUntrustedAuthorityError()}})})},t.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=t.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(n)return n}catch(r){throw TE.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return cw(this,void 0,void 0,function(){var e,n,r,i;return uw(this,function(o){switch(o.label){case 0:e=""+dw.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n=null,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e)];case 2:return r=o.sent(),0===(i=function(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}(r.body)?r.body.metadata:[]).length?[2,null]:(n=t.getCloudDiscoveryMetadataFromNetworkResponse(i,this.hostnameAndPort),[3,4]);case 3:return o.sent(),[2,null];case 4:return n||(n=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,n]}})})},t.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(e){return AE.getDomainFromUrl(e).toLowerCase()===t.hostnameAndPort}).length>0},t.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},t.getCloudDiscoveryMetadataFromNetworkResponse=function(t,e){for(var n=0;n-1)return r}return null},t.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw $S.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},t.isPublicCloudAuthority=function(t){return dw.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},t.buildRegionalAuthorityString=function(t,e,n){var r=new AE(t);r.validateAsUri();var i=r.getUrlComponents(),o=e+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(o=e+"."+dw.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=AE.constructAuthorityUriFromObject(lw(lw({},r.getUrlComponents()),{HostNameAndPort:o})).urlString;return n?s+"?"+n:s},t.replaceWithRegionalInformation=function(e,n){return e.authorization_endpoint=t.buildRegionalAuthorityString(e.authorization_endpoint,n),e.token_endpoint=t.buildRegionalAuthorityString(e.token_endpoint,n,"allowestsrnonmsi=true"),e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,n),e},t}(),zH=function(){function t(){}return t.createDiscoveredInstance=function(e,n,r,i){return cw(this,void 0,void 0,function(){var o,s;return uw(this,function(a){switch(a.label){case 0:o=t.createInstance(e,n,r,i),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,o.resolveEndpointsAsync()];case 2:return a.sent(),[2,o];case 3:throw s=a.sent(),$S.createEndpointDiscoveryIncompleteError(s);case 4:return[2]}})})},t.createInstance=function(t,e,n,r){if(xE.isEmpty(t))throw TE.createUrlEmptyError();return new jH(t,e,n,r)},t}(),qH=function(){function t(t,e){this.cacheOutcome=Uw.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||dw.EMPTY_STRING,this.wrapperVer=t.wrapperVer||dw.EMPTY_STRING,this.telemetryCacheKey=Pw.CACHE_KEY+Ow.CACHE_KEY_SEPARATOR+t.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+Pw.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(Pw.VALUE_SEPARATOR),n=[t,this.getRegionDiscoveryFields()].join(Pw.VALUE_SEPARATOR);return[Pw.SCHEMA_VERSION,n,e].join(Pw.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),n=t.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*n).join(Pw.VALUE_SEPARATOR),i=e.errors.slice(0,n).join(Pw.VALUE_SEPARATOR),o=e.errors.length,s=[o,n=Pw.MAX_CACHED_ERRORS&&(e.failedRequests.shift(),e.failedRequests.shift(),e.errors.shift()),e.failedRequests.push(this.apiId,this.correlationId),xE.isEmpty(t.subError)?xE.isEmpty(t.errorCode)?t&&t.toString()?e.errors.push(t.toString()):e.errors.push(Pw.UNKNOWN_ERROR):e.errors.push(t.errorCode):e.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)},t.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},t.prototype.getLastRequests=function(){var t=new cH;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||t},t.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),n=t.maxErrorsToSend(e);if(n===e.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new cH;r.failedRequests=e.failedRequests.slice(2*n),r.errors=e.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},t.maxErrorsToSend=function(t){var e,n=0,r=0,i=t.errors.length;for(e=0;eu)&&(r.verbose("Default popup window width used. Window width not configured or invalid."),d=483),(!p||p<0||p>h)&&(r.verbose("Default popup window height used. Window height not configured or invalid."),p=600),(!f||f<0||f>h)&&(r.verbose("Default popup window top position used. Window top not configured or invalid."),f=Math.max(0,h/2-300+c)),(!g||g<0||g>u)&&(r.verbose("Default popup window left position used. Window left not configured or invalid."),g=Math.max(0,u/2-241.5+l)),window.open(t,e,"width="+d+", height="+p+", top="+f+", left="+g+", scrollbars=yes")},t.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(qw.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},t.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.monitorPopupForSameOrigin=function(t){var e=this;return new Promise(function(n,r){var i=setInterval(function(){if(t.closed)return e.cleanPopup(),clearInterval(i),void r($k.createUserCancelledError());var o=dw.EMPTY_STRING;try{o=t.location.href}catch(s){}xE.isEmpty(o)||"about:blank"===o||(clearInterval(i),n())},50)})},t.generatePopupName=function(t,e){return"msal."+t+"."+e.scopes.join("-")+"."+e.authority+"."+e.correlationId},t.generateLogoutPopupName=function(t,e){return"msal."+t+"."+(e.account&&e.account.homeAccountId)+"."+e.correlationId},t}(),GH=function(){function t(t,e,n,r){this.authModule=t,this.browserStorage=e,this.authCodeRequest=n,this.browserRequestLogger=r}return t.prototype.handleCodeResponse=function(t,e,n,r){return tC(this,void 0,void 0,function(){var i,o,s,a,l,c,u;return eC(this,function(h){switch(h.label){case 0:if(this.browserRequestLogger.verbose("InteractionHandler.handleCodeResponse called"),xE.isEmpty(t))throw $k.createEmptyHashError(t);if(i=this.browserStorage.generateStateKey(e),!(o=this.browserStorage.getTemporaryCache(i)))throw $S.createStateNotFoundError("Cached State");return s=this.authModule.handleFragmentResponse(t,o),a=this.browserStorage.generateNonceKey(o),l=this.browserStorage.getTemporaryCache(a),this.authCodeRequest.code=s.code,s.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(s.cloud_instance_host_name,n,r)]:[3,2];case 1:h.sent(),h.label=2;case 2:return s.nonce=l||void 0,s.state=o,s.client_info?this.authCodeRequest.clientInfo=s.client_info:(c=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=c),[4,this.authModule.acquireToken(this.authCodeRequest,s)];case 3:return u=h.sent(),this.browserStorage.cleanRequestByState(e),[2,u]}})})},t.prototype.updateTokenEndpointAuthority=function(t,e,n){return tC(this,void 0,void 0,function(){var r;return eC(this,function(i){switch(i.label){case 0:return[4,zH.createDiscoveredInstance("https://"+t+"/"+e.tenant+"/",n,this.browserStorage,e.options)];case 1:return r=i.sent(),this.authModule.updateAuthority(r),[2]}})})},t.prototype.checkCcsCredentials=function(){var t=this.browserStorage.getTemporaryCache(Bw.CCS_CREDENTIAL,!0);if(t)try{return JSON.parse(t)}catch(e){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+t)}return null},t}(),WH=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.popupUtils=new $H(n,i),o}return Zw(e,t),e.prototype.initiateAuthRequest=function(t,e){if(xE.isEmpty(t))throw this.browserRequestLogger.error("Navigate url is empty"),$k.createEmptyNavigationUriError();return this.browserStorage.setInteractionInProgress(!0),this.browserRequestLogger.infoPii("Navigate to: "+t),this.popupUtils.openPopup(t,e)},e.prototype.monitorPopupForHash=function(t){var e=this;return this.popupUtils.monitorPopupForSameOrigin(t).then(function(){var n=t.location.hash;if(Yk.clearHash(t),e.popupUtils.cleanPopup(t),!n)throw $k.createEmptyHashError(t.location.href);if(AE.hashContainsKnownProperties(n))return n;throw $k.createHashDoesNotContainKnownPropertiesError()})},e}(GH),YH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zw(e,t),e.prototype.acquireToken=function(t){try{var e=this.preflightInteractiveRequest(t,qw.Popup),n=$H.generatePopupName(this.config.auth.clientId,e),r=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,n,r);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=$H.openSizedPopup("about:blank",n,r,this.logger);return this.acquireTokenPopupAsync(e,n,r,i)}catch(o){return Promise.reject(o)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var e=this.initializeLogoutRequest(t),n=$H.generateLogoutPopupName(this.config.auth.clientId,e),r=t&&t.authority,i=t&&t.mainWindowRedirectUri,o=(null==t?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(e,n,o,r,void 0,i);this.logger.verbose("asyncPopup set to false, opening popup");var s=$H.openSizedPopup("about:blank",n,o,this.logger);return this.logoutPopupAsync(e,n,o,r,s,i)}catch(a){return Promise.reject(a)}},e.prototype.acquireTokenPopupAsync=function(t,e,n,r){return tC(this,void 0,void 0,function(){var i,o,s,a,l,c,u,h,d;return eC(this,function(p){switch(p.label){case 0:this.logger.verbose("acquireTokenPopupAsync called"),i=this.initializeServerTelemetryManager(zw.acquireTokenPopup),p.label=1;case 1:return p.trys.push([1,7,,8]),[4,this.initializeAuthorizationCodeRequest(t)];case 2:return o=p.sent(),[4,this.createAuthCodeClient(i,t.authority)];case 3:return s=p.sent(),this.logger.verbose("Auth code client created"),[4,s.getAuthCodeUrl(t)];case 4:return a=p.sent(),l=new WH(s,this.browserStorage,o,this.logger),c=l.initiateAuthRequest(a,{popup:r,popupName:e,popupWindowAttributes:n}),this.eventHandler.emitEvent(Yw.POPUP_OPENED,qw.Popup,{popupWindow:c},null),[4,l.monitorPopupForHash(c)];case 5:return u=p.sent(),h=this.validateAndExtractStateFromHash(u,qw.Popup,t.correlationId),AH.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,l.handleCodeResponse(u,h,s.authority,this.networkClient)];case 6:return[2,p.sent()];case 7:throw d=p.sent(),r&&r.close(),d instanceof sC&&d.setCorrelationId(this.correlationId),i.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(t.state),d;case 8:return[2]}})})},e.prototype.logoutPopupAsync=function(t,e,n,r,i,o){return tC(this,void 0,void 0,function(){var s,a,l,c,u,h,d,p,f;return eC(this,function(g){switch(g.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Yw.LOGOUT_START,qw.Popup,t),s=this.initializeServerTelemetryManager(zw.logoutPopup),g.label=1;case 1:return g.trys.push([1,8,,9]),[4,this.clearCacheOnLogout(t.account)];case 2:return g.sent(),this.browserStorage.setInteractionInProgress(!0),[4,this.createAuthCodeClient(s,r)];case 3:a=g.sent(),this.logger.verbose("Auth code client created"),l=a.getLogoutUri(t),this.eventHandler.emitEvent(Yw.LOGOUT_SUCCESS,qw.Popup,t),c=new $H(this.browserStorage,this.logger),u=c.openPopup(l,{popupName:e,popupWindowAttributes:n,popup:i}),this.eventHandler.emitEvent(Yw.POPUP_OPENED,qw.Popup,{popupWindow:u},null),g.label=4;case 4:return g.trys.push([4,6,,7]),[4,c.monitorPopupForSameOrigin(u)];case 5:return g.sent(),this.logger.verbose("Popup successfully redirected to postLogoutRedirectUri"),[3,7];case 6:return h=g.sent(),this.logger.verbose("Error occurred while monitoring popup for same origin. Session on server may remain active. Error: "+h),[3,7];case 7:return c.cleanPopup(u),o?(d={apiId:zw.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=AE.getAbsoluteUrl(o,Yk.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecing main window to: "+p),this.navigationClient.navigateInternal(p,d)):this.logger.verbose("No main window navigation requested"),[3,9];case 8:throw f=g.sent(),i&&i.close(),f instanceof sC&&f.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Yw.LOGOUT_FAILURE,qw.Popup,null,f),this.eventHandler.emitEvent(Yw.LOGOUT_END,qw.Popup),s.cacheFailedRequest(f),f;case 9:return this.eventHandler.emitEvent(Yw.LOGOUT_END,qw.Popup),[2]}})})},e}(KH),QH=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n,r,i)||this;return s.browserCrypto=o,s}return Zw(e,t),e.prototype.initiateAuthRequest=function(t,e){return tC(this,void 0,void 0,function(){var n;return eC(this,function(r){switch(r.label){case 0:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest called"),xE.isEmpty(t)?[3,7]:(e.redirectStartPage&&(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Bw.ORIGIN_URI,e.redirectStartPage,!0)),this.browserStorage.setInteractionInProgress(!0),this.browserStorage.setTemporaryCache(Bw.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.browserRequestLogger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),n={apiId:zw.acquireTokenRedirect,timeout:e.redirectTimeout,noHistory:!1},"function"!=typeof e.onRedirectNavigate?[3,4]:(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===e.onRedirectNavigate(t)?[3,2]:(this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,e.navigationClient.navigateExternal(t,n)])));case 1:return r.sent(),[2];case 2:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.browserRequestLogger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,e.navigationClient.navigateExternal(t,n)];case 5:return r.sent(),[2];case 6:return[3,8];case 7:throw this.browserRequestLogger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),$k.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponse=function(t,e,n,r,i){return tC(this,void 0,void 0,function(){var o,s,a,l,c,u,h;return eC(this,function(d){switch(d.label){case 0:if(this.browserRequestLogger.verbose("RedirectHandler.handleCodeResponse called"),xE.isEmpty(t))throw $k.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(e),!(s=this.browserStorage.getTemporaryCache(o)))throw $S.createStateNotFoundError("Cached State");return a=this.authModule.handleFragmentResponse(t,s),l=this.browserStorage.generateNonceKey(s),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:d.sent(),d.label=2;case 2:return a.nonce=c||void 0,a.state=s,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(u=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=u),i&&AH.removeThrottle(this.browserStorage,i,this.authCodeRequest),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return h=d.sent(),this.browserStorage.cleanRequestByState(e),[2,h]}})})},e}(GH),XH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zw(e,t),e.prototype.acquireToken=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i,o,s,a,l;return eC(this,function(c){switch(c.label){case 0:e=this.preflightInteractiveRequest(t,qw.Redirect),n=this.initializeServerTelemetryManager(zw.acquireTokenRedirect),c.label=1;case 1:return c.trys.push([1,6,,7]),[4,this.initializeAuthorizationCodeRequest(e)];case 2:return r=c.sent(),[4,this.createAuthCodeClient(n,e.authority)];case 3:return i=c.sent(),this.logger.verbose("Auth code client created"),o=new QH(i,this.browserStorage,r,this.logger,this.browserCrypto),[4,i.getAuthCodeUrl(e)];case 4:return s=c.sent(),a=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+a),[4,o.initiateAuthRequest(s,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:a,onRedirectNavigate:t.onRedirectNavigate})];case 5:return[2,c.sent()];case 6:throw(l=c.sent())instanceof sC&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(e.state),l;case 7:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i,o,s,a,l,c,u,h;return eC(this,function(d){switch(d.label){case 0:e=this.initializeServerTelemetryManager(zw.handleRedirectPromise),d.label=1;case 1:if(d.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(n=this.getRedirectResponseHash(t||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(qw.Redirect),[2,null];r=void 0;try{r=this.validateAndExtractStateFromHash(n,qw.Redirect),Yk.clearHash(window),this.logger.verbose("State extracted from hash")}catch(p){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+p),this.browserStorage.cleanRequestByInteractionType(qw.Redirect),[2,null]}return i=this.browserStorage.getTemporaryCache(Bw.ORIGIN_URI,!0)||"",o=AE.removeHashFromUrl(i),s=AE.removeHashFromUrl(window.location.href),o===s&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,e)]):[3,3];case 2:return a=d.sent(),i.indexOf("#")>-1&&Yk.replaceHash(i),[2,a];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,e)]);case 4:return Yk.isInIframe()?[3,9]:(this.browserStorage.setTemporaryCache(Bw.URL_HASH,n,!0),l={apiId:zw.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},c=!0,i&&"null"!==i?[3,6]:(u=Yk.getHomepage(),this.browserStorage.setTemporaryCache(Bw.ORIGIN_URI,u,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(u,l)]));case 5:return c=d.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+i),[4,this.navigationClient.navigateInternal(i,l)];case 7:c=d.sent(),d.label=8;case 8:if(!c)return[2,this.handleHash(n,r,e)];d.label=9;case 9:return[2,null];case 10:throw(h=d.sent())instanceof sC&&h.setCorrelationId(this.correlationId),e.cacheFailedRequest(h),this.browserStorage.cleanRequestByInteractionType(qw.Redirect),h;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var e=AE.hashContainsKnownProperties(t),n=this.browserStorage.getTemporaryCache(Bw.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Bw.URL_HASH)),e?(this.logger.verbose("Hash contains known properties, returning response hash"),t):(this.logger.verbose("Hash does not contain known properties, returning cached hash"),n)},e.prototype.handleHash=function(t,e,n){return tC(this,void 0,void 0,function(){var r,i,o;return eC(this,function(s){switch(s.label){case 0:if(r=this.browserStorage.getCachedRequest(e,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),!(i=this.browserStorage.getCachedAuthority(e)))throw $k.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(n,i)];case 1:return o=s.sent(),this.logger.verbose("Auth code client created"),[4,new QH(o,this.browserStorage,r,this.logger,this.browserCrypto).handleCodeResponse(t,e,o.authority,this.networkClient,this.config.auth.clientId)];case 2:return[2,s.sent()]}})})},e.prototype.logout=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i,o,s;return eC(this,function(a){switch(a.label){case 0:this.logger.verbose("logoutRedirect called"),e=this.initializeLogoutRequest(t),n=this.initializeServerTelemetryManager(zw.logout),a.label=1;case 1:return a.trys.push([1,10,,11]),this.eventHandler.emitEvent(Yw.LOGOUT_START,qw.Redirect,t),[4,this.clearCacheOnLogout(e.account)];case 2:return a.sent(),r={apiId:zw.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(n,t&&t.authority)];case 3:return i=a.sent(),this.logger.verbose("Auth code client created"),o=i.getLogoutUri(e),this.eventHandler.emitEvent(Yw.LOGOUT_SUCCESS,qw.Redirect,e),t&&"function"==typeof t.onRedirectNavigate?!1===t.onRedirectNavigate(o)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),[4,this.navigationClient.navigateExternal(o,r)]):[3,7];case 4:return a.sent(),[2];case 5:this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),a.label=6;case 6:return[3,9];case 7:return[4,this.navigationClient.navigateExternal(o,r)];case 8:return a.sent(),[2];case 9:return[3,11];case 10:throw(s=a.sent())instanceof sC&&s.setCorrelationId(this.correlationId),n.cacheFailedRequest(s),this.eventHandler.emitEvent(Yw.LOGOUT_FAILURE,qw.Redirect,null,s),this.eventHandler.emitEvent(Yw.LOGOUT_END,qw.Redirect),s;case 11:return this.eventHandler.emitEvent(Yw.LOGOUT_END,qw.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var e=t||window.location.href;return AE.getAbsoluteUrl(e,Yk.getCurrentUri())},e}(KH),ZH=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n,r,i)||this;return s.navigateFrameWait=o,s}return Zw(e,t),e.prototype.initiateAuthRequest=function(t){return tC(this,void 0,void 0,function(){var e;return eC(this,function(n){switch(n.label){case 0:if(xE.isEmpty(t))throw this.browserRequestLogger.info("Navigate url is empty"),$k.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(t)]:[3,2];case 1:return e=n.sent(),[3,3];case 2:e=this.loadFrameSync(t),n.label=3;case 3:return[2,e]}})})},e.prototype.monitorIframeForHash=function(t,e){var n=this;return new Promise(function(r,i){e<6e3&&n.browserRequestLogger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+e+"ms) than the default (6000ms). This may result in timeouts.");var o=window.performance.now()+e,s=setInterval(function(){if(window.performance.now()>o)return n.removeHiddenIframe(t),clearInterval(s),void i($k.createMonitorIframeTimeoutError());var e=dw.EMPTY_STRING,a=t.contentWindow;try{e=a?a.location.href:dw.EMPTY_STRING}catch(c){}if(!xE.isEmpty(e)){var l=a?a.location.hash:dw.EMPTY_STRING;if(AE.hashContainsKnownProperties(l))return n.removeHiddenIframe(t),clearInterval(s),void r(l)}},50)})},e.prototype.loadFrame=function(t){var e=this;return new Promise(function(n,r){var i=e.createHiddenIframe();setTimeout(function(){i?(i.src=t,n(i)):r("Unable to load iframe")},e.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var e=this.createHiddenIframe();return e.src=t,e},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(GH),JH=function(t){function e(e,n,r,i,o,s,a,l){var c=t.call(this,e,n,r,i,o,s,l)||this;return c.apiId=a,c}return Zw(e,t),e.prototype.acquireToken=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i,o,s;return eC(this,function(a){switch(a.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),xE.isEmpty(t.loginHint)&&xE.isEmpty(t.sid)&&(!t.account||xE.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==vw.NONE)throw $k.createSilentPromptValueError(t.prompt);e=this.initializeAuthorizationRequest(Jw(Jw({},t),{prompt:vw.NONE}),qw.Silent),n=this.initializeServerTelemetryManager(this.apiId),a.label=1;case 1:return a.trys.push([1,6,,7]),[4,this.initializeAuthorizationCodeRequest(e)];case 2:return r=a.sent(),[4,this.createAuthCodeClient(n,e.authority)];case 3:return i=a.sent(),this.logger.verbose("Auth code client created"),[4,i.getAuthCodeUrl(e)];case 4:return o=a.sent(),[4,this.silentTokenHelper(o,r,i,this.logger)];case 5:return[2,a.sent()];case 6:throw(s=a.sent())instanceof sC&&s.setCorrelationId(this.correlationId),n.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(e.state),s;case 7:return[2]}})})},e.prototype.logout=function(){return Promise.reject($k.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,e,n,r){return tC(this,void 0,void 0,function(){var i,o,s,a;return eC(this,function(l){switch(l.label){case 0:return[4,(i=new ZH(n,this.browserStorage,e,r,this.config.system.navigateFrameWait)).initiateAuthRequest(t)];case 1:return o=l.sent(),[4,i.monitorIframeForHash(o,this.config.system.iframeHashTimeout)];case 2:return s=l.sent(),a=this.validateAndExtractStateFromHash(s,qw.Silent,e.correlationId),[2,i.handleCodeResponse(s,a,n.authority,this.networkClient)]}})})},e}(KH),tV=function(t){function e(e){return t.call(this,e)||this}return aw(e,t),e.prototype.acquireToken=function(t){return cw(this,void 0,void 0,function(){var e,n,r;return uw(this,function(i){switch(i.label){case 0:return e=oH.nowSeconds(),[4,this.executeTokenRequest(t,this.authority)];case 1:return n=i.sent(),(r=new UH(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(n.body),[2,r.handleServerTokenResponse(n.body,this.authority,e,t,void 0,void 0,!0)]}})})},e.prototype.acquireTokenByRefreshToken=function(t){return cw(this,void 0,void 0,function(){var e;return uw(this,function(n){if(!t)throw TE.createEmptyTokenRequestError();if(!t.account)throw $S.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(t.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(r){if(e=r instanceof zU&&"invalid_grant"===r.errorCode&&"client_mismatch"===r.subError,r instanceof WU&&r.errorCode===$U||e)return[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw r}return[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,e){return cw(this,void 0,void 0,function(){var n,r;return uw(this,function(i){if(!(n=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,t.account,e)))throw WU.createNoTokensFoundError();return r=lw(lw({},t),{refreshToken:n.secret,authenticationScheme:t.authenticationScheme||Mw.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:pH.HOME_ACCOUNT_ID}}),[2,this.acquireToken(r)]})})},e.prototype.executeTokenRequest=function(t,e){return cw(this,void 0,void 0,function(){var n,r,i,o,s;return uw(this,function(a){switch(a.label){case 0:return[4,this.createTokenRequestBody(t)];case 1:return n=a.sent(),r=this.createTokenQueryParameters(t),i=this.createTokenRequestHeaders(t.ccsCredential),o={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims},s=AE.appendQueryString(e.tokenEndpoint,r),[2,this.executePostToTokenEndpoint(s,n,i,o)]}})})},e.prototype.createTokenQueryParameters=function(t){var e=new MH;return t.tokenQueryParameters&&e.addExtraQueryParameters(t.tokenQueryParameters),e.createQueryString()},e.prototype.createTokenRequestBody=function(t){return cw(this,void 0,void 0,function(){var e,n,r,i,o,s,a;return uw(this,function(l){switch(l.label){case 0:return(e=new MH).addClientId(this.config.authOptions.clientId),e.addScopes(t.scopes),e.addGrantType(Ew.REFRESH_TOKEN_GRANT),e.addClientInfo(),e.addLibraryInfo(this.config.libraryInfo),e.addThrottling(),this.serverTelemetryManager&&e.addServerTelemetry(this.serverTelemetryManager),n=t.correlationId||this.config.cryptoInterface.createNewGuid(),e.addCorrelationId(n),e.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&e.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(e.addClientAssertion((r=this.config.clientCredentials.clientAssertion).assertion),e.addClientAssertionType(r.assertionType)),t.authenticationScheme!==Mw.POP?[3,2]:(i=new LH(this.cryptoUtils),s=(o=e).addPopToken,[4,i.generateCnf(t)]);case 1:s.apply(o,[l.sent()]),l.label=2;case 2:if((!xE.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&e.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case pH.HOME_ACCOUNT_ID:try{a=QU(t.ccsCredential.credential),e.addCcsOid(a)}catch(c){this.logger.verbose("Could not parse home account ID for CCS Header: "+c)}break;case pH.UPN:e.addCcsUpn(t.ccsCredential.credential)}return[2,e.createQueryString()]}})})},e}(IH),eV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zw(e,t),e.prototype.acquireToken=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i=this;return eC(this,function(o){switch(o.label){case 0:return e=Jw(Jw({},t),this.initializeBaseRequest(t)),n=this.initializeServerTelemetryManager(zw.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(n,e.authority)];case 1:return r=o.sent(),this.logger.verbose("Refresh token client created"),[2,r.acquireTokenByRefreshToken(e).catch(function(t){throw t instanceof sC&&t.setCorrelationId(i.correlationId),n.cacheFailedRequest(t),t})]}})})},e.prototype.logout=function(){return Promise.reject($k.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,e){return tC(this,void 0,void 0,function(){var n;return eC(this,function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(t,e)];case 1:return n=r.sent(),[2,new tV(n)]}})})},e}(KH),nV=function(){function t(t,e,n,r){this.isBrowserEnvironment="undefined"!=typeof window,this.config=t,this.storage=e,this.logger=n,this.cryptoObj=r}return t.prototype.loadExternalTokens=function(t,e,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!e.id_token)throw $k.createUnableToLoadTokenError("Please ensure server response includes id token.");if(t.account)this.loadIdToken(e.id_token,t.account.homeAccountId,t.account.environment,t.account.tenantId,n),this.loadAccessToken(t,e,t.account.homeAccountId,t.account.environment,t.account.tenantId,n);else{if(!t.authority)throw $k.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var r=new jH(t.authority,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata});if(n.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(e.id_token,n.clientInfo,r.hostnameAndPort,r.tenant,n),this.loadAccessToken(t,e,n.clientInfo,r.hostnameAndPort,r.tenant,n);else{if(!e.client_info)throw $k.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(e.id_token,e.client_info,r.hostnameAndPort,r.tenant,n),this.loadAccessToken(t,e,e.client_info,r.hostnameAndPort,r.tenant,n)}}},t.prototype.loadIdToken=function(t,e,n,r,i){var o=iH.createIdTokenEntity(e,n,t,this.config.auth.clientId,r),s=new eH(t,this.cryptoObj),a=i.clientInfo?ZU.createAccount(i.clientInfo,e,s,void 0,void 0,void 0,void 0,n):ZU.createGenericAccount(e,s,void 0,void 0,void 0,void 0,n);if(!this.isBrowserEnvironment)throw $k.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(a),this.storage.setIdTokenCredential(o)},t.prototype.loadAccessToken=function(t,e,n,r,i,o){if(e.access_token){if(!e.expires_in)throw $k.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!o.extendedExpiresOn)throw $k.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new tH(t.scopes).printScopes(),a=sH.createAccessTokenEntity(n,r,e.access_token,this.config.auth.clientId,i,s,e.expires_in,o.extendedExpiresOn,this.cryptoObj);if(!this.isBrowserEnvironment)throw $k.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(a)}else this.logger.verbose("TokenCache - No access token provided for caching")},t}(),rV=function(){function t(t){this.isBrowserEnvironment="undefined"!=typeof window,this.config=function(t,e){var n=t.auth,r=t.cache,i=t.system,o={clientId:"",authority:""+dw.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:"",postLogoutRedirectUri:"",navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:yH.AAD},s={cacheLocation:Hw.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},a={loggerCallback:function(){},logLevel:VU.Info,piiLoggingEnabled:!1},l=Jw(Jw({},bH),{loggerOptions:a,networkClient:e?Yk.getBrowserNetworkClient():kH,navigationClient:new OH,loadFrameTimeout:0,windowHashTimeout:i&&i.loadFrameTimeout||6e4,iframeHashTimeout:i&&i.loadFrameTimeout||6e3,navigateFrameWait:e&&Yk.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1});return{auth:Jw(Jw({},o),n),cache:Jw(Jw({},s),r),system:Jw(Jw({},l),i)}}(t,this.isBrowserEnvironment),this.logger=new BU(this.config.system.loggerOptions,"@azure/msal-browser",TH),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.browserCrypto=this.isBrowserEnvironment?new HU:jU,this.eventHandler=new xH(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new _H(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(t,e){return new _H(t,{cacheLocation:Hw.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},jU,e)}(this.config.auth.clientId,this.logger),this.tokenCache=new nV(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.handleRedirectPromise=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i,o,s=this;return eC(this,function(a){return this.logger.verbose("handleRedirectPromise called"),e=this.getAllAccounts(),this.isBrowserEnvironment?(void 0===(r=this.redirectResponse.get(n=t||dw.EMPTY_STRING))?(this.eventHandler.emitEvent(Yw.HANDLE_REDIRECT_START,qw.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getTemporaryCache(Bw.CORRELATION_ID,!0)||"",o=new XH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,i),r=o.handleRedirectPromise(t).then(function(t){return t&&(e.length0?Yw.ACQUIRE_TOKEN_FAILURE:Yw.LOGIN_FAILURE,qw.Redirect,null,t),s.eventHandler.emitEvent(Yw.HANDLE_REDIRECT_END,qw.Redirect),t}),this.redirectResponse.set(n,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},t.prototype.acquireTokenRedirect=function(t){return tC(this,void 0,void 0,function(){var e,n=this;return eC(this,function(r){return this.preflightBrowserEnvironmentCheck(qw.Redirect),this.logger.verbose("acquireTokenRedirect called"),e=this.getAllAccounts().length>0,this.eventHandler.emitEvent(e?Yw.ACQUIRE_TOKEN_START:Yw.LOGIN_START,qw.Redirect,t),[2,new XH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId).acquireToken(t).catch(function(t){throw n.eventHandler.emitEvent(e?Yw.ACQUIRE_TOKEN_FAILURE:Yw.LOGIN_FAILURE,qw.Redirect,null,t),t})]})})},t.prototype.acquireTokenPopup=function(t){var e=this;try{this.preflightBrowserEnvironmentCheck(qw.Popup),this.logger.verbose("acquireTokenPopup called",t.correlationId)}catch(r){return Promise.reject(r)}var n=this.getAllAccounts();return this.eventHandler.emitEvent(n.length>0?Yw.ACQUIRE_TOKEN_START:Yw.LOGIN_START,qw.Popup,t),new YH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId).acquireToken(t).then(function(t){var r=n.length0?Yw.ACQUIRE_TOKEN_FAILURE:Yw.LOGIN_FAILURE,qw.Popup,null,t),Promise.reject(t)})},t.prototype.ssoSilent=function(t){return tC(this,void 0,void 0,function(){var e,n;return eC(this,function(r){switch(r.label){case 0:this.preflightBrowserEnvironmentCheck(qw.Silent),this.logger.verbose("ssoSilent called",t.correlationId),this.eventHandler.emitEvent(Yw.SSO_SILENT_START,qw.Silent,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,new JH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,zw.ssoSilent,t.correlationId).acquireToken(t)];case 2:return e=r.sent(),this.eventHandler.emitEvent(Yw.SSO_SILENT_SUCCESS,qw.Silent,e),[2,e];case 3:throw n=r.sent(),this.eventHandler.emitEvent(Yw.SSO_SILENT_FAILURE,qw.Silent,null,n),n;case 4:return[2]}})})},t.prototype.acquireTokenByRefreshToken=function(t){return tC(this,void 0,void 0,function(){var e=this;return eC(this,function(n){return this.eventHandler.emitEvent(Yw.ACQUIRE_TOKEN_NETWORK_START,qw.Silent,t),Yk.blockReloadInHiddenIframes(),[2,new eV(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t.correlationId).acquireToken(t).catch(function(n){if(n instanceof zU&&"invalid_grant"===n.errorCode&&!(n instanceof WU))return e.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",t.correlationId),new JH(e.config,e.browserStorage,e.browserCrypto,e.logger,e.eventHandler,e.navigationClient,zw.acquireTokenSilent_authCode).acquireToken(t);throw n})]})})},t.prototype.logout=function(t){return tC(this,void 0,void 0,function(){return eC(this,function(e){return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead."),[2,this.logoutRedirect(t)]})})},t.prototype.logoutRedirect=function(t){return tC(this,void 0,void 0,function(){return eC(this,function(e){return this.preflightBrowserEnvironmentCheck(qw.Redirect),[2,new XH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,null==t?void 0:t.correlationId).logout(t)]})})},t.prototype.logoutPopup=function(t){try{return this.preflightBrowserEnvironmentCheck(qw.Popup),new YH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,null==t?void 0:t.correlationId).logout(t)}catch(e){return Promise.reject(e)}},t.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},t.prototype.getAccountByUsername=function(t){var e=this.getAllAccounts();return!xE.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+t),e.filter(function(e){return e.username.toLowerCase()===t.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(t){var e=this.getAllAccounts();return!xE.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+t),e.filter(function(e){return e.homeAccountId===t})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(t){var e=this.getAllAccounts();return!xE.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+t),e.filter(function(e){return e.localAccountId===t})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},t.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},t.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},t.prototype.preflightBrowserEnvironmentCheck=function(t){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),Yk.blockNonBrowserEnvironment(this.isBrowserEnvironment),Yk.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Yk.blockReloadInHiddenIframes(),Yk.blockAcquireTokenInPopups(),t===qw.Redirect&&this.config.cache.cacheLocation===Hw.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw bC.createInMemoryRedirectUnavailableError()},t.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},t.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},t.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},t.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},t.prototype.getTokenCache=function(){return this.tokenCache},t.prototype.getLogger=function(){return this.logger},t.prototype.setLogger=function(t){this.logger=t},t.prototype.initializeWrapperLibrary=function(t,e){this.browserStorage.setWrapperMetadata(t,e)},t.prototype.setNavigationClient=function(t){this.navigationClient=t},t}(),iV=function(t){function e(e){return t.call(this,e)||this}return aw(e,t),e.prototype.acquireToken=function(t){return cw(this,void 0,void 0,function(){var e;return uw(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,n.sent()];case 2:if((e=n.sent())instanceof $S&&e.errorCode===LS)return[2,new tV(this.config).acquireTokenByRefreshToken(t)];throw e;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var e,n,r,i;return cw(this,void 0,void 0,function(){var o,s,a;return uw(this,function(l){switch(l.label){case 0:if(!t)throw TE.createEmptyTokenRequestError();if(!t.account)throw $S.createNoAccountInSilentRequestError();if(o=new tH(t.scopes||[]),s=t.authority||this.authority.getPreferredCache(),a=this.cacheManager.readCacheRecord(t.account,this.config.authOptions.clientId,o,s,t.authenticationScheme||Mw.BEARER),t.forceRefresh)throw null===(e=this.serverTelemetryManager)||void 0===e||e.setCacheOutcome(Uw.FORCE_REFRESH),$S.createRefreshRequiredError();if(!a.accessToken)throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(Uw.NO_CACHED_ACCESS_TOKEN),$S.createRefreshRequiredError();if(oH.wasClockTurnedBack(a.accessToken.cachedAt)||oH.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(Uw.CACHED_ACCESS_TOKEN_EXPIRED),$S.createRefreshRequiredError();if(a.accessToken.refreshOn&&oH.isTokenExpired(a.accessToken.refreshOn,0))throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(Uw.REFRESH_CACHED_ACCESS_TOKEN),$S.createRefreshRequiredError();if(!xE.isEmptyObj(t.claims))throw $S.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(a,t)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,e){return cw(this,void 0,void 0,function(){var n;return uw(this,function(r){switch(r.label){case 0:return t.idToken&&(n=new eH(t.idToken.secret,this.config.cryptoInterface)),[4,UH.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,e,n)];case 1:return[2,r.sent()]}})})},e}(IH),oV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zw(e,t),e.prototype.acquireToken=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i;return eC(this,function(o){switch(o.label){case 0:return e=this.initializeServerTelemetryManager(zw.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(e,t.authority)];case 1:n=o.sent(),this.logger.verbose("Silent auth client created"),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,n.acquireCachedToken(t)];case 3:return r=o.sent(),this.eventHandler.emitEvent(Yw.ACQUIRE_TOKEN_SUCCESS,qw.Silent,r),[2,r];case 4:throw(i=o.sent())instanceof $k&&i.errorCode===qk&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject($k.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,e){return tC(this,void 0,void 0,function(){var n;return eC(this,function(r){switch(r.label){case 0:return[4,this.getClientConfiguration(t,e)];case 1:return n=r.sent(),[2,new iV(n)]}})})},e.prototype.initializeSilentRequest=function(t,e){return Jw(Jw(Jw({},t),this.initializeBaseRequest(t)),{account:e,forceRefresh:t.forceRefresh||!1})},e}(KH),sV=function(t){function e(e){var n=t.call(this,e)||this;return n.activeSilentTokenRequests=new Map,n}return Zw(e,t),e.prototype.loginRedirect=function(t){return tC(this,void 0,void 0,function(){return eC(this,function(e){return this.logger.verbose("loginRedirect called"),[2,this.acquireTokenRedirect(t||$w)]})})},e.prototype.loginPopup=function(t){return this.logger.verbose("loginPopup called"),this.acquireTokenPopup(t||$w)},e.prototype.acquireTokenSilent=function(t){return tC(this,void 0,void 0,function(){var e,n,r,i,o=this;return eC(this,function(s){if(this.preflightBrowserEnvironmentCheck(qw.Silent),this.logger.verbose("acquireTokenSilent called",t.correlationId),!(e=t.account||this.getActiveAccount()))throw $k.createNoAccountError();return n=JSON.stringify({clientId:this.config.auth.clientId,authority:t.authority||"",scopes:t.scopes,homeAccountIdentifier:e.homeAccountId,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims}),void 0===(r=this.activeSilentTokenRequests.get(n))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t.correlationId),i=this.acquireTokenSilentAsync(t,e).then(function(t){return o.activeSilentTokenRequests.delete(n),t}).catch(function(t){throw o.activeSilentTokenRequests.delete(n),t}),this.activeSilentTokenRequests.set(n,i),[2,i]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t.correlationId),[2,r])})})},e.prototype.acquireTokenSilentAsync=function(t,e){return tC(this,void 0,void 0,function(){var n,r,i=this;return eC(this,function(o){return n=new oV(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient),r=n.initializeSilentRequest(t,e),this.eventHandler.emitEvent(Yw.ACQUIRE_TOKEN_START,qw.Silent,t),[2,n.acquireToken(r).catch(function(){return tC(i,void 0,void 0,function(){var t,e;return eC(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireTokenByRefreshToken(r)];case 1:return t=n.sent(),this.eventHandler.emitEvent(Yw.ACQUIRE_TOKEN_SUCCESS,qw.Silent,t),[2,t];case 2:throw e=n.sent(),this.eventHandler.emitEvent(Yw.ACQUIRE_TOKEN_FAILURE,qw.Silent,null,e),e;case 3:return[2]}})})})]})})},e}(rV);function aV(t,e){console.log(e)}function lV(){return new sV({auth:{clientId:"a314f18e-c3de-497b-bb6a-99e2b7c8fae2",authority:"https://login.microsoftonline.com/ea80952e-a476-42d4-aaf4-5457852b0f7e",redirectUri:"/",postLogoutRedirectUri:"/",navigateToLoginRequestUrl:!0},cache:{cacheLocation:Hw.LocalStorage,storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:aV,logLevel:VU.Info,piiLoggingEnabled:!0}}})}function cV(){return{interactionType:qw.Redirect,protectedResourceMap:new Map(UF),authRequest:{prompt:"select_account"}}}function uV(){return{interactionType:qw.Redirect,authRequest:{prompt:"select_account"}}}let hV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t}),t.\u0275inj=ft({providers:[{provide:GA,useClass:kA,multi:!0},{provide:_A,useFactory:lV},{provide:yA,useFactory:uV},{provide:bA,useFactory:cV},CA,EA,SA],imports:[[OA]]}),t})(),dV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Wt({type:t,bootstrap:[RF]}),t.\u0275inj=ft({providers:[OA,CA,HF,IF,hV],imports:[[Ab,tw,lA,Zp,ow,iR,xU,YP,OA,hV,wg,Cg,IN,fN,WN,dF,QN,kF]]}),t})();Qp().bootstrapModule(dV).catch(t=>console.error(t))}},function(t){t(t.s=7050)}]);