From 267eb3fc2f070bde44f4de1ea9f33076fb7458f0 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Tue, 1 Dec 2020 16:27:54 -0500 Subject: [PATCH 01/18] updated client to angular 11 --- server/client/index.html | 6 +++--- server/client/main-es2015.bf526f6229c9275787d7.js | 1 + server/client/main-es2015.e043658e91f3fa1d6dea.js | 1 - server/client/main-es5.bf526f6229c9275787d7.js | 1 + server/client/main-es5.e043658e91f3fa1d6dea.js | 1 - ...01b199ca73.js => runtime-es2015.b23b85bc9e821d2c6257.js} | 2 +- ...93201b199ca73.js => runtime-es5.b23b85bc9e821d2c6257.js} | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 server/client/main-es2015.bf526f6229c9275787d7.js delete mode 100644 server/client/main-es2015.e043658e91f3fa1d6dea.js create mode 100644 server/client/main-es5.bf526f6229c9275787d7.js delete mode 100644 server/client/main-es5.e043658e91f3fa1d6dea.js rename server/client/{runtime-es2015.77ee60893201b199ca73.js => runtime-es2015.b23b85bc9e821d2c6257.js} (76%) rename server/client/{runtime-es5.77ee60893201b199ca73.js => runtime-es5.b23b85bc9e821d2c6257.js} (76%) diff --git a/server/client/index.html b/server/client/index.html index b83c922..21521b5 100644 --- a/server/client/index.html +++ b/server/client/index.html @@ -3,7 +3,7 @@ ADME@NCATS - + @@ -15,8 +15,8 @@ - + - + diff --git a/server/client/main-es2015.bf526f6229c9275787d7.js b/server/client/main-es2015.bf526f6229c9275787d7.js new file mode 100644 index 0000000..d743165 --- /dev/null +++ b/server/client/main-es2015.bf526f6229c9275787d7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.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}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.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(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(){}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:((e=t)?1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)}:_)(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class E extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const T=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return T(t);if(R(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function P(t,e,n,i,s=new E(t,n,i)){if(!s.closed)return e instanceof y?e.subscribe(s):D(e)(s)}class M extends f{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function V(t,e){return new y(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(R(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return V(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[O](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(D(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends M{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 U(t){return t}function q(t=Number.POSITIVE_INFINITY){return B(U,t)}function $(t,e){return e?V(t,e):new y(T(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:q(e)($(t,n))}function Y(){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 i=new K(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class K extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const Q=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class X extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function J(){return new S}function tt(){return t=>{return Y()((e=J,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Q);return i.source=t,i.subjectFactory=n,i})(t));var e}}function et(t){return{toString:t}.toString()}function nt(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");function at(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(at).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 lt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ht(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function pt(t){return ft(t,gt)||ft(t,yt)}function ft(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(bt))?t[_t]:null}const gt=ct({\u0275prov:ct}),_t=ct({\u0275inj:ct}),yt=ct({ngInjectableDef:ct}),bt=ct({ngInjectorDef:ct});class vt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const wt=new vt("AnalyzeForEntryComponents");var Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({});const St="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,Tt=St||Et||xt||kt,It=ct({__forward_ref__:ct});function Ot(t){return t.__forward_ref__=Ot,t.toString=function(){return at(this())},t}function At(t){return Rt(t)?t():t}function Rt(t){return"function"==typeof t&&t.hasOwnProperty(It)&&t.__forward_ref__===Ot}const Dt=Function;function Pt(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Mt(t,e):e(t))}function Lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ft(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Nt(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function jt(t,e){const n=Bt(t,e);if(n>=0)return t[1|n]}function Bt(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var zt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Ht={},Ut=[],qt=ct({\u0275cmp:ct}),$t=ct({\u0275dir:ct}),Wt=ct({\u0275pipe:ct}),Yt=ct({\u0275mod:ct}),Gt=ct({\u0275loc:ct}),Kt=ct({\u0275fac:ct}),Zt=ct({__NG_ELEMENT_ID__:ct});let Qt=0;function Xt(t){return et(()=>{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===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||zt.Emulated,id:"c",styles:t.styles||Ut,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Qt++,n.inputs=ie(t.inputs,e),n.outputs=ie(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Jt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(te):null,n})}function Jt(t){return oe(t)||function(t){return t[$t]||null}(t)}function te(t){return function(t){return t[Wt]||null}(t)}const ee={};function ne(t){const e={type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{ee[t.id]=t.type}),e}function ie(t,e){if(null==t)return Ht;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const se=Xt;function re(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function oe(t){return t[qt]||null}function ae(t,e){const n=t[Yt]||null;if(!n&&!0===e)throw new Error(`Type ${at(t)} does not have '\u0275mod' property.`);return n}function le(t){return"string"==typeof t?t:null==t?"":""+t}function ce(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():le(t)}var he=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let ue;function de(t){const e=ue;return ue=t,e}function pe(t,e,n){const i=pt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&he.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${at(t)}]`)}const fe={},me=/\n/gm,ge=ct({provide:String,useValue:ct});let _e=void 0;function ye(t){const e=_e;return _e=t,e}function be(t,e=he.Default){if(void 0===_e)throw new Error("inject() must be called from an injection context");return null===_e?pe(t,void 0,e):_e.get(t,e&he.Optional?null:void 0,e)}function ve(t,e=he.Default){return(ue||be)(At(t),e)}const we=ve;function Ce(t){const e=[];for(let n=0;nvoid 0!==Se?Se:"undefined"!=typeof document?document:void 0};function De(t){for(;Array.isArray(t);)t=t[0];return t}function Pe(t,e){return De(e[t])}function Me(t,e){return De(e[t.index])}function Le(t,e){return t.data[e]}function Fe(t,e){return t[e]}function Ne(t,e){const n=e[t];return xe(n)?n:n[0]}function Ve(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function je(t){return 4==(4&t[2])}function Be(t){return 128==(128&t[2])}function ze(t,e){return null==e?null:t[e]}function He(t){t[18]=0}function Ue(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const qe={lFrame:mn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $e(){return qe.bindingsEnabled}function We(){return qe.lFrame.lView}function Ye(){return qe.lFrame.tView}function Ge(t){qe.lFrame.contextLView=t}function Ke(){let t=Ze();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ze(){return qe.lFrame.currentTNode}function Qe(t,e){const n=qe.lFrame;n.currentTNode=t,n.isParent=e}function Xe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function tn(){return qe.isInCheckNoChangesMode}function en(t){qe.isInCheckNoChangesMode=t}function nn(){const t=qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sn(){return qe.lFrame.bindingIndex++}function rn(t){const e=qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function on(t,e){const n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=t,an(e)}function an(t){qe.lFrame.currentDirectiveIndex=t}function ln(t){const e=qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function cn(){return qe.lFrame.currentQueryIndex}function hn(t){qe.lFrame.currentQueryIndex=t}function un(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function dn(t,e,n){if(n&he.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&he.Host||(i=un(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=qe.lFrame=fn();return i.currentTNode=e,i.lView=t,!0}function pn(t){const e=fn(),n=t[1];qe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function fn(){const t=qe.lFrame,e=null===t?null:t.child;return null===e?mn(t):e}function mn(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 gn(){const t=qe.lFrame;return qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const _n=gn;function yn(){const t=gn();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 bn(){return qe.lFrame.selectedIndex}function vn(t){qe.lFrame.selectedIndex=t}function wn(){const t=qe.lFrame;return Le(t.tView,t.selectedIndex)}function Cn(){qe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){qe.lFrame.currentNamespace=null}let xn;function kn(t){var e;return(null===(e=function(){if(void 0===xn&&(xn=null,Tt.trustedTypes))try{xn=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return xn}())||void 0===e?void 0:e.createHTML(t))||t}class En{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Tn extends En{getTypeName(){return"HTML"}}class In extends En{getTypeName(){return"Style"}}class On extends En{getTypeName(){return"Script"}}class An extends En{getTypeName(){return"URL"}}class Rn extends En{getTypeName(){return"ResourceURL"}}function Dn(t){return t instanceof En?t.changingThisBreaksApplicationSecurity:t}function Pn(t,e){const n=Mn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Mn(t){return t instanceof En&&t.getTypeName()||null}let Ln=!0,Fn=!1;function Nn(){return Fn=!0,Ln}class Vn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(kn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class jn{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=kn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=kn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Hn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ii(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!$n.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ii(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 ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/([^\#-~ |!])/g;function ii(t){return t.replace(/&/g,"&").replace(ei,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ni,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let si;function ri(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var oi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ai(t){const e=ci();return e?e.sanitize(oi.URL,t)||"":Pn(t,"URL")?Dn(t):Hn(le(t))}function li(t){const e=ci();if(e)return e.sanitize(oi.RESOURCE_URL,t)||"";if(Pn(t,"ResourceURL"))return Dn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function ci(){const t=We();return t&&t[12]}function hi(t,e){return t.hasOwnProperty(Kt)?t[Kt]:null}class ui extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function di(t,e){const n=e?" in "+e:"";throw new ui("201",`No provider for ${ce(t)} found${n}`)}class pi{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fi(){return mi}function mi(t){return t.type.prototype.ngOnChanges&&(t.setInput=_i),gi}function gi(){const t=yi(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Ht)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _i(t,e,n,i){const s=yi(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ht,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new pi(l&&l.currentValue,e,o===Ht),t[i]=e}function yi(t){return t.__ngSimpleChanges__||null}function bi(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}fi.ngInherit=!0;class ki{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ei(t,e,n){const i=Ae(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Mi=!0;function Li(t){const e=Mi;return Mi=t,e}let Fi=0;function Ni(t,e){const n=ji(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Vi(i.data,t),Vi(e,null),Vi(i.blueprint,null));const s=Bi(t,e),r=t.injectorIndex;if(Ri(s)){const t=Di(s),n=Pi(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Vi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ji(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Bi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function zi(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=Fi++);const s=255&i,r=1<=0?255&e:Wi:e}(n);if("function"==typeof r){if(!dn(e,t,i))return i&he.Host?Hi(s,n,i):Ui(e,n,i,s);try{const t=r();if(null!=t||i&he.Optional)return t;di(n)}finally{_n()}}else if("number"==typeof r){let s=null,o=ji(t,e),a=-1,l=i&he.Host?e[16][6]:null;for((-1===o||i&he.SkipSelf)&&(a=-1===o?Bi(t,e):e[o+8],-1!==a&&Qi(i,!1)?(s=e[1],o=Di(a),e=Pi(a,e)):o=-1);-1!==o;){const t=e[1];if(Zi(r,o,t.data)){const t=Yi(o,e,n,s,i,l);if(t!==$i)return t}a=e[o+8],-1!==a&&Qi(i,e[1].data[o+8]===l)&&Zi(r,o,e)?(s=t,o=Di(a),e=Pi(a,e)):o=-1}}}return Ui(e,n,i,s)}const $i={};function Wi(){return new Xi(Ke(),We())}function Yi(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Gi(a,o,n,null==i?Te(a)&&Mi:i!=o&&0!=(3&a.type),s&he.Host&&r===a);return null!==l?Ki(e,o,l,a):$i}function Gi(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&&Oe(t)&&t.type===n)return l}return null}function Ki(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof ki){const o=s;o.resolving&&function(t,e){throw new ui("200","Circular dependency in DI detected for "+t)}(ce(r[n]));const a=Li(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?de(o.injectImpl):null;dn(t,i,he.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=mi(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&de(l),Li(a),o.resolving=!1,_n()}}return s}function Zi(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const t=Ji(At(e));return t?t():null};let n=hi(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function ts(t){return et(()=>{const e=t.prototype.constructor,n=e[Kt]||Ji(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Kt]||Ji(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function es(t){return t.ngDebugContext}function ns(t){return t.ngOriginalError}function is(t,...e){t.error(...e)}class ss{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||is}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?es(t)?es(t):this._findContext(ns(t)):null}_findOriginalError(t){let e=ns(t);for(;e&&ns(e);)e=ns(e);return e}}function rs(t,e){t.__ngContext__=e}const os=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function as(t){return{name:"body",target:t.ownerDocument.body}}function ls(t){return t instanceof Function?t():t}var cs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function hs(t,e){return(void 0)(t,e)}function us(t){const e=t[3];return ke(e)?e[3]:e}function ds(t){return fs(t[13])}function ps(t){return fs(t[4])}function fs(t){for(;null!==t&&!ke(t);)t=t[4];return t}function ms(t,e,n,i,s){if(null!=i){let r,o=!1;ke(i)?r=i:xe(i)&&(o=!0,i=i[0]);const a=De(i);0===t&&null!==n?null==s?Ss(e,n,a):Cs(e,n,a,s||null,!0):1===t&&null!==n?Cs(e,n,a,s||null,!0):2===t?function(t,e,n){const i=ks(t,e);i&&function(t,e,n,i){Ae(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==De(n)&&ms(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const o=Ft(t,10+e);Ds(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function bs(t,e){if(!(256&e[2])){const n=e[11];Ae(n)&&n.destroyNode&&Ds(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return vs(t[1],t);for(;e;){let n=null;if(xe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)xe(e)&&vs(e[1],e),e=e[3];null===e&&(e=t),xe(e)&&vs(e[1],e),n=e&&e[4]}e=n}}(e)}}function vs(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 i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&Ae(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ke(e[3])){n!==e[3]&&_s(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function ws(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===zt.None||e===zt.Emulated)return null}return Me(i,n)}(t,e.parent,n)}function Cs(t,e,n,i,s){Ae(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function Ss(t,e,n){Ae(t)?t.appendChild(e,n):e.appendChild(n)}function xs(t,e,n,i,s){null!==i?Cs(t,e,n,i,s):Ss(t,e,n)}function ks(t,e){return Ae(t)?t.parentNode(e):e.parentNode}function Es(t,e,n){return Ts(t,e,n)}let Ts=function(t,e,n){return 40&t.type?Me(t,n):null};function Is(t,e,n,i){const s=ws(t,i,e),r=e[11],o=Es(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;ar?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Fs(e,c,0)||2&i&&c!==t){if(zs(i))return!1;o=!0}}}}else{if(!o&&!zs(i)&&!zs(l))return!1;if(o&&zs(l))continue;o=!1,i=l|1&i}}return zs(i)||o}function zs(t){return 0==(1&t)}function Hs(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||zs(o)||(e+=$s(r,s),s=""),i=o,r=r||!zs(i);n++}return""!==s&&(e+=$s(r,s)),e}const Ys={};function Gs(t){Ks(Ye(),We(),bn()+t,tn())}function Ks(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&vi(e,i,n)}else{const i=t.preOrderHooks;null!==i&&wi(e,i,0,n)}vn(n)}function Zs(t,e){return t<<17|e<<2}function Qs(t){return t>>17&32767}function Xs(t){return 2|t}function Js(t){return(131068&t)>>2}function tr(t,e){return-131069&t|e<<2}function er(t){return 1|t}function nr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Ks(t,e,20,tn()),n(i,s)}finally{vn(r)}}function hr(t,e,n){if(Ee(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function vr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function wr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Cr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Ar(n)}}function Ar(t){for(let n=ds(t);null!==n;n=ps(n))for(let t=10;t0&&Ar(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Ar(i)}}function Rr(t,e){const n=Ne(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Vr(t){return t[7]||(t[7]=[])}function jr(t,e,n){return(null===t||Oe(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Br(t,e){const n=t[9],i=n?n.get(ss,null):null;i&&i.handleError(e)}function zr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),Mt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ur,eo(void 0,this));const r=this.records.get($r);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:at(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=fe,n=he.Default){this.assertNotDestroyed();const i=ye(this);try{if(!(n&he.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof vt)&&pt(t);e=n&&this.injectableDefInScope(n)?eo(Jr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&he.Self?Zr():this.parent).get(t,e=n&he.Optional&&e===fe?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(at(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=at(e);if(Array.isArray(e))s=e.map(at).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):at(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(me,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{ye(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(at(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=At(t)))return!1;let i=mt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=mt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{Mt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,eo(i.factory,Wr));const a=i.providers;if(null!=a&&!o){const e=t;Mt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=io(t=At(t))?t:At(t&&t.provide);const s=function(t,e,n){return no(t)?eo(void 0,t.useValue):eo(to(t),Wr)}(t);if(io(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=eo(void 0,Wr,!0),e.factory=()=>Ce(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Wr&&(e.value=Yr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Jr(t){const e=pt(t),n=null!==e?e.factory:hi(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof vt)throw new Error(`Token ${at(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Nt(e,"?");throw new Error(`Can't resolve all parameters for ${at(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[yt]);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 to(t,e,n){let i=void 0;if(io(t)){const e=At(t);return hi(e)||Jr(e)}if(no(t))i=()=>At(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Ce(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ve(At(t.useExisting));else{const e=At(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return hi(e)||Jr(e);i=()=>new e(...Ce(t.deps))}var s;return i}function eo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function no(t){return null!==t&&"object"==typeof t&&ge in t}function io(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,i){const s=Qr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ro=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=fe,t.NULL=new qr,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>ve(Ur)}),t.__NG_ELEMENT_ID__=-1,t})();function oo(t,e){bi(Ve(t)[1],Ke())}function ao(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=lo(t.inputs),e.declaredInputs=lo(t.declaredInputs),e.outputs=lo(t.outputs);const n=s.hostBindings;n&&uo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&co(t,r),o&&ho(t,o),ht(t.inputs,s.inputs),ht(t.declaredInputs,s.declaredInputs),ht(t.outputs,s.outputs),Oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Oi(s.hostAttrs,n=Oi(n,s.hostAttrs))}}(i)}function lo(t){return t===Ht?{}:t===Ut?[]:t}function co(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ho(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function uo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let po=null;function fo(){if(!po){const t=Tt.Symbol;if(t&&t.iterator)po=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(De(t[i.index])).target:i.index;if(Ae(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=zo(i,e,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=zo(i,e,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,qe.lFrame.contextLView))[8]}(t)}function Uo(t,e){let n=null;const i=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 s=0;s=0}const Ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zo(t){return t.substring(Ko.key,Ko.keyEnd)}function Qo(t,e){const n=Ko.textEnd;return n===e?-1:(e=Ko.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ko.key=e,n),Xo(t,e,n))}function Xo(t,e,n){for(;e=0;n=Qo(e,n))Vt(t,Zo(e),!0)}function na(t,e,n,i){const s=We(),r=Ye(),o=rn(2);r.firstUpdatePass&&sa(r,t,o,i),e!==Ys&&bo(s,o,e)&&aa(r,r.data[bn()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=at(Dn(t)))),t}(e,n),i,o)}function ia(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[bn()],o=ia(t,n);ha(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ln(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=oa(n=ra(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ra(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Js(i))return t[Qs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ra(null,t,e,n[1],i),n=oa(n,e.attrs,i),function(t,e,n,i){t[Qs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Qs(t[a+1]);t[i+1]=Zs(e,a),0!==e&&(t[e+1]=tr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Zs(a,0),0!==a&&(t[a+1]=tr(t[a+1],i)),a=i;else t[i+1]=Zs(l,0),0===a?a=i:t[l+1]=tr(t[l+1],i),l=i;h&&(t[i+1]=Xs(t[i+1])),Yo(t,c,i,!0),Yo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Bt(r,e)>=0&&(n[i+1]=er(n[i+1]))}(e,c,t,i,r),o=Zs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function ra(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===Ys&&(h=c?Wo:void 0);let u=c?jt(h,i):l===i?h:void 0;if(r&&!ca(u)&&(u=jt(e,i)),ca(u)&&(a=u,o))return a;const d=t[s+1];s=o?Qs(d):Js(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=jt(t,i))}return a}function ca(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function ua(t,e=""){const n=We(),i=Ye(),s=t+20,r=i.firstCreatePass?sr(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Ae(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Is(i,n,o,r),Qe(r,!1)}function da(t){return pa("",t,""),da}function pa(t,e,n){const i=We(),s=wo(i,t,e,n);return s!==Ys&&function(t,e,n){const i=Pe(e,t);!function(t,e,n){Ae(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,bn(),s),pa}function fa(t,e,n){const i=We();return bo(i,sn(),e)&&_r(Ye(),wn(),i,t,e,i[11],n,!0),fa}function ma(t,e,n){const i=We();if(bo(i,sn(),e)){const s=Ye(),r=wn();_r(s,r,i,t,e,jr(ln(s.data),r,i),n,!0)}return ma}const ga=void 0;var _a=["en",[["a","p"],["AM","PM"],ga],[["AM","PM"],ga,ga],[["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"]],ga,[["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"]],ga,[["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}",ga,"{1} 'at' {0}",ga],[".",",",";","%","+","-","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 ya={};function ba(t){return t in ya||(ya[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),ya[t]}var va=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let wa="en-US";function Ca(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(wa=t.toLowerCase().replace(/_/g,"-"))}function Sa(t,e,n,i,s){if(t=At(t),Array.isArray(t))for(let r=0;r>20;if(io(t)||!t.multi){const i=new ki(l,s,xo),p=Ea(a,e,s?h:h+d,u);-1===p?(zi(Ni(c,o),r,a),xa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ea(a,e,h+d,u),f=Ea(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){zi(Ni(c,o),r,a);const h=function(t,e,n,i,s){const r=new ki(t,n,xo);return r.multi=[],r.index=e,r.componentProviders=0,ka(r,s,i&&!n),r}(s?Ia:Ta,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),xa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else xa(r,t,p>-1?p:f,ka(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function xa(t,e,n,i){const s=io(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ka(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ea(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Ye();if(i.firstCreatePass){const s=Oe(t);Sa(n,i.data,i.blueprint,s,!0),Sa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ra{}class Da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${at(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Pa=(()=>{class t{}return t.NULL=new Da,t})();function Ma(...t){}function La(t,e){return new Na(Me(t,e))}const Fa=function(){return La(Ke(),We())};let Na=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Fa,t})();class Va{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ba(),t})();const Ba=function(){const t=We(),e=Ne(Ke().index,t);return function(t){return t[11]}(xe(e)?e:t)};let za=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class Ha{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ua=new Ha("11.0.2");class qa{constructor(){}supports(t){return go(t)}create(t){return new Wa(t)}}const $a=(t,e)=>e;class Wa{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||$a}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;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,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Ya(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ka),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 Ka),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 Ya{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 Ga{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 Ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ga,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 Za(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ja(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 Ja{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let tl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new qa])}),t})(),el=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}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=ut({token:t,providedIn:"root",factory:()=>new t([new Qa])}),t})();function nl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(De(r)),ke(r))for(let t=10;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}bs(this._lView[1],this._lView)}onDestroy(t){mr(this._lView[1],this._lView,null,t)}markForCheck(){Pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){en(!0);try{Mr(t,e,n)}finally{en(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ds(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class sl extends il{constructor(t){super(t),this._view=t}detectChanges(){Lr(this._view)}checkNoChanges(){!function(t){en(!0);try{Lr(t)}finally{en(!1)}}(this._view)}get context(){return null}}const rl=al;let ol=(()=>{class t{}return t.__NG_ELEMENT_ID__=rl,t.__ChangeDetectorRef__=!0,t})();function al(t=!1){return function(t,e,n){if(!n&&Te(t)){const n=Ne(t.index,e);return new il(n,n)}return 47&t.type?new il(e[16],e):null}(Ke(),We(),t)}const ll=[new Qa],cl=new tl([new qa]),hl=new el(ll),ul=function(){return ml(Ke(),We())};let dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=ul,t})();const pl=dl,fl=class extends pl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ir(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),or(e,n,t),new il(n)}};function ml(t,e){return 4&t.type?new fl(e,t,La(t,e)):null}class gl{}class _l{}const yl=function(){return xl(Ke(),We())};let bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=yl,t})();const vl=bl,wl=class extends vl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new Xi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bi(this._hostTNode,this._hostLView);if(Ri(t)){const e=Pi(t,this._hostLView),n=Di(t);return new Xi(e[1].data[n+8],e)}return new Xi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Cl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(gl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new wl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),ios});class Ol extends Ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Tl(this.componentDef.inputs)}get outputs(){return Tl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,kl,s);return r!==kl||i===kl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Va,Re),o=s.get(za,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ae(t))return t.selectRootElement(e,n===zt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):gs(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:os,clean:Nr,playerHandler:null,flags:0},d=fr(0,null,null,1,0,null,null,null,null,null),p=ir(null,d,u,h,null,null,r,a,o,s);let f,m;pn(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=sr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Hr(a,l,!0),null!==t&&(Ei(s,t,l),null!==a.classes&&Ls(s,t,a.classes),null!==a.styles&&Ms(s,t,a.styles)));const c=i.createRenderer(t,e),h=ir(n,pr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(zi(Ni(a,n),o,e.type),wr(o,a),Sr(a,n.length,1)),Dr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ei(a,c,["ng-version",Ua.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Ls(a,c,e.join(" "))}if(m=Le(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Ke();e.contentQueries(1,o,t.directiveStart)}const a=Ke();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(vn(a.index),br(n[1],a,0,a.directiveStart,a.directiveEnd,e),vr(e,o)),o}(t,this.componentDef,p,u,[oo]),or(d,p,null)}finally{yn()}return new Al(this.componentType,f,La(m,p),p,m)}}class Al extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new sl(i),this.componentType=t}get injector(){return new Xi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Rl=new Map;class Dl extends gl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new El(this);const n=ae(t),i=t[Gt]||null;i&&Ca(i),this._bootstrapComponents=ls(n.bootstrap),this._r3Injector=Qr(t,e,[{provide:gl,useValue:this},{provide:Pa,useValue:this.componentFactoryResolver}],at(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ro.THROW_IF_NOT_FOUND,n=he.Default){return t===ro||t===gl||t===Ur?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 Pl extends _l{constructor(t){super(),this.moduleType=t,null!==ae(t)&&function(t){const e=new Set;!function t(n){const i=ae(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${at(e)} vs ${at(e.name)}`)}(s,Rl.get(s),n),Rl.set(s,n));const r=ls(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Dl(this.moduleType,t)}}function Ml(t,e,n){const i=nn()+t,s=We();return s[i]===Ys?yo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function Ll(t,e){const n=t[e];return n===Ys?void 0:n}function Fl(t,e,n,i,s,r){const o=e+n;return bo(t,o,s)?yo(t,o+1,r?i.call(r,s):i(s)):Ll(t,o+1)}const Nl=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function Vl(){return this._results[fo()]()}class jl{constructor(){this.dirty=!0,this._results=[],this.changes=new Nl,this.length=0;const t=fo(),e=jl.prototype;e[t]||(e[t]=Vl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=Pt(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Bl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Bl(this.queryList)}setDirty(){this.queryList.setDirty()}}class zl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Ma,this.reject=Ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ve(oc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lc=new vt("AppId"),cc={provide:lc,useFactory:function(){return`${hc()}${hc()}${hc()}`},deps:[]};function hc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uc=new vt("Platform Initializer"),dc=new vt("Platform ID"),pc=new vt("appBootstrapListener");let fc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const mc=new vt("LocaleId"),gc=new vt("DefaultCurrencyCode");class _c{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const yc=function(t){return new Pl(t)},bc=yc,vc=function(t){return Promise.resolve(yc(t))},wc=function(t){const e=yc(t),n=ls(ae(t).declarations).reduce((t,e)=>{const n=oe(e);return n&&t.push(new Ol(n)),t},[]);return new _c(e,n)},Cc=wc,Sc=function(t){return Promise.resolve(wc(t))};let xc=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=vc,this.compileModuleAndAllComponentsSync=Cc,this.compileModuleAndAllComponentsAsync=Sc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kc=(()=>Promise.resolve(0))();function Ec(t){"undefined"==typeof Zone?kc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nl(!1),this.onMicrotaskEmpty=new Nl(!1),this.onStable=new Nl(!1),this.onError=new Nl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Tt.requestAnimationFrame,e=Tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Rc(t),Ac(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Rc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Dc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Pc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Dc(t),e.invoke(i,s,r,o,a)}finally{Pc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Rc(t),Ac(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.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,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Oc,Ic,Ic);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ic(){}const Oc={};function Ac(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 Rc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Dc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Pc(t){t._nesting--,Ac(t)}class Mc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nl,this.onMicrotaskEmpty=new Nl,this.onStable=new Nl,this.onError=new Nl}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,i){return t.apply(e,n)}}let Lc=(()=>{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:()=>{Tc.assertNotInAngularZone(),Ec(()=>{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())Ec(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Fc=(()=>{class t{constructor(){this._applications=new Map,jc.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 jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Nc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Vc,jc=new Nc;const Bc=new vt("AllowMultipleToken");class zc{constructor(t,e){this.name=t,this.token=e}}function Hc(t,e,n=[]){const i="Platform: "+e,s=new vt(i);return(e=[])=>{let r=Uc();if(!r||r.injector.get(Bc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:$r,useValue:"platform"});!function(t){if(Vc&&!Vc.destroyed&&!Vc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vc=t.get(qc);const e=t.get(uc,null);e&&e.forEach(t=>t())}(ro.create({providers:t,name:i}))}return function(t){const e=Uc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Uc(){return Vc&&!Vc.destroyed?Vc:null}let qc=(()=>{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 Mc:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:Nn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Tc,useValue:n}];return n.run(()=>{const e=ro.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(ss,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Yc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(ac);return t.runInitializers(),t.donePromise.then(()=>(Ca(s.injector.get(mc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=$c({},e);return function(t,e,n){const i=new Pl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${at(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)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function $c(t,e){return Array.isArray(e)?e.reduce($c,t):Object.assign(Object.assign({},t),e)}let Wc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Nn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),Ec(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(tt()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(gl),s=n.create(ro.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Lc,null);return r&&s.injector.get(Fc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Nn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Yc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Yc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(fc),ve(ro),ve(ss),ve(Pa),ve(ac))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Yc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Gc{}class Kc{}const Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Xc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Xc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(ve(xc),ve(Kc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Jc=Hc(null,"core",[{provide:dc,useValue:"unknown"},{provide:qc,deps:[ro]},{provide:Fc,deps:[]},{provide:fc,deps:[]}]),th=[{provide:Wc,useClass:Wc,deps:[Tc,fc,ro,ss,Pa,ac]},{provide:Il,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new st,oc]]},{provide:xc,useClass:xc,deps:[]},cc,{provide:tl,useFactory:function(){return cl},deps:[]},{provide:el,useFactory:function(){return hl},deps:[]},{provide:mc,useFactory:function(t){return Ca(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(mc),new st,new ot]]},{provide:gc,useValue:"USD"}];let eh=(()=>{class t{constructor(t){}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Wc))},providers:th}),t})(),nh=null;function ih(){return nh}const sh=new vt("DocumentToken");let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:oh,token:t,providedIn:"platform"}),t})();function oh(){return ve(lh)}const ah=new vt("Location Initialized");let lh=(()=>{class t extends rh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ih().getLocation(),this._history=ih().getHistory()}getBaseHrefFromDOM(){return ih().getBaseHref(this._doc)}onPopState(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:hh,token:t,providedIn:"platform"}),t})();function ch(){return!!window.history.pushState}function hh(){return new lh(ve(sh))}function uh(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 dh(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 ph(t){return t&&"?"!==t[0]?"?"+t:t}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:mh,token:t,providedIn:"root"}),t})();function mh(t){const e=ve(sh).location;return new _h(ve(rh),e&&e.origin||"")}const gh=new vt("appBaseHref");let _h=(()=>{class t extends fh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return uh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t extends fh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=uh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bh=(()=>{class t{constructor(t,e){this._subject=new Nl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=dh(wh(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+ph(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(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+ph(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(ve(fh),ve(rh))},t.normalizeQueryParams=ph,t.joinWithSlash=uh,t.stripTrailingSlash=dh,t.\u0275prov=ut({factory:vh,token:t,providedIn:"root"}),t})();function vh(){return new bh(ve(fh),ve(rh))}function wh(t){return t.replace(/\/index.html$/,"")}var Ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Sh{}let xh=(()=>{class t extends Sh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ba(e);if(n)return n;const i=e.split("-")[0];if(n=ba(i),n)return n;if("en"===i)return _a;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[va.PluralCase]}(e||this.locale)(t)){case Ch.Zero:return"zero";case Ch.One:return"one";case Ch.Two:return"two";case Ch.Few:return"few";case Ch.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(ve(mc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function kh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let Eh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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&&(go(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 "+at(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)(xo(tl),xo(el),xo(Na),xo(ja))},t.\u0275dir=se({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Th{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 Ih=(()=>{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){Nn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Th(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Oh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Oh(t,s);e.push(r)}});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)(xo(bl),xo(dl),xo(tl))},t.\u0275dir=se({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Oh{constructor(t,e){this.record=t,this.view=e}}let Ah=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Rh,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){Dh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Dh("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)(xo(bl),xo(dl))},t.\u0275dir=se({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Rh{constructor(){this.$implicit=null,this.ngIf=null}}function Dh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${at(e)}'.`)}class Ph{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 Mh=(()=>{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 Ph(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Fh=(()=>{class t{constructor(t,e,n){n._addDefault(new Ph(t,e))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class Nh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Vh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const jh=new Vh,Bh=new Nh;let zh=(()=>{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(Lo(e))return jh;if(Fo(e))return Bh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${at(t)}'`)}_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)(function(t=he.Default){const e=al(!0);if(null!=e||t&he.Optional)return e;di("ChangeDetectorRef")}())},t.\u0275pipe=re({name:"async",type:t,pure:!1}),t})(),Hh=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:Sh,useClass:xh}]}),t})();function Uh(t){return"browser"===t}let qh=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new $h(ve(sh),window,ve(ss))}),t})();class $h{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Wh(this.window.history)||Wh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Wh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Yh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Yh,nh||(nh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Kh||(Kh=document.querySelector("base"),Kh)?Kh.getAttribute("href"):null;return null==e?null:(n=e,Gh||(Gh=document.createElement("a")),Gh.setAttribute("href",n),"/"===Gh.pathname.charAt(0)?Gh.pathname:"/"+Gh.pathname);var n}resetBaseElement(){Kh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return kh(document.cookie,t)}}let Gh,Kh=null;const Zh=new vt("TRANSITION_ID"),Qh=[{provide:oc,useFactory:function(t,e,n){return()=>{n.get(ac).donePromise.then(()=>{const n=ih();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Zh,sh,ro],multi:!0}];class Xh{static init(){var t;t=new Xh,jc=t}addToWindow(t){Tt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Jh=new vt("EventManagerPlugins");let tu=(()=>{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 i=0;i{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=ut({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t extends nu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ih().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const su={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/"},ru=/%COMP%/g;function ou(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let lu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new cu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case zt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new hu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case zt.ShadowDom:return new uu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ou(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)(ve(tu),ve(iu),ve(lc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class cu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(su[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,i){if(i){e=i+":"+e;const s=su[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=su[n];i?t.removeAttributeNS(i,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,i){i&(cs.DashCase|cs.Important)?t.style.setProperty(e,n,i&cs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&cs.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,au(n)):this.eventManager.addEventListener(t,e,au(n))}}class hu extends cu{constructor(t,e,n,i){super(t),this.component=n;const s=ou(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(ru,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ru,i+"-"+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 uu extends cu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ou(i.id,i.styles,[]);for(let r=0;r{class t extends eu{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)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const pu=["alt","control","meta","shift"],fu={"\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"},mu={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"},gu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let _u=(()=>{class t extends eu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ih().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(pu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&mu.hasOwnProperty(e)&&(e=mu[e]))}return fu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),pu.forEach(i=>{i!=n&&(0,gu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return ve(bu)},token:t,providedIn:"root"}),t})(),bu=(()=>{class t extends yu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case oi.NONE:return e;case oi.HTML:return Pn(e,"HTML")?Dn(e):function(t,e){let n=null;try{si=si||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(kn(""),"text/html")}catch(t){return!1}}()?new Vn:new jn(t)}(t);let i=e?String(e):"";n=si.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=si.getInertBodyElement(i)}while(i!==r);const o=new ti,a=o.sanitizeChildren(ri(n)||n);return Nn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=ri(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case oi.STYLE:return Pn(e,"Style")?Dn(e):e;case oi.SCRIPT:if(Pn(e,"Script"))return Dn(e);throw new Error("unsafe value used in a script context");case oi.URL:return Mn(e),Pn(e,"URL")?Dn(e):Hn(String(e));case oi.RESOURCE_URL:if(Pn(e,"ResourceURL"))return Dn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Tn(t)}bypassSecurityTrustStyle(t){return new In(t)}bypassSecurityTrustScript(t){return new On(t)}bypassSecurityTrustUrl(t){return new An(t)}bypassSecurityTrustResourceUrl(t){return new Rn(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:function(){return t=ve(Ur),new bu(t.get(sh));var t},token:t,providedIn:"root"}),t})();const vu=Hc(Jc,"browser",[{provide:dc,useValue:"browser"},{provide:uc,useValue:function(){Yh.makeCurrent(),Xh.init()},multi:!0},{provide:sh,useFactory:function(){return function(t){Se=t}(document),document},deps:[]}]),wu=[[],{provide:$r,useValue:"root"},{provide:ss,useFactory:function(){return new ss},deps:[]},{provide:Jh,useClass:du,multi:!0,deps:[sh,Tc,dc]},{provide:Jh,useClass:_u,multi:!0,deps:[sh]},[],{provide:lu,useClass:lu,deps:[tu,iu,lc]},{provide:Va,useExisting:lu},{provide:nu,useExisting:iu},{provide:iu,useClass:iu,deps:[sh]},{provide:Lc,useClass:Lc,deps:[Tc]},{provide:tu,useClass:tu,deps:[Jh,Tc]},[]];let Cu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:lc,useValue:e.appId},{provide:Zh,useExisting:lc},Qh]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(t,12))},providers:wu,imports:[Hh,eh]}),t})();function Su(...t){let e=t[t.length-1];return k(e)?(t.pop(),V(t,e)):$(t)}"undefined"!=typeof window&&window;class xu extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}const ku={};function Eu(...t){let e=null,n=null;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Tu(e))}class Tu{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Iu(t,this.resultSelector))}}class Iu extends M{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(ku),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{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Au=new y(t=>t.complete());function Ru(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Au}function Du(t){return new y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):Ru()).subscribe(e)})}function Pu(){return q(1)}function Mu(t,e){return function(n){return n.lift(new Lu(t,e))}}class Lu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fu(t,this.predicate,this.thisArg))}}class Fu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Nu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Vu(t){return function(e){return 0===t?Ru():e.lift(new ju(t))}}class ju{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Bu(t,this.total))}}class Bu extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new Hu(t))}class Hu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Uu(t,this.errorFactory))}}class Uu extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function qu(){return new Ou}function $u(t=null){return e=>e.lift(new Wu(t))}class Wu{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Yu(t,this.defaultValue))}}class Yu extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Gu(t,e){return"function"==typeof e?n=>n.pipe(Gu((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))))):e=>e.lift(new Ku(t))}class Ku{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zu(t,this.project))}}class Zu extends M{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(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new E(this,e,n),r=this.destination;r.add(s),this.innerSubscription=P(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.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,i,s){this.destination.next(e)}}function Qu(t){return e=>0===t?Ru():e.lift(new Xu(t))}class Xu{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Ju(t,this.total))}}class Ju extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function td(...t){return Pu()(Su(...t))}function ed(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>td(t,n,e)):e=>td(t,e)}class nd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new id(t,this.accumulator,this.seed,this.hasSeed))}}class id extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function sd(t){return function(e){const n=new rd(t),i=e.lift(n);return n.caught=i}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends M{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 i=new E(this,void 0,void 0);this.add(i);const s=P(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function ad(t,e){return B(t,e,1)}function ld(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Qu(1),n?$u(e):zu(()=>new Ou))}function cd(t,e,n){return function(i){return i.lift(new hd(t,e,n))}}class hd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ud(t,this.nextOrObserver,this.error,this.complete))}}class ud extends f{constructor(t,e,n,s){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function dd(t){return e=>e.lift(new pd(t))}class pd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new fd(t,this.callback))}}class fd extends f{constructor(t,e){super(t),this.add(new u(e))}}class md{constructor(t,e){this.id=t,this.url=e}}class gd extends md{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _d extends md{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yd extends md{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bd extends md{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cd extends md{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kd{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ed{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Td{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Id{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Od{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ad{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rd{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}')`}}class Dd{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 Pd(t){return new Dd(t)}function Md(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ld(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function Vd(t){return Array.prototype.concat.apply([],t)}function jd(t){return t.length>0?t[t.length-1]:null}function Bd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zd(t){return Fo(t)?t:Lo(t)?j(Promise.resolve(t)):Su(t)}function Hd(t,e,n){return n?function(t,e){return Fd(t,e)}(t.queryParams,e.queryParams)&&Ud(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Nd(t[n],e[n]))}(t.queryParams,e.queryParams)&&qd(t.root,e.root)}function Ud(t,e){if(!Kd(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Ud(t.children[n],e.children[n]))return!1}return!0}function qd(t,e){return $d(t,e,e.segments)}function $d(t,e,n){if(t.segments.length>n.length)return!!Kd(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Kd(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!qd(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Kd(t.segments,i)&&!!t.children.primary&&$d(t.children.primary,e,s)}}class Wd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return Jd.serialize(this)}}class Yd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Bd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tp(this)}}class Gd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Pd(this.parameters)),this._parameterMap}toString(){return ap(this)}}function Kd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Zd(t,e){let n=[];return Bd(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Bd(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class Qd{}class Xd{parse(t){const e=new dp(t);return new Wd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+ep(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ip(e)}=${ip(t)}`).join("&"):`${ip(e)}=${ip(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Jd=new Xd;function tp(t){return t.segments.map(t=>ap(t)).join("/")}function ep(t,e){if(!t.hasChildren())return tp(t);if(e){const e=t.children.primary?ep(t.children.primary,!1):"",n=[];return Bd(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${ep(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Zd(t,(e,n)=>"primary"===n?[ep(t.children.primary,!1)]:[`${n}:${ep(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${tp(t)}/${e[0]}`:`${tp(t)}/(${e.join("//")})`}}function np(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ip(t){return np(t).replace(/%3B/gi,";")}function sp(t){return np(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rp(t){return decodeURIComponent(t)}function op(t){return rp(t.replace(/\+/g,"%20"))}function ap(t){return`${sp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${sp(t)}=${sp(e[t])}`).join("")}`;var e}const lp=/^[^\/()?;=#]+/;function cp(t){const e=t.match(lp);return e?e[0]:""}const hp=/^[^=?&#]+/,up=/^[^?&#]+/;class dp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yd([],{}):new Yd([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Yd(t,e)),n}parseSegment(){const t=cp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Gd(rp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=cp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=cp(this.remaining);t&&(n=t,this.capture(n))}t[rp(e)]=rp(n)}parseQueryParam(t){const e=function(t){const e=t.match(hp);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(up);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=op(e),s=op(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Yd([],r),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 pp{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=fp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return mp(t,this._root).map(t=>t.value)}}function fp(t,e){if(t===e.value)return e;for(const n of e.children){const e=fp(t,n);if(e)return e}return null}function mp(t,e){if(t===e.value)return[e];for(const n of e.children){const i=mp(t,n);if(i.length)return i.unshift(e),i}return[]}class gp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function _p(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yp extends pp{constructor(t,e){super(t),this.snapshot=e,xp(this,t)}toString(){return this.snapshot.toString()}}function bp(t,e){const n=function(t,e){const n=new Cp([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Sp("",new gp(n,[]))}(t,e),i=new xu([new Gd("",{})]),s=new xu({}),r=new xu({}),o=new xu({}),a=new xu(""),l=new vp(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new yp(new gp(l,[]),n)}class vp{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>Pd(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Pd(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wp(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class Cp{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=Pd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sp extends pp{constructor(t,e){super(e),this.url=t,xp(this,e)}toString(){return kp(this._root)}}function xp(t,e){e.value._routerState=t,e.children.forEach(e=>xp(t,e))}function kp(t){const e=t.children.length>0?` { ${t.children.map(kp).join(", ")} } `:"";return`${t.value}${e}`}function Ep(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Fd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Fd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nFd(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Tp(t.parent,e.parent))}function Ip(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Ip(t,e,i);return Ip(t,e)})}(t,e,n);return new gp(i,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Op(e,t),t}{const n=new vp(new xu((i=e.value).url),new xu(i.params),new xu(i.queryParams),new xu(i.fragment),new xu(i.data),i.outlet,i.component,i),s=e.children.map(e=>Ip(t,e));return new gp(n,s)}}var i}function Op(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{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Wd(n.root===t?e:Pp(n.root,t,e),r,s)}function Pp(t,e,n){const i={};return Bd(t.children,(t,s)=>{i[s]=t===e?n:Pp(t,e,n)}),new Yd(t.segments,i)}class Mp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ap(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Rp);if(i&&i!==jd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Fp(t,e,n){if(t||(t=new Yd([],{})),0===t.segments.length&&t.hasChildren())return Np(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(Rp(o))break;const a=""+o,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!zp(a,l,e))return r;i+=2}else{if(!zp(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(s[i]=Fp(t.children[i],e,n))}),Bd(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Yd(t.segments,s)}}function Vp(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=Vp(new Yd([],{}),0,t))}),e}function Bp(t){const e={};return Bd(t,(t,n)=>e[n]=""+t),e}function zp(t,e,n){return t==n.path&&Fd(e,n.parameters)}class Hp{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ep(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Bd(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=_p(t),s=t.value.component?n.children:e;Bd(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Ad(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Id(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Ep(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Up(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}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Up(t){Ep(t.value),t.children.forEach(Up)}class qp{constructor(t,e){this.routes=t,this.module=e}}function $p(t){return"function"==typeof t}function Wp(t){return t instanceof Wd}const Yp=Symbol("INITIAL_VALUE");function Gp(){return Gu(t=>Eu(...t.map(t=>t.pipe(Qu(1),ed(Yp)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new nd(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Yp)return t;if(i===Yp&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||Wp(i))return i}return t},t)},Yp),Mu(t=>t!==Yp),L(t=>Wp(t)?t:!0===t),Qu(1)))}let Kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ao(0,"router-outlet")},directives:function(){return[qf]},encapsulation:2}),t})();function Zp(t,e=""){for(let n=0;ne.error(new ef(t)))}function rf(t){return new y(e=>e.error(new nf(t)))}function of(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class af{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(gl)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(L(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sd(t=>{if(t instanceof nf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ef)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(L(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sd(t=>{if(t instanceof ef)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Yd([],{primary:t}):t;return new Wd(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new Yd([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Su({});const n=[],i=[],s={};return Bd(t,(t,r)=>{const o=e(r,t).pipe(L(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),Su.apply(null,n.concat(i)).pipe(Pu(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Vu(1),n?$u(e):zu(()=>new Ou))}(),L(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,r){const o=function(t){return t.reduce((t,e)=>{const n=tf(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);o.has(s)||o.set(s,[]);const a=n=>j(n).pipe(ad(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sd(t=>{if(t instanceof ef)return Su(null);throw t}))),ld(t=>null!==t),sd(t=>{if(t instanceof Ou||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return Su(new Yd([],{}));throw new ef(e)}throw t}));return j(Array.from(o.entries()).map(([t,e])=>{const n=a(e);return t===s?n:n.pipe(L(()=>null),sd(()=>Su(null)))})).pipe(t=>t.lift(new Tu(void 0)),ld(),L(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return tf(i)!==r&&""!==i.path?sf(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):sf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rf(s):this.lineralizeSegments(n,s).pipe(B(n=>{const s=new Yd(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=lf(e,i,s);if(!o)return sf(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?rf(h):this.lineralizeSegments(i,h).pipe(B(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new Yd(i,{})))):Su(new Yd(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=lf(e,n,i);if(!s)return sf(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>hf(t,e,n)&&"primary"!==tf(n))}(t,n,i)?{segmentGroup:cf(new Yd(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==tf(i)&&(n[tf(i)]=new Yd([],{}));return n}(i,new Yd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>hf(t,e,n))}(t,n,i)?{segmentGroup:cf(new Yd(t.segments,function(t,e,n,i){const s={};for(const r of n)hf(t,e,r)&&!i[tf(r)]&&(s[tf(r)]=new Yd([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(L(t=>new Yd(r,t))):0===i.length&&0===o.length?Su(new Yd(r,{})):this.expandSegment(n,s,i,o,"primary",!0).pipe(L(t=>new Yd(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Su(new qp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Su(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(Md(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Su(new qp([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Su(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&$p(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!$p(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return zd(r)})).pipe(Gp(),cd(t=>{if(!Wp(t))return;const e=Md(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),L(t=>!0===t)):Su(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Su(n);if(i.numberOfChildren>1||!i.children.primary)return of(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Wd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Bd(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Bd(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Yd(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function lf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Ld)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cf(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yd(t.segments.concat(e.segments),e.children)}return t}function hf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class uf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class df{constructor(t,e){this.component=t,this.route=e}}function pf(t,e,n){const i=t._root;return mf(i,e?e._root:null,n,[i.value])}function ff(t,e,n){const i=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(i?i.module.injector:n).get(t)}function mf(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=_p(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Kd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kd(t.url,e.url)||!Fd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tp(t,e)||!Fd(t.queryParams,e.queryParams);case"paramsChange":default:return!Tp(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new uf(i)):(r.data=o.data,r._resolvedData=o._resolvedData),mf(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new df(a.outlet.component,o))}else o&&gf(e,a,s),s.canActivateChecks.push(new uf(i)),mf(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Bd(r,(t,e)=>gf(t,n.getContext(e),s)),s}function gf(t,e,n){const i=_p(t),s=t.value;Bd(i,(t,i)=>{gf(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new df(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function _f(t,e){return null!==t&&e&&e(new Od(t)),Su(!0)}function yf(t,e){return null!==t&&e&&e(new Td(t)),Su(!0)}function bf(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Su(i.map(i=>Du(()=>{const s=ff(i,e,n);let r;if(function(t){return t&&$p(t.canActivate)}(s))r=zd(s.canActivate(e,t));else{if(!$p(s))throw new Error("Invalid CanActivate guard");r=zd(s(e,t))}return r.pipe(ld())}))).pipe(Gp()):Su(!0)}function vf(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Du(()=>Su(e.guards.map(s=>{const r=ff(s,e.node,n);let o;if(function(t){return t&&$p(t.canActivateChild)}(r))o=zd(r.canActivateChild(i,t));else{if(!$p(r))throw new Error("Invalid CanActivateChild guard");o=zd(r(i,t))}return o.pipe(ld())})).pipe(Gp())));return Su(s).pipe(Gp())}class wf{}class Cf{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=kf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Cp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new gp(n,e),s=new Sp(this.url,i);return this.inheritParamsAndData(s._root),Su(s)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=wp(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=Zd(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof wf))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new wf}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new wf;if((t.outlet||"primary")!==i)throw new wf;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?jd(n).parameters:{};s=new Cp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+n.length,Of(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new wf;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Ld)(n,t,e);if(!i)throw new wf;const s={};Bd(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new Cp(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+r.length,Of(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=kf(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new gp(s,t)]}if(0===a.length&&0===c.length)return[new gp(s,[])];const h=this.processSegment(a,l,c,"primary");return[new gp(s,h)]}}function Sf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xf(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 kf(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>Ef(t,e,n)&&"primary"!==Tf(n))}(t,n,i)){const s=new Yd(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Tf(r)){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Tf(r)]=n}return s}(t,e,i,new Yd(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ef(t,e,n))}(t,n,i)){const r=new Yd(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ef(t,n,a)&&!s[Tf(a)]){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Tf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Yd(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ef(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Tf(t){return t.outlet||"primary"}function If(t){return t.data||{}}function Of(t){return t.resolve||{}}function Af(t){return function(e){return e.pipe(Gu(e=>{const n=t(e);return n?j(n).pipe(L(()=>e)):j([e])}))}}class Rf 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 Df=new vt("ROUTES");class Pf{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new qp(Vd(i.injector.get(Df)).map(Jp),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):zd(t()).pipe(B(t=>t instanceof _l?Su(t):j(this.compiler.compileModuleAsync(t))))}}class Mf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Lf,this.attachRef=null}}class Lf{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 Mf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ff{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Nf(t){throw t}function Vf(t,e,n){return e.parse("/")}function jf(t,e){return Su(null)}let Bf=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Nf,this.malformedUriErrorHandler=Vf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:jf,afterPreactivation:jf},this.urlHandlingStrategy=new Ff,this.routeReuseStrategy=new Rf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(gl),this.console=s.get(fc);const l=s.get(Tc);this.isNgZoneEnabled=l instanceof Tc,this.resetConfig(a),this.currentUrlTree=new Wd(new Yd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pf(r,o,t=>this.triggerEvent(new kd(t)),t=>this.triggerEvent(new Ed(t))),this.routerState=bp(this.currentUrlTree,this.rootComponentType),this.transitions=new xu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Mu(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Gu(t=>{let n=!1,i=!1;return Su(t).pipe(cd(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}}),Gu(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Su(t).pipe(Gu(t=>{const n=this.transitions.getValue();return e.next(new gd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Au:[t]}),Gu(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(Gu(t=>function(t,e,n,i,s){return new af(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),cd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(B(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new Cf(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(L(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),cd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),cd(t=>{const n=new vd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new gd(n,this.serializeUrl(i),s,r);e.next(a);const l=bp(i,this.rootComponentType).snapshot;return Su(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Au}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),cd(t=>{const e=new wd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:pf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Su(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Su(r.map(r=>{const o=ff(r,e,s);let a;if(function(t){return t&&$p(t.canDeactivate)}(o))a=zd(o.canDeactivate(t,e,n,i));else{if(!$p(o))throw new Error("Invalid CanDeactivate guard");a=zd(o(t,e,n,i))}return a.pipe(ld())})).pipe(Gp()):Su(!0)}(t.component,t.route,n,e,i)),ld(t=>!0!==t,!0))}(o,i,s,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(ad(e=>j([yf(e.route.parent,i),_f(e.route,i),vf(t,e.path,n),bf(t,e.route,n)]).pipe(Pu(),ld(t=>!0!==t,!0))),ld(t=>!0!==t,!0))}(i,r,t,e):Su(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),cd(t=>{if(Wp(t.guardsResult)){const e=Md(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),cd(t=>{const e=new Cd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mu(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Af(t=>{if(t.guards.canActivateChecks.length)return Su(t).pipe(cd(t=>{const e=new Sd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Gu(t=>{let n=!1;return Su(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Su(t);let r=0;return j(n).pipe(ad(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Su({});const r={};return j(s).pipe(B(s=>function(t,e,n,i){const s=ff(t,e,i);return zd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(cd(t=>{r[s]=t}))),Vu(1),B(()=>Object.keys(r).length===s.length?Su(r):Au))}(t._resolve,t,e,i).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),wp(t,n).resolve),null)))}(t.route,e,i,s)),cd(()=>r++),Vu(1),B(e=>r===n.length?Su(t):Au))}))}),cd({next:()=>n=!0,complete:()=>{if(!n){const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),cd(t=>{const e=new xd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),L(t=>{const e=function(t,e,n){const i=Ip(t,e._root,n?n._root:void 0);return new yp(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),cd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),L(t=>(new Hp(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),cd({next(){n=!0},complete(){n=!0}}),dd(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),sd(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=Wp(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new yd(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new bd(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return Au}));var s,r,o}))}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:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},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){Zp(t),this.config=t.map(Jp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return Dp(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Mp(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Bd(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Mp(n,e,i)}(n);if(r.toRoot())return Dp(e.root,new Yd([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Lp(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Lp(t,t===e.root,0)}const i=Ap(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Lp(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Np(o.segmentGroup,o.index,r.commands):Fp(o.segmentGroup,o.index,r.commands);return Dp(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Wp(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new _d(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(ve(Dt),ve(Qd),ve(Lf),ve(bh),ve(ro),ve(Gc),ve(xc),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),zf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),ko("tabindex"),xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&No("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})(),Hf=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof _d&&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,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),xo(fh))},t.\u0275dir=se({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(fa("href",e.href,ai),vo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})();function Uf(t){return""===t||!!t}let qf=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Nl,this.deactivateEvents=new Nl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new $f(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(xo(Lf),xo(bl),xo(Pa),ko("name"),xo(ol))},t.\u0275dir=se({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $f{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===vp?this.route:t===Lf?this.childContexts:this.parent.get(t,e)}}class Wf{}class Yf{preload(t,e){return Su(null)}}let Gf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Pf(e,n,e=>t.triggerEvent(new kd(e)),e=>t.triggerEvent(new Ed(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mu(t=>t instanceof _d),ad(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(gl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe(q(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(ve(Bf),ve(Gc),ve(xc),ve(ro),ve(Wf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Kf=(()=>{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 gd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _d&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Rd&&(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 Rd(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)(ve(Bf),ve(qh),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Zf=new vt("ROUTER_CONFIGURATION"),Qf=new vt("ROUTER_FORROOT_GUARD"),Xf=[bh,{provide:Qd,useClass:Xd},{provide:Bf,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Bf(null,t,e,n,i,s,r,Vd(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.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,h),a.enableTracing){const t=ih();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[Qd,Lf,bh,ro,Gc,xc,Df,Zf,[class{},new st],[class{},new st]]},Lf,{provide:vp,useFactory:function(t){return t.routerState.root},deps:[Bf]},{provide:Gc,useClass:Qc},Gf,Yf,class{preload(t,e){return e().pipe(sd(()=>Su(null)))}},{provide:Zf,useValue:{enableTracing:!1}}];function Jf(){return new zc("Router",Bf)}let tm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Xf,sm(e),{provide:Qf,useFactory:im,deps:[[Bf,new st,new ot]]},{provide:Zf,useValue:n||{}},{provide:fh,useFactory:nm,deps:[rh,[new it(gh),new st],Zf]},{provide:Kf,useFactory:em,deps:[Bf,qh,Zf]},{provide:Wf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Yf},{provide:zc,multi:!0,useFactory:Jf},[rm,{provide:oc,multi:!0,useFactory:om,deps:[rm]},{provide:lm,useFactory:am,deps:[rm]},{provide:pc,multi:!0,useExisting:lm}]]}}static forChild(e){return{ngModule:t,providers:[sm(e)]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Qf,8),ve(Bf,8))}}),t})();function em(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Kf(t,e,n)}function nm(t,e,n={}){return n.useHash?new yh(t,e):new _h(t,e)}function im(t){return"guarded"}function sm(t){return[{provide:wt,multi:!0,useValue:t},{provide:Df,multi:!0,useValue:t}]}let rm=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(ah,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Bf),i=this.injector.get(Zf);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Su(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Zf),n=this.injector.get(Gf),i=this.injector.get(Kf),s=this.injector.get(Bf),r=this.injector.get(Wc);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function om(t){return t.appInitializer.bind(t)}function am(t){return t.bootstrapListener.bind(t)}const lm=new vt("Router Initializer");class cm{}class hm{}class um{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),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 um?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 um;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof um?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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dm{encodeKey(t){return pm(t)}encodeValue(t){return pm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function pm(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class fm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function mm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _m(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ym{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new um),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ym(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var bm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class vm{constructor(t,e=200,n="OK"){this.headers=t.headers||new um,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 wm extends vm{constructor(t={}){super(t),this.type=bm.ResponseHeader}clone(t={}){return new wm({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 Cm extends vm{constructor(t={}){super(t),this.type=bm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cm({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 Sm extends vm{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 xm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let km=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof ym)i=t;else{let s=void 0;s=n.headers instanceof um?n.headers:new um(n.headers);let r=void 0;n.params&&(r=n.params instanceof fm?n.params:new fm({fromObject:n.params})),i=new ym(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Su(i).pipe(ad(t=>this.handler.handle(t)));if(t instanceof ym||"events"===n.observe)return s;const r=s.pipe(Mu(t=>t instanceof Cm));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(L(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(L(t=>t.body))}case"response":return r;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 fm).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,xm(n,e))}post(t,e,n={}){return this.request("POST",t,xm(n,e))}put(t,e,n={}){return this.request("PUT",t,xm(n,e))}}return t.\u0275fac=function(e){return new(e||t)(ve(cm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Em{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Tm=new vt("HTTP_INTERCEPTORS");let Im=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Om=/^\)\]\}',?\n/;class Am{}let Rm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Dm=(()=>{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 y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new um(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new wm({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Om,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Cm({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Sm({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Sm({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:bm.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:bm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:bm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ve(Am))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Pm=new vt("XSRF_COOKIE_NAME"),Mm=new vt("XSRF_HEADER_NAME");class Lm{}let Fm,Nm=(()=>{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=kh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(dc),ve(Pm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Vm=(()=>{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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Lm),ve(Mm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),jm=(()=>{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(Tm,[]);this.chain=t.reduceRight((t,e)=>new Em(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(hm),ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Bm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Vm,useClass:Im}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Pm,useValue:e.cookieName}:[],e.headerName?{provide:Mm,useValue:e.headerName}:[]]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Vm,{provide:Tm,useExisting:Vm,multi:!0},{provide:Lm,useClass:Nm},{provide:Pm,useValue:"XSRF-TOKEN"},{provide:Mm,useValue:"X-XSRF-TOKEN"}]}),t})(),zm=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[km,{provide:cm,useClass:jm},Dm,{provide:hm,useExisting:Dm},Rm,{provide:Am,useExisting:Rm}],imports:[[Bm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),Hm=(()=>{class t{constructor(t){this.http=t}load(){return this._configData=null,this.http.get("/adme/client/assets/data/config.json").toPromise().then(t=>{null==t.apiBaseUrl&&(t.apiBaseUrl="/adme/"),this._configData=t}).catch(t=>Promise.resolve())}get configData(){return this._configData}set configData(t){this._configData=t}}return t.\u0275fac=function(e){return new(e||t)(ve(km))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Um=(()=>{class t{constructor(t,e){this.configService=t,this.platformId=e,this.isActive=!1,Uh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}init(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}onGlobalError(t){this.sendException(`message: ${t.message} | filenname: ${t.filename} | lineno: ${t.lineno} | colno: ${t.colno}`)}sendPageView(t,e=location.href){if(this.isActive){const n={page_title:t,page_path:e};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}sendEvent(t,e,n,i){this.isActive&&this.gtag("event",t,{event_category:e,event_label:n,value:i})}sendException(t,e=!1){this.isActive&&this.gtag("event","exception",{description:t,fatal:e})}}return t.\u0275fac=function(e){return new(e||t)(ve(Hm),ve(dc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qm=(()=>{class t{constructor(t){this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}onClick(t){this.evLabel=t.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}return t.\u0275fac=function(e){return new(e||t)(xo(Um))},t.\u0275dir=se({type:t,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),t})(),$m=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h2"),ua(3," Background "),Oo(),Io(4,"p",2),ua(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Io(6,"a",3),ua(7,"download the self-contained instance of ADME@NCATS"),Oo(),ua(8," that can be run locally. "),Oo(),Io(9,"p",2),ua(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Oo(),Oo(),Oo())},directives:[qm],styles:[""]}),t})(),Wm=(()=>{class t{constructor(){this.loadingStateEmitter=new S}get isLoading(){return this.loadingStateEmitter.asObservable()}setLoadingState(t){this.loadingStateEmitter.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();try{Fm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cO){Fm=!1}let Ym,Gm=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Uh(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&&!Fm)&&"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)(ve(dc))},t.\u0275prov=ut({factory:function(){return new t(ve(dc))},token:t,providedIn:"root"}),t})(),Km=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Zm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qm(){if(Ym)return Ym;if("object"!=typeof document||!document)return Ym=new Set(Zm),Ym;let t=document.createElement("input");return Ym=new Set(Zm.filter(e=>(t.setAttribute("type",e),t.type===e))),Ym}let Xm,Jm;function tg(t){return function(){if(null==Xm&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xm=!0}))}finally{Xm=Xm||!1}return Xm}()?t:!!t.capture}function eg(t){if(function(){if(null==Jm){const t="undefined"!=typeof document?document.head:null;Jm=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Jm}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ng(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class ig extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class sg extends ig{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let rg=(()=>{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 og extends rg{constructor(t,e=rg.now){super(t,()=>og.delegate&&og.delegate!==this?og.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return og.delegate&&og.delegate!==this?og.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 ag=new og(sg);function lg(t,e=ag){return n=>n.lift(new cg(t,e))}class cg{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new hg(t,this.dueTime,this.scheduler))}}class hg extends f{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(ug,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 ug(t){t.debouncedNext()}function dg(t){return null!=t&&""+t!="false"}function pg(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function fg(t){return Array.isArray(t)?t:[t]}function mg(t){return null==t?"":"string"==typeof t?t:t+"px"}function gg(t){return t instanceof Na?t.nativeElement:t}let _g=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),yg=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gg(t);return new y(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 S,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)(ve(_g))},t.\u0275prov=ut({factory:function(){return new t(ve(_g))},token:t,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Nl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pg(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(lg(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yg),xo(Na),xo(Tc))},t.\u0275dir=se({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),vg=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[_g]}),t})();function wg(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Cg=0;const Sg=new Map;let xg=null,kg=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Sg.set(e,{messageElement:e,referenceCount:0})):Sg.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Sg.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}xg&&0===xg.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Sg.get(e);!function(t,e,n){const i=wg(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=Sg.get(e);n.referenceCount--,function(t,e,n){const i=wg(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=wg(t,"aria-describedby"),i=Sg.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();class Eg{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new S,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new S,this.change=new S,t instanceof jl&&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(cd(t=>this._pressedLetters.push(t)),lg(t),Mu(()=>this._pressedLetters.length>0),L(()=>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||ng(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),i=e[n];this._activeItem=null==i?null:i,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 i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_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 jl?this._items.toArray():this._items}}class Tg extends Eg{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ig extends Eg{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Og=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(cO){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===Rg(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=Rg(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ag(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function Ag(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Rg(t){if(!Ag(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Dg{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Qu(1)).subscribe(t)}}let Pg=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Dg(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(ve(Og),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Og),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Mg=new vt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lg=new vt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Fg=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Ng(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=zg(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=zg(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=gg(t);if(!this._platform.isBrowser||1!==n.nodeType)return Su(null);const i=eg(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new S,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=gg(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 i=gg(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.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._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_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)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=zg(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===zg(t))&&this._originChanged(e,this._getFocusOrigin(t),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,jg),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,jg)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,jg),t.addEventListener("mousedown",this._documentMousedownListener,jg),t.addEventListener("touchstart",this._documentTouchstartListener,jg),e.addEventListener("focus",this._windowFocusListener)})}_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,jg),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jg),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,jg),t.removeEventListener("mousedown",this._documentMousedownListener,jg),t.removeEventListener("touchstart",this._documentTouchstartListener,jg),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},token:t,providedIn:"root"}),t})();function zg(t){return t.composedPath?t.composedPath()[0]:t.target}let Hg=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Nl}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),Ug=(()=>{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,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(sh))},token:t,providedIn:"root"}),t})(),qg=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug))},imports:[[Km,vg]]}),t})();class $g{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 Wg extends $g{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Yg extends $g{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 Gg extends $g{constructor(t){super(),this.element=t instanceof Na?t.nativeElement:t}}class Kg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Wg?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yg?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Gg?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Zg extends Kg{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Qg=(()=>{class t extends Kg{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Nl,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ao]}),t})(),Xg=(()=>{class t extends Qg{}return t.\u0275fac=function(e){return Jg(e||t)},t.\u0275dir=se({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Aa([{provide:Qg,useExisting:t}]),ao]}),t})();const Jg=ts(Xg);let t_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const e_=new vt("cdk-dir-doc",{providedIn:"root",factory:function(){return we(sh)}});let n_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Nl,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)(ve(e_,8))},t.\u0275prov=ut({factory:function(){return new t(ve(e_,8))},token:t,providedIn:"root"}),t})(),i_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const s_=new Ha("11.0.1");class r_{}function o_(t,e){return{type:7,name:t,definitions:e,options:{}}}function a_(t,e=null){return{type:4,styles:e,timings:t}}function l_(t,e=null){return{type:2,steps:t,options:e}}function c_(t){return{type:6,styles:t,offset:null}}function h_(t,e,n){return{type:0,name:t,styles:e,options:n}}function u_(t){return{type:5,steps:t}}function d_(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p_(t=null){return{type:9,options:t}}function f_(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m_(t){Promise.resolve(null).then(t)}class g_{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){m_(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class __{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,i=0;const s=this.players.length;0==s?m_(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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 y_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b_(t){switch(t.length){case 0:return new g_;case 1:return t[0];default:return new __(t)}}function v_(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function w_(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&C_(n,"start",t)));break;case"done":t.onDone(()=>i(n&&C_(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&C_(n,"destroy",t)))}}function C_(t,e,n){const i=n.totalTime,s=S_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function S_(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function x_(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function k_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let E_=(t,e)=>!1,T_=(t,e)=>!1,I_=(t,e,n)=>[];const O_=y_();(O_||"undefined"!=typeof Element)&&(E_=(t,e)=>t.contains(e),T_=(()=>{if(O_||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]):T_}})(),I_=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let A_=null,R_=!1;function D_(t){A_||(A_=("undefined"!=typeof document?document.body:null)||{},R_=!!A_.style&&"WebkitAppearance"in A_.style);let e=!0;return A_.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in A_.style,!e&&R_)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in A_.style),e}const P_=T_,M_=E_,L_=I_;function F_(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let N_=(()=>{class t{validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new g_(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),V_=(()=>{class t{}return t.NOOP=new N_,t})();function j_(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:B_(parseFloat(e[1]),e[2])}function B_(t,e){switch(e){case"s":return 1e3*t;default:return t}}function z_(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";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:""};i=B_(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=B_(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function H_(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function U_(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else H_(t,n);return n}function q_(t,e,n){return n?e+":"+n+";":""}function $_(t){let e="";for(let n=0;n{const s=ty(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),y_()&&$_(t))}function Y_(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=ty(e);t.style[n]=""}),y_()&&$_(t))}function G_(t){return Array.isArray(t)?1==t.length?t[0]:l_(t):t}const K_=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z_(t){let e=[];if("string"==typeof t){let n;for(;n=K_.exec(t);)e.push(n[1]);K_.lastIndex=0}return e}function Q_(t,e,n){const i=t.toString(),s=i.replace(K_,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function X_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const J_=/-+([a-z0-9])/g;function ty(t){return t.replace(J_,(...t)=>t[1].toUpperCase())}function ey(t,e){return 0===t||0===e}function ny(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(ly(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(ly(o,s))}(t,n,e)):n.push(t),n}const oy=new Set(["true","1"]),ay=new Set(["false","0"]);function ly(t,e){const n=oy.has(t)||ay.has(t),i=oy.has(e)||ay.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?oy.has(t):ay.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?oy.has(e):ay.has(e)),o&&a}}const cy=new RegExp("s*:selfs*,?","g");function hy(t,e,n){return new uy(t).build(e,n)}class uy{constructor(t){this._driver=t}build(t,e){const n=new dy(e);return this._resetContextStyleTimingState(n),iy(this,G_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(py(t)){const e=t;Object.keys(e).forEach(t=>{Z_(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=X_(s.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=iy(this,G_(t.animation),e);return{type:1,matchers:ry(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:fy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>iy(this,t,e)),options:fy(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=iy(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:fy(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 my(z_(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=my(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||z_(i,e),my(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:c_({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=c_(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(py(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=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 r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Z_(t);s.length&&s.forEach(t=>{i.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 i=0;const s=[];let r=!1,o=!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(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:iy(this,G_(t.animation),e),options:fy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(cy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,x_(e.collectedStyles,e.currentQuerySelector,{});const o=iy(this,G_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:fy(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"}:z_(t.timings,e.errors,!0);return{type:12,animation:iy(this,G_(t.animation),e),timings:n,options:null}}}class dy{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 py(t){return!Array.isArray(t)&&"object"==typeof t}function fy(t){var e;return t?(t=H_(t)).params&&(t.params=(e=t.params)?H_(e):null):t={},t}function my(t,e,n){return{duration:t,delay:e,easing:n}}function gy(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class _y{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 yy=new RegExp(":enter","g"),by=new RegExp(":leave","g");function vy(t,e,n,i,s,r={},o={},a,l,c=[]){return(new wy).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class wy{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new _y;const h=new Sy(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),iy(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[gy(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 i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}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 i=e.currentTimeline.currentTime;const s=null!=n.duration?j_(n.duration):null,r=null!=n.delay?j_(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),iy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cy);const t=j_(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>iy(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?j_(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),iy(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return z_(e.params?Q_(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?j_(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Cy);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),iy(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;iy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Cy={};class Sy{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new xy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=j_(n.duration)),null!=n.delay&&(i.delay=j_(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Q_(s[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 i=e||this.element,s=new Sy(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Cy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ky(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(yy,"."+this._enterClassName)).replace(by,"."+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)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class xy{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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 xy(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]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):U_(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Q_(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=U_(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?X_(t.values()):[],r=e.size?X_(e.values()):[];if(n){const t=i[0],e=H_(t);t.offset=0,e.offset=1,i=[t,e]}return gy(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ky extends xy{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=U_(t[0],!1);a.offset=0,s.push(a);const l=U_(t[0],!1);l.offset=Ey(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=U_(t[i],!1);o.offset=Ey((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return gy(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ey(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ty{}class Iy extends Ty{normalizePropertyName(t,e){return ty(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Oy[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Oy=(()=>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 Ay(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Ry={};class Dy{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Ry,d=this.buildStyles(n,o&&o.params||Ry,h),p=a&&a.params||Ry,f=this.buildStyles(i,p,h),m=new Set,g=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:vy(t,e,this.ast.animation,s,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Ay(e,this._triggerName,n,i,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,i=x_(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=x_(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=X_(m.values());return Ay(e,this._triggerName,n,i,y,d,f,v,C,g,_,w)}}class Py{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=H_(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Q_(r,i,e)),n[t]=r})}}),n}}class My{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Py(t.style,t.options&&t.options.params||{})}),Ly(this.states,"true","1"),Ly(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Dy(t,e,this.states))}),this.fallbackTransition=new Dy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ly(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Fy=new _y;class Ny{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=hy(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]=i}_buildPlayer(t,e,n){const i=t.element,s=v_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=vy(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Fy,i),r.forEach(t=>{const e=x_(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=b_(r.map(t=>{const e=o.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,i){const s=S_(e,"","","");return w_(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Vy=[],jy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},By={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class zy{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=H_(t);delete e.value,this.options=e}else this.options={};var i;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 Hy=new zy("void");class Uy{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,Zy(e,this._hostClassName)}listen(t,e,n,i){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("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=x_(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=x_(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),a[e]=Hy),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new $y(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new zy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Hy),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{Y_(t,n),W_(t,i)})}return}const c=x_(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Zy(t,"ng-animate-queued"),r.onStart(()=>{Qy(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}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,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)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,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&b_(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Hy,o=new zy("void"),a=new $y(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==jy||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Zy(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=S_(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,w_(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 qy{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 Uy(t,e,this);return e.parentNode?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 i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zy(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qy(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Wy(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Wy(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 b_(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=jy,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!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?b_(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 _y,i=[],s=new Map,r=[],o=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="ng-enter"+f++;p.set(e,n),t.forEach(t=>Zy(t,n))});const m=[],g=new Set,_=new Set;for(let A=0;Ag.add(t)):_.add(t))}const y=new Map,b=Ky(u,Array.from(g));b.forEach((t,e)=>{const n="ng-leave"+f++;y.set(e,n),t.forEach(t=>Zy(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Qy(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Qy(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=y.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>x_(o,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 i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.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;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{x_(C,e,[]).push(t),t.destroy()})});const x=m.filter(t=>tb(t,a,l)),k=new Map;Gy(k,this.driver,_,l,"*").forEach(t=>{tb(t,a,l)&&x.push(t)});const E=new Map;d.forEach((t,e)=>{Gy(E,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>W_(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=O;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,E,k);if(r.setRealPlayer(n),t===O)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=b_(e)),i.push(r)}}else Y_(e,o.fromStyles),r.onDestroy(()=>W_(e,o.toStyles)),I.push(r),c.has(e)&&i.push(r)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=b_(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A!t.destroyed);i.length?Xy(this,t,i):this.processLeaveNode(t)}return m.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 i=e.__ng_removed;return i&&i.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,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=x_(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Y_(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new g_(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return Jy(t,e),e}((n.get(u)||Vy).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),_=v_(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&h.add(u),p){const e=new $y(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{x_(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Zy(t,"ng-animating"));const d=b_(u);return d.onDestroy(()=>{c.forEach(t=>Qy(t,"ng-animating")),W_(a,e.toStyles)}),h.forEach(t=>{x_(i,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 g_(t.duration,t.delay)}}class $y{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new g_,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=>w_(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){x_(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 Wy(t){return t&&1===t.nodeType}function Yy(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gy(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Yy(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=By,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Yy(t,r[a++])),o}function Ky(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Zy(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Qy(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Xy(t,e,n){b_(n).onDone(()=>t.processLeaveNode(e))}function Jy(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class eb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qy(t,e,n),this._timelineEngine=new Ny(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=hy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new My(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=k_(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=k_(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function nb(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=sb(e[0]),e.length>1&&(i=sb(e[e.length-1]))):e&&(n=sb(e)),n||i?new ib(t,n,i):null}let ib=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W_(this._element,this._initialStyles),this._endStyles&&(W_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y_(this._element,this._endStyles),this._endStyles=null),W_(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sb(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=db(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hb(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=db(t,"").split(","),i=cb(n,e);i>=0&&(n.splice(i,1),ub(t,"",n.join(",")))}(this._element,this._name))}}function ab(t,e,n){ub(t,"PlayState",n,lb(t,e))}function lb(t,e){const n=db(t,"");return n.indexOf(",")>0?cb(n.split(","),e):cb([n],e)}function cb(t,e){for(let n=0;n=0)return n;return-1}function hb(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ub(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function db(t,e){return t.style["animation"+e]}class pb{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ob(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]:sy(this.element,n))})}this.currentSnapshot=t}}class fb extends g_{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=F_(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 mb{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>F_(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof pb),l={};ey(n,i)&&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=ny(t,e,l));if(0==n)return new fb(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=nb(t,e),p=new pb(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class gb{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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){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]:sy(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _b{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(yb().toString()),this._cssKeyframesDriver=new mb}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof gb);ey(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=nb(t,e=ny(t,e=e.map(t=>U_(t,!1)),l));return new gb(t,e,a,h)}}function yb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let bb=(()=>{class t extends r_{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:zt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?l_(t):t;return Cb(this._renderer,null,e,"register",[n]),new vb(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Va),ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class vb extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new wb(this._id,t,e||{},this._renderer)}}class wb{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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 Cb(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Cb(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let Sb=(()=>{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 xb("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new kb(this,s,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)(ve(Va),ve(eb),ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class xb{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,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?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 kb extends xb{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?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 i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Eb=(()=>{class t extends eb{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(V_),ve(Ty))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Tb=new vt("AnimationModuleType"),Ib=[{provide:V_,useFactory:function(){return"function"==typeof yb()?new _b:new mb}},{provide:Tb,useValue:"BrowserAnimations"},{provide:r_,useClass:bb},{provide:Ty,useFactory:function(){return new Iy}},{provide:eb,useClass:Eb},{provide:Va,useFactory:function(t,e,n){return new Sb(t,e,n)},deps:[lu,eb,Tc]}];let Ob=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:Ib,imports:[Cu]}),t})();function Ab(t,e){if(1&t&&Ao(0,"mat-pseudo-checkbox",3),2&t){const t=Ho();Eo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Rb=["*"];let Db=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Pb=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Mb=new Ha("11.0.1"),Lb=new vt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Fb,Nb=(()=>{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 Nn()&&!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)&&Mb.full!==s_.full&&console.warn("The Angular Material version ("+Mb.full+") does not match the Angular CDK version ("+s_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug),ve(Lb,8),ve(sh))},imports:[[i_],i_]}),t})();function Vb(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t)}}}function jb(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 Bb(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}}}function zb(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?pg(t):this.defaultTabIndex}}}function Hb(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new S}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 Ub(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(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{Fb="undefined"!=typeof Intl}catch(cO){Fb=!1}let qb=(()=>{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=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),$b=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();class Wb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yb={enterDuration:450,exitDuration:400},Gb=tg({passive:!0}),Kb=["mousedown","touchstart"],Zb=["mouseup","mouseleave","touchend","touchcancel"];class Qb{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=gg(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Yb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Wb(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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,i=Object.assign(Object.assign({},Yb),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Kb))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Zb),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Ng(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,Gb)})})}_removeTriggerEvents(){this._triggerElement&&(Kb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}),this._pointerUpEventsRegistered&&Zb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}))}}const Xb=new vt("mat-ripple-global-options");let Jb=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Qb(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(xo(Na),xo(Tc),xo(Gm),xo(Xb,8),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ta("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})(),tv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Km],Nb]}),t})(),ev=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ta("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})(),nv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb]]}),t})();class iv{}const sv=Vb(iv);let rv=0,ov=(()=>{class t extends sv{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rv++}}return t.\u0275fac=function(e){return av(e||t)},t.\u0275dir=se({type:t,inputs:{label:"label"},features:[ao]}),t})();const av=ts(ov),lv=new vt("MatOptgroup");let cv=0;class hv{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const uv=new vt("MAT_OPTION_PARENT_COMPONENT");let dv=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+cv++,this.onSelectionChange=new Nl,this._stateChanges=new S}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=dg(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||ng(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 hv(this,t))}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(void 0),xo(ov))},t.\u0275dir=se({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pv=(()=>{class t extends dv{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(uv,8),xo(lv,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&No("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(fa("id",e.id),vo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ta("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[ao],ngContentSelectors:Rb,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(qo(),Co(0,Ab,1,2,"mat-pseudo-checkbox",0),Io(1,"span",1),$o(2),Oo(),Ao(3,"div",2)),2&t&&(Eo("ngIf",e.multiple),Gs(3),Eo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Ah,Jb,ev],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.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 fv(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Hh,Nb,nv]]}),t})();function gv(t,e,n,s){return i(n)&&(s=n,n=void 0),s?gv(t,e,n).pipe(L(t=>l(t)?s(...t):s(t))):new y(i=>{_v(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function _v(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r=0}function bv(t=0,e,n){let i=-1;return yv(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=ag),new y(e=>{const s=yv(t)?t:+t-n.now();return n.schedule(vv,s,{index:0,period:i,subscriber:e})})}function vv(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wv(t,e){return n=>n.lift(new Cv(t,e))}class Cv{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Sv(t,this.compare,this.keySelector))}}class Sv extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function xv(t){return e=>e.lift(new kv(t))}class kv{constructor(t){this.notifier=t}call(t,e){const n=new Ev(t),i=P(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Ev extends M{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Tv=1;const Iv=(()=>Promise.resolve())(),Ov={};function Av(t){return t in Ov&&(delete Ov[t],!0)}const Rv={setImmediate(t){const e=Tv++;return Ov[e]=!0,Iv.then(()=>Av(e)&&t()),e},clearImmediate(t){Av(t)}};class Dv extends sg{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=Rv.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&&(Rv.clearImmediate(e),t.scheduled=void 0)}}class Pv extends og{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++ibv(t,e),function(t){return t.lift(new Lv(n))};var n}function Vv(t,e){return new y(e?n=>e.schedule(jv,0,{error:t,subscriber:n}):e=>e.error(t))}function jv({error:t,subscriber:e}){e.error(t)}let Bv=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Su(this.value);case"E":return Vv(this.error);case"C":return Ru()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function zv(t){return t&&"function"==typeof t.connect}class Hv{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class Uv{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new S,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 qv=new vt("_ViewRepeater");let $v=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new S,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Nv(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Su()}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(Mu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>gv(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)(ve(Tc),ve(Gm),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8))},token:t,providedIn:"root"}),t})(),Wv=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new S,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._updateViewportSize())})}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,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Nv(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)(ve(Gm),ve(Tc),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc),ve(sh,8))},token:t,providedIn:"root"}),t})(),Yv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Gv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[i_,Km,Yv],i_,Yv]}),t})();function Kv(t,e){1&t&&$o(0)}const Zv=["*"];function Qv(t,e){}const Xv=function(t){return{animationDuration:t}},Jv=function(t,e){return{value:t,params:e}},tw=["tabBodyWrapper"],ew=["tabHeader"];function nw(t,e){}function iw(t,e){1&t&&Co(0,nw,0,0,"ng-template",9),2&t&&Eo("cdkPortalOutlet",Ho().$implicit.templateLabel)}function sw(t,e){1&t&&ua(0),2&t&&da(Ho().$implicit.textLabel)}function rw(t,e){if(1&t){const t=Mo();Io(0,"div",6),No("click",function(){Ge(t);const n=e.$implicit,i=e.index,s=Ho(),r=So(1);return s._handleClick(n,r,i)}),Io(1,"div",7),Co(2,iw,1,1,"ng-template",8),Co(3,sw,1,1,"ng-template",8),Oo(),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-label-active",i.selectedIndex==n),Eo("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),vo("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),Gs(2),Eo("ngIf",t.templateLabel),Gs(1),Eo("ngIf",!t.templateLabel)}}function ow(t,e){if(1&t){const t=Mo();Io(0,"mat-tab-body",10),No("_onCentered",function(){return Ge(t),Ho()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Ge(t),Ho()._setTabBodyWrapperHeight(e)}),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-body-active",i.selectedIndex==n),Eo("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),vo("aria-labelledby",i._getTabLabelId(n))}}const aw=["tabListContainer"],lw=["tabList"],cw=["nextPaginator"],hw=["previousPaginator"],uw=new vt("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let dw=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(uw),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const pw=new vt("MatTabContent"),fw=new vt("MatTabLabel");class mw{}const gw=Vb(mw),_w=new vt("MAT_TAB_GROUP");let yw=(()=>{class t extends gw{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new S,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Yg(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(_w))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,fw,!0),tc(n,pw,!0,dl)),2&t){let t;Kl(t=nc())&&(e.templateLabel=t.first),Kl(t=nc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Zl(dl,!0),2&t){let t;Kl(t=nc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[ao,fi],ngContentSelectors:Zv,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Co(0,Kv,1,0,"ng-template"))},encapsulation:2}),t})();const bw={translateTab:o_("translateTab",[h_("center, void, left-origin-center, right-origin-center",c_({transform:"none"})),h_("left",c_({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h_("right",c_({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),d_("* => left, * => right, left => center, right => center",a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),d_("void => left-origin-center",[c_({transform:"translate3d(-100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),d_("void => right-origin-center",[c_({transform:"translate3d(100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let vw=(()=>{class t extends Qg{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.EMPTY,this._leavingSub=u.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ed(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(Ot(()=>Cw)),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","matTabBodyHost",""]],features:[ao]}),t})(),ww=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.EMPTY,this._translateTabComplete=new S,this._onCentering=new Nl,this._beforeCentering=new Nl,this._afterLeavingCenter=new Nl,this._onCentered=new Nl(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(wv((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275dir=se({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Cw=(()=>{class t extends ww{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Ql(Xg,!0),2&t){let t;Kl(t=nc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[ao],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var n,i;1&t&&(Io(0,"div",0,1),No("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Co(2,Qv,0,0,"ng-template",2),Oo()),2&t&&Eo("@translateTab",function(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return function(t,e,n,i){const s=bo(t,e,n);return bo(t,e+1,i)||s}(t,a,s,r)?yo(t,a+2,o?i.call(o,s,r):i(s,r)):Ll(t,a+2)}(We(),nn(),t,e,n,i,s)}(3,Jv,e._position,(1,n=Xv,i=e.animationDuration,Fl(We(),nn(),1,n,i,undefined))))},directives:[vw],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bw.translateTab]}}),t})();const Sw=new vt("MAT_TABS_CONFIG");let xw=0;class kw{}class Ew{constructor(t){this._elementRef=t}}const Tw=jb(Bb(Ew),"primary");let Iw=(()=>{class t extends Tw{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new jl,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.EMPTY,this._tabLabelSubscription=u.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new Nl,this.focusChange=new Nl,this.animationDone=new Nl,this.selectedTabChange=new Nl(!0),this._groupId=xw++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=dg(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=pg(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new kw;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ao]}),t})(),Ow=(()=>{class t extends Iw{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,yw,!0),2&t){let t;Kl(t=nc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Ql(tw,!0),Ql(ew,!0)),2&t){let t;Kl(t=nc())&&(e._tabBodyWrapper=t.first),Kl(t=nc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Aa([{provide:_w,useExisting:t}]),ao],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Io(0,"mat-tab-header",0,1),No("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Co(2,rw,4,14,"div",2),Oo(),Io(3,"div",3,4),Co(5,ow,1,8,"mat-tab-body",5),Oo()),2&t&&(Eo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),Gs(2),Eo("ngForOf",e._tabs),Gs(1),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(2),Eo("ngForOf",e._tabs))},directives:function(){return[Fw,Ih,Dw,Jb,Hg,Ah,Qg,Cw]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class Aw{}const Rw=Vb(Aw);let Dw=(()=>{class t extends Rw{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(vo("aria-disabled",!!e.disabled),ta("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[ao]}),t})();const Pw=tg({passive:!0});let Mw=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new S,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new S,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Nl,this.indexFocused=new Nl,s.runOutsideAngular(()=>{gv(t.nativeElement,"mouseleave").pipe(xv(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=pg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){gv(this._previousPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),gv(this._nextPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Su(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ig(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),W(t,e,this._items.changes).pipe(xv(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(xv(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ng(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),bv(650,100).pipe(xv(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Lw=(()=>{class t extends Mw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disableRipple:"disableRipple"},features:[ao]}),t})(),Fw=(()=>{class t extends Lw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,Dw,!1),2&t){let t;Kl(t=nc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Zl(dw,!0),Zl(aw,!0),Zl(lw,!0),Ql(cw,!0),Ql(hw,!0)),2&t){let t;Kl(t=nc())&&(e._inkBar=t.first),Kl(t=nc())&&(e._tabListContainer=t.first),Kl(t=nc())&&(e._tabList=t.first),Kl(t=nc())&&(e._nextPaginator=t.first),Kl(t=nc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ao],ngContentSelectors:Zv,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(qo(),Io(0,"div",0,1),No("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ao(2,"div",2),Oo(),Io(3,"div",3,4),No("keydown",function(t){return e._handleKeydown(t)}),Io(5,"div",5,6),No("cdkObserveContent",function(){return e._onContentChanges()}),Io(7,"div",7),$o(8),Oo(),Ao(9,"mat-ink-bar"),Oo(),Oo(),Io(10,"div",8,9),No("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ao(12,"div",2),Oo()),2&t&&(ta("mat-tab-header-pagination-disabled",e._disableScrollBefore),Eo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Gs(5),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(5),ta("mat-tab-header-pagination-disabled",e._disableScrollAfter),Eo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Jb,bg,dw],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),Nw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,t_,tv,vg,qg],Nb]}),t})();const Vw=["mat-button",""],jw=["*"],Bw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class zw{constructor(t){this._elementRef=t}}const Hw=jb(Vb(Bb(zw)));let Uw=(()=>{class t extends Hw{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 i of Bw)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);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="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,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)(xo(Na),xo(Bg),xo(Tb,8))},t.\u0275cmp=Xt({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&&Ql(Jb,!0),2&t){let t;Kl(t=nc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ao],attrs:Vw,ngContentSelectors:jw,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&&(qo(),Io(0,"span",0),$o(1),Oo(),Ao(2,"span",1),Ao(3,"span",2)),2&t&&(Gs(2),ta("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Eo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Jb],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:block;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})(),qw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Nb],Nb]}),t})();const $w=["ketcherFrame"];let Ww=(()=>{class t{constructor(t,e){this.domSanatizer=t,this.loadingService=e,this.moleculeInput=new Nl,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/ketcher/ketcher.html")}ngOnInit(){this.ketcherFrame.nativeElement.onload=()=>{this.ketcher=this.ketcherFrame.nativeElement.contentWindow.ketcher,this.loadingService.setLoadingState(!1)}}addMolecule(){const t=this.ketcher.getSmiles();this.moleculeInput.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-sketcher"]],viewQuery:function(t,e){if(1&t&&Zl($w,!0),2&t){let t;Kl(t=nc())&&(e.ketcherFrame=t.first)}},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),Ao(1,"iframe",1,2),Oo(),Io(3,"div",3),Io(4,"button",4),No("click",function(){return e.addMolecule()}),ua(5," Predict "),Oo(),Oo()),2&t&&(Gs(1),Eo("src",e.ketcherSrc,li))},directives:[Uw],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),t})();const Yw={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}};let Gw=(()=>{class t{constructor(t){this.el=t,this.selectedFile=new Nl}ngOnInit(){this.addHiddenFileInput()}ngOnDestroy(){document.body.removeChild(this.fileInputElement)}addHiddenFileInput(){this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=t=>{t.target.files&&t.target.files.length>0&&this.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);const t=this.fileInputElement;this.el.nativeElement.addEventListener("click",()=>{t.click()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),t})();function Kw(...t){if(1===t.length){const e=t[0];if(l(e))return Zw(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Zw(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Zw(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(L(t=>e(...t)))}return Zw(t,null)}function Zw(t,e){return new y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const Qw=new vt("NgValueAccessor"),Xw={provide:Qw,useExisting:Ot(()=>Jw),multi:!0};let Jw=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Aa([Xw])]}),t})();const tC={provide:Qw,useExisting:Ot(()=>nC),multi:!0},eC=new vt("CompositionEventMode");let nC=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ih()?ih().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(eC,8))},t.\u0275dir=se({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&&No("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:[Aa([tC])]}),t})();function iC(t){return null==t||0===t.length}function sC(t){return null!=t&&"number"==typeof t.length}const rC=new vt("NgValidators"),oC=new vt("NgAsyncValidators"),aC=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class lC{static min(t){return e=>{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return iC(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return iC(t.value)||aC.test(t.value)?null:{email:!0}}static minLength(t){return e=>iC(e.value)||!sC(e.value)?null:e.value.lengthsC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return lC.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(iC(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return uC(dC(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return Kw(dC(t,e).map(hC)).pipe(L(uC))}}}function cC(t){return null!=t}function hC(t){const e=Lo(t)?j(t):t;return Fo(e),e}function uC(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 dC(t,e){return e.map(e=>e(t))}function pC(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function fC(t){return null!=t?lC.compose(pC(t)):null}function mC(t){return null!=t?lC.composeAsync(pC(t)):null}function gC(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function _C(t){return t._rawValidators}function yC(t){return t._rawAsyncValidators}let bC=(()=>{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=fC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mC(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=se({type:t}),t})(),vC=(()=>{class t extends bC{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return wC(e||t)},t.\u0275dir=se({type:t,features:[ao]}),t})();const wC=ts(vC);class CC extends bC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class SC{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let xC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(CC,2))},t.\u0275dir=se({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})(),kC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,2))},t.\u0275dir=se({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})();const EC={provide:Qw,useExisting:Ot(()=>TC),multi:!0};let TC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&No("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([EC])]}),t})();const IC={provide:Qw,useExisting:Ot(()=>AC),multi:!0};let OC=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),AC=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(CC),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(OC),xo(ro))},t.\u0275dir=se({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Aa([IC])]}),t})();const RC={provide:Qw,useExisting:Ot(()=>DC),multi:!0};let DC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([RC])]}),t})();const PC={provide:Qw,useExisting:Ot(()=>MC),multi:!0};let MC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Aa([PC])]}),t})();const LC={provide:Qw,useExisting:Ot(()=>FC),multi:!0};let FC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&zC(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&&zC(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 VC(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function jC(t,e,n){const i=_C(t);null!==e.validator?t.setValidators(gC(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=yC(t);if(null!==e.asyncValidator?t.setAsyncValidators(gC(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();VC(e._rawValidators,n),VC(e._rawAsyncValidators,n)}}function BC(t,e,n){if(null!==t){if(null!==e.validator){const n=_C(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=yC(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};VC(e._rawValidators,t),VC(e._rawAsyncValidators,t)}}function zC(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HC(t,e){jC(t,e,!1)}const UC=[Jw,DC,TC,MC,FC,AC];function qC(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function $C(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function WC(t){return(ZC(t)?t.validators:t)||null}function YC(t){return Array.isArray(t)?fC(t):t||null}function GC(t,e){return(ZC(e)?e.asyncValidators:t)||null}function KC(t){return Array.isArray(t)?mC(t):t||null}function ZC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class QC{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=YC(this._rawValidators),this._composedAsyncValidatorFn=KC(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=YC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=KC(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=hC(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)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof JC?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof tS&&i.at(t)||null}),i}(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 Nl,this.statusChanges=new Nl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ZC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class XC extends QC{constructor(t=null,e,n){super(WC(e),GC(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){$C(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$C(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 JC extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{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 XC?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),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 tS extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof XC?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const eS={provide:vC,useExisting:Ot(()=>iS)},nS=(()=>Promise.resolve(null))();let iS=(()=>{class t extends vC{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Nl,this.form=new JC({},fC(t),mC(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){nS.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),NC(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),$C(this._directives,t)})}addFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path),n=new JC({});HC(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){nS.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,qC(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)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([eS]),ao]}),t})();const sS={provide:CC,useExisting:Ot(()=>oS)},rS=(()=>Promise.resolve(null))();let oS=(()=>{class t extends CC{constructor(t,e,n,i){super(),this.control=new XC,this._registered=!1,this.update=new Nl,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===nC?n=t:(e=t,UC.some(t=>e.constructor===t)?i=t:s=t)}),s||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){NC(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){rS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;rS.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,9),xo(rC,10),xo(oC,10),xo(Qw,10))},t.\u0275dir=se({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:[Aa([sS]),ao,fi]}),t})(),aS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const lS=new vt("NgModelWithFormControlWarning"),cS={provide:vC,useExisting:Ot(()=>hS)};let hS=(()=>{class t extends vC{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Nl,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return NC(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$C(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,qC(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),BC(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&NC(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jC(this.form,this,!1),this._oldForm&&BC(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([cS]),ao,fi]}),t})();const uS={provide:rC,useExisting:Ot(()=>dS),multi:!0};let dS=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?lC.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&vo("required",e.required?"":null)},inputs:{required:"required"},features:[Aa([uS])]}),t})(),pS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),fS=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new JC(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new XC(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new tS(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof XC||t instanceof JC||t instanceof tS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),mS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[OC],imports:[pS]}),t})(),gS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:lS,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[fS,OC],imports:[pS]}),t})();const _S=["underline"],yS=["connectionContainer"],bS=["inputContainer"],vS=["label"];function wS(t,e){1&t&&(Ro(0),Io(1,"div",14),Ao(2,"div",15),Ao(3,"div",16),Ao(4,"div",17),Oo(),Io(5,"div",18),Ao(6,"div",15),Ao(7,"div",16),Ao(8,"div",17),Oo(),Do())}function CS(t,e){1&t&&(Io(0,"div",19),$o(1,1),Oo())}function SS(t,e){if(1&t&&(Ro(0),$o(1,2),Io(2,"span"),ua(3),Oo(),Do()),2&t){const t=Ho(2);Gs(3),da(t._control.placeholder)}}function xS(t,e){1&t&&$o(0,3,["*ngSwitchCase","true"])}function kS(t,e){1&t&&(Io(0,"span",23),ua(1," *"),Oo())}function ES(t,e){if(1&t){const t=Mo();Io(0,"label",20,21),No("cdkObserveContent",function(){return Ge(t),Ho().updateOutlineGap()}),Co(2,SS,4,1,"ng-container",12),Co(3,xS,1,0,"ng-content",12),Co(4,kS,2,0,"span",22),Oo()}if(2&t){const t=Ho();ta("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),Eo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),vo("for",t._control.id)("aria-owns",t._control.id),Gs(2),Eo("ngSwitchCase",!1),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function TS(t,e){1&t&&(Io(0,"div",24),$o(1,4),Oo())}function IS(t,e){if(1&t&&(Io(0,"div",25,26),Ao(2,"span",27),Oo()),2&t){const t=Ho();Gs(2),ta("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function OS(t,e){1&t&&(Io(0,"div"),$o(1,5),Oo()),2&t&&Eo("@transitionMessages",Ho()._subscriptAnimationState)}function AS(t,e){if(1&t&&(Io(0,"div",31),ua(1),Oo()),2&t){const t=Ho(2);Eo("id",t._hintLabelId),Gs(1),da(t.hintLabel)}}function RS(t,e){if(1&t&&(Io(0,"div",28),Co(1,AS,2,2,"div",29),$o(2,6),Ao(3,"div",30),$o(4,7),Oo()),2&t){const t=Ho();Eo("@transitionMessages",t._subscriptAnimationState),Gs(1),Eo("ngIf",t.hintLabel)}}const DS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],MS=new vt("MatError"),LS={transitionMessages:o_("transitionMessages",[h_("enter",c_({opacity:1,transform:"translateY(0%)"})),d_("void => enter",[c_({opacity:0,transform:"translateY(-100%)"}),a_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let FS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t}),t})(),NS=0;const VS=new vt("MatHint");let jS=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+NS++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(vo("id",e.id)("align",null),ta("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Aa([{provide:VS,useExisting:t}])]}),t})(),BS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-label"]]}),t})(),zS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-placeholder"]]}),t})();const HS=new vt("MatPrefix"),US=new vt("MatSuffix");let qS=0;class $S{constructor(t){this._elementRef=t}}const WS=jb($S,"primary"),YS=new vt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),GS=new vt("MatFormField");let KS=(()=>{class t extends WS{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new S,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+qS++,this._labelId="mat-form-field-label-"+qS++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.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=dg(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(ed(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(xv(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xv(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ed(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ed(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(xv(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,gv(this._label.nativeElement,"transitionend").pipe(Qu(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())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,vg],Nb]}),t})();class QS{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new XS(t,this.predicate,this.inclusive))}}class XS extends f{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(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}class JS{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=mg(-this._previousScrollPosition.left),t.style.top=mg(-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,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_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 tx{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,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 ex{enable(){}disable(){}attach(){}}function nx(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function ix(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class sx{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,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();nx(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 rx=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new ex,this.close=t=>new tx(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new JS(this._viewportRuler,this._document),this.reposition=t=>new sx(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(ve($v),ve(Wv),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve($v),ve(Wv),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();class ox{constructor(t){if(this.scrollStrategy=new ex,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 ax{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class lx{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let cx=(()=>{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),hx=(()=>{class t extends cx{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),ux=(()=>{class t extends cx{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();const dx=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let px=(()=>{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(){if(this._platform.isBrowser||dx){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new S,this._outsidePointerEvents=new S,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.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(Qu(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=mg(this._config.width),t.height=mg(this._config.height),t.minWidth=mg(this._config.minWidth),t.minHeight=mg(this._config.minHeight),t.maxWidth=mg(this._config.maxWidth),t.maxHeight=mg(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;fg(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xv(W(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 mx=/([A-Za-z%]+)$/;class gx{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,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 S,this._resizeSubscription=u.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("cdk-overlay-connected-position-bounding-box"),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,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_x(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-s,s+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=yx(this._overlayRef.getConfig().minHeight),o=yx(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&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 i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_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 i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=mg(n.height),i.top=mg(n.top),i.bottom=mg(n.bottom),i.width=mg(n.width),i.left=mg(n.left),i.right=mg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=mg(t)),s&&(i.maxWidth=mg(s))}this._lastBoundingBoxSize=n,_x(this._boundingBox.style,i)}_resetBoundingBoxStyles(){_x(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_x(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();_x(n,this._getExactOverlayY(e,t,i)),_x(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=mg(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=mg(r.maxWidth):s&&(n.maxWidth="")),_x(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=mg(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=mg(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ix(t,n),isOriginOutsideView:nx(t,n),isOverlayClipped:ix(e,n),isOverlayOutsideView:nx(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&&fg(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 Na)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 _x(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function yx(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(mx);return n&&"px"!==n?null:parseFloat(e)}return t||null}class bx{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new gx(n,i,s,r,o).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,i){const s=new ax(t,e,n,i);return this._preferredPositions.push(s),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}}class vx{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("cdk-global-overlay-wrapper"),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:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);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("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let wx=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new vx}connectedTo(t,e,n){return new bx(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new gx(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Wv),ve(sh),ve(Gm),ve(px))},t.\u0275prov=ut({factory:function(){return new t(ve(Wv),ve(sh),ve(Gm),ve(px))},token:t,providedIn:"root"}),t})(),Cx=0,Sx=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new ox(t);return s.direction=s.direction||this._directionality.value,new fx(i,e,n,s,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-"+Cx++,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(Wc)),new Zg(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ve(rx),ve(px),ve(Pa),ve(wx),ve(hx),ve(ro),ve(Tc),ve(sh),ve(n_),ve(bh),ve(ux))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const xx=[{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"}],kx=new vt("cdk-connected-overlay-scroll-strategy");let Ex=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Tx=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Nl,this.positionChange=new Nl,this.attach=new Nl,this.detach=new Nl,this.overlayKeydown=new Nl,this.overlayOutsideClick=new Nl,this._templatePortal=new Yg(e,n),this._scrollStrategyFactory=i,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=dg(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=dg(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=dg(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=dg(t)}get push(){return this._push}set push(t){this._push=dg(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=xx);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||ng(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 ox({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 QS(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)(xo(Sx),xo(dl),xo(bl),xo(kx),xo(n_,8))},t.\u0275dir=se({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:[fi]}),t})();const Ix={provide:kx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Ox=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Sx,Ix],imports:[[i_,t_,Gv],Gv]}),t})();const Ax=["trigger"],Rx=["panel"];function Dx(t,e){if(1&t&&(Io(0,"span",8),ua(1),Oo()),2&t){const t=Ho();Gs(1),da(t.placeholder||"\xa0")}}function Px(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.triggerValue||"\xa0")}}function Mx(t,e){1&t&&$o(0,0,["*ngSwitchCase","true"])}function Lx(t,e){1&t&&(Io(0,"span",9),Co(1,Px,2,1,"span",10),Co(2,Mx,1,0,"ng-content",11),Oo()),2&t&&(Eo("ngSwitch",!!Ho().customTrigger),Gs(2),Eo("ngSwitchCase",!0))}function Fx(t,e){if(1&t){const t=Mo();Io(0,"div",12),Io(1,"div",13,14),No("@transformPanel.done",function(e){return Ge(t),Ho()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)}),$o(3,1),Oo(),Oo()}if(2&t){const t=Ho();Eo("@transformPanelWrap",void 0),Gs(1),n="mat-select-panel ",i=t._getPanelTheme(),s="",function(t,e,n,i){const s=Ye(),r=rn(2);s.firstUpdatePass&&sa(s,null,r,!0);const o=We();if(n!==Ys&&bo(o,r,n)){const i=s.data[bn()];if(ha(i,!0)&&!ia(s,r)){let t=i.classesWithoutHost;null!==t&&(n=lt(t,n||"")),To(s,i,o,n,!0)}else!function(t,e,n,i,s,r,o,a){s===Ys&&(s=Wo);let l=0,c=0,h=0 void",f_("@transformPanel",[p_()],{optional:!0}))]),transformPanel:o_("transformPanel",[h_("void",c_({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h_("showing",c_({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h_("showing-multiple",c_({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d_("void => *",a_("120ms cubic-bezier(0, 0, 0.2, 1)")),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))])};let Bx=0;const zx=new vt("mat-select-scroll-strategy"),Hx=new vt("MAT_SELECT_CONFIG"),Ux={provide:zx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class qx{constructor(t,e){this.source=t,this.value=e}}class $x{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const Wx=Bb(zb(Vb(Hb($x)))),Yx=new vt("MatSelectTrigger");let Gx=(()=>{class t extends Wx{constructor(t,e,n,i,s,r,o,a,l,c,h,u,d,p){var f,m,g,_,y;super(s,i,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Bx++,this._triggerAriaLabelledBy=null,this._destroy=new S,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Bx++,this._panelDoneAnimatingStream=new S,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!==(g=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this._typeaheadDebounceInterval=null!==(y=null===(_=this._defaultOptions)||void 0===_?void 0:_.typeaheadDebounceInterval)&&void 0!==y?y:0,this.optionSelectionChanges=Du(()=>{const t=this.options;return t?t.changes.pipe(ed(t),Gu(()=>W(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Qu(1),Gu(()=>this.optionSelectionChanges))}),this.openedChange=new Nl,this._openedStream=this.openedChange.pipe(Mu(t=>t),L(()=>{})),this._closedStream=this.openedChange.pipe(Mu(t=>!t),L(()=>{})),this.selectionChange=new Nl,this.valueChange=new Nl,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||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=dg(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=dg(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=dg(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.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=pg(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Uv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wv(),xv(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xv(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ed(null),xv(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,i=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&i&&!ng(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||13!==n&&32!==n||!e.activeItem||ng(t))if(!s&&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&&i&&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(Qu(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=>{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 Tg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(xv(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(xv(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=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xv(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(t=>t._stateChanges)).pipe(xv(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(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(xo(Wv),xo(ol),xo(Tc),xo(qb),xo(Na),xo(n_,8),xo(iS,8),xo(hS,8),xo(GS,8),xo(CC,10),ko("tabindex"),xo(zx),xo(Fg),xo(Hx,8))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&(Ql(Ax,!0),Ql(Rx,!0),Ql(Tx,!0)),2&t){let t;Kl(t=nc())&&(e.trigger=t.first),Kl(t=nc())&&(e.panel=t.first),Kl(t=nc())&&(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:[ao,fi]}),t})(),Kx=(()=>{class t extends Gx{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 i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(xv(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(Qu(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=fv(t,this.options,this.optionGroups),n=this._getItemHeight();var i,s,r;this.panel.nativeElement.scrollTop=(s=n,(i=(t+e)*n)<(r=this.panel.nativeElement.scrollTop)?i:i+s>r+256?Math.max(0,i-256+s):r)}_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 qx(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,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 i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,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),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=fv(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_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(e){return Zx(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,Yx,!0),Jl(n,pv,!0),Jl(n,lv,!0)),2&t){let t;Kl(t=nc())&&(e.customTrigger=t.first),Kl(t=nc())&&(e.options=t),Kl(t=nc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&No("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(vo("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()),ta("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:[Aa([{provide:FS,useExisting:t},{provide:uv,useExisting:t}]),ao],ngContentSelectors:Vx,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(qo(Nx),Io(0,"div",0,1),No("click",function(){return e.toggle()}),Io(3,"div",2),Co(4,Dx,2,1,"span",3),Co(5,Lx,3,2,"span",4),Oo(),Io(6,"div",5),Ao(7,"div",6),Oo(),Oo(),Co(8,Fx,4,14,"ng-template",7),No("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=So(1);vo("aria-owns",e.panelOpen?e.id+"-panel":null),Gs(3),Eo("ngSwitch",e.empty),vo("id",e._valueId),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1),Gs(3),Eo("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:[Ex,Mh,Lh,Tx,Fh,Eh],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}\n"],encapsulation:2,data:{animation:[jx.transformPanelWrap,jx.transformPanel]},changeDetection:0}),t})();const Zx=ts(Kx);let Qx=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Ux],imports:[[Hh,Ox,mv,Nb],Yv,ZS,mv,Nb]}),t})();class Xx{constructor(t){this.total=t}call(t,e){return e.subscribe(new Jx(t,this.total))}}class Jx extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const tk=new Set;let ek,nk=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ik}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!tk.has(t))try{ek||(ek=document.createElement("style"),ek.setAttribute("type","text/css"),document.head.appendChild(ek)),ek.sheet&&(ek.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),tk.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function ik(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let sk=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new S}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return rk(fg(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Eu(rk(fg(t)).map(t=>this._registerQuery(t).observable));return e=td(e.pipe(Qu(1)),e.pipe(t=>t.lift(new Xx(1)),lg(0))),e.pipe(L(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(ed(e),L(({matches:e})=>({query:t,matches:e})),xv(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(ve(nk),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(nk),ve(Tc))},token:t,providedIn:"root"}),t})();function rk(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const ok={tooltipState:o_("state",[h_("initial, void, hidden",c_({opacity:0,transform:"scale(0)"})),h_("visible",c_({transform:"scale(1)"})),d_("* => visible",a_("200ms cubic-bezier(0, 0, 0.2, 1)",u_([c_({opacity:0,transform:"scale(0)",offset:0}),c_({opacity:.5,transform:"scale(0.99)",offset:.5}),c_({opacity:1,transform:"scale(1)",offset:1})]))),d_("* => hidden",a_("100ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:0})))])},ak=tg({passive:!0}),lk=new vt("mat-tooltip-scroll-strategy"),ck={provide:lk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},hk=new vt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let uk=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ng(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),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)})}))}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(xv(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,ak)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),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 Wg(dk,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(xv(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(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(xv(this._destroyed)).subscribe(t=>{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:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(xv(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_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:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_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:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Qu(1),xv(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}}_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()]);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,ak)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_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)(xo(Sx),xo(Na),xo($v),xo(bl),xo(Tc),xo(Gm),xo(kg),xo(Bg),xo(lk),xo(n_,8),xo(hk,8))},t.\u0275dir=se({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),dk=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){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()}}return t.\u0275fac=function(e){return new(e||t)(xo(ol),xo(sk))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleBodyInteraction()},!1,as),2&t&&Jo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Io(0,"div",0),No("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),function(t,e){const n=Ye();let i;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const t=e[n];if("async"===t.name)return t}throw new ui("302","The pipe 'async' could not be found!")}(0,n.pipeRegistry),n.data[21]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,i.onDestroy)):i=n.data[21];const s=i.factory||(i.factory=hi(i.type)),r=de(xo);try{const t=Li(!1),e=s();Li(t),function(t,e,n,i){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=i}(n,We(),0,e)}finally{de(r)}}(),ua(2),Oo()),2&t){let t=null;ta("mat-tooltip-handset",null==(t=function(t,e,n){const i=t+20,s=We(),r=Fe(s,i);return function(t,e){return mo.isWrapped(e)&&(e=mo.unwrap(e),t[qe.lFrame.bindingIndex]=Ys),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?Fl(s,nn(),e,r.transform,n,r):r.transform(n))}(1,5,e._isHandset))?null:t.matches),Eo("ngClass",e.tooltipClass)("@state",e._visibility),Gs(2),da(e.message)}},directives:[Eh],pipes:[zh],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:[ok.tooltipState]},changeDetection:0}),t})(),pk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[ck],imports:[[qg,Hh,Ox,Nb],Nb,Yv]}),t})();const fk=tg({passive:!0});let mk=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Au;const e=gg(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new S,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,fk),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,fk)}}),i}stopMonitoring(t){const e=gg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc))},token:t,providedIn:"root"}),t})(),gk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Km]]}),t})();const _k=new vt("MAT_INPUT_VALUE_ACCESSOR"),yk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bk=0;class vk{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const wk=Hb(vk);let Ck=(()=>{class t extends wk{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+bk++,this.focused=!1,this.stateChanges=new S,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Qm().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=dg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=dg(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Qm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=dg(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){yk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(CC,10),xo(iS,8),xo(hS,8),xo(qb),xo(_k,10),xo(mk),xo(Tc),xo(GS,8))},t.\u0275dir=se({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&No("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(fa("disabled",e.disabled)("required",e.required),vo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ta("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Aa([{provide:FS,useExisting:t}]),ao,fi]}),t})(),Sk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[qb],imports:[[gk,ZS,Nb],gk,ZS]}),t})(),xk=(()=>{class t{constructor(){this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Nl,this.fileDataAdded=new Nl,this.fileUploadFinished=new Nl,this.fileProcess=new Nl,this.subscriptions=[]}ngOnInit(){const t=localStorage.getItem("fileType");t&&(this.fileType=t);const e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):Yw[this.fileType],this.acceptedFileTypes=Object.keys(Yw)}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}fileSelected(t){if(t){this.selectedFile=t,this.selectedFileName=t.name;const e=this.selectedFileName.split("."),n=e[e.length-1];this.acceptedFileTypes.indexOf(n)>-1&&(this.fileType=n,this.updateType());const i=new FileReader;i.onload=()=>{this.selectedFileContent=i.result},i.readAsText(t)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}updateType(){localStorage.setItem("fileType",this.fileType);const t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):Yw[this.fileType]}updateOptions(){const t=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",t)}processFile(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){if(1&t&&(Io(0,"div",0),Io(1,"div",1),ua(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Io(3,"a",2),ua(4,"these instructions"),Oo(),ua(5," to export it as Text or CSV. "),Oo(),Io(6,"div"),Io(7,"button",3),No("selectedFile",function(t){return e.fileSelected(t)}),ua(8,"Browse"),Oo(),Io(9,"span"),ua(10),Oo(),Oo(),Io(11,"form",4,5),Io(13,"div",6),Io(14,"div",7),Io(15,"mat-form-field"),Io(16,"mat-label"),ua(17,"File type"),Oo(),Io(18,"mat-select",8),No("ngModelChange",function(t){return e.fileType=t})("selectionChange",function(){return e.updateType()}),Io(19,"mat-option",9),ua(20," CSV "),Oo(),Io(21,"mat-option",10),ua(22," Text "),Oo(),Io(23,"mat-option",11),ua(24," SMI "),Oo(),Oo(),Oo(),Oo(),Io(25,"div",12),Io(26,"mat-form-field"),Io(27,"mat-label"),ua(28,"Column separator"),Oo(),Io(29,"mat-select",13),No("ngModelChange",function(t){return e.options.columnSeparator=t})("selectionChange",function(){return e.updateOptions()}),Io(30,"mat-option",14),ua(31," Comma (,) "),Oo(),Io(32,"mat-option",14),ua(33," Tab (\\t) "),Oo(),Oo(),Oo(),Oo(),Io(34,"div",15),Io(35,"mat-form-field"),Io(36,"mat-label"),ua(37,"Has header row"),Oo(),Io(38,"mat-select",16),No("ngModelChange",function(t){return e.options.hasHeaderRow=t})("selectionChange",function(){return e.updateOptions()}),Io(39,"mat-option",14),ua(40," Yes "),Oo(),Io(41,"mat-option",14),ua(42," No "),Oo(),Oo(),Oo(),Oo(),Io(43,"div",17),Io(44,"mat-form-field"),Io(45,"input",18),No("ngModelChange",function(t){return e.options.indexIdentifierColumn=t})("change",function(){return e.updateOptions()}),Oo(),Io(46,"mat-hint"),ua(47,"Zero indicates that the SMILES are in the first column"),Oo(),Oo(),Oo(),Oo(),Io(48,"div",19),Ao(49,"span",20),Io(50,"button",21),No("click",function(){return e.processFile()}),ua(51," Process file "),Oo(),Oo(),Oo(),Oo()),2&t){const t=So(12);Gs(10),pa(" \xa0 ",e.selectedFileName?"Selected file: "+e.selectedFileName:"No file selected"," "),Gs(8),Eo("ngModel",e.fileType),Gs(11),Eo("ngModel",e.options.columnSeparator),Gs(1),Eo("value",","),Gs(2),Eo("value","\t"),Gs(6),Eo("ngModel",e.options.hasHeaderRow),Gs(1),Eo("value",!0),Gs(2),Eo("value",!1),Gs(4),Eo("ngModel",e.options.indexIdentifierColumn),Gs(5),Eo("disabled",t.invalid||!e.selectedFileName||!e.selectedFileContent)}},directives:[Uw,Gw,aS,kC,iS,KS,BS,Kx,dS,xC,oS,pv,uk,TC,Ck,nC,jS],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),t})();const kk=["*"];function Ek(t){return Error(`Unable to find icon with the name "${t}"`)}function Tk(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Ik(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ok{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Ak=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,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,i){return this._addSvgIconConfig(t,e,new Ok(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(oi.HTML,n);if(!s)throw Ik(n);return this._addSvgIconConfig(t,e,new Ok("",s,i))}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 Ok(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(oi.HTML,e);if(!i)throw Ik(e);return this._addSvgIconSetConfig(t,new Ok("",i,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(oi.RESOURCE_URL,t);if(!e)throw Tk(t);const n=this._cachedIconsByUrl.get(e);return n?Su(Rk(n)):this._loadSvgIconFromConfig(new Ok(t,null)).pipe(cd(t=>this._cachedIconsByUrl.set(e,t)),L(t=>Rk(t)))}getNamedSvgIcon(t,e=""){const n=Dk(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Vv(Ek(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Su(Rk(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(L(t=>Rk(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Su(n):Kw(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(sd(e=>{const n=this._sanitizer.sanitize(oi.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Su(null)})))).pipe(L(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Ek(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(cd(e=>t.svgText=e),L(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Su(null):this._fetchIcon(t).pipe(cd(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,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 i=0;ithis._inProgressUrlFetches.delete(r)),tt());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Dk(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}}return t.\u0275fac=function(e){return new(e||t)(ve(km,8),ve(yu),ve(sh,8),ve(ss))},t.\u0275prov=ut({factory:function(){return new t(ve(km,8),ve(yu),ve(sh,8),ve(ss))},token:t,providedIn:"root"}),t})();function Rk(t){return t.cloneNode(!0)}function Dk(t,e){return t+":"+e}class Pk{constructor(t){this._elementRef=t}}const Mk=jb(Pk),Lk=new vt("mat-icon-location",{providedIn:"root",factory:function(){const t=we(sh),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Fk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Nk=Fk.map(t=>`[${t}]`).join(", "),Vk=/^url\(['"]?#(.*?)['"]?\)$/;let jk=(()=>{class t extends Mk{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=dg(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 i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Nk),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(Vk):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[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(Qu(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)(xo(Na),xo(Ak),ko("aria-hidden"),xo(Lk),xo(ss))},t.\u0275cmp=Xt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(vo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ta("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:[ao],ngContentSelectors:kk,decls:1,vars:0,template:function(t,e){1&t&&(qo(),$o(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})(),Bk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function zk(t,e){}class Hk{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Uk={dialogContainer:o_("dialogContainer",[h_("void, exit",c_({opacity:0,transform:"scale(0.7)"})),h_("enter",c_({transform:"none"})),d_("* => enter",a_("150ms cubic-bezier(0, 0, 0.2, 1)",c_({transform:"none",opacity:1}))),d_("* => void, * => exit",a_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",c_({opacity:0})))])};let qk=(()=>{class t extends Kg{constructor(t,e,n,i,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=r,this._animationStateChanged=new Nl,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Pg),xo(ol),xo(sh,8),xo(Hk),xo(Bg))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&Zl(Qg,!0),2&t){let t;Kl(t=nc())&&(e._portalOutlet=t.first)}},features:[ao]}),t})(),$k=(()=>{class t extends qk{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return Wk(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Vo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(fa("id",e._id),vo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ma("@dialogContainer",e._state))},features:[ao],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Co(0,zk,0,0,"ng-template",0)},directives:[Qg],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Uk.dialogContainer]}}),t})();const Wk=ts($k);let Yk=0;class Gk{constructor(t,e,n="mat-dialog-"+Yk++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new S,this._afterClosed=new S,this._beforeClosed=new S,this._state=0,e._id=n,e._animationStateChanged.pipe(Mu(t=>"opened"===t.state),Qu(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Mu(t=>"closed"===t.state),Qu(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Mu(t=>27===t.keyCode&&!this.disableClose&&!ng(t))).subscribe(t=>{t.preventDefault(),Kk(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Kk(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Mu(t=>"closing"===t.state),Qu(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Kk(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const Zk=new vt("MatDialogData"),Qk=new vt("mat-dialog-default-options"),Xk=new vt("mat-dialog-scroll-strategy"),Jk={provide:Xk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.block()}};let tE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new S,this._afterOpenedAtThisLevel=new S,this._ariaHiddenElements=new Map,this.afterAllClosed=Du(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ed(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Hk)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ox({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=ro.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Hk,useValue:e}]}),i=new Wg(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const s=new this._dialogRefConstructor(n,e,i.id);if(t instanceof dl)e.attachTemplatePortal(new Yg(t,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,e),r=e.attachComponentPortal(new Wg(t,i.viewContainerRef,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(n_,null)||s.push({provide:n_,useValue:{value:t.direction,change:Su()}}),ro.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(ro),xo(void 0),xo(void 0),xo(px),xo(void 0),xo(Dt),xo(Dt),xo(vt))},t.\u0275dir=se({type:t}),t})(),eE=(()=>{class t extends tE{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,Gk,$k,Zk)}}return t.\u0275fac=function(e){return new(e||t)(ve(Sx),ve(ro),ve(bh,8),ve(Qk,8),ve(Xk),ve(t,12),ve(px))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),nE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[eE,Jk],imports:[[Ox,t_,Nb],Nb]}),t})(),iE=(()=>{class t{constructor(t,e){this.el=t,this.http=e,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}ngAfterViewInit(){this.isAfterViewInit=!0,this.setImageSrc()}set version(t){t!==this.privateVersion&&(this.privateVersion=t,this.setImageSrc())}set entityId(t){t!==this.privateEntityId&&(this.privateEntityId=t,this.setImageSrc())}set size(t){t!==this.privateSize&&(this.privateSize=t,this.setImageSrc())}set stereo(t){t!==this.privateStereo&&(this.privateStereo=t,this.setImageSrc())}set atomMaps(t){t!==this.privateAtomMaps&&(this.privateAtomMaps=t,this.setImageSrc())}setImageSrc(){if(this.isAfterViewInit){const t="/adme/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=t,this.imageElement.alt="structure image"}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(km))},t.\u0275dir=se({type:t,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),t})(),sE=(()=>{class t{constructor(t){this.data=t,this.smiles=t.smiles}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Zk))},t.\u0275cmp=Xt({type:t,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(t,e){1&t&&Ao(0,"img",0),2&t&&Eo("entityId",e.smiles)},directives:[iE],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),t})();function rE(t,e){if(1&t&&(Io(0,"mat-option",19),ua(1),Oo()),2&t){const t=e.$implicit;Eo("value",t),Gs(1),pa(" ",t," ")}}function oE(t,e){if(1&t){const t=Mo();Io(0,"mat-form-field",16),Io(1,"mat-select",17),No("selectionChange",function(e){return Ge(t),Ho(2)._changePageSize(e.value)}),Co(2,rE,2,2,"mat-option",18),Oo(),Oo()}if(2&t){const t=Ho(2);Eo("appearance",t._formFieldAppearance)("color",t.color),Gs(1),Eo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),Gs(1),Eo("ngForOf",t._displayedPageSizeOptions)}}function aE(t,e){if(1&t&&(Io(0,"div",20),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.pageSize)}}function lE(t,e){if(1&t&&(Io(0,"div",12),Io(1,"div",13),ua(2),Oo(),Co(3,oE,3,6,"mat-form-field",14),Co(4,aE,2,1,"div",15),Oo()),2&t){const t=Ho();Gs(2),pa(" ",t._intl.itemsPerPageLabel," "),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length>1),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length<=1)}}function cE(t,e){if(1&t){const t=Mo();Io(0,"button",21),No("click",function(){return Ge(t),Ho().firstPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",22),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),vo("aria-label",t._intl.firstPageLabel)}}function hE(t,e){if(1&t){const t=Mo();Cn(),Sn(),Io(0,"button",23),No("click",function(){return Ge(t),Ho().lastPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",24),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),vo("aria-label",t._intl.lastPageLabel)}}let uE=(()=>{class t{constructor(){this.changes=new S,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 i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const dE={provide:uE,deps:[[new st,new ot,uE]],useFactory:function(t){return t||new uE}},pE=new vt("MAT_PAGINATOR_DEFAULT_OPTIONS");class fE{}const mE=Vb(Ub(fE));let gE=(()=>{class t extends mE{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 Nl,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(pg(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=pg(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(pg(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>pg(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=dg(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=dg(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)(xo(uE),xo(ol),xo(void 0))},t.\u0275dir=se({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ao]}),t})(),_E=(()=>{class t extends gE{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)(xo(uE),xo(ol),xo(pE,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ao],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&&(Io(0,"div",0),Io(1,"div",1),Co(2,lE,5,3,"div",2),Io(3,"div",3),Io(4,"div",4),ua(5),Oo(),Co(6,cE,3,5,"button",5),Io(7,"button",6),No("click",function(){return e.previousPage()}),Cn(),Io(8,"svg",7),Ao(9,"path",8),Oo(),Oo(),Sn(),Io(10,"button",9),No("click",function(){return e.nextPage()}),Cn(),Io(11,"svg",7),Ao(12,"path",10),Oo(),Oo(),Co(13,hE,3,5,"button",11),Oo(),Oo(),Oo()),2&t&&(Gs(2),Eo("ngIf",!e.hidePageSize),Gs(3),pa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),Gs(1),Eo("ngIf",e.showFirstLastButtons),Gs(1),Eo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),vo("aria-label",e._intl.previousPageLabel),Gs(3),Eo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),vo("aria-label",e._intl.nextPageLabel),Gs(3),Eo("ngIf",e.showFirstLastButtons))},directives:[Ah,Uw,uk,KS,Kx,Ih,pv],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)}\n"],encapsulation:2,changeDetection:0}),t})(),yE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[dE],imports:[[Hh,qw,Qx,pk,Nb]]}),t})();const bE=[[["caption"]],[["colgroup"],["col"]]],vE=["caption","colgroup, col"];function wE(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=dg(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const CE=new vt("CDK_TABLE");let SE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellDef",""]]}),t})(),xE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),kE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class EE{}const TE=wE(EE);let IE=(()=>{class t extends TE{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=dg(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)(xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,SE,!0),Jl(n,xE,!0),Jl(n,kE,!0)),2&t){let t;Kl(t=nc())&&(e.cell=t.first),Kl(t=nc())&&(e.headerCell=t.first),Kl(t=nc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Aa([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();class OE{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let AE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ao]}),t})(),RE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[ao]}),t})();class DE{constructor(){this.tasks=[],this.endTasks=[]}}const PE=new vt("_COALESCED_STYLE_SCHEDULER");let ME=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new S}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 DE,this._getScheduleObservable().pipe(xv(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new DE;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Qu(1))}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),LE=(()=>{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 VE?t.headerCell.template:this instanceof zE?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl))},t.\u0275dir=se({type:t,features:[fi]}),t})();class FE extends LE{}const NE=wE(FE);let VE=(()=>{class t extends NE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ao,fi]}),t})();class jE extends LE{}const BE=wE(jE);let zE=(()=>{class t extends BE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ao,fi]}),t})(),HE=(()=>{class t extends LE{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ao]}),t})(),UE=(()=>{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)(xo(bl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),qE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),$E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),WE=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const YE=["top","bottom","left","right"];class GE{constructor(t,e,n,i,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const s=t[0],r=s.children.length,o=this._getCellWidths(s,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",o=i?"left":"right";for(const c of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";YE.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){t.classList.add(this._stickCellCss),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 i of YE)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let KE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","rowOutlet",""]]}),t})(),ZE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),QE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),XE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),JE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new S,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 xu({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,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=dg(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=dg(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&&this._viewportRuler.change().pipe(xv(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(),zv(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?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)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),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 i=0;i{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 s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=tT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tT(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 i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],zv(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;var e;zv(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof y||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Su(this.dataSource)),this._renderChangeSubscription=t.pipe(xv(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)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))UE.mostRecentCellOutlet&&UE.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 GE(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Su()).pipe(xv(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)(xo(tl),xo(ol),xo(Na),ko("role"),xo(n_,8),xo(sh),xo(Gm),xo(qv,8),xo(PE,8),xo(Wv,8))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,WE,!0),Jl(n,IE,!0),Jl(n,HE,!0),Jl(n,VE,!0),Jl(n,zE,!0)),2&t){let t;Kl(t=nc())&&(e._noDataRow=t.first),Kl(t=nc())&&(e._contentColumnDefs=t),Kl(t=nc())&&(e._contentRowDefs=t),Kl(t=nc())&&(e._contentHeaderRowDefs=t),Kl(t=nc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Zl(KE,!0),Zl(ZE,!0),Zl(QE,!0),Zl(XE,!0)),2&t){let t;Kl(t=nc())&&(e._rowOutlet=t.first),Kl(t=nc())&&(e._headerRowOutlet=t.first),Kl(t=nc())&&(e._footerRowOutlet=t.first),Kl(t=nc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Aa([{provide:CE,useExisting:t},{provide:qv,useClass:Hv},{provide:PE,useClass:ME}])],ngContentSelectors:vE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(bE),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function tT(t,e){return t.concat(Array.from(e))}let eT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gv]]}),t})();const nT=[[["caption"]],[["colgroup"],["col"]]],iT=["caption","colgroup, col"];let sT=(()=>{class t extends JE{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return rT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Aa([{provide:qv,useClass:Hv},{provide:JE,useExisting:t},{provide:CE,useExisting:t},{provide:PE,useClass:ME}]),ao],ngContentSelectors:iT,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(nT),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],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;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const rT=ts(sT);let oT=(()=>{class t extends SE{}return t.\u0275fac=function(e){return aT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matCellDef",""]],features:[Aa([{provide:SE,useExisting:t}]),ao]}),t})();const aT=ts(oT);let lT=(()=>{class t extends xE{}return t.\u0275fac=function(e){return cT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderCellDef",""]],features:[Aa([{provide:xE,useExisting:t}]),ao]}),t})();const cT=ts(lT);let hT=(()=>{class t extends IE{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(e){return uT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Aa([{provide:IE,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();const uT=ts(hT);let dT=(()=>{class t extends AE{}return t.\u0275fac=function(e){return pT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ao]}),t})();const pT=ts(dT);let fT=(()=>{class t extends RE{}return t.\u0275fac=function(e){return mT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ao]}),t})();const mT=ts(fT);let gT=(()=>{class t extends VE{}return t.\u0275fac=function(e){return _T(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Aa([{provide:VE,useExisting:t}]),ao]}),t})();const _T=ts(gT);let yT=(()=>{class t extends HE{}return t.\u0275fac=function(e){return bT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Aa([{provide:HE,useExisting:t}]),ao]}),t})();const bT=ts(yT);let vT=(()=>{class t extends qE{}return t.\u0275fac=function(e){return wT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Aa([{provide:qE,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const wT=ts(vT);let CT=(()=>{class t extends $E{}return t.\u0275fac=function(e){return ST(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Aa([{provide:$E,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const ST=ts(CT);let xT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[eT,Nb],Nb]}),t})();const kT=["mat-sort-header",""];function ET(t,e){if(1&t){const t=Mo();Io(0,"div",3),No("@arrowPosition.start",function(){return Ge(t),Ho()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Ge(t),Ho()._disableViewStateAnimation=!1}),Ao(1,"div",4),Io(2,"div",5),Ao(3,"div",6),Ao(4,"div",7),Ao(5,"div",8),Oo(),Oo()}if(2&t){const t=Ho();Eo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),Gs(2),Eo("@indicator",t._getArrowDirectionState()),Gs(1),Eo("@leftPointer",t._getArrowDirectionState()),Gs(1),Eo("@rightPointer",t._getArrowDirectionState())}}const TT=["*"];class IT{}const OT=Ub(Vb(IT));let AT=(()=>{class t extends OT{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new S,this.start="asc",this._direction="",this.sortChange=new Nl}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return RT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ao,fi]}),t})();const RT=ts(AT),DT=Pb.ENTERING+" "+Db.STANDARD_CURVE,PT={indicator:o_("indicator",[h_("active-asc, asc",c_({transform:"translateY(0px)"})),h_("active-desc, desc",c_({transform:"translateY(10px)"})),d_("active-asc <=> active-desc",a_(DT))]),leftPointer:o_("leftPointer",[h_("active-asc, asc",c_({transform:"rotate(-45deg)"})),h_("active-desc, desc",c_({transform:"rotate(45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),rightPointer:o_("rightPointer",[h_("active-asc, asc",c_({transform:"rotate(45deg)"})),h_("active-desc, desc",c_({transform:"rotate(-45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),arrowOpacity:o_("arrowOpacity",[h_("desc-to-active, asc-to-active, active",c_({opacity:1})),h_("desc-to-hint, asc-to-hint, hint",c_({opacity:.54})),h_("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",c_({opacity:0})),d_("* => asc, * => desc, * => active, * => hint, * => void",a_("0ms")),d_("* <=> *",a_(DT))]),arrowPosition:o_("arrowPosition",[d_("* => desc-to-hint, * => desc-to-active",a_(DT,u_([c_({transform:"translateY(-25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-desc, * => active-to-desc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(25%)"})]))),d_("* => asc-to-hint, * => asc-to-active",a_(DT,u_([c_({transform:"translateY(25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-asc, * => active-to-asc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(-25%)"})]))),h_("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",c_({transform:"translateY(0)"})),h_("hint-to-desc, active-to-desc, desc",c_({transform:"translateY(-25%)"})),h_("hint-to-asc, active-to-asc, asc",c_({transform:"translateY(25%)"}))]),allowChildren:o_("allowChildren",[d_("* <=> *",[f_("@*",p_(),{optional:!0})])])};let MT=(()=>{class t{constructor(){this.changes=new S,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LT={provide:MT,deps:[[new st,new ot,MT]],useFactory:function(t){return t||new MT}};class FT{}const NT=Vb(FT);let VT=(()=>{class t extends NT{constructor(t,e,n,i,s,r){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=W(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(xo(MT),xo(ol),xo(AT,8),xo("MAT_SORT_HEADER_COLUMN_DEF",8),xo(Bg),xo(Na))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(vo("aria-sort",e._getAriaSortAttribute()),ta("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ao],attrs:kT,ngContentSelectors:TT,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(qo(),Io(0,"div",0),Io(1,"div",1),$o(2),Oo(),Co(3,ET,6,6,"div",2),Oo()),2&t&&(ta("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vo("tabindex",e._isDisabled()?null:0),Gs(3),Eo("ngIf",e._renderArrow()))},directives:[Ah],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[PT.indicator,PT.leftPointer,PT.rightPointer,PT.arrowOpacity,PT.arrowPosition,PT.allowChildren]},changeDetection:0}),t})(),jT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[LT],imports:[[Hh,Nb]]}),t})();function BT(t,e){if(1&t&&(Io(0,"li"),ua(1),Oo()),2&t){const t=e.$implicit;Gs(1),da(t)}}function zT(t,e){if(1&t&&(Io(0,"ul"),Co(1,BT,2,1,"li",8),Oo()),2&t){const t=Ho(2);Gs(1),Eo("ngForOf",t.errorMessages)}}function HT(t,e){if(1&t){const t=Mo();Io(0,"div",2),Io(1,"div",3),Io(2,"div"),ua(3),Oo(),Co(4,zT,2,1,"ul",4),Oo(),Io(5,"div",5),Io(6,"button",6),No("click",function(){return Ge(t),Ho().clearErrorMessage()}),Ao(7,"mat-icon",7),Oo(),Oo(),Oo()}if(2&t){const t=Ho();Gs(3),pa(" ",t.errorMessage," "),Gs(1),Eo("ngIf",t.errorMessages&&t.errorMessages.length)}}function UT(t,e){if(1&t&&(Io(0,"mat-header-cell",23),Io(1,"span",24),ua(2),Oo(),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("matTooltip",e.displayedColumnsDict[t].description),Gs(1),pa(" ",e.displayedColumnsDict[t].isSmilesColumn?"mol":t," ")}}function qT(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho().$implicit,e=Ho().$implicit;Gs(1),da("0 (0.0)"==t[e]?"0 (0.01)":t[e])}}function $T(t,e){if(1&t){const t=Mo();Io(0,"a",26),No("click",function(){Ge(t);const e=Ho().$implicit,n=Ho().$implicit;return Ho(2).openStructureImageDialog(e[n])}),Ao(1,"img",27),Oo()}if(2&t){const t=Ho().$implicit,e=Ho().$implicit;Eo("matTooltip",t[e]),Gs(1),Eo("entityId",t[e])}}function WT(t,e){if(1&t&&(Io(0,"mat-cell"),Co(1,qT,2,1,"span",4),Co(2,$T,2,2,"a",25),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("ngIf",!e.displayedColumnsDict[t].isSmilesColumn),Gs(1),Eo("ngIf",e.displayedColumnsDict[t].isSmilesColumn)}}function YT(t,e){1&t&&(Ro(0,20),Co(1,UT,3,2,"mat-header-cell",21),Co(2,WT,3,2,"mat-cell",22),Do()),2&t&&Eo("matColumnDef",e.$implicit)}function GT(t,e){1&t&&Ao(0,"mat-header-row")}function KT(t,e){1&t&&Ao(0,"mat-row",28)}const ZT=function(){return[5,10,25,100]};function QT(t,e){if(1&t){const t=Mo();Io(0,"div",9),Io(1,"h2"),ua(2,"Model predictions"),Oo(),Io(3,"div",10),Io(4,"button",11),No("click",function(){return Ge(t),Ho().downloadCSV()}),ua(5,"Download"),Oo(),Ao(6,"div",12),Io(7,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo(),Io(8,"div",14),Io(9,"mat-table",15,16),No("matSortChange",function(e){return Ge(t),Ho().sortData(e)}),Co(11,YT,3,1,"ng-container",17),Co(12,GT,1,0,"mat-header-row",18),Co(13,KT,1,0,"mat-row",19),Oo(),Oo(),Io(14,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo()}if(2&t){const t=Ho();Gs(7),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(12,ZT)),Gs(2),Eo("dataSource",t.paged),Gs(2),Eo("ngForOf",t.displayedColumns),Gs(1),Eo("matHeaderRowDef",t.displayedColumns),Gs(1),Eo("matRowDefColumns",t.displayedColumns),Gs(1),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(13,ZT))}}let XT=(()=>{class t{constructor(t,e){this.dialog=t,this.gaService=e,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Nl}ngOnInit(){}set predictionsData(t){null!=t?(this.predictions=t,this.displayedColumnsDict=t.mainColumnsDict,this.displayedColumns=Object.keys(this.displayedColumnsDict).sort((t,e)=>this.displayedColumnsDict[t].order-this.displayedColumnsDict[e].order),this.allColumns=t.columns,"replace"===this.dataHandling?(this.data=t.data,this.displayData=this.getNonEmptyPredictions(this.data)):(this.data.push(t.data[0]),this.displayData=this.displayData.concat(this.getNonEmptyPredictions(t.data))),this.pageChange(),t.hasErrors&&(this.errorMessage="The system encountered the following error(s) while processing your request:",this.errorMessages=t.errorMessages)):(this.data=null,this.displayData=null)}pageChange(t){this.clearErrorMessage(),null!=t?(t.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=t.pageIndex,t.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=t.pageSize):this.page=0,this.paged=[];const e=this.page*this.pageSize;for(let n=e;nthis.compare(e[t.active],n[t.active],"asc"===t.direction)),this.pageChange()}compare(t,e,n){return(t!this.displayedColumnsDict[t].isSmilesColumn);return t.filter(t=>{let n=0;return e.forEach(e=>{null!=t[e]&&""!==t[e]||n++}),n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Oo(),Oo(),Io(60,"div",4),Io(61,"div",5),ua(62,"Data for Download:"),Oo(),Io(63,"div",6),ua(64," A subset of the dataset used for developing these models is available for download. Click "),Io(65,"a",12),ua(66,"here"),Oo(),ua(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Io(68,"a",13),ua(69,"AID 1508591"),Oo(),ua(70,". "),Oo(),Oo(),Oo(),Ao(71,"br"),Io(72,"h3"),ua(73," RLM Assay Protocol "),Oo(),Io(74,"p",14),ua(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Io(76,"sub"),ua(77,"1/2"),Oo(),ua(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Oo(),Io(79,"h3"),ua(80," References: "),Oo(),Io(81,"ol"),Io(82,"li"),ua(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Oo(),Io(84,"li"),ua(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Oo(),Oo(),Oo()),2&t){const t=Ho();Gs(65),Eo("href",t.dataDownloadHref,ai)}}function hI(t,e){1&t&&(Io(0,"div",2),Io(1,"h2"),ua(2," CYP450 Models "),Oo(),Io(3,"h3"),ua(4," High-throughput metabolic stability assays: "),Oo(),Io(5,"p"),ua(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Io(7,"sup"),ua(8,"1"),Oo(),ua(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Io(10,"sub"),ua(11,"1/2"),Oo(),ua(12,") determinations were performed as previously described"),Io(13,"sup"),ua(14,"1"),Oo(),ua(15,". "),Oo(),Io(16,"div",15),Io(17,"div",16),ua(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Oo(),Io(19,"div",17),Io(20,"table",18),Io(21,"thead"),Io(22,"tr",19),Io(23,"th",20),ua(24," Matrix "),Oo(),Io(25,"th",20),ua(26," Final Protein Concentration [mg/mL] "),Oo(),Io(27,"th",20),ua(28," Total CYP content [nM] "),Oo(),Io(29,"th",20),ua(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Oo(),Io(31,"th",20),ua(32," Cytochrome b"),Io(33,"sub"),ua(34,"5"),Oo(),ua(35," content [pmol/mg protein] "),Oo(),Io(36,"th",20),ua(37," High clearance controls "),Oo(),Io(38,"th",20),ua(39," Moderate clearance controls "),Oo(),Io(40,"th",20),ua(41," Low clearance controls "),Oo(),Oo(),Oo(),Io(42,"tbody"),Io(43,"tr",21),Io(44,"td",22),ua(45," CYP3A4 "),Oo(),Io(46,"td",23),ua(47," ~0.2 "),Oo(),Io(48,"td",23),ua(49," 30 "),Oo(),Io(50,"td",23),ua(51," 2900 "),Oo(),Io(52,"td",23),ua(53," 1090 "),Oo(),Io(54,"td",23),ua(55," Buspirone, Loperamide "),Oo(),Io(56,"td",23),ua(57," Ketoconazole "),Oo(),Io(58,"td",23),ua(59," Antipyrine, Carbamazepine "),Oo(),Oo(),Io(60,"tr",21),Io(61,"td",22),ua(62," CYP2C9 "),Oo(),Io(63,"td",23),ua(64," ~0.12 "),Oo(),Io(65,"td",23),ua(66," 45 "),Oo(),Io(67,"td",23),ua(68," 985 "),Oo(),Io(69,"td",23),ua(70," 710 "),Oo(),Io(71,"td",23),ua(72," Glyburide, Glimepiride "),Oo(),Io(73,"td",23),ua(74," Tamoxifen "),Oo(),Io(75,"td",23),ua(76," Antipyrine, Meloxicam "),Oo(),Oo(),Io(77,"tr",21),Io(78,"td",22),ua(79," CYP2D6 "),Oo(),Io(80,"td",23),ua(81," ~0.38 "),Oo(),Io(82,"td",23),ua(83," 60 "),Oo(),Io(84,"td",23),ua(85," 3000 "),Oo(),Io(86,"td",23),ua(87," - "),Oo(),Io(88,"td",23),ua(89," Bufuralol, Desipramine, Amitriptyline "),Oo(),Io(90,"td",23),ua(91," Mexiletine "),Oo(),Io(92,"td",23),ua(93," Codeine "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(94,"h3"),ua(95," P450-Glo qHTS: "),Oo(),Io(96,"p"),ua(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Io(98,"sup"),ua(99,"2"),Oo(),ua(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Oo(),Io(101,"div",15),Io(102,"div",16),ua(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Oo(),Io(104,"div",17),Io(105,"table",18),Io(106,"thead"),Io(107,"tr",19),Io(108,"th",20),ua(109," Enzyme "),Oo(),Io(110,"th",20),ua(111," Inhibitor "),Oo(),Io(112,"th",20),ua(113," Dilution Format "),Oo(),Io(114,"th",20),ua(115," Inhibitor Concentration "),Oo(),Io(116,"th",20),ua(117," Incubation conditions "),Oo(),Oo(),Oo(),Io(118,"tbody"),Io(119,"tr",21),Io(120,"td",22),ua(121," CYP3A4 "),Oo(),Io(122,"td",23),ua(123," Ketoconazole "),Oo(),Io(124,"td",24),Io(125,"div"),ua(126,"16 concentrations/"),Oo(),Io(127,"div"),ua(128,"2-fold dilution in"),Oo(),Io(129,"div"),ua(130,"duplicates"),Oo(),Oo(),Io(131,"td",23),ua(132," 57 \xb5M-1.8 nM "),Oo(),Io(133,"td",23),ua(134," 1 h/RT "),Oo(),Oo(),Io(135,"tr",21),Io(136,"td",22),ua(137," CYP2C9 "),Oo(),Io(138,"td",23),ua(139," Sulfaphenazole "),Oo(),Io(140,"td",23),ua(141," 57 \xb5M-1.8 nM "),Oo(),Io(142,"td",23),ua(143," 1 h/ 37\u02daC/ 0.4% BSA "),Oo(),Oo(),Io(144,"tr",21),Io(145,"td",22),ua(146," CYP2D6 "),Oo(),Io(147,"td",23),ua(148," Quinidine "),Oo(),Io(149,"td",23),ua(150," 1.4 \xb5M-0.04 nM "),Oo(),Io(151,"td",23),ua(152," 1 h/RT "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(153,"div",15),Io(154,"div",16),ua(155," Parsing of Substrates and Inhibitors: "),Oo(),Io(156,"div",17),Io(157,"table",25),Io(158,"thead"),Io(159,"tr",19),Io(160,"th",20),ua(161," Category "),Oo(),Io(162,"th",20),Io(163,"div"),ua(164,"Clearance"),Oo(),Io(165,"div"),ua(166,"/"),Oo(),Io(167,"div"),ua(168,"P450-Glo"),Oo(),Oo(),Io(169,"th",20),ua(170," Classification "),Oo(),Io(171,"th",20),ua(172," Parsing Rationale "),Oo(),Oo(),Oo(),Io(173,"tbody"),Io(174,"tr",21),Io(175,"td",23),ua(176," 1 "),Oo(),Io(177,"td",23),ua(178," + / + "),Oo(),Io(179,"td",23),ua(180," Substrate "),Oo(),Io(181,"td",26),ua(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Oo(),Oo(),Io(183,"tr",21),Io(184,"td",23),ua(185," 2 "),Oo(),Io(186,"td",23),ua(187," - / + "),Oo(),Io(188,"td",23),ua(189," Inhibitor "),Oo(),Io(190,"td",26),ua(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Oo(),Oo(),Io(192,"tr",21),Io(193,"td",23),ua(194," 3 "),Oo(),Io(195,"td",23),ua(196," - / - "),Oo(),Io(197,"td",23),ua(198," Non-ligand "),Oo(),Io(199,"td",26),ua(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Oo(),Oo(),Io(201,"tr",21),Io(202,"td",23),ua(203," 4 "),Oo(),Io(204,"td",23),ua(205," + / - "),Oo(),Io(206,"td",23),ua(207," Substrate "),Oo(),Io(208,"td",26),ua(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(210,"h3"),ua(211," References: "),Oo(),Io(212,"ol"),Io(213,"li"),ua(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Oo(),Io(215,"li"),ua(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Oo(),Oo(),Oo())}const uI=[{path:"home",component:$m,data:{pageTitle:"home"}},{path:"predictions",component:(()=>{class t{constructor(t,e,n){this.http=t,this.loadingService=e,this.gaService=n,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}ngOnInit(){this.link=document.createElement("a")}processSketcherInput(t){this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/adme/api/v1/predict",{params:{smiles:t,model:this.models}}).subscribe(t=>{this.sketcherData=t,this.loadingService.setLoadingState(!1)},t=>{this.errorMessage="There was an error processing your structure. Please modify it and try again.",this.loadingService.setLoadingState(!1)})}processFile(t){this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);const e=new FormData;e.append("lineBreak",t.lineBreak),this.lineBreak=t.lineBreak,e.append("columnSeparator",t.columnSeparator),this.columnSeparator=t.columnSeparator,e.append("hasHeaderRow",t.hasHeaderRow.toString()),e.append("indexIdentifierColumn",t.indexIdentifierColumn.toString()),e.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=t.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,e.append("file",t.file),this.http.post("/adme/api/v1/predict-file",e).subscribe(t=>{t.hasErrors?this.errorMessage=t.errorMessages:t&&Object.keys(t).length>0&&(this.fileData=t),this.loadingService.setLoadingState(!1)},t=>{this.fileData=null,this.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",this.loadingService.setLoadingState(!1)})}clearErrorMessage(){this.errorMessage="",this.errorMessages=[]}downloadCSV(t){const e=[...t.allColumns].join(this.columnSeparator),n=[];t.data.forEach(e=>n.push(t.allColumns.map(t=>e[t]).join(this.columnSeparator)));const i=e+this.lineBreak+n.join(this.lineBreak);this.file=new Blob([i],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}downloadFile(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}selectedTabChange(t,e){this.gaService.sendEvent("click:tab",e,t.tab.textLabel)}}return t.\u0275fac=function(e){return new(e||t)(xo(km),xo(Wm),xo(Um))},t.\u0275cmp=Xt({type:t,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"mat-tab-group",2),No("selectedTabChange",function(t){return e.selectedTabChange(t,"predictions:input-type")}),Io(3,"mat-tab",3),Io(4,"div",4),Io(5,"adme-sketcher",5),No("moleculeInput",function(t){return e.processSketcherInput(t)}),Oo(),Oo(),Co(6,eI,8,2,"div",6),Co(7,iI,3,1,"div",7),Oo(),Io(8,"mat-tab",8),Io(9,"div",4),Io(10,"adme-text-file",9),No("fileProcess",function(t){return e.processFile(t)}),Oo(),Oo(),Co(11,oI,8,2,"div",6),Co(12,lI,3,1,"div",7),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.sketcherData),Gs(4),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.fileData))},directives:[Ow,yw,Ww,Ah,xk,Uw,jk,Ih,XT],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),t})(),data:{pageTitle:"predictions"}},{path:"models/:model",component:(()=>{class t{constructor(t,e){this.domSanatizer=t,this.activatedRoute=e,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/adme/client/assets/rlm_public_set.xlsx")}ngOnInit(){this.subscription=this.activatedRoute.params.subscribe(t=>{this.model=t.model})}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(vp))},t.\u0275cmp=Xt({type:t,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(t,e){1&t&&(Io(0,"div",0),Co(1,cI,86,1,"div",1),Co(2,hI,217,0,"div",1),Oo()),2&t&&(Gs(1),Eo("ngIf","rlm"==e.model),Gs(1),Eo("ngIf","cyp450"==e.model))},directives:[Ah,qm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),t})(),data:{pageTitle:"model"}},{path:"contact",component:(()=>{class t{constructor(t){this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/epam_ketcher.png")}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(yu))},t.\u0275cmp=Xt({type:t,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h1"),ua(3," Contact "),Oo(),Io(4,"div",2),Io(5,"div",3),Ao(6,"img",4),Oo(),Io(7,"div",5),Io(8,"div"),ua(9," Vishal Siramshetty "),Oo(),Io(10,"div"),ua(11," Postdoctoral Fellow (Informatics) "),Oo(),Io(12,"div"),ua(13," Email: "),Io(14,"a",6),ua(15,"siramshettyv2@nih.gov"),Oo(),ua(16," (models/predictions related queries) "),Oo(),Oo(),Oo(),Io(17,"div",2),Io(18,"div",3),Ao(19,"img",4),Oo(),Io(20,"div",5),Io(21,"div"),ua(22," Pranav Shah "),Oo(),Io(23,"div"),ua(24," Lead (In Vitro ADME) "),Oo(),Io(25,"div"),ua(26," Email: "),Io(27,"a",7),ua(28,"pranav.shah@nih.gov"),Oo(),ua(29," (assay/data related queries) "),Oo(),Oo(),Oo(),Io(30,"div",2),Io(31,"div",3),Ao(32,"img",4),Oo(),Io(33,"div",5),Io(34,"div"),ua(35," Jorge Neyra "),Oo(),Io(36,"div"),ua(37," Software Developer (Informatics) "),Oo(),Io(38,"div"),ua(39," Email: "),Io(40,"a",8),ua(41,"jorge.neyra@nih.gov"),Oo(),ua(42," (software related queries) "),Oo(),Oo(),Oo(),Io(43,"div",2),Io(44,"div",3),Ao(45,"img",4),Oo(),Io(46,"div",5),Io(47,"div"),ua(48," Jordan Williams "),Oo(),Io(49,"div"),ua(50," Postbaccalaureate Fellow (In Vitro ADME) "),Oo(),Io(51,"div"),ua(52," Email: "),Io(53,"a",9),ua(54,"jordan.williams2@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(55,"div",2),Io(56,"div",3),Ao(57,"img",4),Oo(),Io(58,"div",5),Io(59,"div"),ua(60," Noel Southall "),Oo(),Io(61,"div"),ua(62," Lead (Informatics) "),Oo(),Io(63,"div"),ua(64," Email: "),Io(65,"a",10),ua(66,"southalln@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(67,"div",2),Io(68,"div",3),Ao(69,"img",4),Oo(),Io(70,"div",5),Io(71,"div"),ua(72," Trung Nguyen "),Oo(),Io(73,"div"),ua(74," Staff Scientist (Informatics) "),Oo(),Io(75,"div"),ua(76," Email: "),Io(77,"a",11),ua(78,"nguyenda@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(79,"div",2),Io(80,"div",3),Ao(81,"img",4),Oo(),Io(82,"div",5),Io(83,"div"),ua(84," Xin Xu "),Oo(),Io(85,"div"),ua(86," Lead (ADME Group) "),Oo(),Io(87,"div"),ua(88," Email: "),Io(89,"a",12),ua(90,"xin.xu3@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(91,"div",13),Io(92,"h1"),ua(93," Resources "),Oo(),Io(94,"div",14),Io(95,"div"),Io(96,"a",15),Ao(97,"img",4),Oo(),Oo(),Io(98,"div"),Io(99,"a",16),Ao(100,"img",4),Oo(),Oo(),Oo(),Io(101,"div",14),Io(102,"div"),Io(103,"a",17),Ao(104,"img",4),Oo(),Oo(),Io(105,"div"),Io(106,"a",18),Ao(107,"img",4),Oo(),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("src",e.vishalImgSrc,ai),Gs(13),Eo("src",e.pranavImgSrc,ai),Gs(13),Eo("src",e.jorgeImgSrc,ai),Gs(13),Eo("src",e.jordanImgSrc,ai),Gs(12),Eo("src",e.noelImgSrc,ai),Gs(12),Eo("src",e.trungImgSrc,ai),Gs(12),Eo("src",e.xinImgSrc,ai),Gs(16),Eo("src",e.rdkitImgSrc,ai),Gs(3),Eo("src",e.pythonImgSrc,ai),Gs(4),Eo("src",e.angularImgSrc,ai),Gs(3),Eo("src",e.epamImgSrc,ai))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),t})(),data:{pageTitle:"contact"}},{path:"**",component:$m}];let dI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tm.forRoot(uI,{relativeLinkResolution:"legacy"})],tm]}),t})();function pI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function fI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function mI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function gI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}const _I=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class yI{constructor(t){this._elementRef=t}}const bI=jb(yI,"primary"),vI=new vt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let wI=(()=>{class t extends bI{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=pg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=pg(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,pg(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eg(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(vo("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,pI,1,9,"circle",1),Co(2,fI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),CI=(()=>{class t extends wI{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,mI,1,9,"circle",1),Co(2,gI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t})(),SI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Hh],Nb]}),t})();function xI(t,e){1&t&&(Io(0,"div",1),Ao(1,"mat-spinner"),Oo())}let kI=(()=>{class t{constructor(t){this.lodadingService=t,this.isLoading=!1}ngOnInit(){this.lodadingService.isLoading.subscribe(t=>{this.isLoading=t})}}return t.\u0275fac=function(e){return new(e||t)(xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(t,e){1&t&&Co(0,xI,2,0,"div",0),2&t&&Eo("ngIf",e.isLoading)},directives:[Ah,CI],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),t})();const EI=["*",[["mat-toolbar-row"]]],TI=["*","mat-toolbar-row"];class II{constructor(t){this._elementRef=t}}const OI=jb(II);let AI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),RI=(()=>{class t extends OI{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,AI,!0),2&t){let t;Kl(t=nc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ao],ngContentSelectors:TI,decls:2,vars:0,template:function(t,e){1&t&&(qo(EI),$o(0),$o(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),DI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function PI(t,e=ag){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new MI(i,e))}class MI{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new LI(t,this.delay,this.scheduler))}}class LI extends f{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,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(LI.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new FI(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Bv.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Bv.createComplete()),this.unsubscribe()}}class FI{constructor(t,e){this.time=t,this.notification=e}}const NI=["mat-menu-item",""],VI=["*"];function jI(t,e){if(1&t){const t=Mo();Io(0,"div",0),No("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)})("click",function(){return Ge(t),Ho().closed.emit("click")})("@transformMenu.start",function(e){return Ge(t),Ho()._onAnimationStart(e)})("@transformMenu.done",function(e){return Ge(t),Ho()._onAnimationDone(e)}),Io(1,"div",1),$o(2),Oo(),Oo()}if(2&t){const t=Ho();Eo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),vo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const BI={transformMenu:o_("transformMenu",[h_("void",c_({opacity:0,transform:"scale(0.8)"})),d_("void => enter",a_("120ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:1,transform:"scale(1)"}))),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))]),fadeInItems:o_("fadeInItems",[h_("showing",c_({opacity:1})),d_("void => *",[c_({opacity:0}),a_("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zI=new vt("MatMenuContent"),HI=new vt("MAT_MENU_PANEL");class UI{}const qI=Bb(Vb(UI));let $I=(()=>{class t extends qI{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new S,this._focused=new S,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new jl,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new S,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Nl,this.close=this.closed,this.panelId="mat-menu-panel-"+YI++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=dg(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=dg(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ig(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:ng(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Qu(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ed(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275dir=se({type:t,contentQueries:function(t,e,n){if(1&t&&(Jl(n,zI,!0),Jl(n,$I,!0),Jl(n,$I,!1)),2&t){let t;Kl(t=nc())&&(e.lazyContent=t.first),Kl(t=nc())&&(e._allItems=t),Kl(t=nc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Ql(dl,!0),2&t){let t;Kl(t=nc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),KI=(()=>{class t extends GI{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Aa([{provide:HI,useExisting:t}]),ao],ngContentSelectors:VI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(qo(),Co(0,jI,3,6,"ng-template"))},directives:[Eh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[BI.transformMenu,BI.fadeInItems]},changeDetection:0}),t})();const ZI=new vt("mat-menu-scroll-strategy"),QI={provide:ZI,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},XI=tg({passive:!0});let JI=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Nl,this.onMenuOpen=this.menuOpened,this.menuClosed=new Nl,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof GI?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,XI),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,XI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof GI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof GI?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Mu(t=>"void"===t.toState),Qu(1),xv(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ox({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return W(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Su(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mu(t=>t!==this._menuItemInstance),Mu(()=>this._menuOpen)):Su(),e)}_handleMousedown(t){Ng(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mu(t=>t===this._menuItemInstance&&!t.disabled),PI(0,Mv)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof GI&&this.menu._isAnimating?this.menu._animationDone.pipe(Qu(1),PI(0,Mv),xv(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Yg(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(Na),xo(bl),xo(ZI),xo(HI,8),xo($I,10),xo(n_,8),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&No("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&vo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),tO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[Nb]}),t})(),eO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[[Hh,Nb,tv,Ox,tO],Yv,Nb,tO]}),t})(),nO=(()=>{class t{constructor(t,e,n,i,s){this.router=n,this.gaService=i,this._document=s,t.addSvgIcon("cancel",e.bypassSecurityTrustResourceUrl("/adme/client/assets/icons/cancel-24px.svg"))}ngOnInit(){this._document.getElementById("appFavicon").setAttribute("href","/adme/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(t=>{t instanceof xd&&this.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}ngOnDestroy(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Ak),xo(yu),xo(Bf),xo(Um),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(t,e){if(1&t&&(Ao(0,"adme-loading"),Io(1,"mat-toolbar",0),Io(2,"a",1),ua(3,"ADME @ NCATS"),Oo(),Io(4,"div",2),Io(5,"a",3),ua(6,"Predict"),Oo(),Io(7,"a",4),ua(8,"Models"),Oo(),Io(9,"mat-menu",null,5),Io(11,"button",6),ua(12,"RLM"),Oo(),Io(13,"button",7),ua(14,"CYP450"),Oo(),Oo(),Io(15,"a",8),ua(16,"Contact"),Oo(),Oo(),Ao(17,"span",9),Oo(),Ao(18,"router-outlet")),2&t){const t=So(10);Gs(7),Eo("matMenuTriggerFor",t)}},directives:[kI,RI,Hf,JI,KI,$I,zf,qf],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),t})(),iO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,qw]]}),t})(),sO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb],Nb]}),t})(),rO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})(),oO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[$b,tv,Nb,nv,Hh],$b,Nb,nv,rO]}),t})();function aO(t){return()=>t.load()}let lO=(()=>{class t{}return t.\u0275mod=ne({type:t,bootstrap:[nO]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Hm,{provide:oc,useFactory:aO,deps:[Hm],multi:!0}],imports:[[Cu,dI,Ob,iO,xT,yE,zm,qw,DI,mS,gS,ZS,Qx,Nw,Sk,sO,SI,oO,nE,jT,pk,Bk,eO]]}),t})();(function(){if(Fn)throw new Error("Cannot enable prod mode after platform setup.");Ln=!1})(),vu().bootstrapModule(lO).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/server/client/main-es2015.e043658e91f3fa1d6dea.js b/server/client/main-es2015.e043658e91f3fa1d6dea.js deleted file mode 100644 index 57dc38a..0000000 --- a/server/client/main-es2015.e043658e91f3fa1d6dea.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.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}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.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(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(){}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:((e=t)?1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)}:_)(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class E extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const T=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return T(t);if(R(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function P(t,e,n,i,s=new E(t,n,i)){if(!s.closed)return e instanceof y?e.subscribe(s):D(e)(s)}class M extends f{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function V(t,e){return new y(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(R(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return V(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[O](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(D(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends M{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 U(t){return t}function q(t=Number.POSITIVE_INFINITY){return B(U,t)}function $(t,e){return e?V(t,e):new y(T(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:q(e)($(t,n))}function Y(){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 i=new K(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class K extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const Q=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class X extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function J(){return new S}function tt(){return t=>{return Y()((e=J,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Q);return i.source=t,i.subjectFactory=n,i})(t));var e}}function et(t){return{toString:t}.toString()}function nt(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");function at(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(at).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 lt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ht(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function pt(t){return ft(t,gt)||ft(t,yt)}function ft(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(bt))?t[_t]:null}const gt=ct({\u0275prov:ct}),_t=ct({\u0275inj:ct}),yt=ct({ngInjectableDef:ct}),bt=ct({ngInjectorDef:ct});class vt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const wt=new vt("AnalyzeForEntryComponents");var Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({});const St="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,Tt=St||Et||xt||kt,It=ct({__forward_ref__:ct});function Ot(t){return t.__forward_ref__=Ot,t.toString=function(){return at(this())},t}function At(t){return Rt(t)?t():t}function Rt(t){return"function"==typeof t&&t.hasOwnProperty(It)&&t.__forward_ref__===Ot}const Dt=Function;function Pt(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Mt(t,e):e(t))}function Lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ft(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Nt(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function jt(t,e){const n=Bt(t,e);if(n>=0)return t[1|n]}function Bt(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var zt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Ht={},Ut=[],qt=ct({\u0275cmp:ct}),$t=ct({\u0275dir:ct}),Wt=ct({\u0275pipe:ct}),Yt=ct({\u0275mod:ct}),Gt=ct({\u0275loc:ct}),Kt=ct({\u0275fac:ct}),Zt=ct({__NG_ELEMENT_ID__:ct});let Qt=0;function Xt(t){return et(()=>{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===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||zt.Emulated,id:"c",styles:t.styles||Ut,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Qt++,n.inputs=ie(t.inputs,e),n.outputs=ie(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Jt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(te):null,n})}function Jt(t){return oe(t)||function(t){return t[$t]||null}(t)}function te(t){return function(t){return t[Wt]||null}(t)}const ee={};function ne(t){const e={type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{ee[t.id]=t.type}),e}function ie(t,e){if(null==t)return Ht;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const se=Xt;function re(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function oe(t){return t[qt]||null}function ae(t,e){const n=t[Yt]||null;if(!n&&!0===e)throw new Error(`Type ${at(t)} does not have '\u0275mod' property.`);return n}function le(t){return"string"==typeof t?t:null==t?"":""+t}function ce(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():le(t)}var he=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let ue;function de(t){const e=ue;return ue=t,e}function pe(t,e,n){const i=pt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&he.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${at(t)}]`)}const fe={},me=/\n/gm,ge=ct({provide:String,useValue:ct});let _e=void 0;function ye(t){const e=_e;return _e=t,e}function be(t,e=he.Default){if(void 0===_e)throw new Error("inject() must be called from an injection context");return null===_e?pe(t,void 0,e):_e.get(t,e&he.Optional?null:void 0,e)}function ve(t,e=he.Default){return(ue||be)(At(t),e)}const we=ve;function Ce(t){const e=[];for(let n=0;nvoid 0!==Se?Se:"undefined"!=typeof document?document:void 0};function De(t){for(;Array.isArray(t);)t=t[0];return t}function Pe(t,e){return De(e[t])}function Me(t,e){return De(e[t.index])}function Le(t,e){return t.data[e]}function Fe(t,e){return t[e]}function Ne(t,e){const n=e[t];return xe(n)?n:n[0]}function Ve(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function je(t){return 4==(4&t[2])}function Be(t){return 128==(128&t[2])}function ze(t,e){return null==e?null:t[e]}function He(t){t[18]=0}function Ue(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const qe={lFrame:mn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $e(){return qe.bindingsEnabled}function We(){return qe.lFrame.lView}function Ye(){return qe.lFrame.tView}function Ge(t){qe.lFrame.contextLView=t}function Ke(){let t=Ze();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ze(){return qe.lFrame.currentTNode}function Qe(t,e){const n=qe.lFrame;n.currentTNode=t,n.isParent=e}function Xe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function tn(){return qe.isInCheckNoChangesMode}function en(t){qe.isInCheckNoChangesMode=t}function nn(){const t=qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sn(){return qe.lFrame.bindingIndex++}function rn(t){const e=qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function on(t,e){const n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=t,an(e)}function an(t){qe.lFrame.currentDirectiveIndex=t}function ln(t){const e=qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function cn(){return qe.lFrame.currentQueryIndex}function hn(t){qe.lFrame.currentQueryIndex=t}function un(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function dn(t,e,n){if(n&he.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&he.Host||(i=un(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=qe.lFrame=fn();return i.currentTNode=e,i.lView=t,!0}function pn(t){const e=fn(),n=t[1];qe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function fn(){const t=qe.lFrame,e=null===t?null:t.child;return null===e?mn(t):e}function mn(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 gn(){const t=qe.lFrame;return qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const _n=gn;function yn(){const t=gn();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 bn(){return qe.lFrame.selectedIndex}function vn(t){qe.lFrame.selectedIndex=t}function wn(){const t=qe.lFrame;return Le(t.tView,t.selectedIndex)}function Cn(){qe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){qe.lFrame.currentNamespace=null}let xn;function kn(t){var e;return(null===(e=function(){if(void 0===xn&&(xn=null,Tt.trustedTypes))try{xn=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return xn}())||void 0===e?void 0:e.createHTML(t))||t}class En{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Tn extends En{getTypeName(){return"HTML"}}class In extends En{getTypeName(){return"Style"}}class On extends En{getTypeName(){return"Script"}}class An extends En{getTypeName(){return"URL"}}class Rn extends En{getTypeName(){return"ResourceURL"}}function Dn(t){return t instanceof En?t.changingThisBreaksApplicationSecurity:t}function Pn(t,e){const n=Mn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Mn(t){return t instanceof En&&t.getTypeName()||null}let Ln=!0,Fn=!1;function Nn(){return Fn=!0,Ln}class Vn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(kn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class jn{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=kn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=kn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Hn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ii(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!$n.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ii(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 ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/([^\#-~ |!])/g;function ii(t){return t.replace(/&/g,"&").replace(ei,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ni,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let si;function ri(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var oi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ai(t){const e=ci();return e?e.sanitize(oi.URL,t)||"":Pn(t,"URL")?Dn(t):Hn(le(t))}function li(t){const e=ci();if(e)return e.sanitize(oi.RESOURCE_URL,t)||"";if(Pn(t,"ResourceURL"))return Dn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function ci(){const t=We();return t&&t[12]}function hi(t,e){return t.hasOwnProperty(Kt)?t[Kt]:null}class ui extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function di(t,e){const n=e?" in "+e:"";throw new ui("201",`No provider for ${ce(t)} found${n}`)}class pi{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fi(){return mi}function mi(t){return t.type.prototype.ngOnChanges&&(t.setInput=_i),gi}function gi(){const t=yi(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Ht)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _i(t,e,n,i){const s=yi(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ht,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new pi(l&&l.currentValue,e,o===Ht),t[i]=e}function yi(t){return t.__ngSimpleChanges__||null}function bi(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}fi.ngInherit=!0;class ki{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ei(t,e,n){const i=Ae(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Mi=!0;function Li(t){const e=Mi;return Mi=t,e}let Fi=0;function Ni(t,e){const n=ji(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Vi(i.data,t),Vi(e,null),Vi(i.blueprint,null));const s=Bi(t,e),r=t.injectorIndex;if(Ri(s)){const t=Di(s),n=Pi(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Vi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ji(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Bi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function zi(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=Fi++);const s=255&i,r=1<=0?255&e:Wi:e}(n);if("function"==typeof r){if(!dn(e,t,i))return i&he.Host?Hi(s,n,i):Ui(e,n,i,s);try{const t=r();if(null!=t||i&he.Optional)return t;di(n)}finally{_n()}}else if("number"==typeof r){let s=null,o=ji(t,e),a=-1,l=i&he.Host?e[16][6]:null;for((-1===o||i&he.SkipSelf)&&(a=-1===o?Bi(t,e):e[o+8],-1!==a&&Qi(i,!1)?(s=e[1],o=Di(a),e=Pi(a,e)):o=-1);-1!==o;){const t=e[1];if(Zi(r,o,t.data)){const t=Yi(o,e,n,s,i,l);if(t!==$i)return t}a=e[o+8],-1!==a&&Qi(i,e[1].data[o+8]===l)&&Zi(r,o,e)?(s=t,o=Di(a),e=Pi(a,e)):o=-1}}}return Ui(e,n,i,s)}const $i={};function Wi(){return new Xi(Ke(),We())}function Yi(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Gi(a,o,n,null==i?Te(a)&&Mi:i!=o&&0!=(3&a.type),s&he.Host&&r===a);return null!==l?Ki(e,o,l,a):$i}function Gi(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&&Oe(t)&&t.type===n)return l}return null}function Ki(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof ki){const o=s;o.resolving&&function(t,e){throw new ui("200","Circular dependency in DI detected for "+t)}(ce(r[n]));const a=Li(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?de(o.injectImpl):null;dn(t,i,he.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=mi(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&de(l),Li(a),o.resolving=!1,_n()}}return s}function Zi(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const t=Ji(At(e));return t?t():null};let n=hi(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function ts(t){return et(()=>{const e=t.prototype.constructor,n=e[Kt]||Ji(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Kt]||Ji(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function es(t){return t.ngDebugContext}function ns(t){return t.ngOriginalError}function is(t,...e){t.error(...e)}class ss{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||is}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?es(t)?es(t):this._findContext(ns(t)):null}_findOriginalError(t){let e=ns(t);for(;e&&ns(e);)e=ns(e);return e}}function rs(t,e){t.__ngContext__=e}const os=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function as(t){return{name:"body",target:t.ownerDocument.body}}function ls(t){return t instanceof Function?t():t}var cs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function hs(t,e){return(void 0)(t,e)}function us(t){const e=t[3];return ke(e)?e[3]:e}function ds(t){return fs(t[13])}function ps(t){return fs(t[4])}function fs(t){for(;null!==t&&!ke(t);)t=t[4];return t}function ms(t,e,n,i,s){if(null!=i){let r,o=!1;ke(i)?r=i:xe(i)&&(o=!0,i=i[0]);const a=De(i);0===t&&null!==n?null==s?Ss(e,n,a):Cs(e,n,a,s||null,!0):1===t&&null!==n?Cs(e,n,a,s||null,!0):2===t?function(t,e,n){const i=ks(t,e);i&&function(t,e,n,i){Ae(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==De(n)&&ms(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const o=Ft(t,10+e);Ds(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function bs(t,e){if(!(256&e[2])){const n=e[11];Ae(n)&&n.destroyNode&&Ds(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return vs(t[1],t);for(;e;){let n=null;if(xe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)xe(e)&&vs(e[1],e),e=e[3];null===e&&(e=t),xe(e)&&vs(e[1],e),n=e&&e[4]}e=n}}(e)}}function vs(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 i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&Ae(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ke(e[3])){n!==e[3]&&_s(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function ws(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===zt.None||e===zt.Emulated)return null}return Me(i,n)}(t,e.parent,n)}function Cs(t,e,n,i,s){Ae(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function Ss(t,e,n){Ae(t)?t.appendChild(e,n):e.appendChild(n)}function xs(t,e,n,i,s){null!==i?Cs(t,e,n,i,s):Ss(t,e,n)}function ks(t,e){return Ae(t)?t.parentNode(e):e.parentNode}function Es(t,e,n){return Ts(t,e,n)}let Ts=function(t,e,n){return 40&t.type?Me(t,n):null};function Is(t,e,n,i){const s=ws(t,i,e),r=e[11],o=Es(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;ar?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Fs(e,c,0)||2&i&&c!==t){if(zs(i))return!1;o=!0}}}}else{if(!o&&!zs(i)&&!zs(l))return!1;if(o&&zs(l))continue;o=!1,i=l|1&i}}return zs(i)||o}function zs(t){return 0==(1&t)}function Hs(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||zs(o)||(e+=$s(r,s),s=""),i=o,r=r||!zs(i);n++}return""!==s&&(e+=$s(r,s)),e}const Ys={};function Gs(t){Ks(Ye(),We(),bn()+t,tn())}function Ks(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&vi(e,i,n)}else{const i=t.preOrderHooks;null!==i&&wi(e,i,0,n)}vn(n)}function Zs(t,e){return t<<17|e<<2}function Qs(t){return t>>17&32767}function Xs(t){return 2|t}function Js(t){return(131068&t)>>2}function tr(t,e){return-131069&t|e<<2}function er(t){return 1|t}function nr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Ks(t,e,20,tn()),n(i,s)}finally{vn(r)}}function hr(t,e,n){if(Ee(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function vr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function wr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Cr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Ar(n)}}function Ar(t){for(let n=ds(t);null!==n;n=ps(n))for(let t=10;t0&&Ar(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Ar(i)}}function Rr(t,e){const n=Ne(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Vr(t){return t[7]||(t[7]=[])}function jr(t,e,n){return(null===t||Oe(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Br(t,e){const n=t[9],i=n?n.get(ss,null):null;i&&i.handleError(e)}function zr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),Mt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ur,eo(void 0,this));const r=this.records.get($r);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:at(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=fe,n=he.Default){this.assertNotDestroyed();const i=ye(this);try{if(!(n&he.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof vt)&&pt(t);e=n&&this.injectableDefInScope(n)?eo(Jr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&he.Self?Zr():this.parent).get(t,e=n&he.Optional&&e===fe?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(at(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=at(e);if(Array.isArray(e))s=e.map(at).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):at(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(me,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{ye(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(at(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=At(t)))return!1;let i=mt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=mt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{Mt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,eo(i.factory,Wr));const a=i.providers;if(null!=a&&!o){const e=t;Mt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=io(t=At(t))?t:At(t&&t.provide);const s=function(t,e,n){return no(t)?eo(void 0,t.useValue):eo(to(t),Wr)}(t);if(io(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=eo(void 0,Wr,!0),e.factory=()=>Ce(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Wr&&(e.value=Yr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Jr(t){const e=pt(t),n=null!==e?e.factory:hi(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof vt)throw new Error(`Token ${at(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Nt(e,"?");throw new Error(`Can't resolve all parameters for ${at(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[yt]);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 to(t,e,n){let i=void 0;if(io(t)){const e=At(t);return hi(e)||Jr(e)}if(no(t))i=()=>At(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Ce(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ve(At(t.useExisting));else{const e=At(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return hi(e)||Jr(e);i=()=>new e(...Ce(t.deps))}var s;return i}function eo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function no(t){return null!==t&&"object"==typeof t&&ge in t}function io(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,i){const s=Qr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ro=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=fe,t.NULL=new qr,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>ve(Ur)}),t.__NG_ELEMENT_ID__=-1,t})();function oo(t,e){bi(Ve(t)[1],Ke())}function ao(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=lo(t.inputs),e.declaredInputs=lo(t.declaredInputs),e.outputs=lo(t.outputs);const n=s.hostBindings;n&&uo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&co(t,r),o&&ho(t,o),ht(t.inputs,s.inputs),ht(t.declaredInputs,s.declaredInputs),ht(t.outputs,s.outputs),Oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Oi(s.hostAttrs,n=Oi(n,s.hostAttrs))}}(i)}function lo(t){return t===Ht?{}:t===Ut?[]:t}function co(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ho(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function uo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let po=null;function fo(){if(!po){const t=Tt.Symbol;if(t&&t.iterator)po=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(De(t[i.index])).target:i.index;if(Ae(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=zo(i,e,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=zo(i,e,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,qe.lFrame.contextLView))[8]}(t)}function Uo(t,e){let n=null;const i=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 s=0;s=0}const Ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zo(t){return t.substring(Ko.key,Ko.keyEnd)}function Qo(t,e){const n=Ko.textEnd;return n===e?-1:(e=Ko.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ko.key=e,n),Xo(t,e,n))}function Xo(t,e,n){for(;e=0;n=Qo(e,n))Vt(t,Zo(e),!0)}function na(t,e,n,i){const s=We(),r=Ye(),o=rn(2);r.firstUpdatePass&&sa(r,t,o,i),e!==Ys&&bo(s,o,e)&&aa(r,r.data[bn()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=at(Dn(t)))),t}(e,n),i,o)}function ia(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[bn()],o=ia(t,n);ha(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ln(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=oa(n=ra(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ra(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Js(i))return t[Qs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ra(null,t,e,n[1],i),n=oa(n,e.attrs,i),function(t,e,n,i){t[Qs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Qs(t[a+1]);t[i+1]=Zs(e,a),0!==e&&(t[e+1]=tr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Zs(a,0),0!==a&&(t[a+1]=tr(t[a+1],i)),a=i;else t[i+1]=Zs(l,0),0===a?a=i:t[l+1]=tr(t[l+1],i),l=i;h&&(t[i+1]=Xs(t[i+1])),Yo(t,c,i,!0),Yo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Bt(r,e)>=0&&(n[i+1]=er(n[i+1]))}(e,c,t,i,r),o=Zs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function ra(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===Ys&&(h=c?Wo:void 0);let u=c?jt(h,i):l===i?h:void 0;if(r&&!ca(u)&&(u=jt(e,i)),ca(u)&&(a=u,o))return a;const d=t[s+1];s=o?Qs(d):Js(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=jt(t,i))}return a}function ca(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function ua(t,e=""){const n=We(),i=Ye(),s=t+20,r=i.firstCreatePass?sr(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Ae(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Is(i,n,o,r),Qe(r,!1)}function da(t){return pa("",t,""),da}function pa(t,e,n){const i=We(),s=wo(i,t,e,n);return s!==Ys&&function(t,e,n){const i=Pe(e,t);!function(t,e,n){Ae(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,bn(),s),pa}function fa(t,e,n){const i=We();return bo(i,sn(),e)&&_r(Ye(),wn(),i,t,e,i[11],n,!0),fa}function ma(t,e,n){const i=We();if(bo(i,sn(),e)){const s=Ye(),r=wn();_r(s,r,i,t,e,jr(ln(s.data),r,i),n,!0)}return ma}const ga=void 0;var _a=["en",[["a","p"],["AM","PM"],ga],[["AM","PM"],ga,ga],[["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"]],ga,[["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"]],ga,[["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}",ga,"{1} 'at' {0}",ga],[".",",",";","%","+","-","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 ya={};function ba(t){return t in ya||(ya[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),ya[t]}var va=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let wa="en-US";function Ca(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(wa=t.toLowerCase().replace(/_/g,"-"))}function Sa(t,e,n,i,s){if(t=At(t),Array.isArray(t))for(let r=0;r>20;if(io(t)||!t.multi){const i=new ki(l,s,xo),p=Ea(a,e,s?h:h+d,u);-1===p?(zi(Ni(c,o),r,a),xa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ea(a,e,h+d,u),f=Ea(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){zi(Ni(c,o),r,a);const h=function(t,e,n,i,s){const r=new ki(t,n,xo);return r.multi=[],r.index=e,r.componentProviders=0,ka(r,s,i&&!n),r}(s?Ia:Ta,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),xa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else xa(r,t,p>-1?p:f,ka(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function xa(t,e,n,i){const s=io(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ka(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ea(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Ye();if(i.firstCreatePass){const s=Oe(t);Sa(n,i.data,i.blueprint,s,!0),Sa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ra{}class Da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${at(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Pa=(()=>{class t{}return t.NULL=new Da,t})();function Ma(...t){}function La(t,e){return new Na(Me(t,e))}const Fa=function(){return La(Ke(),We())};let Na=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Fa,t})();class Va{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ba(),t})();const Ba=function(){const t=We(),e=Ne(Ke().index,t);return function(t){return t[11]}(xe(e)?e:t)};let za=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class Ha{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ua=new Ha("11.0.2");class qa{constructor(){}supports(t){return go(t)}create(t){return new Wa(t)}}const $a=(t,e)=>e;class Wa{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||$a}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;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,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Ya(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ka),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 Ka),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 Ya{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 Ga{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 Ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ga,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 Za(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ja(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 Ja{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let tl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new qa])}),t})(),el=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}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=ut({token:t,providedIn:"root",factory:()=>new t([new Qa])}),t})();function nl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(De(r)),ke(r))for(let t=10;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}bs(this._lView[1],this._lView)}onDestroy(t){mr(this._lView[1],this._lView,null,t)}markForCheck(){Pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){en(!0);try{Mr(t,e,n)}finally{en(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ds(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class sl extends il{constructor(t){super(t),this._view=t}detectChanges(){Lr(this._view)}checkNoChanges(){!function(t){en(!0);try{Lr(t)}finally{en(!1)}}(this._view)}get context(){return null}}const rl=al;let ol=(()=>{class t{}return t.__NG_ELEMENT_ID__=rl,t.__ChangeDetectorRef__=!0,t})();function al(t=!1){return function(t,e,n){if(!n&&Te(t)){const n=Ne(t.index,e);return new il(n,n)}return 47&t.type?new il(e[16],e):null}(Ke(),We(),t)}const ll=[new Qa],cl=new tl([new qa]),hl=new el(ll),ul=function(){return ml(Ke(),We())};let dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=ul,t})();const pl=dl,fl=class extends pl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ir(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),or(e,n,t),new il(n)}};function ml(t,e){return 4&t.type?new fl(e,t,La(t,e)):null}class gl{}class _l{}const yl=function(){return xl(Ke(),We())};let bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=yl,t})();const vl=bl,wl=class extends vl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new Xi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bi(this._hostTNode,this._hostLView);if(Ri(t)){const e=Pi(t,this._hostLView),n=Di(t);return new Xi(e[1].data[n+8],e)}return new Xi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Cl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(gl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new wl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),ios});class Ol extends Ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Tl(this.componentDef.inputs)}get outputs(){return Tl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,kl,s);return r!==kl||i===kl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Va,Re),o=s.get(za,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ae(t))return t.selectRootElement(e,n===zt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):gs(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:os,clean:Nr,playerHandler:null,flags:0},d=fr(0,null,null,1,0,null,null,null,null,null),p=ir(null,d,u,h,null,null,r,a,o,s);let f,m;pn(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=sr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Hr(a,l,!0),null!==t&&(Ei(s,t,l),null!==a.classes&&Ls(s,t,a.classes),null!==a.styles&&Ms(s,t,a.styles)));const c=i.createRenderer(t,e),h=ir(n,pr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(zi(Ni(a,n),o,e.type),wr(o,a),Sr(a,n.length,1)),Dr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ei(a,c,["ng-version",Ua.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Ls(a,c,e.join(" "))}if(m=Le(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Ke();e.contentQueries(1,o,t.directiveStart)}const a=Ke();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(vn(a.index),br(n[1],a,0,a.directiveStart,a.directiveEnd,e),vr(e,o)),o}(t,this.componentDef,p,u,[oo]),or(d,p,null)}finally{yn()}return new Al(this.componentType,f,La(m,p),p,m)}}class Al extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new sl(i),this.componentType=t}get injector(){return new Xi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Rl=new Map;class Dl extends gl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new El(this);const n=ae(t),i=t[Gt]||null;i&&Ca(i),this._bootstrapComponents=ls(n.bootstrap),this._r3Injector=Qr(t,e,[{provide:gl,useValue:this},{provide:Pa,useValue:this.componentFactoryResolver}],at(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ro.THROW_IF_NOT_FOUND,n=he.Default){return t===ro||t===gl||t===Ur?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 Pl extends _l{constructor(t){super(),this.moduleType=t,null!==ae(t)&&function(t){const e=new Set;!function t(n){const i=ae(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${at(e)} vs ${at(e.name)}`)}(s,Rl.get(s),n),Rl.set(s,n));const r=ls(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Dl(this.moduleType,t)}}function Ml(t,e,n){const i=nn()+t,s=We();return s[i]===Ys?yo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function Ll(t,e){const n=t[e];return n===Ys?void 0:n}function Fl(t,e,n,i,s,r){const o=e+n;return bo(t,o,s)?yo(t,o+1,r?i.call(r,s):i(s)):Ll(t,o+1)}const Nl=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function Vl(){return this._results[fo()]()}class jl{constructor(){this.dirty=!0,this._results=[],this.changes=new Nl,this.length=0;const t=fo(),e=jl.prototype;e[t]||(e[t]=Vl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=Pt(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Bl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Bl(this.queryList)}setDirty(){this.queryList.setDirty()}}class zl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Ma,this.reject=Ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ve(oc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lc=new vt("AppId"),cc={provide:lc,useFactory:function(){return`${hc()}${hc()}${hc()}`},deps:[]};function hc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uc=new vt("Platform Initializer"),dc=new vt("Platform ID"),pc=new vt("appBootstrapListener");let fc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const mc=new vt("LocaleId"),gc=new vt("DefaultCurrencyCode");class _c{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const yc=function(t){return new Pl(t)},bc=yc,vc=function(t){return Promise.resolve(yc(t))},wc=function(t){const e=yc(t),n=ls(ae(t).declarations).reduce((t,e)=>{const n=oe(e);return n&&t.push(new Ol(n)),t},[]);return new _c(e,n)},Cc=wc,Sc=function(t){return Promise.resolve(wc(t))};let xc=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=vc,this.compileModuleAndAllComponentsSync=Cc,this.compileModuleAndAllComponentsAsync=Sc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kc=(()=>Promise.resolve(0))();function Ec(t){"undefined"==typeof Zone?kc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nl(!1),this.onMicrotaskEmpty=new Nl(!1),this.onStable=new Nl(!1),this.onError=new Nl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Tt.requestAnimationFrame,e=Tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Rc(t),Ac(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Rc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Dc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Pc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Dc(t),e.invoke(i,s,r,o,a)}finally{Pc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Rc(t),Ac(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.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,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Oc,Ic,Ic);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ic(){}const Oc={};function Ac(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 Rc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Dc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Pc(t){t._nesting--,Ac(t)}class Mc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nl,this.onMicrotaskEmpty=new Nl,this.onStable=new Nl,this.onError=new Nl}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,i){return t.apply(e,n)}}let Lc=(()=>{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:()=>{Tc.assertNotInAngularZone(),Ec(()=>{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())Ec(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Fc=(()=>{class t{constructor(){this._applications=new Map,jc.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 jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Nc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Vc,jc=new Nc;const Bc=new vt("AllowMultipleToken");class zc{constructor(t,e){this.name=t,this.token=e}}function Hc(t,e,n=[]){const i="Platform: "+e,s=new vt(i);return(e=[])=>{let r=Uc();if(!r||r.injector.get(Bc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:$r,useValue:"platform"});!function(t){if(Vc&&!Vc.destroyed&&!Vc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vc=t.get(qc);const e=t.get(uc,null);e&&e.forEach(t=>t())}(ro.create({providers:t,name:i}))}return function(t){const e=Uc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Uc(){return Vc&&!Vc.destroyed?Vc:null}let qc=(()=>{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 Mc:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:Nn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Tc,useValue:n}];return n.run(()=>{const e=ro.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(ss,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Yc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(ac);return t.runInitializers(),t.donePromise.then(()=>(Ca(s.injector.get(mc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=$c({},e);return function(t,e,n){const i=new Pl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${at(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)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function $c(t,e){return Array.isArray(e)?e.reduce($c,t):Object.assign(Object.assign({},t),e)}let Wc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Nn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),Ec(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(tt()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(gl),s=n.create(ro.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Lc,null);return r&&s.injector.get(Fc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Nn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Yc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Yc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(fc),ve(ro),ve(ss),ve(Pa),ve(ac))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Yc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Gc{}class Kc{}const Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Xc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Xc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(ve(xc),ve(Kc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Jc=Hc(null,"core",[{provide:dc,useValue:"unknown"},{provide:qc,deps:[ro]},{provide:Fc,deps:[]},{provide:fc,deps:[]}]),th=[{provide:Wc,useClass:Wc,deps:[Tc,fc,ro,ss,Pa,ac]},{provide:Il,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new st,oc]]},{provide:xc,useClass:xc,deps:[]},cc,{provide:tl,useFactory:function(){return cl},deps:[]},{provide:el,useFactory:function(){return hl},deps:[]},{provide:mc,useFactory:function(t){return Ca(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(mc),new st,new ot]]},{provide:gc,useValue:"USD"}];let eh=(()=>{class t{constructor(t){}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Wc))},providers:th}),t})(),nh=null;function ih(){return nh}const sh=new vt("DocumentToken");let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:oh,token:t,providedIn:"platform"}),t})();function oh(){return ve(lh)}const ah=new vt("Location Initialized");let lh=(()=>{class t extends rh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ih().getLocation(),this._history=ih().getHistory()}getBaseHrefFromDOM(){return ih().getBaseHref(this._doc)}onPopState(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:hh,token:t,providedIn:"platform"}),t})();function ch(){return!!window.history.pushState}function hh(){return new lh(ve(sh))}function uh(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 dh(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 ph(t){return t&&"?"!==t[0]?"?"+t:t}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:mh,token:t,providedIn:"root"}),t})();function mh(t){const e=ve(sh).location;return new _h(ve(rh),e&&e.origin||"")}const gh=new vt("appBaseHref");let _h=(()=>{class t extends fh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return uh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t extends fh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=uh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bh=(()=>{class t{constructor(t,e){this._subject=new Nl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=dh(wh(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+ph(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(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+ph(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(ve(fh),ve(rh))},t.normalizeQueryParams=ph,t.joinWithSlash=uh,t.stripTrailingSlash=dh,t.\u0275prov=ut({factory:vh,token:t,providedIn:"root"}),t})();function vh(){return new bh(ve(fh),ve(rh))}function wh(t){return t.replace(/\/index.html$/,"")}var Ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Sh{}let xh=(()=>{class t extends Sh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ba(e);if(n)return n;const i=e.split("-")[0];if(n=ba(i),n)return n;if("en"===i)return _a;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[va.PluralCase]}(e||this.locale)(t)){case Ch.Zero:return"zero";case Ch.One:return"one";case Ch.Two:return"two";case Ch.Few:return"few";case Ch.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(ve(mc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function kh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let Eh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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&&(go(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 "+at(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)(xo(tl),xo(el),xo(Na),xo(ja))},t.\u0275dir=se({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Th{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 Ih=(()=>{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){Nn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Th(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Oh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Oh(t,s);e.push(r)}});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)(xo(bl),xo(dl),xo(tl))},t.\u0275dir=se({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Oh{constructor(t,e){this.record=t,this.view=e}}let Ah=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Rh,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){Dh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Dh("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)(xo(bl),xo(dl))},t.\u0275dir=se({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Rh{constructor(){this.$implicit=null,this.ngIf=null}}function Dh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${at(e)}'.`)}class Ph{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 Mh=(()=>{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 Ph(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Fh=(()=>{class t{constructor(t,e,n){n._addDefault(new Ph(t,e))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class Nh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Vh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const jh=new Vh,Bh=new Nh;let zh=(()=>{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(Lo(e))return jh;if(Fo(e))return Bh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${at(t)}'`)}_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)(function(t=he.Default){const e=al(!0);if(null!=e||t&he.Optional)return e;di("ChangeDetectorRef")}())},t.\u0275pipe=re({name:"async",type:t,pure:!1}),t})(),Hh=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:Sh,useClass:xh}]}),t})();function Uh(t){return"browser"===t}let qh=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new $h(ve(sh),window,ve(ss))}),t})();class $h{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Wh(this.window.history)||Wh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Wh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Yh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Yh,nh||(nh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Kh||(Kh=document.querySelector("base"),Kh)?Kh.getAttribute("href"):null;return null==e?null:(n=e,Gh||(Gh=document.createElement("a")),Gh.setAttribute("href",n),"/"===Gh.pathname.charAt(0)?Gh.pathname:"/"+Gh.pathname);var n}resetBaseElement(){Kh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return kh(document.cookie,t)}}let Gh,Kh=null;const Zh=new vt("TRANSITION_ID"),Qh=[{provide:oc,useFactory:function(t,e,n){return()=>{n.get(ac).donePromise.then(()=>{const n=ih();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Zh,sh,ro],multi:!0}];class Xh{static init(){var t;t=new Xh,jc=t}addToWindow(t){Tt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Jh=new vt("EventManagerPlugins");let tu=(()=>{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 i=0;i{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=ut({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t extends nu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ih().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const su={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/"},ru=/%COMP%/g;function ou(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let lu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new cu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case zt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new hu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case zt.ShadowDom:return new uu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ou(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)(ve(tu),ve(iu),ve(lc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class cu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(su[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,i){if(i){e=i+":"+e;const s=su[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=su[n];i?t.removeAttributeNS(i,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,i){i&(cs.DashCase|cs.Important)?t.style.setProperty(e,n,i&cs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&cs.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,au(n)):this.eventManager.addEventListener(t,e,au(n))}}class hu extends cu{constructor(t,e,n,i){super(t),this.component=n;const s=ou(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(ru,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ru,i+"-"+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 uu extends cu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ou(i.id,i.styles,[]);for(let r=0;r{class t extends eu{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)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const pu=["alt","control","meta","shift"],fu={"\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"},mu={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"},gu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let _u=(()=>{class t extends eu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ih().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(pu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&mu.hasOwnProperty(e)&&(e=mu[e]))}return fu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),pu.forEach(i=>{i!=n&&(0,gu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return ve(bu)},token:t,providedIn:"root"}),t})(),bu=(()=>{class t extends yu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case oi.NONE:return e;case oi.HTML:return Pn(e,"HTML")?Dn(e):function(t,e){let n=null;try{si=si||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(kn(""),"text/html")}catch(t){return!1}}()?new Vn:new jn(t)}(t);let i=e?String(e):"";n=si.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=si.getInertBodyElement(i)}while(i!==r);const o=new ti,a=o.sanitizeChildren(ri(n)||n);return Nn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=ri(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case oi.STYLE:return Pn(e,"Style")?Dn(e):e;case oi.SCRIPT:if(Pn(e,"Script"))return Dn(e);throw new Error("unsafe value used in a script context");case oi.URL:return Mn(e),Pn(e,"URL")?Dn(e):Hn(String(e));case oi.RESOURCE_URL:if(Pn(e,"ResourceURL"))return Dn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Tn(t)}bypassSecurityTrustStyle(t){return new In(t)}bypassSecurityTrustScript(t){return new On(t)}bypassSecurityTrustUrl(t){return new An(t)}bypassSecurityTrustResourceUrl(t){return new Rn(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:function(){return t=ve(Ur),new bu(t.get(sh));var t},token:t,providedIn:"root"}),t})();const vu=Hc(Jc,"browser",[{provide:dc,useValue:"browser"},{provide:uc,useValue:function(){Yh.makeCurrent(),Xh.init()},multi:!0},{provide:sh,useFactory:function(){return function(t){Se=t}(document),document},deps:[]}]),wu=[[],{provide:$r,useValue:"root"},{provide:ss,useFactory:function(){return new ss},deps:[]},{provide:Jh,useClass:du,multi:!0,deps:[sh,Tc,dc]},{provide:Jh,useClass:_u,multi:!0,deps:[sh]},[],{provide:lu,useClass:lu,deps:[tu,iu,lc]},{provide:Va,useExisting:lu},{provide:nu,useExisting:iu},{provide:iu,useClass:iu,deps:[sh]},{provide:Lc,useClass:Lc,deps:[Tc]},{provide:tu,useClass:tu,deps:[Jh,Tc]},[]];let Cu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:lc,useValue:e.appId},{provide:Zh,useExisting:lc},Qh]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(t,12))},providers:wu,imports:[Hh,eh]}),t})();function Su(...t){let e=t[t.length-1];return k(e)?(t.pop(),V(t,e)):$(t)}"undefined"!=typeof window&&window;class xu extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}const ku={};function Eu(...t){let e=null,n=null;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Tu(e))}class Tu{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Iu(t,this.resultSelector))}}class Iu extends M{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(ku),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{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Au=new y(t=>t.complete());function Ru(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Au}function Du(t){return new y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):Ru()).subscribe(e)})}function Pu(){return q(1)}function Mu(t,e){return function(n){return n.lift(new Lu(t,e))}}class Lu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fu(t,this.predicate,this.thisArg))}}class Fu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Nu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Vu(t){return function(e){return 0===t?Ru():e.lift(new ju(t))}}class ju{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Bu(t,this.total))}}class Bu extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new Hu(t))}class Hu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Uu(t,this.errorFactory))}}class Uu extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function qu(){return new Ou}function $u(t=null){return e=>e.lift(new Wu(t))}class Wu{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Yu(t,this.defaultValue))}}class Yu extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Gu(t,e){return"function"==typeof e?n=>n.pipe(Gu((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))))):e=>e.lift(new Ku(t))}class Ku{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zu(t,this.project))}}class Zu extends M{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(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new E(this,e,n),r=this.destination;r.add(s),this.innerSubscription=P(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.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,i,s){this.destination.next(e)}}function Qu(t){return e=>0===t?Ru():e.lift(new Xu(t))}class Xu{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Ju(t,this.total))}}class Ju extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function td(...t){return Pu()(Su(...t))}function ed(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>td(t,n,e)):e=>td(t,e)}class nd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new id(t,this.accumulator,this.seed,this.hasSeed))}}class id extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function sd(t){return function(e){const n=new rd(t),i=e.lift(n);return n.caught=i}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends M{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 i=new E(this,void 0,void 0);this.add(i);const s=P(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function ad(t,e){return B(t,e,1)}function ld(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Qu(1),n?$u(e):zu(()=>new Ou))}function cd(t,e,n){return function(i){return i.lift(new hd(t,e,n))}}class hd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ud(t,this.nextOrObserver,this.error,this.complete))}}class ud extends f{constructor(t,e,n,s){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function dd(t){return e=>e.lift(new pd(t))}class pd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new fd(t,this.callback))}}class fd extends f{constructor(t,e){super(t),this.add(new u(e))}}class md{constructor(t,e){this.id=t,this.url=e}}class gd extends md{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _d extends md{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yd extends md{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bd extends md{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cd extends md{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kd{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ed{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Td{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Id{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Od{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ad{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rd{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}')`}}class Dd{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 Pd(t){return new Dd(t)}function Md(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ld(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function Vd(t){return Array.prototype.concat.apply([],t)}function jd(t){return t.length>0?t[t.length-1]:null}function Bd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zd(t){return Fo(t)?t:Lo(t)?j(Promise.resolve(t)):Su(t)}function Hd(t,e,n){return n?function(t,e){return Fd(t,e)}(t.queryParams,e.queryParams)&&Ud(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Nd(t[n],e[n]))}(t.queryParams,e.queryParams)&&qd(t.root,e.root)}function Ud(t,e){if(!Kd(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Ud(t.children[n],e.children[n]))return!1}return!0}function qd(t,e){return $d(t,e,e.segments)}function $d(t,e,n){if(t.segments.length>n.length)return!!Kd(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Kd(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!qd(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Kd(t.segments,i)&&!!t.children.primary&&$d(t.children.primary,e,s)}}class Wd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return Jd.serialize(this)}}class Yd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Bd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tp(this)}}class Gd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Pd(this.parameters)),this._parameterMap}toString(){return ap(this)}}function Kd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Zd(t,e){let n=[];return Bd(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Bd(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class Qd{}class Xd{parse(t){const e=new dp(t);return new Wd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+ep(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ip(e)}=${ip(t)}`).join("&"):`${ip(e)}=${ip(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Jd=new Xd;function tp(t){return t.segments.map(t=>ap(t)).join("/")}function ep(t,e){if(!t.hasChildren())return tp(t);if(e){const e=t.children.primary?ep(t.children.primary,!1):"",n=[];return Bd(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${ep(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Zd(t,(e,n)=>"primary"===n?[ep(t.children.primary,!1)]:[`${n}:${ep(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${tp(t)}/${e[0]}`:`${tp(t)}/(${e.join("//")})`}}function np(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ip(t){return np(t).replace(/%3B/gi,";")}function sp(t){return np(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rp(t){return decodeURIComponent(t)}function op(t){return rp(t.replace(/\+/g,"%20"))}function ap(t){return`${sp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${sp(t)}=${sp(e[t])}`).join("")}`;var e}const lp=/^[^\/()?;=#]+/;function cp(t){const e=t.match(lp);return e?e[0]:""}const hp=/^[^=?&#]+/,up=/^[^?&#]+/;class dp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yd([],{}):new Yd([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Yd(t,e)),n}parseSegment(){const t=cp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Gd(rp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=cp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=cp(this.remaining);t&&(n=t,this.capture(n))}t[rp(e)]=rp(n)}parseQueryParam(t){const e=function(t){const e=t.match(hp);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(up);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=op(e),s=op(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Yd([],r),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 pp{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=fp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return mp(t,this._root).map(t=>t.value)}}function fp(t,e){if(t===e.value)return e;for(const n of e.children){const e=fp(t,n);if(e)return e}return null}function mp(t,e){if(t===e.value)return[e];for(const n of e.children){const i=mp(t,n);if(i.length)return i.unshift(e),i}return[]}class gp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function _p(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yp extends pp{constructor(t,e){super(t),this.snapshot=e,xp(this,t)}toString(){return this.snapshot.toString()}}function bp(t,e){const n=function(t,e){const n=new Cp([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Sp("",new gp(n,[]))}(t,e),i=new xu([new Gd("",{})]),s=new xu({}),r=new xu({}),o=new xu({}),a=new xu(""),l=new vp(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new yp(new gp(l,[]),n)}class vp{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>Pd(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Pd(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wp(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class Cp{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=Pd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sp extends pp{constructor(t,e){super(e),this.url=t,xp(this,e)}toString(){return kp(this._root)}}function xp(t,e){e.value._routerState=t,e.children.forEach(e=>xp(t,e))}function kp(t){const e=t.children.length>0?` { ${t.children.map(kp).join(", ")} } `:"";return`${t.value}${e}`}function Ep(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Fd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Fd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nFd(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Tp(t.parent,e.parent))}function Ip(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Ip(t,e,i);return Ip(t,e)})}(t,e,n);return new gp(i,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Op(e,t),t}{const n=new vp(new xu((i=e.value).url),new xu(i.params),new xu(i.queryParams),new xu(i.fragment),new xu(i.data),i.outlet,i.component,i),s=e.children.map(e=>Ip(t,e));return new gp(n,s)}}var i}function Op(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{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Wd(n.root===t?e:Pp(n.root,t,e),r,s)}function Pp(t,e,n){const i={};return Bd(t.children,(t,s)=>{i[s]=t===e?n:Pp(t,e,n)}),new Yd(t.segments,i)}class Mp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ap(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Rp);if(i&&i!==jd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Fp(t,e,n){if(t||(t=new Yd([],{})),0===t.segments.length&&t.hasChildren())return Np(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(Rp(o))break;const a=""+o,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!zp(a,l,e))return r;i+=2}else{if(!zp(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(s[i]=Fp(t.children[i],e,n))}),Bd(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Yd(t.segments,s)}}function Vp(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=Vp(new Yd([],{}),0,t))}),e}function Bp(t){const e={};return Bd(t,(t,n)=>e[n]=""+t),e}function zp(t,e,n){return t==n.path&&Fd(e,n.parameters)}class Hp{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ep(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Bd(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=_p(t),s=t.value.component?n.children:e;Bd(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Ad(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Id(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Ep(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Up(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}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Up(t){Ep(t.value),t.children.forEach(Up)}class qp{constructor(t,e){this.routes=t,this.module=e}}function $p(t){return"function"==typeof t}function Wp(t){return t instanceof Wd}const Yp=Symbol("INITIAL_VALUE");function Gp(){return Gu(t=>Eu(...t.map(t=>t.pipe(Qu(1),ed(Yp)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new nd(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Yp)return t;if(i===Yp&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||Wp(i))return i}return t},t)},Yp),Mu(t=>t!==Yp),L(t=>Wp(t)?t:!0===t),Qu(1)))}let Kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ao(0,"router-outlet")},directives:function(){return[qf]},encapsulation:2}),t})();function Zp(t,e=""){for(let n=0;ne.error(new ef(t)))}function rf(t){return new y(e=>e.error(new nf(t)))}function of(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class af{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(gl)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(L(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sd(t=>{if(t instanceof nf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ef)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(L(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sd(t=>{if(t instanceof ef)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Yd([],{primary:t}):t;return new Wd(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new Yd([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Su({});const n=[],i=[],s={};return Bd(t,(t,r)=>{const o=e(r,t).pipe(L(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),Su.apply(null,n.concat(i)).pipe(Pu(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Vu(1),n?$u(e):zu(()=>new Ou))}(),L(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,r){const o=function(t){return t.reduce((t,e)=>{const n=tf(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);o.has(s)||o.set(s,[]);const a=n=>j(n).pipe(ad(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sd(t=>{if(t instanceof ef)return Su(null);throw t}))),ld(t=>null!==t),sd(t=>{if(t instanceof Ou||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return Su(new Yd([],{}));throw new ef(e)}throw t}));return j(Array.from(o.entries()).map(([t,e])=>{const n=a(e);return t===s?n:n.pipe(L(()=>null),sd(()=>Su(null)))})).pipe(t=>t.lift(new Tu(void 0)),ld(),L(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return tf(i)!==r&&""!==i.path?sf(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):sf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rf(s):this.lineralizeSegments(n,s).pipe(B(n=>{const s=new Yd(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=lf(e,i,s);if(!o)return sf(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?rf(h):this.lineralizeSegments(i,h).pipe(B(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new Yd(i,{})))):Su(new Yd(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=lf(e,n,i);if(!s)return sf(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>hf(t,e,n)&&"primary"!==tf(n))}(t,n,i)?{segmentGroup:cf(new Yd(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==tf(i)&&(n[tf(i)]=new Yd([],{}));return n}(i,new Yd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>hf(t,e,n))}(t,n,i)?{segmentGroup:cf(new Yd(t.segments,function(t,e,n,i){const s={};for(const r of n)hf(t,e,r)&&!i[tf(r)]&&(s[tf(r)]=new Yd([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(L(t=>new Yd(r,t))):0===i.length&&0===o.length?Su(new Yd(r,{})):this.expandSegment(n,s,i,o,"primary",!0).pipe(L(t=>new Yd(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Su(new qp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Su(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(Md(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Su(new qp([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Su(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&$p(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!$p(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return zd(r)})).pipe(Gp(),cd(t=>{if(!Wp(t))return;const e=Md(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),L(t=>!0===t)):Su(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Su(n);if(i.numberOfChildren>1||!i.children.primary)return of(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Wd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Bd(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Bd(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Yd(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function lf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Ld)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cf(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yd(t.segments.concat(e.segments),e.children)}return t}function hf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class uf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class df{constructor(t,e){this.component=t,this.route=e}}function pf(t,e,n){const i=t._root;return mf(i,e?e._root:null,n,[i.value])}function ff(t,e,n){const i=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(i?i.module.injector:n).get(t)}function mf(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=_p(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Kd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kd(t.url,e.url)||!Fd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tp(t,e)||!Fd(t.queryParams,e.queryParams);case"paramsChange":default:return!Tp(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new uf(i)):(r.data=o.data,r._resolvedData=o._resolvedData),mf(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new df(a.outlet.component,o))}else o&&gf(e,a,s),s.canActivateChecks.push(new uf(i)),mf(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Bd(r,(t,e)=>gf(t,n.getContext(e),s)),s}function gf(t,e,n){const i=_p(t),s=t.value;Bd(i,(t,i)=>{gf(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new df(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function _f(t,e){return null!==t&&e&&e(new Od(t)),Su(!0)}function yf(t,e){return null!==t&&e&&e(new Td(t)),Su(!0)}function bf(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Su(i.map(i=>Du(()=>{const s=ff(i,e,n);let r;if(function(t){return t&&$p(t.canActivate)}(s))r=zd(s.canActivate(e,t));else{if(!$p(s))throw new Error("Invalid CanActivate guard");r=zd(s(e,t))}return r.pipe(ld())}))).pipe(Gp()):Su(!0)}function vf(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Du(()=>Su(e.guards.map(s=>{const r=ff(s,e.node,n);let o;if(function(t){return t&&$p(t.canActivateChild)}(r))o=zd(r.canActivateChild(i,t));else{if(!$p(r))throw new Error("Invalid CanActivateChild guard");o=zd(r(i,t))}return o.pipe(ld())})).pipe(Gp())));return Su(s).pipe(Gp())}class wf{}class Cf{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=kf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Cp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new gp(n,e),s=new Sp(this.url,i);return this.inheritParamsAndData(s._root),Su(s)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=wp(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=Zd(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof wf))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new wf}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new wf;if((t.outlet||"primary")!==i)throw new wf;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?jd(n).parameters:{};s=new Cp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+n.length,Of(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new wf;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Ld)(n,t,e);if(!i)throw new wf;const s={};Bd(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new Cp(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+r.length,Of(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=kf(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new gp(s,t)]}if(0===a.length&&0===c.length)return[new gp(s,[])];const h=this.processSegment(a,l,c,"primary");return[new gp(s,h)]}}function Sf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xf(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 kf(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>Ef(t,e,n)&&"primary"!==Tf(n))}(t,n,i)){const s=new Yd(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Tf(r)){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Tf(r)]=n}return s}(t,e,i,new Yd(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ef(t,e,n))}(t,n,i)){const r=new Yd(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ef(t,n,a)&&!s[Tf(a)]){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Tf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Yd(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ef(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Tf(t){return t.outlet||"primary"}function If(t){return t.data||{}}function Of(t){return t.resolve||{}}function Af(t){return function(e){return e.pipe(Gu(e=>{const n=t(e);return n?j(n).pipe(L(()=>e)):j([e])}))}}class Rf 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 Df=new vt("ROUTES");class Pf{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new qp(Vd(i.injector.get(Df)).map(Jp),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):zd(t()).pipe(B(t=>t instanceof _l?Su(t):j(this.compiler.compileModuleAsync(t))))}}class Mf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Lf,this.attachRef=null}}class Lf{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 Mf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ff{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Nf(t){throw t}function Vf(t,e,n){return e.parse("/")}function jf(t,e){return Su(null)}let Bf=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Nf,this.malformedUriErrorHandler=Vf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:jf,afterPreactivation:jf},this.urlHandlingStrategy=new Ff,this.routeReuseStrategy=new Rf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(gl),this.console=s.get(fc);const l=s.get(Tc);this.isNgZoneEnabled=l instanceof Tc,this.resetConfig(a),this.currentUrlTree=new Wd(new Yd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pf(r,o,t=>this.triggerEvent(new kd(t)),t=>this.triggerEvent(new Ed(t))),this.routerState=bp(this.currentUrlTree,this.rootComponentType),this.transitions=new xu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Mu(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Gu(t=>{let n=!1,i=!1;return Su(t).pipe(cd(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}}),Gu(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Su(t).pipe(Gu(t=>{const n=this.transitions.getValue();return e.next(new gd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Au:[t]}),Gu(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(Gu(t=>function(t,e,n,i,s){return new af(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),cd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(B(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new Cf(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(L(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),cd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),cd(t=>{const n=new vd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new gd(n,this.serializeUrl(i),s,r);e.next(a);const l=bp(i,this.rootComponentType).snapshot;return Su(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Au}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),cd(t=>{const e=new wd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:pf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Su(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Su(r.map(r=>{const o=ff(r,e,s);let a;if(function(t){return t&&$p(t.canDeactivate)}(o))a=zd(o.canDeactivate(t,e,n,i));else{if(!$p(o))throw new Error("Invalid CanDeactivate guard");a=zd(o(t,e,n,i))}return a.pipe(ld())})).pipe(Gp()):Su(!0)}(t.component,t.route,n,e,i)),ld(t=>!0!==t,!0))}(o,i,s,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(ad(e=>j([yf(e.route.parent,i),_f(e.route,i),vf(t,e.path,n),bf(t,e.route,n)]).pipe(Pu(),ld(t=>!0!==t,!0))),ld(t=>!0!==t,!0))}(i,r,t,e):Su(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),cd(t=>{if(Wp(t.guardsResult)){const e=Md(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),cd(t=>{const e=new Cd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mu(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Af(t=>{if(t.guards.canActivateChecks.length)return Su(t).pipe(cd(t=>{const e=new Sd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Gu(t=>{let n=!1;return Su(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Su(t);let r=0;return j(n).pipe(ad(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Su({});const r={};return j(s).pipe(B(s=>function(t,e,n,i){const s=ff(t,e,i);return zd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(cd(t=>{r[s]=t}))),Vu(1),B(()=>Object.keys(r).length===s.length?Su(r):Au))}(t._resolve,t,e,i).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),wp(t,n).resolve),null)))}(t.route,e,i,s)),cd(()=>r++),Vu(1),B(e=>r===n.length?Su(t):Au))}))}),cd({next:()=>n=!0,complete:()=>{if(!n){const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),cd(t=>{const e=new xd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),L(t=>{const e=function(t,e,n){const i=Ip(t,e._root,n?n._root:void 0);return new yp(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),cd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),L(t=>(new Hp(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),cd({next(){n=!0},complete(){n=!0}}),dd(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),sd(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=Wp(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new yd(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new bd(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return Au}));var s,r,o}))}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:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},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){Zp(t),this.config=t.map(Jp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return Dp(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Mp(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Bd(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Mp(n,e,i)}(n);if(r.toRoot())return Dp(e.root,new Yd([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Lp(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Lp(t,t===e.root,0)}const i=Ap(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Lp(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Np(o.segmentGroup,o.index,r.commands):Fp(o.segmentGroup,o.index,r.commands);return Dp(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Wp(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new _d(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(ve(Dt),ve(Qd),ve(Lf),ve(bh),ve(ro),ve(Gc),ve(xc),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),zf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),ko("tabindex"),xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&No("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})(),Hf=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof _d&&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,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),xo(fh))},t.\u0275dir=se({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(fa("href",e.href,ai),vo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})();function Uf(t){return""===t||!!t}let qf=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Nl,this.deactivateEvents=new Nl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new $f(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(xo(Lf),xo(bl),xo(Pa),ko("name"),xo(ol))},t.\u0275dir=se({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $f{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===vp?this.route:t===Lf?this.childContexts:this.parent.get(t,e)}}class Wf{}class Yf{preload(t,e){return Su(null)}}let Gf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Pf(e,n,e=>t.triggerEvent(new kd(e)),e=>t.triggerEvent(new Ed(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mu(t=>t instanceof _d),ad(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(gl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe(q(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(ve(Bf),ve(Gc),ve(xc),ve(ro),ve(Wf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Kf=(()=>{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 gd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _d&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Rd&&(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 Rd(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)(ve(Bf),ve(qh),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Zf=new vt("ROUTER_CONFIGURATION"),Qf=new vt("ROUTER_FORROOT_GUARD"),Xf=[bh,{provide:Qd,useClass:Xd},{provide:Bf,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Bf(null,t,e,n,i,s,r,Vd(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.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,h),a.enableTracing){const t=ih();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[Qd,Lf,bh,ro,Gc,xc,Df,Zf,[class{},new st],[class{},new st]]},Lf,{provide:vp,useFactory:function(t){return t.routerState.root},deps:[Bf]},{provide:Gc,useClass:Qc},Gf,Yf,class{preload(t,e){return e().pipe(sd(()=>Su(null)))}},{provide:Zf,useValue:{enableTracing:!1}}];function Jf(){return new zc("Router",Bf)}let tm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Xf,sm(e),{provide:Qf,useFactory:im,deps:[[Bf,new st,new ot]]},{provide:Zf,useValue:n||{}},{provide:fh,useFactory:nm,deps:[rh,[new it(gh),new st],Zf]},{provide:Kf,useFactory:em,deps:[Bf,qh,Zf]},{provide:Wf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Yf},{provide:zc,multi:!0,useFactory:Jf},[rm,{provide:oc,multi:!0,useFactory:om,deps:[rm]},{provide:lm,useFactory:am,deps:[rm]},{provide:pc,multi:!0,useExisting:lm}]]}}static forChild(e){return{ngModule:t,providers:[sm(e)]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Qf,8),ve(Bf,8))}}),t})();function em(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Kf(t,e,n)}function nm(t,e,n={}){return n.useHash?new yh(t,e):new _h(t,e)}function im(t){return"guarded"}function sm(t){return[{provide:wt,multi:!0,useValue:t},{provide:Df,multi:!0,useValue:t}]}let rm=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(ah,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Bf),i=this.injector.get(Zf);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Su(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Zf),n=this.injector.get(Gf),i=this.injector.get(Kf),s=this.injector.get(Bf),r=this.injector.get(Wc);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function om(t){return t.appInitializer.bind(t)}function am(t){return t.bootstrapListener.bind(t)}const lm=new vt("Router Initializer");class cm{}class hm{}class um{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),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 um?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 um;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof um?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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dm{encodeKey(t){return pm(t)}encodeValue(t){return pm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function pm(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class fm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function mm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _m(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ym{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new um),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ym(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var bm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class vm{constructor(t,e=200,n="OK"){this.headers=t.headers||new um,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 wm extends vm{constructor(t={}){super(t),this.type=bm.ResponseHeader}clone(t={}){return new wm({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 Cm extends vm{constructor(t={}){super(t),this.type=bm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cm({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 Sm extends vm{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 xm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let km=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof ym)i=t;else{let s=void 0;s=n.headers instanceof um?n.headers:new um(n.headers);let r=void 0;n.params&&(r=n.params instanceof fm?n.params:new fm({fromObject:n.params})),i=new ym(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Su(i).pipe(ad(t=>this.handler.handle(t)));if(t instanceof ym||"events"===n.observe)return s;const r=s.pipe(Mu(t=>t instanceof Cm));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(L(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(L(t=>t.body))}case"response":return r;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 fm).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,xm(n,e))}post(t,e,n={}){return this.request("POST",t,xm(n,e))}put(t,e,n={}){return this.request("PUT",t,xm(n,e))}}return t.\u0275fac=function(e){return new(e||t)(ve(cm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Em{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Tm=new vt("HTTP_INTERCEPTORS");let Im=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Om=/^\)\]\}',?\n/;class Am{}let Rm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Dm=(()=>{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 y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new um(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new wm({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Om,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Cm({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Sm({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Sm({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:bm.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:bm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:bm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ve(Am))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Pm=new vt("XSRF_COOKIE_NAME"),Mm=new vt("XSRF_HEADER_NAME");class Lm{}let Fm,Nm=(()=>{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=kh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(dc),ve(Pm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Vm=(()=>{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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Lm),ve(Mm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),jm=(()=>{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(Tm,[]);this.chain=t.reduceRight((t,e)=>new Em(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(hm),ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Bm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Vm,useClass:Im}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Pm,useValue:e.cookieName}:[],e.headerName?{provide:Mm,useValue:e.headerName}:[]]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Vm,{provide:Tm,useExisting:Vm,multi:!0},{provide:Lm,useClass:Nm},{provide:Pm,useValue:"XSRF-TOKEN"},{provide:Mm,useValue:"X-XSRF-TOKEN"}]}),t})(),zm=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[km,{provide:cm,useClass:jm},Dm,{provide:hm,useExisting:Dm},Rm,{provide:Am,useExisting:Rm}],imports:[[Bm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),Hm=(()=>{class t{constructor(t){this.http=t}load(){return this._configData=null,this.http.get("/client/assets/data/config.json").toPromise().then(t=>{null==t.apiBaseUrl&&(t.apiBaseUrl="/"),this._configData=t}).catch(t=>Promise.resolve())}get configData(){return this._configData}set configData(t){this._configData=t}}return t.\u0275fac=function(e){return new(e||t)(ve(km))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Um=(()=>{class t{constructor(t,e){this.configService=t,this.platformId=e,this.isActive=!1,Uh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}init(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}onGlobalError(t){this.sendException(`message: ${t.message} | filenname: ${t.filename} | lineno: ${t.lineno} | colno: ${t.colno}`)}sendPageView(t,e=location.href){if(this.isActive){const n={page_title:t,page_path:e};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}sendEvent(t,e,n,i){this.isActive&&this.gtag("event",t,{event_category:e,event_label:n,value:i})}sendException(t,e=!1){this.isActive&&this.gtag("event","exception",{description:t,fatal:e})}}return t.\u0275fac=function(e){return new(e||t)(ve(Hm),ve(dc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qm=(()=>{class t{constructor(t){this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}onClick(t){this.evLabel=t.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}return t.\u0275fac=function(e){return new(e||t)(xo(Um))},t.\u0275dir=se({type:t,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),t})(),$m=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h2"),ua(3," Background "),Oo(),Io(4,"p",2),ua(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Io(6,"a",3),ua(7,"download the self-contained instance of ADME@NCATS"),Oo(),ua(8," that can be run locally. "),Oo(),Io(9,"p",2),ua(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Oo(),Oo(),Oo())},directives:[qm],styles:[""]}),t})(),Wm=(()=>{class t{constructor(){this.loadingStateEmitter=new S}get isLoading(){return this.loadingStateEmitter.asObservable()}setLoadingState(t){this.loadingStateEmitter.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();try{Fm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cO){Fm=!1}let Ym,Gm=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Uh(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&&!Fm)&&"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)(ve(dc))},t.\u0275prov=ut({factory:function(){return new t(ve(dc))},token:t,providedIn:"root"}),t})(),Km=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Zm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qm(){if(Ym)return Ym;if("object"!=typeof document||!document)return Ym=new Set(Zm),Ym;let t=document.createElement("input");return Ym=new Set(Zm.filter(e=>(t.setAttribute("type",e),t.type===e))),Ym}let Xm,Jm;function tg(t){return function(){if(null==Xm&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xm=!0}))}finally{Xm=Xm||!1}return Xm}()?t:!!t.capture}function eg(t){if(function(){if(null==Jm){const t="undefined"!=typeof document?document.head:null;Jm=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Jm}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ng(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class ig extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class sg extends ig{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let rg=(()=>{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 og extends rg{constructor(t,e=rg.now){super(t,()=>og.delegate&&og.delegate!==this?og.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return og.delegate&&og.delegate!==this?og.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 ag=new og(sg);function lg(t,e=ag){return n=>n.lift(new cg(t,e))}class cg{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new hg(t,this.dueTime,this.scheduler))}}class hg extends f{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(ug,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 ug(t){t.debouncedNext()}function dg(t){return null!=t&&""+t!="false"}function pg(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function fg(t){return Array.isArray(t)?t:[t]}function mg(t){return null==t?"":"string"==typeof t?t:t+"px"}function gg(t){return t instanceof Na?t.nativeElement:t}let _g=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),yg=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gg(t);return new y(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 S,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)(ve(_g))},t.\u0275prov=ut({factory:function(){return new t(ve(_g))},token:t,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Nl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pg(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(lg(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yg),xo(Na),xo(Tc))},t.\u0275dir=se({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),vg=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[_g]}),t})();function wg(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Cg=0;const Sg=new Map;let xg=null,kg=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Sg.set(e,{messageElement:e,referenceCount:0})):Sg.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Sg.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}xg&&0===xg.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Sg.get(e);!function(t,e,n){const i=wg(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=Sg.get(e);n.referenceCount--,function(t,e,n){const i=wg(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=wg(t,"aria-describedby"),i=Sg.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();class Eg{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new S,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new S,this.change=new S,t instanceof jl&&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(cd(t=>this._pressedLetters.push(t)),lg(t),Mu(()=>this._pressedLetters.length>0),L(()=>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||ng(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),i=e[n];this._activeItem=null==i?null:i,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 i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_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 jl?this._items.toArray():this._items}}class Tg extends Eg{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ig extends Eg{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Og=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(cO){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===Rg(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=Rg(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ag(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function Ag(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Rg(t){if(!Ag(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Dg{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Qu(1)).subscribe(t)}}let Pg=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Dg(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(ve(Og),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Og),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Mg=new vt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lg=new vt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Fg=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Ng(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=zg(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=zg(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=gg(t);if(!this._platform.isBrowser||1!==n.nodeType)return Su(null);const i=eg(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new S,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=gg(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 i=gg(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.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._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_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)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=zg(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===zg(t))&&this._originChanged(e,this._getFocusOrigin(t),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,jg),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,jg)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,jg),t.addEventListener("mousedown",this._documentMousedownListener,jg),t.addEventListener("touchstart",this._documentTouchstartListener,jg),e.addEventListener("focus",this._windowFocusListener)})}_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,jg),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jg),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,jg),t.removeEventListener("mousedown",this._documentMousedownListener,jg),t.removeEventListener("touchstart",this._documentTouchstartListener,jg),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},token:t,providedIn:"root"}),t})();function zg(t){return t.composedPath?t.composedPath()[0]:t.target}let Hg=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Nl}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),Ug=(()=>{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,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(sh))},token:t,providedIn:"root"}),t})(),qg=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug))},imports:[[Km,vg]]}),t})();class $g{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 Wg extends $g{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Yg extends $g{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 Gg extends $g{constructor(t){super(),this.element=t instanceof Na?t.nativeElement:t}}class Kg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Wg?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yg?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Gg?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Zg extends Kg{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Qg=(()=>{class t extends Kg{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Nl,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ao]}),t})(),Xg=(()=>{class t extends Qg{}return t.\u0275fac=function(e){return Jg(e||t)},t.\u0275dir=se({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Aa([{provide:Qg,useExisting:t}]),ao]}),t})();const Jg=ts(Xg);let t_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const e_=new vt("cdk-dir-doc",{providedIn:"root",factory:function(){return we(sh)}});let n_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Nl,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)(ve(e_,8))},t.\u0275prov=ut({factory:function(){return new t(ve(e_,8))},token:t,providedIn:"root"}),t})(),i_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const s_=new Ha("11.0.1");class r_{}function o_(t,e){return{type:7,name:t,definitions:e,options:{}}}function a_(t,e=null){return{type:4,styles:e,timings:t}}function l_(t,e=null){return{type:2,steps:t,options:e}}function c_(t){return{type:6,styles:t,offset:null}}function h_(t,e,n){return{type:0,name:t,styles:e,options:n}}function u_(t){return{type:5,steps:t}}function d_(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p_(t=null){return{type:9,options:t}}function f_(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m_(t){Promise.resolve(null).then(t)}class g_{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){m_(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class __{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,i=0;const s=this.players.length;0==s?m_(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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 y_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b_(t){switch(t.length){case 0:return new g_;case 1:return t[0];default:return new __(t)}}function v_(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function w_(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&C_(n,"start",t)));break;case"done":t.onDone(()=>i(n&&C_(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&C_(n,"destroy",t)))}}function C_(t,e,n){const i=n.totalTime,s=S_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function S_(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function x_(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function k_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let E_=(t,e)=>!1,T_=(t,e)=>!1,I_=(t,e,n)=>[];const O_=y_();(O_||"undefined"!=typeof Element)&&(E_=(t,e)=>t.contains(e),T_=(()=>{if(O_||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]):T_}})(),I_=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let A_=null,R_=!1;function D_(t){A_||(A_=("undefined"!=typeof document?document.body:null)||{},R_=!!A_.style&&"WebkitAppearance"in A_.style);let e=!0;return A_.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in A_.style,!e&&R_)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in A_.style),e}const P_=T_,M_=E_,L_=I_;function F_(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let N_=(()=>{class t{validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new g_(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),V_=(()=>{class t{}return t.NOOP=new N_,t})();function j_(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:B_(parseFloat(e[1]),e[2])}function B_(t,e){switch(e){case"s":return 1e3*t;default:return t}}function z_(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";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:""};i=B_(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=B_(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function H_(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function U_(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else H_(t,n);return n}function q_(t,e,n){return n?e+":"+n+";":""}function $_(t){let e="";for(let n=0;n{const s=ty(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),y_()&&$_(t))}function Y_(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=ty(e);t.style[n]=""}),y_()&&$_(t))}function G_(t){return Array.isArray(t)?1==t.length?t[0]:l_(t):t}const K_=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z_(t){let e=[];if("string"==typeof t){let n;for(;n=K_.exec(t);)e.push(n[1]);K_.lastIndex=0}return e}function Q_(t,e,n){const i=t.toString(),s=i.replace(K_,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function X_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const J_=/-+([a-z0-9])/g;function ty(t){return t.replace(J_,(...t)=>t[1].toUpperCase())}function ey(t,e){return 0===t||0===e}function ny(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(ly(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(ly(o,s))}(t,n,e)):n.push(t),n}const oy=new Set(["true","1"]),ay=new Set(["false","0"]);function ly(t,e){const n=oy.has(t)||ay.has(t),i=oy.has(e)||ay.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?oy.has(t):ay.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?oy.has(e):ay.has(e)),o&&a}}const cy=new RegExp("s*:selfs*,?","g");function hy(t,e,n){return new uy(t).build(e,n)}class uy{constructor(t){this._driver=t}build(t,e){const n=new dy(e);return this._resetContextStyleTimingState(n),iy(this,G_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(py(t)){const e=t;Object.keys(e).forEach(t=>{Z_(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=X_(s.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=iy(this,G_(t.animation),e);return{type:1,matchers:ry(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:fy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>iy(this,t,e)),options:fy(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=iy(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:fy(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 my(z_(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=my(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||z_(i,e),my(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:c_({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=c_(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(py(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=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 r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Z_(t);s.length&&s.forEach(t=>{i.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 i=0;const s=[];let r=!1,o=!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(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:iy(this,G_(t.animation),e),options:fy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(cy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,x_(e.collectedStyles,e.currentQuerySelector,{});const o=iy(this,G_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:fy(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"}:z_(t.timings,e.errors,!0);return{type:12,animation:iy(this,G_(t.animation),e),timings:n,options:null}}}class dy{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 py(t){return!Array.isArray(t)&&"object"==typeof t}function fy(t){var e;return t?(t=H_(t)).params&&(t.params=(e=t.params)?H_(e):null):t={},t}function my(t,e,n){return{duration:t,delay:e,easing:n}}function gy(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class _y{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 yy=new RegExp(":enter","g"),by=new RegExp(":leave","g");function vy(t,e,n,i,s,r={},o={},a,l,c=[]){return(new wy).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class wy{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new _y;const h=new Sy(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),iy(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[gy(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 i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}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 i=e.currentTimeline.currentTime;const s=null!=n.duration?j_(n.duration):null,r=null!=n.delay?j_(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),iy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cy);const t=j_(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>iy(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?j_(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),iy(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return z_(e.params?Q_(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?j_(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Cy);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),iy(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;iy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Cy={};class Sy{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new xy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=j_(n.duration)),null!=n.delay&&(i.delay=j_(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Q_(s[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 i=e||this.element,s=new Sy(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Cy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ky(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(yy,"."+this._enterClassName)).replace(by,"."+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)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class xy{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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 xy(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]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):U_(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Q_(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=U_(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?X_(t.values()):[],r=e.size?X_(e.values()):[];if(n){const t=i[0],e=H_(t);t.offset=0,e.offset=1,i=[t,e]}return gy(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ky extends xy{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=U_(t[0],!1);a.offset=0,s.push(a);const l=U_(t[0],!1);l.offset=Ey(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=U_(t[i],!1);o.offset=Ey((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return gy(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ey(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ty{}class Iy extends Ty{normalizePropertyName(t,e){return ty(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Oy[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Oy=(()=>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 Ay(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Ry={};class Dy{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Ry,d=this.buildStyles(n,o&&o.params||Ry,h),p=a&&a.params||Ry,f=this.buildStyles(i,p,h),m=new Set,g=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:vy(t,e,this.ast.animation,s,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Ay(e,this._triggerName,n,i,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,i=x_(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=x_(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=X_(m.values());return Ay(e,this._triggerName,n,i,y,d,f,v,C,g,_,w)}}class Py{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=H_(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Q_(r,i,e)),n[t]=r})}}),n}}class My{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Py(t.style,t.options&&t.options.params||{})}),Ly(this.states,"true","1"),Ly(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Dy(t,e,this.states))}),this.fallbackTransition=new Dy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ly(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Fy=new _y;class Ny{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=hy(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]=i}_buildPlayer(t,e,n){const i=t.element,s=v_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=vy(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Fy,i),r.forEach(t=>{const e=x_(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=b_(r.map(t=>{const e=o.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,i){const s=S_(e,"","","");return w_(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Vy=[],jy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},By={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class zy{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=H_(t);delete e.value,this.options=e}else this.options={};var i;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 Hy=new zy("void");class Uy{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,Zy(e,this._hostClassName)}listen(t,e,n,i){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("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=x_(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=x_(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),a[e]=Hy),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new $y(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new zy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Hy),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{Y_(t,n),W_(t,i)})}return}const c=x_(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Zy(t,"ng-animate-queued"),r.onStart(()=>{Qy(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}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,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)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,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&b_(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Hy,o=new zy("void"),a=new $y(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==jy||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Zy(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=S_(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,w_(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 qy{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 Uy(t,e,this);return e.parentNode?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 i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zy(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qy(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Wy(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Wy(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 b_(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=jy,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!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?b_(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 _y,i=[],s=new Map,r=[],o=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="ng-enter"+f++;p.set(e,n),t.forEach(t=>Zy(t,n))});const m=[],g=new Set,_=new Set;for(let A=0;Ag.add(t)):_.add(t))}const y=new Map,b=Ky(u,Array.from(g));b.forEach((t,e)=>{const n="ng-leave"+f++;y.set(e,n),t.forEach(t=>Zy(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Qy(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Qy(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=y.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>x_(o,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 i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.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;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{x_(C,e,[]).push(t),t.destroy()})});const x=m.filter(t=>tb(t,a,l)),k=new Map;Gy(k,this.driver,_,l,"*").forEach(t=>{tb(t,a,l)&&x.push(t)});const E=new Map;d.forEach((t,e)=>{Gy(E,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>W_(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=O;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,E,k);if(r.setRealPlayer(n),t===O)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=b_(e)),i.push(r)}}else Y_(e,o.fromStyles),r.onDestroy(()=>W_(e,o.toStyles)),I.push(r),c.has(e)&&i.push(r)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=b_(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A!t.destroyed);i.length?Xy(this,t,i):this.processLeaveNode(t)}return m.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 i=e.__ng_removed;return i&&i.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,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=x_(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Y_(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new g_(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return Jy(t,e),e}((n.get(u)||Vy).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),_=v_(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&h.add(u),p){const e=new $y(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{x_(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Zy(t,"ng-animating"));const d=b_(u);return d.onDestroy(()=>{c.forEach(t=>Qy(t,"ng-animating")),W_(a,e.toStyles)}),h.forEach(t=>{x_(i,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 g_(t.duration,t.delay)}}class $y{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new g_,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=>w_(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){x_(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 Wy(t){return t&&1===t.nodeType}function Yy(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gy(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Yy(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=By,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Yy(t,r[a++])),o}function Ky(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Zy(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Qy(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Xy(t,e,n){b_(n).onDone(()=>t.processLeaveNode(e))}function Jy(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class eb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qy(t,e,n),this._timelineEngine=new Ny(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=hy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new My(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=k_(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=k_(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function nb(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=sb(e[0]),e.length>1&&(i=sb(e[e.length-1]))):e&&(n=sb(e)),n||i?new ib(t,n,i):null}let ib=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W_(this._element,this._initialStyles),this._endStyles&&(W_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y_(this._element,this._endStyles),this._endStyles=null),W_(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sb(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=db(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hb(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=db(t,"").split(","),i=cb(n,e);i>=0&&(n.splice(i,1),ub(t,"",n.join(",")))}(this._element,this._name))}}function ab(t,e,n){ub(t,"PlayState",n,lb(t,e))}function lb(t,e){const n=db(t,"");return n.indexOf(",")>0?cb(n.split(","),e):cb([n],e)}function cb(t,e){for(let n=0;n=0)return n;return-1}function hb(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ub(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function db(t,e){return t.style["animation"+e]}class pb{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ob(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]:sy(this.element,n))})}this.currentSnapshot=t}}class fb extends g_{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=F_(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 mb{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>F_(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof pb),l={};ey(n,i)&&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=ny(t,e,l));if(0==n)return new fb(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=nb(t,e),p=new pb(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class gb{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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){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]:sy(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _b{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(yb().toString()),this._cssKeyframesDriver=new mb}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof gb);ey(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=nb(t,e=ny(t,e=e.map(t=>U_(t,!1)),l));return new gb(t,e,a,h)}}function yb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let bb=(()=>{class t extends r_{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:zt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?l_(t):t;return Cb(this._renderer,null,e,"register",[n]),new vb(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Va),ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class vb extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new wb(this._id,t,e||{},this._renderer)}}class wb{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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 Cb(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Cb(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let Sb=(()=>{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 xb("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new kb(this,s,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)(ve(Va),ve(eb),ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class xb{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,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?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 kb extends xb{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?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 i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Eb=(()=>{class t extends eb{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(V_),ve(Ty))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Tb=new vt("AnimationModuleType"),Ib=[{provide:V_,useFactory:function(){return"function"==typeof yb()?new _b:new mb}},{provide:Tb,useValue:"BrowserAnimations"},{provide:r_,useClass:bb},{provide:Ty,useFactory:function(){return new Iy}},{provide:eb,useClass:Eb},{provide:Va,useFactory:function(t,e,n){return new Sb(t,e,n)},deps:[lu,eb,Tc]}];let Ob=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:Ib,imports:[Cu]}),t})();function Ab(t,e){if(1&t&&Ao(0,"mat-pseudo-checkbox",3),2&t){const t=Ho();Eo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Rb=["*"];let Db=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Pb=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Mb=new Ha("11.0.1"),Lb=new vt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Fb,Nb=(()=>{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 Nn()&&!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)&&Mb.full!==s_.full&&console.warn("The Angular Material version ("+Mb.full+") does not match the Angular CDK version ("+s_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug),ve(Lb,8),ve(sh))},imports:[[i_],i_]}),t})();function Vb(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t)}}}function jb(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 Bb(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}}}function zb(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?pg(t):this.defaultTabIndex}}}function Hb(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new S}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 Ub(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(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{Fb="undefined"!=typeof Intl}catch(cO){Fb=!1}let qb=(()=>{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=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),$b=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();class Wb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yb={enterDuration:450,exitDuration:400},Gb=tg({passive:!0}),Kb=["mousedown","touchstart"],Zb=["mouseup","mouseleave","touchend","touchcancel"];class Qb{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=gg(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Yb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Wb(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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,i=Object.assign(Object.assign({},Yb),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Kb))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Zb),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Ng(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,Gb)})})}_removeTriggerEvents(){this._triggerElement&&(Kb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}),this._pointerUpEventsRegistered&&Zb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}))}}const Xb=new vt("mat-ripple-global-options");let Jb=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Qb(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(xo(Na),xo(Tc),xo(Gm),xo(Xb,8),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ta("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})(),tv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Km],Nb]}),t})(),ev=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ta("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})(),nv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb]]}),t})();class iv{}const sv=Vb(iv);let rv=0,ov=(()=>{class t extends sv{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rv++}}return t.\u0275fac=function(e){return av(e||t)},t.\u0275dir=se({type:t,inputs:{label:"label"},features:[ao]}),t})();const av=ts(ov),lv=new vt("MatOptgroup");let cv=0;class hv{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const uv=new vt("MAT_OPTION_PARENT_COMPONENT");let dv=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+cv++,this.onSelectionChange=new Nl,this._stateChanges=new S}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=dg(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||ng(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 hv(this,t))}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(void 0),xo(ov))},t.\u0275dir=se({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pv=(()=>{class t extends dv{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(uv,8),xo(lv,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&No("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(fa("id",e.id),vo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ta("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[ao],ngContentSelectors:Rb,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(qo(),Co(0,Ab,1,2,"mat-pseudo-checkbox",0),Io(1,"span",1),$o(2),Oo(),Ao(3,"div",2)),2&t&&(Eo("ngIf",e.multiple),Gs(3),Eo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Ah,Jb,ev],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.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 fv(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Hh,Nb,nv]]}),t})();function gv(t,e,n,s){return i(n)&&(s=n,n=void 0),s?gv(t,e,n).pipe(L(t=>l(t)?s(...t):s(t))):new y(i=>{_v(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function _v(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r=0}function bv(t=0,e,n){let i=-1;return yv(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=ag),new y(e=>{const s=yv(t)?t:+t-n.now();return n.schedule(vv,s,{index:0,period:i,subscriber:e})})}function vv(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wv(t,e){return n=>n.lift(new Cv(t,e))}class Cv{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Sv(t,this.compare,this.keySelector))}}class Sv extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function xv(t){return e=>e.lift(new kv(t))}class kv{constructor(t){this.notifier=t}call(t,e){const n=new Ev(t),i=P(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Ev extends M{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Tv=1;const Iv=(()=>Promise.resolve())(),Ov={};function Av(t){return t in Ov&&(delete Ov[t],!0)}const Rv={setImmediate(t){const e=Tv++;return Ov[e]=!0,Iv.then(()=>Av(e)&&t()),e},clearImmediate(t){Av(t)}};class Dv extends sg{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=Rv.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&&(Rv.clearImmediate(e),t.scheduled=void 0)}}class Pv extends og{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++ibv(t,e),function(t){return t.lift(new Lv(n))};var n}function Vv(t,e){return new y(e?n=>e.schedule(jv,0,{error:t,subscriber:n}):e=>e.error(t))}function jv({error:t,subscriber:e}){e.error(t)}let Bv=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Su(this.value);case"E":return Vv(this.error);case"C":return Ru()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function zv(t){return t&&"function"==typeof t.connect}class Hv{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class Uv{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new S,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 qv=new vt("_ViewRepeater");let $v=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new S,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Nv(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Su()}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(Mu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>gv(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)(ve(Tc),ve(Gm),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8))},token:t,providedIn:"root"}),t})(),Wv=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new S,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._updateViewportSize())})}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,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Nv(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)(ve(Gm),ve(Tc),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc),ve(sh,8))},token:t,providedIn:"root"}),t})(),Yv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Gv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[i_,Km,Yv],i_,Yv]}),t})();function Kv(t,e){1&t&&$o(0)}const Zv=["*"];function Qv(t,e){}const Xv=function(t){return{animationDuration:t}},Jv=function(t,e){return{value:t,params:e}},tw=["tabBodyWrapper"],ew=["tabHeader"];function nw(t,e){}function iw(t,e){1&t&&Co(0,nw,0,0,"ng-template",9),2&t&&Eo("cdkPortalOutlet",Ho().$implicit.templateLabel)}function sw(t,e){1&t&&ua(0),2&t&&da(Ho().$implicit.textLabel)}function rw(t,e){if(1&t){const t=Mo();Io(0,"div",6),No("click",function(){Ge(t);const n=e.$implicit,i=e.index,s=Ho(),r=So(1);return s._handleClick(n,r,i)}),Io(1,"div",7),Co(2,iw,1,1,"ng-template",8),Co(3,sw,1,1,"ng-template",8),Oo(),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-label-active",i.selectedIndex==n),Eo("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),vo("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),Gs(2),Eo("ngIf",t.templateLabel),Gs(1),Eo("ngIf",!t.templateLabel)}}function ow(t,e){if(1&t){const t=Mo();Io(0,"mat-tab-body",10),No("_onCentered",function(){return Ge(t),Ho()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Ge(t),Ho()._setTabBodyWrapperHeight(e)}),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-body-active",i.selectedIndex==n),Eo("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),vo("aria-labelledby",i._getTabLabelId(n))}}const aw=["tabListContainer"],lw=["tabList"],cw=["nextPaginator"],hw=["previousPaginator"],uw=new vt("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let dw=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(uw),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const pw=new vt("MatTabContent"),fw=new vt("MatTabLabel");class mw{}const gw=Vb(mw),_w=new vt("MAT_TAB_GROUP");let yw=(()=>{class t extends gw{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new S,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Yg(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(_w))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,fw,!0),tc(n,pw,!0,dl)),2&t){let t;Kl(t=nc())&&(e.templateLabel=t.first),Kl(t=nc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Zl(dl,!0),2&t){let t;Kl(t=nc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[ao,fi],ngContentSelectors:Zv,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Co(0,Kv,1,0,"ng-template"))},encapsulation:2}),t})();const bw={translateTab:o_("translateTab",[h_("center, void, left-origin-center, right-origin-center",c_({transform:"none"})),h_("left",c_({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h_("right",c_({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),d_("* => left, * => right, left => center, right => center",a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),d_("void => left-origin-center",[c_({transform:"translate3d(-100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),d_("void => right-origin-center",[c_({transform:"translate3d(100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let vw=(()=>{class t extends Qg{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.EMPTY,this._leavingSub=u.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ed(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(Ot(()=>Cw)),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","matTabBodyHost",""]],features:[ao]}),t})(),ww=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.EMPTY,this._translateTabComplete=new S,this._onCentering=new Nl,this._beforeCentering=new Nl,this._afterLeavingCenter=new Nl,this._onCentered=new Nl(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(wv((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275dir=se({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Cw=(()=>{class t extends ww{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Ql(Xg,!0),2&t){let t;Kl(t=nc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[ao],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var n,i;1&t&&(Io(0,"div",0,1),No("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Co(2,Qv,0,0,"ng-template",2),Oo()),2&t&&Eo("@translateTab",function(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return function(t,e,n,i){const s=bo(t,e,n);return bo(t,e+1,i)||s}(t,a,s,r)?yo(t,a+2,o?i.call(o,s,r):i(s,r)):Ll(t,a+2)}(We(),nn(),t,e,n,i,s)}(3,Jv,e._position,(1,n=Xv,i=e.animationDuration,Fl(We(),nn(),1,n,i,undefined))))},directives:[vw],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bw.translateTab]}}),t})();const Sw=new vt("MAT_TABS_CONFIG");let xw=0;class kw{}class Ew{constructor(t){this._elementRef=t}}const Tw=jb(Bb(Ew),"primary");let Iw=(()=>{class t extends Tw{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new jl,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.EMPTY,this._tabLabelSubscription=u.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new Nl,this.focusChange=new Nl,this.animationDone=new Nl,this.selectedTabChange=new Nl(!0),this._groupId=xw++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=dg(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=pg(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new kw;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ao]}),t})(),Ow=(()=>{class t extends Iw{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,yw,!0),2&t){let t;Kl(t=nc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Ql(tw,!0),Ql(ew,!0)),2&t){let t;Kl(t=nc())&&(e._tabBodyWrapper=t.first),Kl(t=nc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Aa([{provide:_w,useExisting:t}]),ao],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Io(0,"mat-tab-header",0,1),No("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Co(2,rw,4,14,"div",2),Oo(),Io(3,"div",3,4),Co(5,ow,1,8,"mat-tab-body",5),Oo()),2&t&&(Eo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),Gs(2),Eo("ngForOf",e._tabs),Gs(1),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(2),Eo("ngForOf",e._tabs))},directives:function(){return[Fw,Ih,Dw,Jb,Hg,Ah,Qg,Cw]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class Aw{}const Rw=Vb(Aw);let Dw=(()=>{class t extends Rw{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(vo("aria-disabled",!!e.disabled),ta("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[ao]}),t})();const Pw=tg({passive:!0});let Mw=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new S,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new S,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Nl,this.indexFocused=new Nl,s.runOutsideAngular(()=>{gv(t.nativeElement,"mouseleave").pipe(xv(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=pg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){gv(this._previousPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),gv(this._nextPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Su(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ig(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),W(t,e,this._items.changes).pipe(xv(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(xv(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ng(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),bv(650,100).pipe(xv(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Lw=(()=>{class t extends Mw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disableRipple:"disableRipple"},features:[ao]}),t})(),Fw=(()=>{class t extends Lw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,Dw,!1),2&t){let t;Kl(t=nc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Zl(dw,!0),Zl(aw,!0),Zl(lw,!0),Ql(cw,!0),Ql(hw,!0)),2&t){let t;Kl(t=nc())&&(e._inkBar=t.first),Kl(t=nc())&&(e._tabListContainer=t.first),Kl(t=nc())&&(e._tabList=t.first),Kl(t=nc())&&(e._nextPaginator=t.first),Kl(t=nc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ao],ngContentSelectors:Zv,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(qo(),Io(0,"div",0,1),No("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ao(2,"div",2),Oo(),Io(3,"div",3,4),No("keydown",function(t){return e._handleKeydown(t)}),Io(5,"div",5,6),No("cdkObserveContent",function(){return e._onContentChanges()}),Io(7,"div",7),$o(8),Oo(),Ao(9,"mat-ink-bar"),Oo(),Oo(),Io(10,"div",8,9),No("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ao(12,"div",2),Oo()),2&t&&(ta("mat-tab-header-pagination-disabled",e._disableScrollBefore),Eo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Gs(5),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(5),ta("mat-tab-header-pagination-disabled",e._disableScrollAfter),Eo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Jb,bg,dw],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),Nw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,t_,tv,vg,qg],Nb]}),t})();const Vw=["mat-button",""],jw=["*"],Bw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class zw{constructor(t){this._elementRef=t}}const Hw=jb(Vb(Bb(zw)));let Uw=(()=>{class t extends Hw{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 i of Bw)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);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="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,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)(xo(Na),xo(Bg),xo(Tb,8))},t.\u0275cmp=Xt({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&&Ql(Jb,!0),2&t){let t;Kl(t=nc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ao],attrs:Vw,ngContentSelectors:jw,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&&(qo(),Io(0,"span",0),$o(1),Oo(),Ao(2,"span",1),Ao(3,"span",2)),2&t&&(Gs(2),ta("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Eo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Jb],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:block;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})(),qw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Nb],Nb]}),t})();const $w=["ketcherFrame"];let Ww=(()=>{class t{constructor(t,e){this.domSanatizer=t,this.loadingService=e,this.moleculeInput=new Nl,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/client/assets/ketcher/ketcher.html")}ngOnInit(){this.ketcherFrame.nativeElement.onload=()=>{this.ketcher=this.ketcherFrame.nativeElement.contentWindow.ketcher,this.loadingService.setLoadingState(!1)}}addMolecule(){const t=this.ketcher.getSmiles();this.moleculeInput.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-sketcher"]],viewQuery:function(t,e){if(1&t&&Zl($w,!0),2&t){let t;Kl(t=nc())&&(e.ketcherFrame=t.first)}},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),Ao(1,"iframe",1,2),Oo(),Io(3,"div",3),Io(4,"button",4),No("click",function(){return e.addMolecule()}),ua(5," Predict "),Oo(),Oo()),2&t&&(Gs(1),Eo("src",e.ketcherSrc,li))},directives:[Uw],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),t})();const Yw={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}};let Gw=(()=>{class t{constructor(t){this.el=t,this.selectedFile=new Nl}ngOnInit(){this.addHiddenFileInput()}ngOnDestroy(){document.body.removeChild(this.fileInputElement)}addHiddenFileInput(){this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=t=>{t.target.files&&t.target.files.length>0&&this.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);const t=this.fileInputElement;this.el.nativeElement.addEventListener("click",()=>{t.click()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),t})();function Kw(...t){if(1===t.length){const e=t[0];if(l(e))return Zw(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Zw(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Zw(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(L(t=>e(...t)))}return Zw(t,null)}function Zw(t,e){return new y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const Qw=new vt("NgValueAccessor"),Xw={provide:Qw,useExisting:Ot(()=>Jw),multi:!0};let Jw=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Aa([Xw])]}),t})();const tC={provide:Qw,useExisting:Ot(()=>nC),multi:!0},eC=new vt("CompositionEventMode");let nC=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ih()?ih().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(eC,8))},t.\u0275dir=se({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&&No("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:[Aa([tC])]}),t})();function iC(t){return null==t||0===t.length}function sC(t){return null!=t&&"number"==typeof t.length}const rC=new vt("NgValidators"),oC=new vt("NgAsyncValidators"),aC=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class lC{static min(t){return e=>{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return iC(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return iC(t.value)||aC.test(t.value)?null:{email:!0}}static minLength(t){return e=>iC(e.value)||!sC(e.value)?null:e.value.lengthsC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return lC.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(iC(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return uC(dC(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return Kw(dC(t,e).map(hC)).pipe(L(uC))}}}function cC(t){return null!=t}function hC(t){const e=Lo(t)?j(t):t;return Fo(e),e}function uC(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 dC(t,e){return e.map(e=>e(t))}function pC(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function fC(t){return null!=t?lC.compose(pC(t)):null}function mC(t){return null!=t?lC.composeAsync(pC(t)):null}function gC(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function _C(t){return t._rawValidators}function yC(t){return t._rawAsyncValidators}let bC=(()=>{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=fC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mC(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=se({type:t}),t})(),vC=(()=>{class t extends bC{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return wC(e||t)},t.\u0275dir=se({type:t,features:[ao]}),t})();const wC=ts(vC);class CC extends bC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class SC{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let xC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(CC,2))},t.\u0275dir=se({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})(),kC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,2))},t.\u0275dir=se({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})();const EC={provide:Qw,useExisting:Ot(()=>TC),multi:!0};let TC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&No("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([EC])]}),t})();const IC={provide:Qw,useExisting:Ot(()=>AC),multi:!0};let OC=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),AC=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(CC),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(OC),xo(ro))},t.\u0275dir=se({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Aa([IC])]}),t})();const RC={provide:Qw,useExisting:Ot(()=>DC),multi:!0};let DC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([RC])]}),t})();const PC={provide:Qw,useExisting:Ot(()=>MC),multi:!0};let MC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Aa([PC])]}),t})();const LC={provide:Qw,useExisting:Ot(()=>FC),multi:!0};let FC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&zC(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&&zC(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 VC(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function jC(t,e,n){const i=_C(t);null!==e.validator?t.setValidators(gC(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=yC(t);if(null!==e.asyncValidator?t.setAsyncValidators(gC(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();VC(e._rawValidators,n),VC(e._rawAsyncValidators,n)}}function BC(t,e,n){if(null!==t){if(null!==e.validator){const n=_C(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=yC(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};VC(e._rawValidators,t),VC(e._rawAsyncValidators,t)}}function zC(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HC(t,e){jC(t,e,!1)}const UC=[Jw,DC,TC,MC,FC,AC];function qC(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function $C(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function WC(t){return(ZC(t)?t.validators:t)||null}function YC(t){return Array.isArray(t)?fC(t):t||null}function GC(t,e){return(ZC(e)?e.asyncValidators:t)||null}function KC(t){return Array.isArray(t)?mC(t):t||null}function ZC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class QC{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=YC(this._rawValidators),this._composedAsyncValidatorFn=KC(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=YC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=KC(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=hC(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)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof JC?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof tS&&i.at(t)||null}),i}(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 Nl,this.statusChanges=new Nl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ZC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class XC extends QC{constructor(t=null,e,n){super(WC(e),GC(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){$C(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$C(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 JC extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{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 XC?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),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 tS extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof XC?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const eS={provide:vC,useExisting:Ot(()=>iS)},nS=(()=>Promise.resolve(null))();let iS=(()=>{class t extends vC{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Nl,this.form=new JC({},fC(t),mC(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){nS.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),NC(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),$C(this._directives,t)})}addFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path),n=new JC({});HC(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){nS.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,qC(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)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([eS]),ao]}),t})();const sS={provide:CC,useExisting:Ot(()=>oS)},rS=(()=>Promise.resolve(null))();let oS=(()=>{class t extends CC{constructor(t,e,n,i){super(),this.control=new XC,this._registered=!1,this.update=new Nl,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===nC?n=t:(e=t,UC.some(t=>e.constructor===t)?i=t:s=t)}),s||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){NC(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){rS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;rS.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,9),xo(rC,10),xo(oC,10),xo(Qw,10))},t.\u0275dir=se({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:[Aa([sS]),ao,fi]}),t})(),aS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const lS=new vt("NgModelWithFormControlWarning"),cS={provide:vC,useExisting:Ot(()=>hS)};let hS=(()=>{class t extends vC{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Nl,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return NC(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$C(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,qC(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),BC(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&NC(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jC(this.form,this,!1),this._oldForm&&BC(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([cS]),ao,fi]}),t})();const uS={provide:rC,useExisting:Ot(()=>dS),multi:!0};let dS=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?lC.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&vo("required",e.required?"":null)},inputs:{required:"required"},features:[Aa([uS])]}),t})(),pS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),fS=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new JC(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new XC(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new tS(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof XC||t instanceof JC||t instanceof tS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),mS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[OC],imports:[pS]}),t})(),gS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:lS,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[fS,OC],imports:[pS]}),t})();const _S=["underline"],yS=["connectionContainer"],bS=["inputContainer"],vS=["label"];function wS(t,e){1&t&&(Ro(0),Io(1,"div",14),Ao(2,"div",15),Ao(3,"div",16),Ao(4,"div",17),Oo(),Io(5,"div",18),Ao(6,"div",15),Ao(7,"div",16),Ao(8,"div",17),Oo(),Do())}function CS(t,e){1&t&&(Io(0,"div",19),$o(1,1),Oo())}function SS(t,e){if(1&t&&(Ro(0),$o(1,2),Io(2,"span"),ua(3),Oo(),Do()),2&t){const t=Ho(2);Gs(3),da(t._control.placeholder)}}function xS(t,e){1&t&&$o(0,3,["*ngSwitchCase","true"])}function kS(t,e){1&t&&(Io(0,"span",23),ua(1," *"),Oo())}function ES(t,e){if(1&t){const t=Mo();Io(0,"label",20,21),No("cdkObserveContent",function(){return Ge(t),Ho().updateOutlineGap()}),Co(2,SS,4,1,"ng-container",12),Co(3,xS,1,0,"ng-content",12),Co(4,kS,2,0,"span",22),Oo()}if(2&t){const t=Ho();ta("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),Eo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),vo("for",t._control.id)("aria-owns",t._control.id),Gs(2),Eo("ngSwitchCase",!1),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function TS(t,e){1&t&&(Io(0,"div",24),$o(1,4),Oo())}function IS(t,e){if(1&t&&(Io(0,"div",25,26),Ao(2,"span",27),Oo()),2&t){const t=Ho();Gs(2),ta("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function OS(t,e){1&t&&(Io(0,"div"),$o(1,5),Oo()),2&t&&Eo("@transitionMessages",Ho()._subscriptAnimationState)}function AS(t,e){if(1&t&&(Io(0,"div",31),ua(1),Oo()),2&t){const t=Ho(2);Eo("id",t._hintLabelId),Gs(1),da(t.hintLabel)}}function RS(t,e){if(1&t&&(Io(0,"div",28),Co(1,AS,2,2,"div",29),$o(2,6),Ao(3,"div",30),$o(4,7),Oo()),2&t){const t=Ho();Eo("@transitionMessages",t._subscriptAnimationState),Gs(1),Eo("ngIf",t.hintLabel)}}const DS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],MS=new vt("MatError"),LS={transitionMessages:o_("transitionMessages",[h_("enter",c_({opacity:1,transform:"translateY(0%)"})),d_("void => enter",[c_({opacity:0,transform:"translateY(-100%)"}),a_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let FS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t}),t})(),NS=0;const VS=new vt("MatHint");let jS=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+NS++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(vo("id",e.id)("align",null),ta("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Aa([{provide:VS,useExisting:t}])]}),t})(),BS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-label"]]}),t})(),zS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-placeholder"]]}),t})();const HS=new vt("MatPrefix"),US=new vt("MatSuffix");let qS=0;class $S{constructor(t){this._elementRef=t}}const WS=jb($S,"primary"),YS=new vt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),GS=new vt("MatFormField");let KS=(()=>{class t extends WS{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new S,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+qS++,this._labelId="mat-form-field-label-"+qS++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.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=dg(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(ed(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(xv(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xv(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ed(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ed(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(xv(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,gv(this._label.nativeElement,"transitionend").pipe(Qu(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())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,vg],Nb]}),t})();class QS{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new XS(t,this.predicate,this.inclusive))}}class XS extends f{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(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}class JS{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=mg(-this._previousScrollPosition.left),t.style.top=mg(-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,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_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 tx{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,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 ex{enable(){}disable(){}attach(){}}function nx(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function ix(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class sx{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,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();nx(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 rx=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new ex,this.close=t=>new tx(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new JS(this._viewportRuler,this._document),this.reposition=t=>new sx(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(ve($v),ve(Wv),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve($v),ve(Wv),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();class ox{constructor(t){if(this.scrollStrategy=new ex,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 ax{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class lx{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let cx=(()=>{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),hx=(()=>{class t extends cx{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),ux=(()=>{class t extends cx{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();const dx=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let px=(()=>{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(){if(this._platform.isBrowser||dx){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new S,this._outsidePointerEvents=new S,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.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(Qu(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=mg(this._config.width),t.height=mg(this._config.height),t.minWidth=mg(this._config.minWidth),t.minHeight=mg(this._config.minHeight),t.maxWidth=mg(this._config.maxWidth),t.maxHeight=mg(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;fg(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xv(W(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 mx=/([A-Za-z%]+)$/;class gx{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,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 S,this._resizeSubscription=u.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("cdk-overlay-connected-position-bounding-box"),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,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_x(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-s,s+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=yx(this._overlayRef.getConfig().minHeight),o=yx(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&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 i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_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 i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=mg(n.height),i.top=mg(n.top),i.bottom=mg(n.bottom),i.width=mg(n.width),i.left=mg(n.left),i.right=mg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=mg(t)),s&&(i.maxWidth=mg(s))}this._lastBoundingBoxSize=n,_x(this._boundingBox.style,i)}_resetBoundingBoxStyles(){_x(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_x(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();_x(n,this._getExactOverlayY(e,t,i)),_x(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=mg(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=mg(r.maxWidth):s&&(n.maxWidth="")),_x(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=mg(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=mg(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ix(t,n),isOriginOutsideView:nx(t,n),isOverlayClipped:ix(e,n),isOverlayOutsideView:nx(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&&fg(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 Na)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 _x(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function yx(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(mx);return n&&"px"!==n?null:parseFloat(e)}return t||null}class bx{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new gx(n,i,s,r,o).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,i){const s=new ax(t,e,n,i);return this._preferredPositions.push(s),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}}class vx{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("cdk-global-overlay-wrapper"),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:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);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("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let wx=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new vx}connectedTo(t,e,n){return new bx(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new gx(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Wv),ve(sh),ve(Gm),ve(px))},t.\u0275prov=ut({factory:function(){return new t(ve(Wv),ve(sh),ve(Gm),ve(px))},token:t,providedIn:"root"}),t})(),Cx=0,Sx=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new ox(t);return s.direction=s.direction||this._directionality.value,new fx(i,e,n,s,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-"+Cx++,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(Wc)),new Zg(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ve(rx),ve(px),ve(Pa),ve(wx),ve(hx),ve(ro),ve(Tc),ve(sh),ve(n_),ve(bh),ve(ux))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const xx=[{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"}],kx=new vt("cdk-connected-overlay-scroll-strategy");let Ex=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Tx=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Nl,this.positionChange=new Nl,this.attach=new Nl,this.detach=new Nl,this.overlayKeydown=new Nl,this.overlayOutsideClick=new Nl,this._templatePortal=new Yg(e,n),this._scrollStrategyFactory=i,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=dg(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=dg(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=dg(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=dg(t)}get push(){return this._push}set push(t){this._push=dg(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=xx);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||ng(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 ox({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 QS(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)(xo(Sx),xo(dl),xo(bl),xo(kx),xo(n_,8))},t.\u0275dir=se({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:[fi]}),t})();const Ix={provide:kx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Ox=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Sx,Ix],imports:[[i_,t_,Gv],Gv]}),t})();const Ax=["trigger"],Rx=["panel"];function Dx(t,e){if(1&t&&(Io(0,"span",8),ua(1),Oo()),2&t){const t=Ho();Gs(1),da(t.placeholder||"\xa0")}}function Px(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.triggerValue||"\xa0")}}function Mx(t,e){1&t&&$o(0,0,["*ngSwitchCase","true"])}function Lx(t,e){1&t&&(Io(0,"span",9),Co(1,Px,2,1,"span",10),Co(2,Mx,1,0,"ng-content",11),Oo()),2&t&&(Eo("ngSwitch",!!Ho().customTrigger),Gs(2),Eo("ngSwitchCase",!0))}function Fx(t,e){if(1&t){const t=Mo();Io(0,"div",12),Io(1,"div",13,14),No("@transformPanel.done",function(e){return Ge(t),Ho()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)}),$o(3,1),Oo(),Oo()}if(2&t){const t=Ho();Eo("@transformPanelWrap",void 0),Gs(1),n="mat-select-panel ",i=t._getPanelTheme(),s="",function(t,e,n,i){const s=Ye(),r=rn(2);s.firstUpdatePass&&sa(s,null,r,!0);const o=We();if(n!==Ys&&bo(o,r,n)){const i=s.data[bn()];if(ha(i,!0)&&!ia(s,r)){let t=i.classesWithoutHost;null!==t&&(n=lt(t,n||"")),To(s,i,o,n,!0)}else!function(t,e,n,i,s,r,o,a){s===Ys&&(s=Wo);let l=0,c=0,h=0 void",f_("@transformPanel",[p_()],{optional:!0}))]),transformPanel:o_("transformPanel",[h_("void",c_({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h_("showing",c_({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h_("showing-multiple",c_({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d_("void => *",a_("120ms cubic-bezier(0, 0, 0.2, 1)")),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))])};let Bx=0;const zx=new vt("mat-select-scroll-strategy"),Hx=new vt("MAT_SELECT_CONFIG"),Ux={provide:zx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class qx{constructor(t,e){this.source=t,this.value=e}}class $x{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const Wx=Bb(zb(Vb(Hb($x)))),Yx=new vt("MatSelectTrigger");let Gx=(()=>{class t extends Wx{constructor(t,e,n,i,s,r,o,a,l,c,h,u,d,p){var f,m,g,_,y;super(s,i,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Bx++,this._triggerAriaLabelledBy=null,this._destroy=new S,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Bx++,this._panelDoneAnimatingStream=new S,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!==(g=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this._typeaheadDebounceInterval=null!==(y=null===(_=this._defaultOptions)||void 0===_?void 0:_.typeaheadDebounceInterval)&&void 0!==y?y:0,this.optionSelectionChanges=Du(()=>{const t=this.options;return t?t.changes.pipe(ed(t),Gu(()=>W(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Qu(1),Gu(()=>this.optionSelectionChanges))}),this.openedChange=new Nl,this._openedStream=this.openedChange.pipe(Mu(t=>t),L(()=>{})),this._closedStream=this.openedChange.pipe(Mu(t=>!t),L(()=>{})),this.selectionChange=new Nl,this.valueChange=new Nl,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||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=dg(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=dg(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=dg(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.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=pg(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Uv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wv(),xv(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xv(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ed(null),xv(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,i=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&i&&!ng(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||13!==n&&32!==n||!e.activeItem||ng(t))if(!s&&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&&i&&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(Qu(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=>{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 Tg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(xv(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(xv(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=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xv(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(t=>t._stateChanges)).pipe(xv(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(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(xo(Wv),xo(ol),xo(Tc),xo(qb),xo(Na),xo(n_,8),xo(iS,8),xo(hS,8),xo(GS,8),xo(CC,10),ko("tabindex"),xo(zx),xo(Fg),xo(Hx,8))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&(Ql(Ax,!0),Ql(Rx,!0),Ql(Tx,!0)),2&t){let t;Kl(t=nc())&&(e.trigger=t.first),Kl(t=nc())&&(e.panel=t.first),Kl(t=nc())&&(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:[ao,fi]}),t})(),Kx=(()=>{class t extends Gx{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 i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(xv(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(Qu(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=fv(t,this.options,this.optionGroups),n=this._getItemHeight();var i,s,r;this.panel.nativeElement.scrollTop=(s=n,(i=(t+e)*n)<(r=this.panel.nativeElement.scrollTop)?i:i+s>r+256?Math.max(0,i-256+s):r)}_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 qx(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,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 i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,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),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=fv(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_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(e){return Zx(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,Yx,!0),Jl(n,pv,!0),Jl(n,lv,!0)),2&t){let t;Kl(t=nc())&&(e.customTrigger=t.first),Kl(t=nc())&&(e.options=t),Kl(t=nc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&No("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(vo("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()),ta("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:[Aa([{provide:FS,useExisting:t},{provide:uv,useExisting:t}]),ao],ngContentSelectors:Vx,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(qo(Nx),Io(0,"div",0,1),No("click",function(){return e.toggle()}),Io(3,"div",2),Co(4,Dx,2,1,"span",3),Co(5,Lx,3,2,"span",4),Oo(),Io(6,"div",5),Ao(7,"div",6),Oo(),Oo(),Co(8,Fx,4,14,"ng-template",7),No("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=So(1);vo("aria-owns",e.panelOpen?e.id+"-panel":null),Gs(3),Eo("ngSwitch",e.empty),vo("id",e._valueId),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1),Gs(3),Eo("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:[Ex,Mh,Lh,Tx,Fh,Eh],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}\n"],encapsulation:2,data:{animation:[jx.transformPanelWrap,jx.transformPanel]},changeDetection:0}),t})();const Zx=ts(Kx);let Qx=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Ux],imports:[[Hh,Ox,mv,Nb],Yv,ZS,mv,Nb]}),t})();class Xx{constructor(t){this.total=t}call(t,e){return e.subscribe(new Jx(t,this.total))}}class Jx extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const tk=new Set;let ek,nk=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ik}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!tk.has(t))try{ek||(ek=document.createElement("style"),ek.setAttribute("type","text/css"),document.head.appendChild(ek)),ek.sheet&&(ek.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),tk.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function ik(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let sk=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new S}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return rk(fg(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Eu(rk(fg(t)).map(t=>this._registerQuery(t).observable));return e=td(e.pipe(Qu(1)),e.pipe(t=>t.lift(new Xx(1)),lg(0))),e.pipe(L(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(ed(e),L(({matches:e})=>({query:t,matches:e})),xv(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(ve(nk),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(nk),ve(Tc))},token:t,providedIn:"root"}),t})();function rk(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const ok={tooltipState:o_("state",[h_("initial, void, hidden",c_({opacity:0,transform:"scale(0)"})),h_("visible",c_({transform:"scale(1)"})),d_("* => visible",a_("200ms cubic-bezier(0, 0, 0.2, 1)",u_([c_({opacity:0,transform:"scale(0)",offset:0}),c_({opacity:.5,transform:"scale(0.99)",offset:.5}),c_({opacity:1,transform:"scale(1)",offset:1})]))),d_("* => hidden",a_("100ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:0})))])},ak=tg({passive:!0}),lk=new vt("mat-tooltip-scroll-strategy"),ck={provide:lk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},hk=new vt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let uk=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ng(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),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)})}))}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(xv(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,ak)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),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 Wg(dk,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(xv(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(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(xv(this._destroyed)).subscribe(t=>{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:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(xv(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_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:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_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:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Qu(1),xv(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}}_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()]);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,ak)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_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)(xo(Sx),xo(Na),xo($v),xo(bl),xo(Tc),xo(Gm),xo(kg),xo(Bg),xo(lk),xo(n_,8),xo(hk,8))},t.\u0275dir=se({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),dk=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){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()}}return t.\u0275fac=function(e){return new(e||t)(xo(ol),xo(sk))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleBodyInteraction()},!1,as),2&t&&Jo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Io(0,"div",0),No("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),function(t,e){const n=Ye();let i;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const t=e[n];if("async"===t.name)return t}throw new ui("302","The pipe 'async' could not be found!")}(0,n.pipeRegistry),n.data[21]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,i.onDestroy)):i=n.data[21];const s=i.factory||(i.factory=hi(i.type)),r=de(xo);try{const t=Li(!1),e=s();Li(t),function(t,e,n,i){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=i}(n,We(),0,e)}finally{de(r)}}(),ua(2),Oo()),2&t){let t=null;ta("mat-tooltip-handset",null==(t=function(t,e,n){const i=t+20,s=We(),r=Fe(s,i);return function(t,e){return mo.isWrapped(e)&&(e=mo.unwrap(e),t[qe.lFrame.bindingIndex]=Ys),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?Fl(s,nn(),e,r.transform,n,r):r.transform(n))}(1,5,e._isHandset))?null:t.matches),Eo("ngClass",e.tooltipClass)("@state",e._visibility),Gs(2),da(e.message)}},directives:[Eh],pipes:[zh],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:[ok.tooltipState]},changeDetection:0}),t})(),pk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[ck],imports:[[qg,Hh,Ox,Nb],Nb,Yv]}),t})();const fk=tg({passive:!0});let mk=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Au;const e=gg(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new S,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,fk),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,fk)}}),i}stopMonitoring(t){const e=gg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc))},token:t,providedIn:"root"}),t})(),gk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Km]]}),t})();const _k=new vt("MAT_INPUT_VALUE_ACCESSOR"),yk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bk=0;class vk{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const wk=Hb(vk);let Ck=(()=>{class t extends wk{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+bk++,this.focused=!1,this.stateChanges=new S,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Qm().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=dg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=dg(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Qm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=dg(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){yk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(CC,10),xo(iS,8),xo(hS,8),xo(qb),xo(_k,10),xo(mk),xo(Tc),xo(GS,8))},t.\u0275dir=se({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&No("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(fa("disabled",e.disabled)("required",e.required),vo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ta("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Aa([{provide:FS,useExisting:t}]),ao,fi]}),t})(),Sk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[qb],imports:[[gk,ZS,Nb],gk,ZS]}),t})(),xk=(()=>{class t{constructor(){this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Nl,this.fileDataAdded=new Nl,this.fileUploadFinished=new Nl,this.fileProcess=new Nl,this.subscriptions=[]}ngOnInit(){const t=localStorage.getItem("fileType");t&&(this.fileType=t);const e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):Yw[this.fileType],this.acceptedFileTypes=Object.keys(Yw)}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}fileSelected(t){if(t){this.selectedFile=t,this.selectedFileName=t.name;const e=this.selectedFileName.split("."),n=e[e.length-1];this.acceptedFileTypes.indexOf(n)>-1&&(this.fileType=n,this.updateType());const i=new FileReader;i.onload=()=>{this.selectedFileContent=i.result},i.readAsText(t)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}updateType(){localStorage.setItem("fileType",this.fileType);const t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):Yw[this.fileType]}updateOptions(){const t=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",t)}processFile(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){if(1&t&&(Io(0,"div",0),Io(1,"div",1),ua(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Io(3,"a",2),ua(4,"these instructions"),Oo(),ua(5," to export it as Text or CSV. "),Oo(),Io(6,"div"),Io(7,"button",3),No("selectedFile",function(t){return e.fileSelected(t)}),ua(8,"Browse"),Oo(),Io(9,"span"),ua(10),Oo(),Oo(),Io(11,"form",4,5),Io(13,"div",6),Io(14,"div",7),Io(15,"mat-form-field"),Io(16,"mat-label"),ua(17,"File type"),Oo(),Io(18,"mat-select",8),No("ngModelChange",function(t){return e.fileType=t})("selectionChange",function(){return e.updateType()}),Io(19,"mat-option",9),ua(20," CSV "),Oo(),Io(21,"mat-option",10),ua(22," Text "),Oo(),Io(23,"mat-option",11),ua(24," SMI "),Oo(),Oo(),Oo(),Oo(),Io(25,"div",12),Io(26,"mat-form-field"),Io(27,"mat-label"),ua(28,"Column separator"),Oo(),Io(29,"mat-select",13),No("ngModelChange",function(t){return e.options.columnSeparator=t})("selectionChange",function(){return e.updateOptions()}),Io(30,"mat-option",14),ua(31," Comma (,) "),Oo(),Io(32,"mat-option",14),ua(33," Tab (\\t) "),Oo(),Oo(),Oo(),Oo(),Io(34,"div",15),Io(35,"mat-form-field"),Io(36,"mat-label"),ua(37,"Has header row"),Oo(),Io(38,"mat-select",16),No("ngModelChange",function(t){return e.options.hasHeaderRow=t})("selectionChange",function(){return e.updateOptions()}),Io(39,"mat-option",14),ua(40," Yes "),Oo(),Io(41,"mat-option",14),ua(42," No "),Oo(),Oo(),Oo(),Oo(),Io(43,"div",17),Io(44,"mat-form-field"),Io(45,"input",18),No("ngModelChange",function(t){return e.options.indexIdentifierColumn=t})("change",function(){return e.updateOptions()}),Oo(),Io(46,"mat-hint"),ua(47,"Zero indicates that the SMILES are in the first column"),Oo(),Oo(),Oo(),Oo(),Io(48,"div",19),Ao(49,"span",20),Io(50,"button",21),No("click",function(){return e.processFile()}),ua(51," Process file "),Oo(),Oo(),Oo(),Oo()),2&t){const t=So(12);Gs(10),pa(" \xa0 ",e.selectedFileName?"Selected file: "+e.selectedFileName:"No file selected"," "),Gs(8),Eo("ngModel",e.fileType),Gs(11),Eo("ngModel",e.options.columnSeparator),Gs(1),Eo("value",","),Gs(2),Eo("value","\t"),Gs(6),Eo("ngModel",e.options.hasHeaderRow),Gs(1),Eo("value",!0),Gs(2),Eo("value",!1),Gs(4),Eo("ngModel",e.options.indexIdentifierColumn),Gs(5),Eo("disabled",t.invalid||!e.selectedFileName||!e.selectedFileContent)}},directives:[Uw,Gw,aS,kC,iS,KS,BS,Kx,dS,xC,oS,pv,uk,TC,Ck,nC,jS],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),t})();const kk=["*"];function Ek(t){return Error(`Unable to find icon with the name "${t}"`)}function Tk(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Ik(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ok{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Ak=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,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,i){return this._addSvgIconConfig(t,e,new Ok(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(oi.HTML,n);if(!s)throw Ik(n);return this._addSvgIconConfig(t,e,new Ok("",s,i))}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 Ok(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(oi.HTML,e);if(!i)throw Ik(e);return this._addSvgIconSetConfig(t,new Ok("",i,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(oi.RESOURCE_URL,t);if(!e)throw Tk(t);const n=this._cachedIconsByUrl.get(e);return n?Su(Rk(n)):this._loadSvgIconFromConfig(new Ok(t,null)).pipe(cd(t=>this._cachedIconsByUrl.set(e,t)),L(t=>Rk(t)))}getNamedSvgIcon(t,e=""){const n=Dk(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Vv(Ek(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Su(Rk(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(L(t=>Rk(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Su(n):Kw(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(sd(e=>{const n=this._sanitizer.sanitize(oi.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Su(null)})))).pipe(L(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Ek(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(cd(e=>t.svgText=e),L(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Su(null):this._fetchIcon(t).pipe(cd(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,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 i=0;ithis._inProgressUrlFetches.delete(r)),tt());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Dk(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}}return t.\u0275fac=function(e){return new(e||t)(ve(km,8),ve(yu),ve(sh,8),ve(ss))},t.\u0275prov=ut({factory:function(){return new t(ve(km,8),ve(yu),ve(sh,8),ve(ss))},token:t,providedIn:"root"}),t})();function Rk(t){return t.cloneNode(!0)}function Dk(t,e){return t+":"+e}class Pk{constructor(t){this._elementRef=t}}const Mk=jb(Pk),Lk=new vt("mat-icon-location",{providedIn:"root",factory:function(){const t=we(sh),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Fk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Nk=Fk.map(t=>`[${t}]`).join(", "),Vk=/^url\(['"]?#(.*?)['"]?\)$/;let jk=(()=>{class t extends Mk{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=dg(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 i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Nk),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(Vk):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[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(Qu(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)(xo(Na),xo(Ak),ko("aria-hidden"),xo(Lk),xo(ss))},t.\u0275cmp=Xt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(vo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ta("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:[ao],ngContentSelectors:kk,decls:1,vars:0,template:function(t,e){1&t&&(qo(),$o(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})(),Bk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function zk(t,e){}class Hk{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Uk={dialogContainer:o_("dialogContainer",[h_("void, exit",c_({opacity:0,transform:"scale(0.7)"})),h_("enter",c_({transform:"none"})),d_("* => enter",a_("150ms cubic-bezier(0, 0, 0.2, 1)",c_({transform:"none",opacity:1}))),d_("* => void, * => exit",a_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",c_({opacity:0})))])};let qk=(()=>{class t extends Kg{constructor(t,e,n,i,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=r,this._animationStateChanged=new Nl,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Pg),xo(ol),xo(sh,8),xo(Hk),xo(Bg))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&Zl(Qg,!0),2&t){let t;Kl(t=nc())&&(e._portalOutlet=t.first)}},features:[ao]}),t})(),$k=(()=>{class t extends qk{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return Wk(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Vo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(fa("id",e._id),vo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ma("@dialogContainer",e._state))},features:[ao],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Co(0,zk,0,0,"ng-template",0)},directives:[Qg],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Uk.dialogContainer]}}),t})();const Wk=ts($k);let Yk=0;class Gk{constructor(t,e,n="mat-dialog-"+Yk++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new S,this._afterClosed=new S,this._beforeClosed=new S,this._state=0,e._id=n,e._animationStateChanged.pipe(Mu(t=>"opened"===t.state),Qu(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Mu(t=>"closed"===t.state),Qu(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Mu(t=>27===t.keyCode&&!this.disableClose&&!ng(t))).subscribe(t=>{t.preventDefault(),Kk(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Kk(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Mu(t=>"closing"===t.state),Qu(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Kk(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const Zk=new vt("MatDialogData"),Qk=new vt("mat-dialog-default-options"),Xk=new vt("mat-dialog-scroll-strategy"),Jk={provide:Xk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.block()}};let tE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new S,this._afterOpenedAtThisLevel=new S,this._ariaHiddenElements=new Map,this.afterAllClosed=Du(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ed(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Hk)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ox({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=ro.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Hk,useValue:e}]}),i=new Wg(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const s=new this._dialogRefConstructor(n,e,i.id);if(t instanceof dl)e.attachTemplatePortal(new Yg(t,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,e),r=e.attachComponentPortal(new Wg(t,i.viewContainerRef,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(n_,null)||s.push({provide:n_,useValue:{value:t.direction,change:Su()}}),ro.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(ro),xo(void 0),xo(void 0),xo(px),xo(void 0),xo(Dt),xo(Dt),xo(vt))},t.\u0275dir=se({type:t}),t})(),eE=(()=>{class t extends tE{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,Gk,$k,Zk)}}return t.\u0275fac=function(e){return new(e||t)(ve(Sx),ve(ro),ve(bh,8),ve(Qk,8),ve(Xk),ve(t,12),ve(px))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),nE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[eE,Jk],imports:[[Ox,t_,Nb],Nb]}),t})(),iE=(()=>{class t{constructor(t,e){this.el=t,this.http=e,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}ngAfterViewInit(){this.isAfterViewInit=!0,this.setImageSrc()}set version(t){t!==this.privateVersion&&(this.privateVersion=t,this.setImageSrc())}set entityId(t){t!==this.privateEntityId&&(this.privateEntityId=t,this.setImageSrc())}set size(t){t!==this.privateSize&&(this.privateSize=t,this.setImageSrc())}set stereo(t){t!==this.privateStereo&&(this.privateStereo=t,this.setImageSrc())}set atomMaps(t){t!==this.privateAtomMaps&&(this.privateAtomMaps=t,this.setImageSrc())}setImageSrc(){if(this.isAfterViewInit){const t="/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=t,this.imageElement.alt="structure image"}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(km))},t.\u0275dir=se({type:t,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),t})(),sE=(()=>{class t{constructor(t){this.data=t,this.smiles=t.smiles}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Zk))},t.\u0275cmp=Xt({type:t,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(t,e){1&t&&Ao(0,"img",0),2&t&&Eo("entityId",e.smiles)},directives:[iE],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),t})();function rE(t,e){if(1&t&&(Io(0,"mat-option",19),ua(1),Oo()),2&t){const t=e.$implicit;Eo("value",t),Gs(1),pa(" ",t," ")}}function oE(t,e){if(1&t){const t=Mo();Io(0,"mat-form-field",16),Io(1,"mat-select",17),No("selectionChange",function(e){return Ge(t),Ho(2)._changePageSize(e.value)}),Co(2,rE,2,2,"mat-option",18),Oo(),Oo()}if(2&t){const t=Ho(2);Eo("appearance",t._formFieldAppearance)("color",t.color),Gs(1),Eo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),Gs(1),Eo("ngForOf",t._displayedPageSizeOptions)}}function aE(t,e){if(1&t&&(Io(0,"div",20),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.pageSize)}}function lE(t,e){if(1&t&&(Io(0,"div",12),Io(1,"div",13),ua(2),Oo(),Co(3,oE,3,6,"mat-form-field",14),Co(4,aE,2,1,"div",15),Oo()),2&t){const t=Ho();Gs(2),pa(" ",t._intl.itemsPerPageLabel," "),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length>1),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length<=1)}}function cE(t,e){if(1&t){const t=Mo();Io(0,"button",21),No("click",function(){return Ge(t),Ho().firstPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",22),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),vo("aria-label",t._intl.firstPageLabel)}}function hE(t,e){if(1&t){const t=Mo();Cn(),Sn(),Io(0,"button",23),No("click",function(){return Ge(t),Ho().lastPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",24),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),vo("aria-label",t._intl.lastPageLabel)}}let uE=(()=>{class t{constructor(){this.changes=new S,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 i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const dE={provide:uE,deps:[[new st,new ot,uE]],useFactory:function(t){return t||new uE}},pE=new vt("MAT_PAGINATOR_DEFAULT_OPTIONS");class fE{}const mE=Vb(Ub(fE));let gE=(()=>{class t extends mE{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 Nl,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(pg(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=pg(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(pg(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>pg(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=dg(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=dg(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)(xo(uE),xo(ol),xo(void 0))},t.\u0275dir=se({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ao]}),t})(),_E=(()=>{class t extends gE{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)(xo(uE),xo(ol),xo(pE,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ao],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&&(Io(0,"div",0),Io(1,"div",1),Co(2,lE,5,3,"div",2),Io(3,"div",3),Io(4,"div",4),ua(5),Oo(),Co(6,cE,3,5,"button",5),Io(7,"button",6),No("click",function(){return e.previousPage()}),Cn(),Io(8,"svg",7),Ao(9,"path",8),Oo(),Oo(),Sn(),Io(10,"button",9),No("click",function(){return e.nextPage()}),Cn(),Io(11,"svg",7),Ao(12,"path",10),Oo(),Oo(),Co(13,hE,3,5,"button",11),Oo(),Oo(),Oo()),2&t&&(Gs(2),Eo("ngIf",!e.hidePageSize),Gs(3),pa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),Gs(1),Eo("ngIf",e.showFirstLastButtons),Gs(1),Eo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),vo("aria-label",e._intl.previousPageLabel),Gs(3),Eo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),vo("aria-label",e._intl.nextPageLabel),Gs(3),Eo("ngIf",e.showFirstLastButtons))},directives:[Ah,Uw,uk,KS,Kx,Ih,pv],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)}\n"],encapsulation:2,changeDetection:0}),t})(),yE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[dE],imports:[[Hh,qw,Qx,pk,Nb]]}),t})();const bE=[[["caption"]],[["colgroup"],["col"]]],vE=["caption","colgroup, col"];function wE(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=dg(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const CE=new vt("CDK_TABLE");let SE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellDef",""]]}),t})(),xE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),kE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class EE{}const TE=wE(EE);let IE=(()=>{class t extends TE{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=dg(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)(xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,SE,!0),Jl(n,xE,!0),Jl(n,kE,!0)),2&t){let t;Kl(t=nc())&&(e.cell=t.first),Kl(t=nc())&&(e.headerCell=t.first),Kl(t=nc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Aa([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();class OE{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let AE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ao]}),t})(),RE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[ao]}),t})();class DE{constructor(){this.tasks=[],this.endTasks=[]}}const PE=new vt("_COALESCED_STYLE_SCHEDULER");let ME=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new S}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 DE,this._getScheduleObservable().pipe(xv(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new DE;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Qu(1))}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),LE=(()=>{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 VE?t.headerCell.template:this instanceof zE?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl))},t.\u0275dir=se({type:t,features:[fi]}),t})();class FE extends LE{}const NE=wE(FE);let VE=(()=>{class t extends NE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ao,fi]}),t})();class jE extends LE{}const BE=wE(jE);let zE=(()=>{class t extends BE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ao,fi]}),t})(),HE=(()=>{class t extends LE{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ao]}),t})(),UE=(()=>{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)(xo(bl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),qE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),$E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),WE=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const YE=["top","bottom","left","right"];class GE{constructor(t,e,n,i,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const s=t[0],r=s.children.length,o=this._getCellWidths(s,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",o=i?"left":"right";for(const c of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";YE.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){t.classList.add(this._stickCellCss),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 i of YE)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let KE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","rowOutlet",""]]}),t})(),ZE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),QE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),XE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),JE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new S,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 xu({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,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=dg(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=dg(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&&this._viewportRuler.change().pipe(xv(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(),zv(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?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)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),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 i=0;i{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 s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=tT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tT(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 i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],zv(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;var e;zv(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof y||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Su(this.dataSource)),this._renderChangeSubscription=t.pipe(xv(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)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))UE.mostRecentCellOutlet&&UE.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 GE(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Su()).pipe(xv(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)(xo(tl),xo(ol),xo(Na),ko("role"),xo(n_,8),xo(sh),xo(Gm),xo(qv,8),xo(PE,8),xo(Wv,8))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,WE,!0),Jl(n,IE,!0),Jl(n,HE,!0),Jl(n,VE,!0),Jl(n,zE,!0)),2&t){let t;Kl(t=nc())&&(e._noDataRow=t.first),Kl(t=nc())&&(e._contentColumnDefs=t),Kl(t=nc())&&(e._contentRowDefs=t),Kl(t=nc())&&(e._contentHeaderRowDefs=t),Kl(t=nc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Zl(KE,!0),Zl(ZE,!0),Zl(QE,!0),Zl(XE,!0)),2&t){let t;Kl(t=nc())&&(e._rowOutlet=t.first),Kl(t=nc())&&(e._headerRowOutlet=t.first),Kl(t=nc())&&(e._footerRowOutlet=t.first),Kl(t=nc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Aa([{provide:CE,useExisting:t},{provide:qv,useClass:Hv},{provide:PE,useClass:ME}])],ngContentSelectors:vE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(bE),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function tT(t,e){return t.concat(Array.from(e))}let eT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gv]]}),t})();const nT=[[["caption"]],[["colgroup"],["col"]]],iT=["caption","colgroup, col"];let sT=(()=>{class t extends JE{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return rT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Aa([{provide:qv,useClass:Hv},{provide:JE,useExisting:t},{provide:CE,useExisting:t},{provide:PE,useClass:ME}]),ao],ngContentSelectors:iT,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(nT),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],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;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const rT=ts(sT);let oT=(()=>{class t extends SE{}return t.\u0275fac=function(e){return aT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matCellDef",""]],features:[Aa([{provide:SE,useExisting:t}]),ao]}),t})();const aT=ts(oT);let lT=(()=>{class t extends xE{}return t.\u0275fac=function(e){return cT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderCellDef",""]],features:[Aa([{provide:xE,useExisting:t}]),ao]}),t})();const cT=ts(lT);let hT=(()=>{class t extends IE{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(e){return uT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Aa([{provide:IE,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();const uT=ts(hT);let dT=(()=>{class t extends AE{}return t.\u0275fac=function(e){return pT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ao]}),t})();const pT=ts(dT);let fT=(()=>{class t extends RE{}return t.\u0275fac=function(e){return mT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ao]}),t})();const mT=ts(fT);let gT=(()=>{class t extends VE{}return t.\u0275fac=function(e){return _T(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Aa([{provide:VE,useExisting:t}]),ao]}),t})();const _T=ts(gT);let yT=(()=>{class t extends HE{}return t.\u0275fac=function(e){return bT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Aa([{provide:HE,useExisting:t}]),ao]}),t})();const bT=ts(yT);let vT=(()=>{class t extends qE{}return t.\u0275fac=function(e){return wT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Aa([{provide:qE,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const wT=ts(vT);let CT=(()=>{class t extends $E{}return t.\u0275fac=function(e){return ST(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Aa([{provide:$E,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const ST=ts(CT);let xT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[eT,Nb],Nb]}),t})();const kT=["mat-sort-header",""];function ET(t,e){if(1&t){const t=Mo();Io(0,"div",3),No("@arrowPosition.start",function(){return Ge(t),Ho()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Ge(t),Ho()._disableViewStateAnimation=!1}),Ao(1,"div",4),Io(2,"div",5),Ao(3,"div",6),Ao(4,"div",7),Ao(5,"div",8),Oo(),Oo()}if(2&t){const t=Ho();Eo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),Gs(2),Eo("@indicator",t._getArrowDirectionState()),Gs(1),Eo("@leftPointer",t._getArrowDirectionState()),Gs(1),Eo("@rightPointer",t._getArrowDirectionState())}}const TT=["*"];class IT{}const OT=Ub(Vb(IT));let AT=(()=>{class t extends OT{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new S,this.start="asc",this._direction="",this.sortChange=new Nl}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return RT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ao,fi]}),t})();const RT=ts(AT),DT=Pb.ENTERING+" "+Db.STANDARD_CURVE,PT={indicator:o_("indicator",[h_("active-asc, asc",c_({transform:"translateY(0px)"})),h_("active-desc, desc",c_({transform:"translateY(10px)"})),d_("active-asc <=> active-desc",a_(DT))]),leftPointer:o_("leftPointer",[h_("active-asc, asc",c_({transform:"rotate(-45deg)"})),h_("active-desc, desc",c_({transform:"rotate(45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),rightPointer:o_("rightPointer",[h_("active-asc, asc",c_({transform:"rotate(45deg)"})),h_("active-desc, desc",c_({transform:"rotate(-45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),arrowOpacity:o_("arrowOpacity",[h_("desc-to-active, asc-to-active, active",c_({opacity:1})),h_("desc-to-hint, asc-to-hint, hint",c_({opacity:.54})),h_("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",c_({opacity:0})),d_("* => asc, * => desc, * => active, * => hint, * => void",a_("0ms")),d_("* <=> *",a_(DT))]),arrowPosition:o_("arrowPosition",[d_("* => desc-to-hint, * => desc-to-active",a_(DT,u_([c_({transform:"translateY(-25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-desc, * => active-to-desc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(25%)"})]))),d_("* => asc-to-hint, * => asc-to-active",a_(DT,u_([c_({transform:"translateY(25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-asc, * => active-to-asc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(-25%)"})]))),h_("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",c_({transform:"translateY(0)"})),h_("hint-to-desc, active-to-desc, desc",c_({transform:"translateY(-25%)"})),h_("hint-to-asc, active-to-asc, asc",c_({transform:"translateY(25%)"}))]),allowChildren:o_("allowChildren",[d_("* <=> *",[f_("@*",p_(),{optional:!0})])])};let MT=(()=>{class t{constructor(){this.changes=new S,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LT={provide:MT,deps:[[new st,new ot,MT]],useFactory:function(t){return t||new MT}};class FT{}const NT=Vb(FT);let VT=(()=>{class t extends NT{constructor(t,e,n,i,s,r){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=W(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(xo(MT),xo(ol),xo(AT,8),xo("MAT_SORT_HEADER_COLUMN_DEF",8),xo(Bg),xo(Na))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(vo("aria-sort",e._getAriaSortAttribute()),ta("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ao],attrs:kT,ngContentSelectors:TT,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(qo(),Io(0,"div",0),Io(1,"div",1),$o(2),Oo(),Co(3,ET,6,6,"div",2),Oo()),2&t&&(ta("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vo("tabindex",e._isDisabled()?null:0),Gs(3),Eo("ngIf",e._renderArrow()))},directives:[Ah],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[PT.indicator,PT.leftPointer,PT.rightPointer,PT.arrowOpacity,PT.arrowPosition,PT.allowChildren]},changeDetection:0}),t})(),jT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[LT],imports:[[Hh,Nb]]}),t})();function BT(t,e){if(1&t&&(Io(0,"li"),ua(1),Oo()),2&t){const t=e.$implicit;Gs(1),da(t)}}function zT(t,e){if(1&t&&(Io(0,"ul"),Co(1,BT,2,1,"li",8),Oo()),2&t){const t=Ho(2);Gs(1),Eo("ngForOf",t.errorMessages)}}function HT(t,e){if(1&t){const t=Mo();Io(0,"div",2),Io(1,"div",3),Io(2,"div"),ua(3),Oo(),Co(4,zT,2,1,"ul",4),Oo(),Io(5,"div",5),Io(6,"button",6),No("click",function(){return Ge(t),Ho().clearErrorMessage()}),Ao(7,"mat-icon",7),Oo(),Oo(),Oo()}if(2&t){const t=Ho();Gs(3),pa(" ",t.errorMessage," "),Gs(1),Eo("ngIf",t.errorMessages&&t.errorMessages.length)}}function UT(t,e){if(1&t&&(Io(0,"mat-header-cell",23),Io(1,"span",24),ua(2),Oo(),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("matTooltip",e.displayedColumnsDict[t].description),Gs(1),pa(" ",e.displayedColumnsDict[t].isSmilesColumn?"mol":t," ")}}function qT(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho().$implicit,e=Ho().$implicit;Gs(1),da("0 (0.0)"==t[e]?"0 (0.01)":t[e])}}function $T(t,e){if(1&t){const t=Mo();Io(0,"a",26),No("click",function(){Ge(t);const e=Ho().$implicit,n=Ho().$implicit;return Ho(2).openStructureImageDialog(e[n])}),Ao(1,"img",27),Oo()}if(2&t){const t=Ho().$implicit,e=Ho().$implicit;Eo("matTooltip",t[e]),Gs(1),Eo("entityId",t[e])}}function WT(t,e){if(1&t&&(Io(0,"mat-cell"),Co(1,qT,2,1,"span",4),Co(2,$T,2,2,"a",25),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("ngIf",!e.displayedColumnsDict[t].isSmilesColumn),Gs(1),Eo("ngIf",e.displayedColumnsDict[t].isSmilesColumn)}}function YT(t,e){1&t&&(Ro(0,20),Co(1,UT,3,2,"mat-header-cell",21),Co(2,WT,3,2,"mat-cell",22),Do()),2&t&&Eo("matColumnDef",e.$implicit)}function GT(t,e){1&t&&Ao(0,"mat-header-row")}function KT(t,e){1&t&&Ao(0,"mat-row",28)}const ZT=function(){return[5,10,25,100]};function QT(t,e){if(1&t){const t=Mo();Io(0,"div",9),Io(1,"h2"),ua(2,"Model predictions"),Oo(),Io(3,"div",10),Io(4,"button",11),No("click",function(){return Ge(t),Ho().downloadCSV()}),ua(5,"Download"),Oo(),Ao(6,"div",12),Io(7,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo(),Io(8,"div",14),Io(9,"mat-table",15,16),No("matSortChange",function(e){return Ge(t),Ho().sortData(e)}),Co(11,YT,3,1,"ng-container",17),Co(12,GT,1,0,"mat-header-row",18),Co(13,KT,1,0,"mat-row",19),Oo(),Oo(),Io(14,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo()}if(2&t){const t=Ho();Gs(7),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(12,ZT)),Gs(2),Eo("dataSource",t.paged),Gs(2),Eo("ngForOf",t.displayedColumns),Gs(1),Eo("matHeaderRowDef",t.displayedColumns),Gs(1),Eo("matRowDefColumns",t.displayedColumns),Gs(1),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(13,ZT))}}let XT=(()=>{class t{constructor(t,e){this.dialog=t,this.gaService=e,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Nl}ngOnInit(){}set predictionsData(t){null!=t?(this.predictions=t,this.displayedColumnsDict=t.mainColumnsDict,this.displayedColumns=Object.keys(this.displayedColumnsDict).sort((t,e)=>this.displayedColumnsDict[t].order-this.displayedColumnsDict[e].order),this.allColumns=t.columns,"replace"===this.dataHandling?(this.data=t.data,this.displayData=this.getNonEmptyPredictions(this.data)):(this.data.push(t.data[0]),this.displayData=this.displayData.concat(this.getNonEmptyPredictions(t.data))),this.pageChange(),t.hasErrors&&(this.errorMessage="The system encountered the following error(s) while processing your request:",this.errorMessages=t.errorMessages)):(this.data=null,this.displayData=null)}pageChange(t){this.clearErrorMessage(),null!=t?(t.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=t.pageIndex,t.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=t.pageSize):this.page=0,this.paged=[];const e=this.page*this.pageSize;for(let n=e;nthis.compare(e[t.active],n[t.active],"asc"===t.direction)),this.pageChange()}compare(t,e,n){return(t!this.displayedColumnsDict[t].isSmilesColumn);return t.filter(t=>{let n=0;return e.forEach(e=>{null!=t[e]&&""!==t[e]||n++}),n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Oo(),Oo(),Io(60,"div",4),Io(61,"div",5),ua(62,"Data for Download:"),Oo(),Io(63,"div",6),ua(64," A subset of the dataset used for developing these models is available for download. Click "),Io(65,"a",12),ua(66,"here"),Oo(),ua(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Io(68,"a",13),ua(69,"AID 1508591"),Oo(),ua(70,". "),Oo(),Oo(),Oo(),Ao(71,"br"),Io(72,"h3"),ua(73," RLM Assay Protocol "),Oo(),Io(74,"p",14),ua(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Io(76,"sub"),ua(77,"1/2"),Oo(),ua(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Oo(),Io(79,"h3"),ua(80," References: "),Oo(),Io(81,"ol"),Io(82,"li"),ua(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Oo(),Io(84,"li"),ua(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Oo(),Oo(),Oo()),2&t){const t=Ho();Gs(65),Eo("href",t.dataDownloadHref,ai)}}function hI(t,e){1&t&&(Io(0,"div",2),Io(1,"h2"),ua(2," CYP450 Models "),Oo(),Io(3,"h3"),ua(4," High-throughput metabolic stability assays: "),Oo(),Io(5,"p"),ua(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Io(7,"sup"),ua(8,"1"),Oo(),ua(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Io(10,"sub"),ua(11,"1/2"),Oo(),ua(12,") determinations were performed as previously described"),Io(13,"sup"),ua(14,"1"),Oo(),ua(15,". "),Oo(),Io(16,"div",15),Io(17,"div",16),ua(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Oo(),Io(19,"div",17),Io(20,"table",18),Io(21,"thead"),Io(22,"tr",19),Io(23,"th",20),ua(24," Matrix "),Oo(),Io(25,"th",20),ua(26," Final Protein Concentration [mg/mL] "),Oo(),Io(27,"th",20),ua(28," Total CYP content [nM] "),Oo(),Io(29,"th",20),ua(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Oo(),Io(31,"th",20),ua(32," Cytochrome b"),Io(33,"sub"),ua(34,"5"),Oo(),ua(35," content [pmol/mg protein] "),Oo(),Io(36,"th",20),ua(37," High clearance controls "),Oo(),Io(38,"th",20),ua(39," Moderate clearance controls "),Oo(),Io(40,"th",20),ua(41," Low clearance controls "),Oo(),Oo(),Oo(),Io(42,"tbody"),Io(43,"tr",21),Io(44,"td",22),ua(45," CYP3A4 "),Oo(),Io(46,"td",23),ua(47," ~0.2 "),Oo(),Io(48,"td",23),ua(49," 30 "),Oo(),Io(50,"td",23),ua(51," 2900 "),Oo(),Io(52,"td",23),ua(53," 1090 "),Oo(),Io(54,"td",23),ua(55," Buspirone, Loperamide "),Oo(),Io(56,"td",23),ua(57," Ketoconazole "),Oo(),Io(58,"td",23),ua(59," Antipyrine, Carbamazepine "),Oo(),Oo(),Io(60,"tr",21),Io(61,"td",22),ua(62," CYP2C9 "),Oo(),Io(63,"td",23),ua(64," ~0.12 "),Oo(),Io(65,"td",23),ua(66," 45 "),Oo(),Io(67,"td",23),ua(68," 985 "),Oo(),Io(69,"td",23),ua(70," 710 "),Oo(),Io(71,"td",23),ua(72," Glyburide, Glimepiride "),Oo(),Io(73,"td",23),ua(74," Tamoxifen "),Oo(),Io(75,"td",23),ua(76," Antipyrine, Meloxicam "),Oo(),Oo(),Io(77,"tr",21),Io(78,"td",22),ua(79," CYP2D6 "),Oo(),Io(80,"td",23),ua(81," ~0.38 "),Oo(),Io(82,"td",23),ua(83," 60 "),Oo(),Io(84,"td",23),ua(85," 3000 "),Oo(),Io(86,"td",23),ua(87," - "),Oo(),Io(88,"td",23),ua(89," Bufuralol, Desipramine, Amitriptyline "),Oo(),Io(90,"td",23),ua(91," Mexiletine "),Oo(),Io(92,"td",23),ua(93," Codeine "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(94,"h3"),ua(95," P450-Glo qHTS: "),Oo(),Io(96,"p"),ua(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Io(98,"sup"),ua(99,"2"),Oo(),ua(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Oo(),Io(101,"div",15),Io(102,"div",16),ua(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Oo(),Io(104,"div",17),Io(105,"table",18),Io(106,"thead"),Io(107,"tr",19),Io(108,"th",20),ua(109," Enzyme "),Oo(),Io(110,"th",20),ua(111," Inhibitor "),Oo(),Io(112,"th",20),ua(113," Dilution Format "),Oo(),Io(114,"th",20),ua(115," Inhibitor Concentration "),Oo(),Io(116,"th",20),ua(117," Incubation conditions "),Oo(),Oo(),Oo(),Io(118,"tbody"),Io(119,"tr",21),Io(120,"td",22),ua(121," CYP3A4 "),Oo(),Io(122,"td",23),ua(123," Ketoconazole "),Oo(),Io(124,"td",24),Io(125,"div"),ua(126,"16 concentrations/"),Oo(),Io(127,"div"),ua(128,"2-fold dilution in"),Oo(),Io(129,"div"),ua(130,"duplicates"),Oo(),Oo(),Io(131,"td",23),ua(132," 57 \xb5M-1.8 nM "),Oo(),Io(133,"td",23),ua(134," 1 h/RT "),Oo(),Oo(),Io(135,"tr",21),Io(136,"td",22),ua(137," CYP2C9 "),Oo(),Io(138,"td",23),ua(139," Sulfaphenazole "),Oo(),Io(140,"td",23),ua(141," 57 \xb5M-1.8 nM "),Oo(),Io(142,"td",23),ua(143," 1 h/ 37\u02daC/ 0.4% BSA "),Oo(),Oo(),Io(144,"tr",21),Io(145,"td",22),ua(146," CYP2D6 "),Oo(),Io(147,"td",23),ua(148," Quinidine "),Oo(),Io(149,"td",23),ua(150," 1.4 \xb5M-0.04 nM "),Oo(),Io(151,"td",23),ua(152," 1 h/RT "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(153,"div",15),Io(154,"div",16),ua(155," Parsing of Substrates and Inhibitors: "),Oo(),Io(156,"div",17),Io(157,"table",25),Io(158,"thead"),Io(159,"tr",19),Io(160,"th",20),ua(161," Category "),Oo(),Io(162,"th",20),Io(163,"div"),ua(164,"Clearance"),Oo(),Io(165,"div"),ua(166,"/"),Oo(),Io(167,"div"),ua(168,"P450-Glo"),Oo(),Oo(),Io(169,"th",20),ua(170," Classification "),Oo(),Io(171,"th",20),ua(172," Parsing Rationale "),Oo(),Oo(),Oo(),Io(173,"tbody"),Io(174,"tr",21),Io(175,"td",23),ua(176," 1 "),Oo(),Io(177,"td",23),ua(178," + / + "),Oo(),Io(179,"td",23),ua(180," Substrate "),Oo(),Io(181,"td",26),ua(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Oo(),Oo(),Io(183,"tr",21),Io(184,"td",23),ua(185," 2 "),Oo(),Io(186,"td",23),ua(187," - / + "),Oo(),Io(188,"td",23),ua(189," Inhibitor "),Oo(),Io(190,"td",26),ua(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Oo(),Oo(),Io(192,"tr",21),Io(193,"td",23),ua(194," 3 "),Oo(),Io(195,"td",23),ua(196," - / - "),Oo(),Io(197,"td",23),ua(198," Non-ligand "),Oo(),Io(199,"td",26),ua(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Oo(),Oo(),Io(201,"tr",21),Io(202,"td",23),ua(203," 4 "),Oo(),Io(204,"td",23),ua(205," + / - "),Oo(),Io(206,"td",23),ua(207," Substrate "),Oo(),Io(208,"td",26),ua(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(210,"h3"),ua(211," References: "),Oo(),Io(212,"ol"),Io(213,"li"),ua(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Oo(),Io(215,"li"),ua(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Oo(),Oo(),Oo())}const uI=[{path:"home",component:$m,data:{pageTitle:"home"}},{path:"predictions",component:(()=>{class t{constructor(t,e,n){this.http=t,this.loadingService=e,this.gaService=n,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}ngOnInit(){this.link=document.createElement("a")}processSketcherInput(t){this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/api/v1/predict",{params:{smiles:t,model:this.models}}).subscribe(t=>{this.sketcherData=t,this.loadingService.setLoadingState(!1)},t=>{this.errorMessage="There was an error processing your structure. Please modify it and try again.",this.loadingService.setLoadingState(!1)})}processFile(t){this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);const e=new FormData;e.append("lineBreak",t.lineBreak),this.lineBreak=t.lineBreak,e.append("columnSeparator",t.columnSeparator),this.columnSeparator=t.columnSeparator,e.append("hasHeaderRow",t.hasHeaderRow.toString()),e.append("indexIdentifierColumn",t.indexIdentifierColumn.toString()),e.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=t.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,e.append("file",t.file),this.http.post("/api/v1/predict-file",e).subscribe(t=>{t.hasErrors?this.errorMessage=t.errorMessages:t&&Object.keys(t).length>0&&(this.fileData=t),this.loadingService.setLoadingState(!1)},t=>{this.fileData=null,this.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",this.loadingService.setLoadingState(!1)})}clearErrorMessage(){this.errorMessage="",this.errorMessages=[]}downloadCSV(t){const e=[...t.allColumns].join(this.columnSeparator),n=[];t.data.forEach(e=>n.push(t.allColumns.map(t=>e[t]).join(this.columnSeparator)));const i=e+this.lineBreak+n.join(this.lineBreak);this.file=new Blob([i],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}downloadFile(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}selectedTabChange(t,e){this.gaService.sendEvent("click:tab",e,t.tab.textLabel)}}return t.\u0275fac=function(e){return new(e||t)(xo(km),xo(Wm),xo(Um))},t.\u0275cmp=Xt({type:t,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"mat-tab-group",2),No("selectedTabChange",function(t){return e.selectedTabChange(t,"predictions:input-type")}),Io(3,"mat-tab",3),Io(4,"div",4),Io(5,"adme-sketcher",5),No("moleculeInput",function(t){return e.processSketcherInput(t)}),Oo(),Oo(),Co(6,eI,8,2,"div",6),Co(7,iI,3,1,"div",7),Oo(),Io(8,"mat-tab",8),Io(9,"div",4),Io(10,"adme-text-file",9),No("fileProcess",function(t){return e.processFile(t)}),Oo(),Oo(),Co(11,oI,8,2,"div",6),Co(12,lI,3,1,"div",7),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.sketcherData),Gs(4),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.fileData))},directives:[Ow,yw,Ww,Ah,xk,Uw,jk,Ih,XT],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),t})(),data:{pageTitle:"predictions"}},{path:"models/:model",component:(()=>{class t{constructor(t,e){this.domSanatizer=t,this.activatedRoute=e,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/client/assets/rlm_public_set.xlsx")}ngOnInit(){this.subscription=this.activatedRoute.params.subscribe(t=>{this.model=t.model})}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(vp))},t.\u0275cmp=Xt({type:t,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(t,e){1&t&&(Io(0,"div",0),Co(1,cI,86,1,"div",1),Co(2,hI,217,0,"div",1),Oo()),2&t&&(Gs(1),Eo("ngIf","rlm"==e.model),Gs(1),Eo("ngIf","cyp450"==e.model))},directives:[Ah,qm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),t})(),data:{pageTitle:"model"}},{path:"contact",component:(()=>{class t{constructor(t){this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/epam_ketcher.png")}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(yu))},t.\u0275cmp=Xt({type:t,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h1"),ua(3," Contact "),Oo(),Io(4,"div",2),Io(5,"div",3),Ao(6,"img",4),Oo(),Io(7,"div",5),Io(8,"div"),ua(9," Vishal Siramshetty "),Oo(),Io(10,"div"),ua(11," Postdoctoral Fellow (Informatics) "),Oo(),Io(12,"div"),ua(13," Email: "),Io(14,"a",6),ua(15,"siramshettyv2@nih.gov"),Oo(),ua(16," (models/predictions related queries) "),Oo(),Oo(),Oo(),Io(17,"div",2),Io(18,"div",3),Ao(19,"img",4),Oo(),Io(20,"div",5),Io(21,"div"),ua(22," Pranav Shah "),Oo(),Io(23,"div"),ua(24," Lead (In Vitro ADME) "),Oo(),Io(25,"div"),ua(26," Email: "),Io(27,"a",7),ua(28,"pranav.shah@nih.gov"),Oo(),ua(29," (assay/data related queries) "),Oo(),Oo(),Oo(),Io(30,"div",2),Io(31,"div",3),Ao(32,"img",4),Oo(),Io(33,"div",5),Io(34,"div"),ua(35," Jorge Neyra "),Oo(),Io(36,"div"),ua(37," Software Developer (Informatics) "),Oo(),Io(38,"div"),ua(39," Email: "),Io(40,"a",8),ua(41,"jorge.neyra@nih.gov"),Oo(),ua(42," (software related queries) "),Oo(),Oo(),Oo(),Io(43,"div",2),Io(44,"div",3),Ao(45,"img",4),Oo(),Io(46,"div",5),Io(47,"div"),ua(48," Jordan Williams "),Oo(),Io(49,"div"),ua(50," Postbaccalaureate Fellow (In Vitro ADME) "),Oo(),Io(51,"div"),ua(52," Email: "),Io(53,"a",9),ua(54,"jordan.williams2@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(55,"div",2),Io(56,"div",3),Ao(57,"img",4),Oo(),Io(58,"div",5),Io(59,"div"),ua(60," Noel Southall "),Oo(),Io(61,"div"),ua(62," Lead (Informatics) "),Oo(),Io(63,"div"),ua(64," Email: "),Io(65,"a",10),ua(66,"southalln@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(67,"div",2),Io(68,"div",3),Ao(69,"img",4),Oo(),Io(70,"div",5),Io(71,"div"),ua(72," Trung Nguyen "),Oo(),Io(73,"div"),ua(74," Staff Scientist (Informatics) "),Oo(),Io(75,"div"),ua(76," Email: "),Io(77,"a",11),ua(78,"nguyenda@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(79,"div",2),Io(80,"div",3),Ao(81,"img",4),Oo(),Io(82,"div",5),Io(83,"div"),ua(84," Xin Xu "),Oo(),Io(85,"div"),ua(86," Lead (ADME Group) "),Oo(),Io(87,"div"),ua(88," Email: "),Io(89,"a",12),ua(90,"xin.xu3@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(91,"div",13),Io(92,"h1"),ua(93," Resources "),Oo(),Io(94,"div",14),Io(95,"div"),Io(96,"a",15),Ao(97,"img",4),Oo(),Oo(),Io(98,"div"),Io(99,"a",16),Ao(100,"img",4),Oo(),Oo(),Oo(),Io(101,"div",14),Io(102,"div"),Io(103,"a",17),Ao(104,"img",4),Oo(),Oo(),Io(105,"div"),Io(106,"a",18),Ao(107,"img",4),Oo(),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("src",e.vishalImgSrc,ai),Gs(13),Eo("src",e.pranavImgSrc,ai),Gs(13),Eo("src",e.jorgeImgSrc,ai),Gs(13),Eo("src",e.jordanImgSrc,ai),Gs(12),Eo("src",e.noelImgSrc,ai),Gs(12),Eo("src",e.trungImgSrc,ai),Gs(12),Eo("src",e.xinImgSrc,ai),Gs(16),Eo("src",e.rdkitImgSrc,ai),Gs(3),Eo("src",e.pythonImgSrc,ai),Gs(4),Eo("src",e.angularImgSrc,ai),Gs(3),Eo("src",e.epamImgSrc,ai))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),t})(),data:{pageTitle:"contact"}},{path:"**",component:$m}];let dI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tm.forRoot(uI,{relativeLinkResolution:"legacy"})],tm]}),t})();function pI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function fI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function mI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function gI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}const _I=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class yI{constructor(t){this._elementRef=t}}const bI=jb(yI,"primary"),vI=new vt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let wI=(()=>{class t extends bI{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=pg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=pg(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,pg(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eg(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(vo("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,pI,1,9,"circle",1),Co(2,fI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),CI=(()=>{class t extends wI{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,mI,1,9,"circle",1),Co(2,gI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t})(),SI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Hh],Nb]}),t})();function xI(t,e){1&t&&(Io(0,"div",1),Ao(1,"mat-spinner"),Oo())}let kI=(()=>{class t{constructor(t){this.lodadingService=t,this.isLoading=!1}ngOnInit(){this.lodadingService.isLoading.subscribe(t=>{this.isLoading=t})}}return t.\u0275fac=function(e){return new(e||t)(xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(t,e){1&t&&Co(0,xI,2,0,"div",0),2&t&&Eo("ngIf",e.isLoading)},directives:[Ah,CI],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),t})();const EI=["*",[["mat-toolbar-row"]]],TI=["*","mat-toolbar-row"];class II{constructor(t){this._elementRef=t}}const OI=jb(II);let AI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),RI=(()=>{class t extends OI{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,AI,!0),2&t){let t;Kl(t=nc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ao],ngContentSelectors:TI,decls:2,vars:0,template:function(t,e){1&t&&(qo(EI),$o(0),$o(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),DI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function PI(t,e=ag){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new MI(i,e))}class MI{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new LI(t,this.delay,this.scheduler))}}class LI extends f{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,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(LI.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new FI(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Bv.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Bv.createComplete()),this.unsubscribe()}}class FI{constructor(t,e){this.time=t,this.notification=e}}const NI=["mat-menu-item",""],VI=["*"];function jI(t,e){if(1&t){const t=Mo();Io(0,"div",0),No("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)})("click",function(){return Ge(t),Ho().closed.emit("click")})("@transformMenu.start",function(e){return Ge(t),Ho()._onAnimationStart(e)})("@transformMenu.done",function(e){return Ge(t),Ho()._onAnimationDone(e)}),Io(1,"div",1),$o(2),Oo(),Oo()}if(2&t){const t=Ho();Eo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),vo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const BI={transformMenu:o_("transformMenu",[h_("void",c_({opacity:0,transform:"scale(0.8)"})),d_("void => enter",a_("120ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:1,transform:"scale(1)"}))),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))]),fadeInItems:o_("fadeInItems",[h_("showing",c_({opacity:1})),d_("void => *",[c_({opacity:0}),a_("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zI=new vt("MatMenuContent"),HI=new vt("MAT_MENU_PANEL");class UI{}const qI=Bb(Vb(UI));let $I=(()=>{class t extends qI{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new S,this._focused=new S,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new jl,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new S,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Nl,this.close=this.closed,this.panelId="mat-menu-panel-"+YI++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=dg(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=dg(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ig(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:ng(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Qu(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ed(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275dir=se({type:t,contentQueries:function(t,e,n){if(1&t&&(Jl(n,zI,!0),Jl(n,$I,!0),Jl(n,$I,!1)),2&t){let t;Kl(t=nc())&&(e.lazyContent=t.first),Kl(t=nc())&&(e._allItems=t),Kl(t=nc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Ql(dl,!0),2&t){let t;Kl(t=nc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),KI=(()=>{class t extends GI{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Aa([{provide:HI,useExisting:t}]),ao],ngContentSelectors:VI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(qo(),Co(0,jI,3,6,"ng-template"))},directives:[Eh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[BI.transformMenu,BI.fadeInItems]},changeDetection:0}),t})();const ZI=new vt("mat-menu-scroll-strategy"),QI={provide:ZI,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},XI=tg({passive:!0});let JI=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Nl,this.onMenuOpen=this.menuOpened,this.menuClosed=new Nl,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof GI?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,XI),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,XI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof GI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof GI?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Mu(t=>"void"===t.toState),Qu(1),xv(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ox({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return W(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Su(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mu(t=>t!==this._menuItemInstance),Mu(()=>this._menuOpen)):Su(),e)}_handleMousedown(t){Ng(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mu(t=>t===this._menuItemInstance&&!t.disabled),PI(0,Mv)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof GI&&this.menu._isAnimating?this.menu._animationDone.pipe(Qu(1),PI(0,Mv),xv(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Yg(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(Na),xo(bl),xo(ZI),xo(HI,8),xo($I,10),xo(n_,8),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&No("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&vo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),tO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[Nb]}),t})(),eO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[[Hh,Nb,tv,Ox,tO],Yv,Nb,tO]}),t})(),nO=(()=>{class t{constructor(t,e,n,i,s){this.router=n,this.gaService=i,this._document=s,t.addSvgIcon("cancel",e.bypassSecurityTrustResourceUrl("/client/assets/icons/cancel-24px.svg"))}ngOnInit(){this._document.getElementById("appFavicon").setAttribute("href","/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(t=>{t instanceof xd&&this.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}ngOnDestroy(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Ak),xo(yu),xo(Bf),xo(Um),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(t,e){if(1&t&&(Ao(0,"adme-loading"),Io(1,"mat-toolbar",0),Io(2,"a",1),ua(3,"ADME @ NCATS"),Oo(),Io(4,"div",2),Io(5,"a",3),ua(6,"Predict"),Oo(),Io(7,"a",4),ua(8,"Models"),Oo(),Io(9,"mat-menu",null,5),Io(11,"button",6),ua(12,"RLM"),Oo(),Io(13,"button",7),ua(14,"CYP450"),Oo(),Oo(),Io(15,"a",8),ua(16,"Contact"),Oo(),Oo(),Ao(17,"span",9),Oo(),Ao(18,"router-outlet")),2&t){const t=So(10);Gs(7),Eo("matMenuTriggerFor",t)}},directives:[kI,RI,Hf,JI,KI,$I,zf,qf],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),t})(),iO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,qw]]}),t})(),sO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb],Nb]}),t})(),rO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})(),oO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[$b,tv,Nb,nv,Hh],$b,Nb,nv,rO]}),t})();function aO(t){return()=>t.load()}let lO=(()=>{class t{}return t.\u0275mod=ne({type:t,bootstrap:[nO]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Hm,{provide:oc,useFactory:aO,deps:[Hm],multi:!0}],imports:[[Cu,dI,Ob,iO,xT,yE,zm,qw,DI,mS,gS,ZS,Qx,Nw,Sk,sO,SI,oO,nE,jT,pk,Bk,eO]]}),t})();(function(){if(Fn)throw new Error("Cannot enable prod mode after platform setup.");Ln=!1})(),vu().bootstrapModule(lO).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/server/client/main-es5.bf526f6229c9275787d7.js b/server/client/main-es5.bf526f6229c9275787d7.js new file mode 100644 index 0000000..4e091d1 --- /dev/null +++ b/server/client/main-es5.bf526f6229c9275787d7.js @@ -0,0 +1 @@ +!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,p(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)})(e)}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new H(e,n,i);if(!r.closed)return t instanceof P?t.subscribe(r):G(t)(r)}var Z=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(A);function Q(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new X(e,t))}}var X=function(){function e(t,n){v(this,e),this.project=t,this.thisArg=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||f(o),o}return g(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(A);function J(e,t){return new P(function(n){var i=new x,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ee(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[I]}(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){var r=e[I]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Y(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(W(e))return J(e,t);if(function(e){return e&&"function"==typeof e[q]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(function(n){var i,r=new x;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[q](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof P?e:new P(G(e))}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(te(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ne(e,n))})}var ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=t,this.concurrent=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new ie(e,this.project,this.concurrent))}}]),e}(),ie=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return g(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Z);function re(e){return e}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return te(re,e)}function ae(e,t){return t?J(e,t):new P(U(e))}function se(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof P?t[0]:oe(i)(ae(t,r))}function ue(){return function(e){return e.lift(new ce(e))}}var le,ce=function(){function e(t){v(this,e),this.connectable=t}return g(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new he(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),he=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(A),fe={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(le=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return g(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new x).add(this.source.subscribe(new de(this.getSubject(),this))),e.closed&&(this._connection=null,e=x.EMPTY)),e}},{key:"refCount",value:function(){return ue()(this)}}]),n}(P).prototype)._subscribe},_isComplete:{value:le._isComplete,writable:!0},getSubject:{value:le.getSubject},connect:{value:le.connect},refCount:{value:le.refCount}},de=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_error",value:function(e){this._unsubscribe(),s(p(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),s(p(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(V);function pe(){return new j}function ve(){return function(e){return ue()((t=pe,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,fe);return i.source=e,i.subjectFactory=n,i})(e));var t}}function me(e){return{toString:e}.toString()}function ge(e,t,n){return me(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $e(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function et(e,t){var n=tt(e,t);if(n>=0)return e[1|n]}function tt(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var nt,it=((nt={})[nt.Emulated=0]="Emulated",nt[nt.None=2]="None",nt[nt.ShadowDom=3]="ShadowDom",nt),rt={},ot=[],at=Se({"\u0275cmp":Se}),st=Se({"\u0275dir":Se}),ut=Se({"\u0275pipe":Se}),lt=Se({"\u0275mod":Se}),ct=Se({"\u0275loc":Se}),ht=Se({"\u0275fac":Se}),ft=Se({__NG_ELEMENT_ID__:Se}),dt=0;function pt(e){return me(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ne.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ot,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||ot,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=dt++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(vt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(mt)}:null,n})}function vt(e){return kt(e)||function(e){return e[st]||null}(e)}function mt(e){return function(e){return e[ut]||null}(e)}var gt={};function yt(e){var t={type:e.type,bootstrap:e.bootstrap||ot,declarations:e.declarations||ot,imports:e.imports||ot,exports:e.exports||ot,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me(function(){gt[e.id]=e.type}),t}function _t(e,t){if(null==e)return rt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var bt=pt;function kt(e){return e[at]||null}function wt(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(we(e)," does not have '\u0275mod' property."));return n}function Ct(e){return"string"==typeof e?e:null==e?"":""+e}function St(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ct(e)}var xt,Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Tt(e){var t=xt;return xt=e,t}function At(e,t,n){var i=Ae(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Et.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(we(e),"]"))}var Ot={},It=/\n/gm,Rt=Se({provide:String,useValue:Se}),Dt=void 0;function Pt(e){var t=Dt;return Dt=e,t}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;if(void 0===Dt)throw new Error("inject() must be called from an injection context");return null===Dt?At(e,void 0,t):Dt.get(e,t&Et.Optional?null:void 0,t)}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;return(xt||Mt)(We(e),t)}var Ft=Lt;function Nt(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ci.hasOwnProperty(t)&&!ai.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(yi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function yi(e){return e.replace(/&/g,"&").replace(mi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function _i(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function ki(e){var t=Ci();return t?t.sanitize(bi.URL,e)||"":Gn(e,"URL")?Yn(e):ni(Ct(e))}function wi(e){var t=Ci();if(t)return t.sanitize(bi.RESOURCE_URL,e)||"";if(Gn(e,"ResourceURL"))return Yn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Ci(){var e=un();return e&&e[12]}function Si(e,t){return e.hasOwnProperty(ht)?e[ht]:null}var xi=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(n(Error));function Ei(e,t){var n=t?" in "+t:"";throw new xi("201","No provider for ".concat(St(e)," found").concat(n))}var Ti=function(){function e(t,n,i){v(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return g(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ai(){return Oi}function Oi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),Ii}function Ii(){var e=Di(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ri(e,t,n,i){var r=Di(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ti(u&&u.currentValue,t,a===rt),e[i]=t}function Di(e){return e.__ngSimpleChanges__||null}function Pi(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}Ai.ngInherit=!0;var ji=function e(t,n,i){v(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bi(e,t,n){for(var i=Wt(e),r=0;rt){a=o-1;break}}}for(;o>16,i=t;n>0;)i=i[15],n--;return i}var Ki=!0;function Zi(e){var t=Ki;return Ki=e,t}var Qi=0;function Xi(e,t){var n=Ji(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$i(i.data,e),$i(t,null),$i(i.blueprint,null));var r=er(e,t),o=e.injectorIndex;if(Wi(r))for(var a=Yi(r),s=Gi(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function $i(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ji(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function er(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function tr(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ft)&&(i=n[ft]),null==i&&(i=n[ft]=Qi++);var r=255&i,o=1<3&&void 0!==arguments[3]?arguments[3]:Et.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ft)?e[ft]:void 0;return"number"==typeof t?t>=0?255&t:ar:t}(n);if("function"==typeof o){if(!En(t,e,i))return i&Et.Host?nr(r,n,i):ir(t,n,i,r);try{var a=o();if(null!=a||i&Et.Optional)return a;Ei(n)}finally{Dn()}}else if("number"==typeof o){var s=null,u=Ji(e,t),l=-1,c=i&Et.Host?t[16][6]:null;for((-1===u||i&Et.SkipSelf)&&(-1!==(l=-1===u?er(e,t):t[u+8])&&hr(i,!1)?(s=t[1],u=Yi(l),t=Gi(l,t)):u=-1);-1!==u;){var h=t[1];if(cr(o,u,h.data)){var f=sr(u,t,n,s,i,c);if(f!==or)return f}-1!==(l=t[u+8])&&hr(i,t[1].data[u+8]===c)&&cr(o,u,t)?(s=h,u=Yi(l),t=Gi(l,t)):u=-1}}}return ir(t,n,i,r)}var or={};function ar(){return new fr(hn(),un())}function sr(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ur(s,a,n,null==i?Ht(s)&&Ki:i!=a&&0!=(3&s.type),r&Et.Host&&o===s);return null!==u?lr(t,a,u,s):or}function ur(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&qt(d)&&d.type===n)return u}return null}function lr(e,t,n,i){var r=e[n],o=t.data;if(r instanceof ji){var a=r;a.resolving&&function(e,t){throw new xi("200","Circular dependency in DI detected for "+e)}(St(o[n]));var s=Zi(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Tt(a.injectImpl):null;En(e,i,Et.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Oi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Tt(u),Zi(s),a.resolving=!1,Dn()}}return r}function cr(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var a=Xe(e,10+t);Yr(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Pr(e,t){if(!(256&t[2])){var n=t[11];Wt(n)&&n.destroyNode&&Yr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Mr(e[1],e);for(;t;){var n=null;if(jt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)jt(t)&&Mr(t[1],t),t=t[3];null===t&&(t=e),jt(t)&&Mr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[u]():i[-u].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Wt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Bt(t[3])){n!==t[3]&&Rr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Lr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===it.None||r===it.Emulated)return null}return Zt(i,n)}(e,t.parent,n)}function Fr(e,t,n,i,r){Wt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Nr(e,t,n){Wt(e)?e.appendChild(t,n):t.appendChild(n)}function Vr(e,t,n,i,r){null!==i?Fr(e,t,n,i,r):Nr(e,t,n)}function jr(e,t){return Wt(e)?e.parentNode(t):t.parentNode}function Br(e,t,n){return zr(e,t,n)}var zr=function(e,t,n){return 40&e.type?Zt(e,n):null};function Hr(e,t,n,i){var r=Lr(e,i,t),o=t[11],a=Br(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;so?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==Qr(f,l,0)||2&i&&l!==h){if(to(i))return!1;a=!0}}}}else{if(!a&&!to(i)&&!to(u))return!1;if(a&&to(u))continue;a=!1,i=u|1&i}}return to(i)||a}function to(e){return 0==(1&e)}function no(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||to(a)||(t+=oo(o,r),r=""),i=a,o=o||!to(i);n++}return""!==r&&(t+=oo(o,r)),t}var so={};function uo(e){lo(ln(),un(),Mn()+e,mn())}function lo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Mi(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Li(t,o,0,n)}Ln(n)}function co(e,t){return e<<17|t<<2}function ho(e){return e>>17&32767}function fo(e){return 2|e}function po(e){return(131068&e)>>2}function vo(e,t){return-131069&e|t<<2}function mo(e){return 1|e}function go(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&lo(e,t,20,mn()),n(i,r)}finally{Ln(o)}}function xo(e,t,n){if(zt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Zt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Lo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function No(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&Wo(n)}}function Wo(e){for(var t=Er(e);null!==t;t=Tr(t))for(var n=10;n0&&Wo(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Wo(s)}}function Yo(e,t){var n=$t(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Ot;if(t===Ot){var n=new Error("NullInjectorError: No provider for ".concat(we(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),aa=new Le("Set Injector scope."),sa={},ua={},la=[],ca=void 0;function ha(){return void 0===ca&&(ca=new oa),ca}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new da(e,n,t||ha(),i)}var da=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ze(n,function(e){return r.processProvider(e,t,n)}),Ze([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ra,ma(void 0,this));var s=this.records.get(aa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:we(t))}return g(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;this.assertNotDestroyed();var i,r=Pt(this);try{if(!(n&Et.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Le)&&Ae(e);o=a&&this.injectableDefInScope(a)?ma(pa(e),sa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Et.Self?ha():this.parent).get(e,t=n&Et.Optional&&t===Ot?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(we(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=we(t);if(Array.isArray(t))r=t.map(we).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):we(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(It,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Pt(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(we(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=We(e)))return!1;var r=Ie(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ie(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{Ze(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;Ze(r,function(e){return i.processProvider(e,n,r||la)})},c=0;c0){var n=$e(t,"?");throw new Error("Can't resolve all parameters for ".concat(we(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Re]||e[Pe]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function va(e,n,i){var r,o=void 0;if(ya(e)){var s=We(e);return Si(s)||pa(s)}if(ga(e))o=function(){return We(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,t(Nt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Lt(We(e.useExisting))};else{var u=We(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Si(u)||pa(u);o=function(){return a(u,t(Nt(e.deps)))}}return o}function ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function ga(e){return null!==e&&"object"==typeof e&&Rt in e}function ya(e){return"function"==typeof e}var _a=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=fa(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},ba=function(){var e=function(){function e(){v(this,e)}return g(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?_a(e,t,""):_a(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ot,e.NULL=new oa,e.\u0275prov=Ee({token:e,providedIn:"any",factory:function(){return Lt(ra)}}),e.__NG_ELEMENT_ID__=-1,e}();function ka(e,t){Pi(Jt(e)[1],hn())}function wa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(qt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Ca(e.inputs),o.declaredInputs=Ca(e.declaredInputs),o.outputs=Ca(e.outputs);var a=r.hostBindings;a&&Ea(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Sa(e,s),u&&xa(e,u),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),qt(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ui(r.hostAttrs,n=Ui(n,r.hostAttrs))}}(i)}function Ca(e){return e===rt?{}:e===ot?[]:e}function Sa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function xa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ea(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ta=null;function Aa(){if(!Ta){var e=He.Symbol;if(e&&e.iterator)Ta=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Et.Default,n=un();return null===n?Lt(e,t):rr(hn(),n,We(e),t)}function ja(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=un(),o=ln(),a=hn();return Ja(o,r,r[11],a,e,t,n,i),Xa}function $a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=hn(),o=un(),a=ln();return Ja(a,o,ea(wn(a.data),r,o),r,e,t,n,i),$a}function Ja(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ut(i),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Jo(t),h=!0;if(3&i.type){var f=Zt(i,t),d=s?s(f):rt,p=d.target||f,v=c.length,m=s?function(e){return s(Gt(e[i.index])).target}:i.index;if(Wt(n)){var g=null;if(!s&&u&&(g=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=ts(i,t,o,!1);var y=n.listen(d.name||p,r,o);c.push(o,y),l&&l.push(r,m,v,v+1)}}else o=ts(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),l&&l.push(r,m,v,a)}var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(an.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,an.lFrame.contextLView))[8]}(e)}function is(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=un(),r=ln(),o=_o(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),vn(),64!=(64&o.flags)&&function(e,t,n){Gr(t[11],0,t,n,Lr(e,n,t),Br(n.parent||t[6],n,t))}(r,i,o)}var as=[];function ss(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?ho(o):po(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];us(e[s],t)&&(u=!0,e[s+1]=i?mo(l):fo(l)),s=i?ho(l):po(l)}u&&(e[n+1]=i?fo(o):mo(o))}function us(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&tt(e,t)>=0}var ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cs(e){return e.substring(ls.key,ls.keyEnd)}function hs(e,t){var n=ls.textEnd;return n===t?-1:(t=ls.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,ls.key=t,n),fs(e,t,n))}function fs(e,t,n){for(;t=0;n=hs(t,n))Je(e,cs(t),!0)}function ms(e,t,n,i){var r=un(),o=ln(),a=bn(2);o.firstUpdatePass&&ys(o,e,a,i),t!==so&&Pa(r,a,t)&&ks(o,o.data[Mn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(Yn(e)))),e}(t,n),i,a)}function gs(e,t){return t>=e.expandoStartIndex}function ys(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],a=gs(e,n);Ss(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=wn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=bs(n=_s(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=_s(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==po(i))return e[ho(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[ho(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=bs(s=_s(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=ho(e[s+1]);e[i+1]=co(f,s),0!==f&&(e[f+1]=vo(e[f+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=co(s,0),0!==s&&(e[s+1]=vo(e[s+1],i)),s=i;else e[i+1]=co(u,0),0===s?s=i:e[u+1]=vo(e[u+1],i),u=i;c&&(e[i+1]=fo(e[i+1])),ss(e,l,i,!0),ss(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&tt(o,t)>=0&&(n[i+1]=mo(n[i+1]))}(t,l,e,i,o),a=co(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function _s(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===so&&(f=h?as:void 0);var d=h?et(f,i):c===i?f:void 0;if(l&&!Cs(d)&&(d=et(u,i)),Cs(d)&&(s=d,a))return s;var p=e[r+1];r=a?ho(p):po(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=et(v,i))}return s}function Cs(e){return void 0!==e}function Ss(e,t){return 0!=(e.flags&(t?16:32))}function xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=un(),i=ln(),r=e+20,o=i.firstCreatePass?_o(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Wt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Hr(i,n,a,o),dn(o,!1)}function Es(e){return Ts("",e,""),Es}function Ts(e,t,n){var i=un(),r=La(i,e,t,n);return r!==so&&function(e,t,n){var i=Kt(t,e);!function(e,t,n){Wt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,Mn(),r),Ts}function As(e,t,n){var i=un();return Pa(i,_n(),t)&&Do(ln(),Fn(),i,e,t,i[11],n,!0),As}function Os(e,t,n){var i=un();if(Pa(i,_n(),t)){var r=ln(),o=Fn();Do(r,o,i,e,t,ea(wn(r.data),o,i),n,!0)}return Os}var Is=void 0,Rs=["en",[["a","p"],["AM","PM"],Is],[["AM","PM"],Is,Is],[["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"]],Is,[["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"]],Is,[["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}",Is,"{1} 'at' {0}",Is],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ds={};function Ps(e){return e in Ds||(Ds[e]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[e]),Ds[e]}var Ms=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Ls(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Fs(e,t,n,i,r){if(e=We(e),Array.isArray(e))for(var o=0;o>20;if(ya(e)||!e.multi){var p=new ji(l,r,Va),v=js(u,t,r?h:h+d,f);-1===v?(tr(Xi(c,s),a,u),Ns(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=js(u,t,h+d,f),g=js(u,t,h,h+d),y=m>=0&&n[m],_=g>=0&&n[g];if(r&&!_||!r&&!y){tr(Xi(c,s),a,u);var b=function(e,t,n,i,r){var o=new ji(e,n,Va);return o.multi=[],o.index=t,o.componentProviders=0,Vs(o,r,i&&!n),o}(r?zs:Bs,n.length,r,i,l);!r&&_&&(n[g].providerFactory=b),Ns(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else Ns(a,e,m>-1?m:g,Vs(n[r?g:m],l,!r&&i));!r&&i&&_&&n[g].componentProviders++}}}function Ns(e,t,n,i){var r=ya(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Vs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function js(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ln();if(i.firstCreatePass){var r=qt(e);Fs(n,i.data,i.blueprint,r,!0),Fs(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var qs=function e(){v(this,e)},Ws=function(){function e(){v(this,e)}return g(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(we(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ys=function(){var e=function e(){v(this,e)};return e.NULL=new Ws,e}();function Gs(){}function Ks(e,t){return new Qs(Zt(e,t))}var Zs=function(){return Ks(hn(),un())},Qs=function(){var e=function e(t){v(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Zs,e}(),Xs=function e(){v(this,e)},$s=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return Js()},e}(),Js=function(){var e=un(),t=$t(hn().index,e);return function(e){return e[11]}(jt(t)?t:e)},eu=function(){var e=function e(){v(this,e)};return e.\u0275prov=Ee({token:e,providedIn:"root",factory:function(){return null}}),e}(),tu=function e(t){v(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},nu=new tu("11.0.2"),iu=function(){function e(){v(this,e)}return g(e,[{key:"supports",value:function(e){return Ia(e)}},{key:"create",value:function(e){return new ou(e)}}]),e}(),ru=function(e,t){return t},ou=function(){function e(t){v(this,e),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||ru}return g(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(Gt(a)),Bt(a))for(var s=10;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Pr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Io(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ko(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Zo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){gn(!0);try{Zo(e,t,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Yr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return vu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),gu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._view=e,i}return g(n,[{key:"detectChanges",value:function(){Qo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){gn(!0);try{Qo(e)}finally{gn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(mu),yu=bu,_u=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=yu,e.__ChangeDetectorRef__=!0,e}();function bu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ht(e)){var i=$t(e.index,t);return new mu(i,i)}return 47&e.type?new mu(t[16],t):null}(hn(),un(),e)}var ku=[new cu],wu=new du([new iu]),Cu=new pu(ku),Su=function(){return Tu(hn(),un())},xu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Su,e}(),Eu=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return g(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=yo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ko(t,n,e),new mu(n)}}]),n}(xu);function Tu(e,t){return 4&e.type?new Eu(t,e,Ks(e,t)):null}var Au=function e(){v(this,e)},Ou=function e(){v(this,e)},Iu=function(){return Lu(hn(),un())},Ru=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Iu,e}(),Du=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return g(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Pu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(Bt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Ks(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=er(this._hostTNode,this._hostLView);if(Wi(e)){var t=Gi(e,this._hostLView),n=Yi(e);return new fr(t[1].data[n+8],t)}return new fr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Ru);function Pu(e){return e[8]}function Mu(e){return e[8]||(e[8]=[])}function Lu(e,t){var n,i=t[e.index];if(Bt(i))n=i;else{var r;if(8&e.type)r=Gt(i);else{var o=t[11];r=o.createComment("");var a=Zt(e,t);Fr(o,jr(o,a),r,function(e,t){return Wt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Uo(i,t,r,e),Go(t,n)}return new Du(n,e,t)}var Fu={},Nu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).ngModule=e,i}return g(n,[{key:"resolveComponentFactory",value:function(e){var t=kt(e);return new Bu(t,this.ngModule)}}]),n}(Ys);function Vu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ju=new Le("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return br}}),Bu=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(ao).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return g(n,[{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Fu,r);return o!==Fu||i===Fu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Xs,Yt),u=a.get(eu,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Wt(e))return e.selectRootElement(t,n===it.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):Ir(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:br,clean:$o,playerHandler:null,flags:0},p=Oo(0,null,null,1,0,null,null,null,null,null),v=yo(null,p,d,f,null,null,s,l,u,a);Tn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=_o(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(ia(s,u,!0),null!==e&&(Bi(r,e,u),null!==s.classes&&Zr(r,e,s.classes),null!==s.styles&&Kr(r,e,s.styles)));var l=i.createRenderer(e,t),c=yo(n,Ao(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(tr(Xi(s,n),a,t.type),Fo(a,s),Vo(s,n.length,1)),Go(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Bi(l,h,["ng-version",nu.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i0&&Zr(l,h,_.join(" "))}if(o=Qt(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:ba.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;return e===ba||e===Au||e===ra?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Au),qu=function(e){u(n,e);var t=c(n);function n(e){var r,o,a;return v(this,n),(r=t.call(this)).moduleType=e,null!==wt(e)&&(o=e,a=new Set,function e(t){var n=wt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(we(t)," vs ").concat(we(t.name)))}(r,Hu.get(r),t),Hu.set(r,t));var o,s=i(wr(n.imports));try{for(s.s();!(o=s.n()).done;){var u=o.value;a.has(u)||(a.add(u),e(u))}}catch(l){s.e(l)}finally{s.f()}}(o)),r}return g(n,[{key:"create",value:function(e){return new Uu(this.moduleType,e)}}]),n}(Ou);function Wu(e,t,n){var i=yn()+e,r=un();return r[i]===so?Da(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Yu(e,t){var n=e[t];return n===so?void 0:n}function Gu(e,t,n,i,r,o){var a=t+n;return Pa(e,a,r)?Da(e,a+1,o?i.call(o,r):i(r)):Yu(e,a+1)}var Ku=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,n),(e=t.call(this)).__isAsync=i,e}return g(n,[{key:"emit",value:function(e){s(p(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(a=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var u=s(p(n.prototype),"subscribe",this).call(this,r,o,a);return e instanceof x&&e.add(u),u}}]),n}(j);function Zu(){return this._results[Aa()]()}var Qu=function(){function e(){v(this,e),this.dirty=!0,this._results=[],this.changes=new Ku,this.length=0;var t=Aa(),n=e.prototype;n[t]||(n[t]=Zu)}return g(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=Ke(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Xu=function(){function e(t){v(this,e),this.queryList=t,this.matches=null}return g(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),$u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=r},el=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return g(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(Vl))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Kl=function(){var e=function(){function e(){v(this,e),this._applications=new Map,Zl.addToWindow(this)}return g(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Zl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Zl=new(function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ql=new Le("AllowMultipleToken"),Xl=function e(t,n){v(this,e),this.name=t,this.token=n};function $l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new Le(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Jl();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:aa,useValue:"platform"});!function(e){if(Wl&&!Wl.destroyed&&!Wl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wl=e.get(ec);var t=e.get(wl,null);t&&t.forEach(function(e){return e()})}(ba.create({providers:a,name:i}))}return function(e){var t=Jl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Jl(){return Wl&&!Wl.destroyed?Wl:null}var ec=function(){var e=function(){function e(t){v(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return g(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Yl:("zone.js"===n?void 0:n)||new Vl({enableLongStackTrace:Xn(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Vl,useValue:o}];return o.run(function(){var t=ba.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(yr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return rc(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})}),function(e,t,i){try{var o=((a=n.injector.get(yl)).runInitializers(),a.donePromise.then(function(){return Ls(n.injector.get(El,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Za(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=tc({},n);return function(e,t,n){var i=new qu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(ic);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(we(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(ba))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function tc(e,t){return Array.isArray(t)?t.reduce(tc,e):Object.assign(Object.assign({},e),t)}var nc,ic=((nc=function(){function e(t,n,i,r,o,a){var s=this;v(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new P(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new P(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Vl.assertNotInAngularZone(),Nl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Vl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=se(u,l.pipe(ve()))}return g(e,[{key:"bootstrap",value:function(e,t){var n,i=this;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.");n=e instanceof qs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Au),o=n.create(ba.NULL,[],t||n.selector,r);o.onDestroy(function(){i._unloadComponent(o)});var a=o.injector.get(Gl,null);return a&&o.injector.get(Kl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Xn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=i(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,o=i(this._views);try{for(o.s();!(r=o.n()).done;)r.value.checkNoChanges()}catch(a){o.e(a)}finally{o.f()}}}catch(s){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(s)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;rc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),rc(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||nc)(Lt(Vl),Lt(xl),Lt(ba),Lt(yr),Lt(Ys),Lt(yl))},nc.\u0275prov=Ee({token:nc,factory:nc.\u0275fac}),nc);function rc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oc=function e(){v(this,e)},ac=function e(){v(this,e)},sc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},uc=function(){var t=function(){function t(e,n){v(this,t),this._compiler=e,this._config=n||sc}return g(t,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(t){var n=this,i=e(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),l("zn8P")(r).then(function(e){return e[o]}).then(function(e){return lc(e,r,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(t){var n=e(t.split("#"),2),i=n[0],r=n[1],o="NgFactory";return void 0===r&&(r="default",o=""),l("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return lc(e,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Lt(Ll),Lt(ac,8))},t.\u0275prov=Ee({token:t,factory:t.\u0275fac}),t}();function lc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var cc=$l(null,"core",[{provide:Cl,useValue:"unknown"},{provide:ec,deps:[ba]},{provide:Kl,deps:[]},{provide:xl,deps:[]}]),hc=[{provide:ic,useClass:ic,deps:[Vl,xl,ba,yr,Ys,yl]},{provide:ju,deps:[Vl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:yl,useClass:yl,deps:[[new _e,gl]]},{provide:Ll,useClass:Ll,deps:[]},bl,{provide:du,useFactory:function(){return wu},deps:[]},{provide:pu,useFactory:function(){return Cu},deps:[]},{provide:El,useFactory:function(e){return Ls(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ye(El),new _e,new ke]]},{provide:Tl,useValue:"USD"}],fc=function(){var e=function e(t){v(this,e)};return e.\u0275mod=yt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)(Lt(ic))},providers:hc}),e}(),dc=null;function pc(){return dc}var vc,mc=new Le("DocumentToken"),gc=((vc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vc)},vc.\u0275prov=Ee({factory:yc,token:vc,providedIn:"platform"}),vc);function yc(){return Lt(kc)}var _c,bc=new Le("Location Initialized"),kc=((_c=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i._init(),i}return g(n,[{key:"_init",value:function(){this.location=pc().getLocation(),this._history=pc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return pc().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){wc()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){wc()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(gc)).\u0275fac=function(e){return new(e||_c)(Lt(mc))},_c.\u0275prov=Ee({factory:Cc,token:_c,providedIn:"platform"}),_c);function wc(){return!!window.history.pushState}function Cc(){return new kc(Lt(mc))}function Sc(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function xc(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ec(e){return e&&"?"!==e[0]?"?"+e:e}var Tc,Ac=((Tc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Tc)},Tc.\u0275prov=Ee({factory:Oc,token:Tc,providedIn:"root"}),Tc);function Oc(e){var t=Lt(mc).location;return new Mc(Lt(gc),t&&t.origin||"")}var Ic,Rc,Dc,Pc=new Le("appBaseHref"),Mc=((Dc=function(e){u(n,e);var t=c(n);function n(e,i){var r;if(v(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,h(r)}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Sc(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Ec(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Dc)(Lt(gc),Lt(Pc,8))},Dc.\u0275prov=Ee({token:Dc,factory:Dc.\u0275fac}),Dc),Lc=((Rc=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Sc(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Rc)(Lt(gc),Lt(Pc,8))},Rc.\u0275prov=Ee({token:Rc,factory:Rc.\u0275fac}),Rc),Fc=((Ic=function(){function e(t,n){var i=this;v(this,e),this._subject=new Ku,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=xc(Vc(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return g(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Ec(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Vc(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ic)(Lt(Ac),Lt(gc))},Ic.normalizeQueryParams=Ec,Ic.joinWithSlash=Sc,Ic.stripTrailingSlash=xc,Ic.\u0275prov=Ee({factory:Nc,token:Ic,providedIn:"root"}),Ic);function Nc(){return new Fc(Lt(Ac),Lt(gc))}function Vc(e){return e.replace(/\/index.html$/,"")}var jc,Bc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),zc=function e(){v(this,e)},Hc=((jc=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).locale=e,i}return g(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ps(t);if(n)return n;var i=t.split("-")[0];if(n=Ps(i))return n;if("en"===i)return Rs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ms.PluralCase]}(t||this.locale)(e)){case Bc.Zero:return"zero";case Bc.One:return"one";case Bc.Two:return"two";case Bc.Few:return"few";case Bc.Many:return"many";default:return"other"}}}]),n}(zc)).\u0275fac=function(e){return new(e||jc)(Lt(El))},jc.\u0275prov=Ee({token:jc,factory:jc.\u0275fac}),jc);function Uc(t,n){n=encodeURIComponent(n);var r,o=i(t.split(";"));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.indexOf("="),u=e(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),l=u[0],c=u[1];if(l.trim()===n)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var qc,Wc,Yc,Gc=((qc=function(){function e(t,n,i,r){v(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+we(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ia(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||qc)(Va(du),Va(pu),Va(Qs),Va($s))},qc.\u0275dir=bt({type:qc,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),qc),Kc=function(){function e(t,n,i,r){v(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return g(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Zc=((Wc=function(){function e(t,n,i){v(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Kc(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Qc(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Qc(e,s);n.push(u)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Et.Default,t=bu(!0);if(null!=t||e&Et.Optional)return t;Ei("ChangeDetectorRef")}())},oh.\u0275pipe={type:(rh={name:"async",type:oh,pure:!1}).type,name:rh.name,factory:null,pure:!1!==rh.pure,onDestroy:rh.type.prototype.ngOnDestroy||null},oh),ph=((ih=function e(){v(this,e)}).\u0275mod=yt({type:ih}),ih.\u0275inj=Te({factory:function(e){return new(e||ih)},providers:[{provide:zc,useClass:Hc}]}),ih);function vh(e){return"browser"===e}var mh,gh=((mh=function e(){v(this,e)}).\u0275prov=Ee({token:mh,providedIn:"root",factory:function(){return new yh(Lt(mc),window,Lt(yr))}}),mh),yh=function(){function e(t,n,i){v(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return g(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=_h(this.window.history)||_h(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function _h(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var bh,kh,wh,Ch,Sh=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=xh||(xh=document.querySelector("base"))?xh.getAttribute("href"):null;return null==n?null:(t=n,bh||(bh=document.createElement("a")),bh.setAttribute("href",t),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname)}},{key:"resetBaseElement",value:function(){xh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Uc(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,dc||(dc=e)}}]),n}(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.call(this)}return g(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){v(this,e)}}())),xh=null,Eh=new Le("TRANSITION_ID"),Th=[{provide:gl,useFactory:function(e,t,n){return function(){n.get(yl).donePromise.then(function(){var n=pc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Eh,mc,ba],multi:!0}],Ah=function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){He.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},He.getAllAngularTestabilities=function(){return e.getAllTestabilities()},He.getAllAngularRootElements=function(){return e.getAllRootElements()},He.frameworkStabilizers||(He.frameworkStabilizers=[]),He.frameworkStabilizers.push(function(e){var t=He.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?pc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Zl=t}}]),e}(),Oh=new Le("EventManagerPlugins"),Ih=((kh=function(){function e(t,n){var i=this;v(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return g(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Xh.hasOwnProperty(t)&&(t=Xh[t]))}return Qh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Zh.forEach(function(i){i!=n&&(0,$h[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Rh)).\u0275fac=function(e){return new(e||Hh)(Lt(mc))},Hh.\u0275prov=Ee({token:Hh,factory:Hh.\u0275fac}),Hh),ef=((zh=function e(){v(this,e)}).\u0275fac=function(e){return new(e||zh)},zh.\u0275prov=Ee({factory:function(){return Lt(tf)},token:zh,providedIn:"root"}),zh),tf=((Bh=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i}return g(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case bi.NONE:return t;case bi.HTML:return Gn(t,"HTML")?Yn(t):function(e,t){var n=null;try{oi=oi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString(jn(""),"text/html")}catch(e){return!1}}()?new $n:new Jn(e)}(e);var i=t?String(t):"";n=oi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=oi.getInertBodyElement(i)}while(i!==o);var a=new vi,s=a.sanitizeChildren(_i(n)||n);return Xn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=_i(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t));case bi.STYLE:return Gn(t,"Style")?Yn(t):t;case bi.SCRIPT:if(Gn(t,"Script"))return Yn(t);throw new Error("unsafe value used in a script context");case bi.URL:return Kn(t),Gn(t,"URL")?Yn(t):ni(String(t));case bi.RESOURCE_URL:if(Gn(t,"ResourceURL"))return Yn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new zn(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Hn(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Un(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qn(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Wn(e)}}]),n}(ef)).\u0275fac=function(e){return new(e||Bh)(Lt(mc))},Bh.\u0275prov=Ee({factory:function(){return e=Lt(ra),new tf(e.get(mc));var e},token:Bh,providedIn:"root"}),Bh),nf=$l(cc,"browser",[{provide:Cl,useValue:"browser"},{provide:wl,useValue:function(){Sh.makeCurrent(),Ah.init()},multi:!0},{provide:mc,useFactory:function(){return function(e){Vt=e}(document),document},deps:[]}]),rf=[[],{provide:aa,useValue:"root"},{provide:yr,useFactory:function(){return new yr},deps:[]},{provide:Oh,useClass:Kh,multi:!0,deps:[mc,Vl,Cl]},{provide:Oh,useClass:Jh,multi:!0,deps:[mc]},[],{provide:qh,useClass:qh,deps:[Ih,Ph,_l]},{provide:Xs,useExisting:qh},{provide:Dh,useExisting:Ph},{provide:Ph,useClass:Ph,deps:[mc]},{provide:Gl,useClass:Gl,deps:[Vl]},{provide:Ih,useClass:Ih,deps:[Oh,Vl]},[]],of=((Uh=function(){function e(t){if(v(this,e),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.")}return g(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_l,useValue:t.appId},{provide:Eh,useExisting:_l},Th]}}}]),e}()).\u0275mod=yt({type:Uh}),Uh.\u0275inj=Te({factory:function(e){return new(e||Uh)(Lt(Uh,12))},providers:rf,imports:[ph,fc]}),Uh);function af(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Tf;return function(t){return t.lift(new xf(e))}}var xf=function(){function e(t){v(this,e),this.errorFactory=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ef(e,this.errorFactory))}}]),e}(),Ef=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return g(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(A);function Tf(){return new ff}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Of(e))}}var Of=function(){function e(t){v(this,e),this.defaultValue=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new If(e,this.defaultValue))}}]),e}(),If=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return g(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(A);function Rf(e,t){return"function"==typeof t?function(n){return n.pipe(Rf(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Df(e))}}var Df=function(){function e(t){v(this,e),this.project=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Pf(e,this.project))}}]),e}(),Pf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return g(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new H(this,t,n),o=this.destination;o.add(r),this.innerSubscription=K(this,e,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||s(p(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&s(p(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}}]),n}(Z);function Mf(e){return function(t){return 0===e?pf():t.lift(new Lf(e))}}var Lf=function(){function e(t){if(v(this,e),this.total=t,this.total<0)throw new bf}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ff(e,this.total))}}]),e}(),Ff=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(A);function Nf(){return mf()(af.apply(void 0,arguments))}function Vf(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Bf(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Bf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return g(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(A);function zf(e){return function(t){var n=new Hf(e),i=t.lift(n);return n.caught=i}}var Hf=function(){function e(t){v(this,e),this.selector=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Uf(e,this.selector,this.caught))}}]),e}(),Uf=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return g(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void s(p(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new H(this,void 0,void 0);this.add(i);var r=K(this,t,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}(Z);function qf(e,t){return te(e,t,1)}function Wf(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,Mf(1),n?Af(t):Sf(function(){return new ff}))}}function Yf(e,t,n){return function(i){return i.lift(new Gf(e,t,n))}}var Gf=function(){function e(t,n,i){v(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Kf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Kf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e))._tapNext=R,a._tapError=R,a._tapComplete=R,a._tapError=r||R,a._tapComplete=o||R,d(i)?(a._context=f(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||R,a._tapError=i.error||R,a._tapComplete=i.complete||R),a}return g(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(A);function Zf(e){return function(t){return t.lift(new Qf(e))}}var Qf=function(){function e(t){v(this,e),this.callback=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Xf(e,this.callback))}}]),e}(),Xf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).add(new x(i)),r}return n}(A),$f=function e(t,n){v(this,e),this.id=t,this.url=n},Jf=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return g(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),ed=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return g(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}($f),td=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).reason=r,o}return g(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),nd=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).error=r,o}return g(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}($f),id=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),rd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),od=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return g(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}($f),ad=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),sd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),ud=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ld=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),cd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pd=function(){function e(t,n,i){v(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return g(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),vd=function(){function e(t){v(this,e),this.params=t||{}}return g(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function md(e){return new vd(e)}function gd(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yd(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Cd(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sd(e){return Qa(e)?e:Za(e)?ee(Promise.resolve(e)):af(e)}function xd(e,t,n){return n?function(e,t){return _d(e,t)}(e.queryParams,t.queryParams)&&Ed(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return bd(e[n],t[n])})}(e.queryParams,t.queryParams)&&Td(e.root,t.root)}function Ed(e,t){if(!Dd(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Ed(e.children[n],t.children[n]))return!1}return!0}function Td(e,t){return Ad(e,t,t.segments)}function Ad(e,t,n){if(e.segments.length>n.length)return!!Dd(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Dd(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Td(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!Dd(e.segments,r)&&!!e.children.primary&&Ad(e.children.primary,t,o)}var Od=function(){function e(t,n,i){v(this,e),this.root=t,this.queryParams=n,this.fragment=i}return g(e,[{key:"toString",value:function(){return Fd.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),Id=function(){function e(t,n){var i=this;v(this,e),this.segments=t,this.children=n,this.parent=null,Cd(n,function(e,t){return e.parent=i})}return g(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Nd(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Rd=function(){function e(t,n){v(this,e),this.path=t,this.parameters=n}return g(e,[{key:"toString",value:function(){return qd(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}}]),e}();function Dd(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Pd(e,t){var n=[];return Cd(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Cd(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}var Md=function e(){v(this,e)},Ld=function(){function e(){v(this,e)}return g(e,[{key:"parse",value:function(e){var t=new Zd(e);return new Od(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Vd(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Bd(e),"=").concat(Bd(t))}).join("&"):"".concat(Bd(e),"=").concat(Bd(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Fd=new Ld;function Nd(e){return e.segments.map(function(e){return qd(e)}).join("/")}function Vd(e,t){if(!e.hasChildren())return Nd(e);if(t){var n=e.children.primary?Vd(e.children.primary,!1):"",i=[];return Cd(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Vd(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=Pd(e,function(t,n){return"primary"===n?[Vd(e.children.primary,!1)]:["".concat(n,":").concat(Vd(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Nd(e),"/").concat(r[0]):"".concat(Nd(e),"/(").concat(r.join("//"),")")}function jd(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bd(e){return jd(e).replace(/%3B/gi,";")}function zd(e){return jd(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hd(e){return decodeURIComponent(e)}function Ud(e){return Hd(e.replace(/\+/g,"%20"))}function qd(e){return"".concat(zd(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(zd(e),"=").concat(zd(t[e]))}).join("")));var t}var Wd=/^[^\/()?;=#]+/;function Yd(e){var t=e.match(Wd);return t?t[0]:""}var Gd=/^[^=?&#]+/,Kd=/^[^?&#]+/,Zd=function(){function e(t){v(this,e),this.url=t,this.remaining=t}return g(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Id([],{}):new Id([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Id(e,t)),n}},{key:"parseSegment",value:function(){var e=Yd(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Rd(Hd(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Yd(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Yd(this.remaining);i&&(n=i,this.capture(n))}e[Hd(t)]=Hd(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Gd);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Kd);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Ud(t),o=Ud(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Yd(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Id([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Qd=function(){function e(t){v(this,e),this._root=t}return g(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xd(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xd(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$d(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $d(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function Xd(e,t){if(e===t.value)return t;var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=Xd(e,n.value);if(o)return o}}catch(a){r.e(a)}finally{r.f()}return null}function $d(e,t){if(e===t.value)return[t];var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=$d(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){r.e(a)}finally{r.f()}return[]}var Jd=function(){function e(t,n){v(this,e),this.value=t,this.children=n}return g(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ep(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var tp=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).snapshot=i,sp(f(r),e),r}return g(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Qd);function np(e,t){var n=function(e,t){var n=new op([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ap("",new Jd(n,[]))}(e,t),i=new sf([new Rd("",{})]),r=new sf({}),o=new sf({}),a=new sf({}),s=new sf(""),u=new ip(i,r,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new tp(new Jd(u,[]),n)}var ip=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return g(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q(function(e){return md(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(function(e){return md(e)}))),this._queryParamMap}}]),e}();function rp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var op=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return g(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=md(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),ap=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,i)).url=e,sp(f(r),i),r}return g(n,[{key:"toString",value:function(){return up(this._root)}}]),n}(Qd);function sp(e,t){t.value._routerState=e,t.children.forEach(function(t){return sp(e,t)})}function up(e){var t=e.children.length>0?" { ".concat(e.children.map(up).join(", ")," } "):"";return"".concat(e.value).concat(t)}function lp(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,_d(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),_d(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&dp(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(pp);if(r&&r!==wd(i))throw new Error("{outlets:{}} has to be the last command")}return g(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yp=function e(t,n,i){v(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function _p(e,t,n){if(e||(e=new Id([],{})),0===e.segments.length&&e.hasChildren())return bp(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(pp(s))break;var u=""+s,l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sp(u,l,a))return o;i+=2}else{if(!Sp(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex=2&&(n=!0),function(i){return i.lift(new jf(e,t,n))}}(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==Ip)return e;if(i===Ip&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||Op(i))return i}return e},e)},Ip),gf(function(e){return e!==Ip}),Q(function(e){return Op(e)?e:!0===e}),Mf(1))})}var Dp,Pp=((Dp=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Dp)},Dp.\u0275cmp=pt({type:Dp,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&qa(0,"router-outlet")},directives:function(){return[Pv]},encapsulation:2}),Dp);function Mp(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new Id([],{primary:e}):e;return new Od(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Q(function(e){return new Id([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return af({});var o=[],a=[],s={};return Cd(n,function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(e,t,l,u)).pipe(Q(function(e){return s[r]=e}));"primary"===r?o.push(c):a.push(c)}),af.apply(null,o.concat(a)).pipe(mf(),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,kf(1),n?Af(t):Sf(function(){return new ff}))}}(),Q(function(){return s}))}(n.children)}},{key:"expandSegment",value:function(t,n,i,r,o,a){var s=this,u=function(e){return e.reduce(function(e,t){var n=Vp(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(i);u.has(o)||u.set(o,[]);return ee(Array.from(u.entries()).map(function(i){var u=e(i,2),l=u[0],c=function(e){return ee(e).pipe(qf(function(i){return s.expandSegmentAgainstRoute(t,n,e,i,r,o,a).pipe(zf(function(e){if(e instanceof jp)return af(null);throw e}))}),Wf(function(e){return null!==e}),zf(function(e){if(e instanceof ff||"EmptyError"===e.name){if(s.noLeftoversInUrl(n,r,o))return af(new Id([],{}));throw new jp(n)}throw e}))}(u[1]);return l===o?c:c.pipe(Q(function(){return null}),zf(function(){return af(null)}))})).pipe(function(e){return e.lift(new cf(void 0))},Wf(),Q(function(e){return e.find(function(e){return null!==e})}))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Vp(i)!==o&&""!==i.path?zp(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):zp(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Hp(o):this.lineralizeSegments(n,o).pipe(te(function(n){var o=new Id(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Wp(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return zp(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Hp(f):this.lineralizeSegments(i,f).pipe(te(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Q(function(e){return n._loadedConfig=e,new Id(r,{})})):af(new Id(r,{}));var a=Wp(t,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return zp(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(te(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)&&"primary"!==Vp(n)})}(e,n,r)?{segmentGroup:Yp(new Id(t,function(e,t){var n={};n.primary=t;var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;""===a.path&&"primary"!==Vp(a)&&(n[Vp(a)]=new Id([],{}))}}catch(s){o.e(s)}finally{o.f()}return n}(r,new Id(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)})}(e,n,r)?{segmentGroup:Yp(new Id(e.segments,function(e,t,n,r){var o,a={},s=i(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;Gp(e,t,u)&&!r[Vp(u)]&&(a[Vp(u)]=new Id([],{}))}}catch(l){s.e(l)}finally{s.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,c,r),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(Q(function(e){return new Id(u,e)})):0===r.length&&0===l.length?af(new Id(u,{})):o.expandSegment(n,s,r,l,"primary",!0).pipe(Q(function(e){return new Id(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?af(new Tp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?af(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(te(function(n){return n?i.configLoader.load(e.injector,t).pipe(Q(function(e){return t._loadedConfig=e,e})):function(e){return new P(function(t){return t.error(gd("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):af(new Tp([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?af(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&Ap(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!Ap(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Sd(r)})).pipe(Rp(),Yf(function(e){if(Op(e)){var t=gd('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Q(function(e){return!0===e})):af(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return af(n);if(i.numberOfChildren>1||!i.children.primary)return Up(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Od(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Cd(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Cd(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Id(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=i(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(s){o.e(s)}finally{o.f()}return e}}]),t}();function Wp(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||yd)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Yp(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Id(e.segments.concat(t.segments),t.children)}return e}function Gp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Kp=function e(t){v(this,e),this.path=t,this.route=this.path[this.path.length-1]},Zp=function e(t,n){v(this,e),this.component=t,this.route=n};function Qp(e,t,n){var i=e._root;return $p(i,t?t._root:null,n,[i.value])}function Xp(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function $p(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=ep(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Dd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dd(e.url,t.url)||!_d(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cp(e,t)||!_d(e.queryParams,t.queryParams);case"paramsChange":default:return!cp(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Kp(i)):(o.data=a.data,o._resolvedData=a._resolvedData),$p(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Zp(s.outlet.component,a))}else a&&Jp(t,s,r),r.canActivateChecks.push(new Kp(i)),$p(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Cd(o,function(e,t){return Jp(e,n.getContext(t),r)}),r}function Jp(e,t,n){var i=ep(e),r=e.value;Cd(i,function(e,i){Jp(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Zp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ev(e,t){return null!==e&&t&&t(new fd(e)),af(!0)}function tv(e,t){return null!==e&&t&&t(new cd(e)),af(!0)}function nv(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?af(i.map(function(i){return vf(function(){var r,o=Xp(i,t,n);if(function(e){return e&&Ap(e.canActivate)}(o))r=Sd(o.canActivate(t,e));else{if(!Ap(o))throw new Error("Invalid CanActivate guard");r=Sd(o(t,e))}return r.pipe(Wf())})})).pipe(Rp()):af(!0)}function iv(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return vf(function(){return af(t.guards.map(function(r){var o,a=Xp(r,t.node,n);if(function(e){return e&&Ap(e.canActivateChild)}(a))o=Sd(a.canActivateChild(i,e));else{if(!Ap(a))throw new Error("Invalid CanActivateChild guard");o=Sd(a(i,e))}return o.pipe(Wf())})).pipe(Rp())})});return af(r).pipe(Rp())}var rv=function e(){v(this,e)},ov=function(){function e(t,n,i,r,o,a){v(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return g(e,[{key:"recognize",value:function(){try{var e=uv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new op([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Jd(n,t),r=new ap(this.url,i);return this.inheritParamsAndData(r._root),af(r)}catch(o){return new P(function(e){return e.error(o)})}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=rp(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,i=this,r=Pd(t,function(t,n){return i.processSegmentGroup(e,t,n)});return n={},r.forEach(function(e){var t=n[e.value.outlet];if(t){var i=t.url.map(function(e){return e.toString()}).join("/"),r=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[e.value.outlet]=e.value}),r.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),r}},{key:"processSegment",value:function(e,t,n,r){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(u){if(!(u instanceof rv))throw u}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new rv}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new rv;if((e.outlet||"primary")!==i)throw new rv;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?wd(n).parameters:{};r=new op(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+n.length,fv(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new rv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||yd)(n,e,t);if(!i)throw new rv;var r={};Cd(i.posParams,function(e,t){r[t]=e.path});var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),r=new op(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+o.length,fv(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=uv(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Jd(r,d)]}if(0===l.length&&0===f.length)return[new Jd(r,[])];var p=this.processSegment(l,h,f,"primary");return[new Jd(r,p)]}}]),e}();function av(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function sv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function uv(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return lv(e,t,n)&&"primary"!==cv(n)})}(e,n,r)){var a=new Id(t,function(e,t,n,r){var o={};o.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==cv(u)){var l=new Id([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[cv(u)]=l}}}catch(c){s.e(c)}finally{s.f()}return o}(e,t,r,new Id(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return lv(e,t,n)})}(e,n,r)){var s=new Id(e.segments,function(e,t,n,r,o,a){var s,u={},l=i(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(lv(e,n,c)&&!o[cv(c)]){var h=new Id([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===a?e.segments.length:t.length,u[cv(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),u)}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var u=new Id(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function lv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function cv(e){return e.outlet||"primary"}function hv(e){return e.data||{}}function fv(e){return e.resolve||{}}function dv(e){return function(t){return t.pipe(Rf(function(t){var n=e(t);return n?ee(n).pipe(Q(function(){return t})):ee([t])}))}}var pv=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(function(){function e(){v(this,e)}return g(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vv=new Le("ROUTES"),mv=function(){function e(t,n,i,r){v(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return g(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Q(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Tp(kd(r.injector.get(vv)).map(Np),r)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ee(this.loader.load(e)):Sd(e()).pipe(te(function(e){return e instanceof Ou?af(e):ee(t.compiler.compileModuleAsync(e))}))}}]),e}(),gv=function e(){v(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new yv,this.attachRef=null},yv=function(){function e(){v(this,e),this.contexts=new Map}return g(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new gv,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),_v=function(){function e(){v(this,e)}return g(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bv(e){throw e}function kv(e,t,n){return t.parse("/")}function wv(e,t){return af(null)}var Cv,Sv,xv,Ev=((xv=function(){function e(t,n,i,r,o,a,s,u){var l=this;v(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=bv,this.malformedUriErrorHandler=kv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wv,afterPreactivation:wv},this.urlHandlingStrategy=new _v,this.routeReuseStrategy=new pv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Au),this.console=o.get(xl);var c=o.get(Vl);this.isNgZoneEnabled=c instanceof Vl,this.resetConfig(u),this.currentUrlTree=new Od(new Id([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mv(a,s,function(e){return l.triggerEvent(new ud(e))},function(e){return l.triggerEvent(new ld(e))}),this.routerState=np(this.currentUrlTree,this.rootComponentType),this.transitions=new sf({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return g(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(gf(function(e){return 0!==e.id}),Q(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Rf(function(e){var i,r,o,a=!1,s=!1;return af(e).pipe(Yf(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Rf(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return af(e).pipe(Rf(function(e){var i=t.transitions.getValue();return n.next(new Jf(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?df:[e]}),Rf(function(e){return Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Rf(function(e){return function(e,t,n,i,r){return new qp(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Q(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),Yf(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return function(i){return i.pipe(te(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ov(e,t,n,i,r,o).recognize()}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Q(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Yf(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),Yf(function(e){var i=new id(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Jf(u,t.serializeUrl(l),c,h);n.next(d);var p=np(l,t.rootComponentType).snapshot;return af(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),df}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Yf(function(e){var n=new rd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Q(function(e){return Object.assign(Object.assign({},e),{guards:Qp(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(te(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?af(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ee(e).pipe(te(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?af(o.map(function(o){var a,s=Xp(o,t,r);if(function(e){return e&&Ap(e.canDeactivate)}(s))a=Sd(s.canDeactivate(e,t,n,i));else{if(!Ap(s))throw new Error("Invalid CanDeactivate guard");a=Sd(s(e,t,n,i))}return a.pipe(Wf())})).pipe(Rp()):af(!0)}(e.component,e.route,n,t,i)}),Wf(function(e){return!0!==e},!0))}(s,i,r,e).pipe(te(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ee(t).pipe(qf(function(t){return ee([tv(t.route.parent,i),ev(t.route,i),iv(e,t.path,n),nv(e,t.route,n)]).pipe(mf(),Wf(function(e){return!0!==e},!0))}),Wf(function(e){return!0!==e},!0))}(i,a,e,t):af(n)}),Q(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Yf(function(e){if(Op(e.guardsResult)){var n=gd('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),Yf(function(e){var n=new od(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),gf(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),dv(function(e){if(e.guards.canActivateChecks.length)return af(e).pipe(Yf(function(e){var n=new ad(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Rf(function(e){var i,r,o=!1;return af(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(te(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return af(e);var o=0;return ee(n).pipe(qf(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return af({});var o={};return ee(r).pipe(te(function(r){return function(e,t,n,i){var r=Xp(e,t,i);return Sd(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Yf(function(e){o[r]=e}))}),kf(1),te(function(){return Object.keys(o).length===r.length?af(o):df}))}(e._resolve,e,t,i).pipe(Q(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),rp(e,n).resolve),null}))}(e.route,t,i,r)}),Yf(function(){return o++}),kf(1),te(function(t){return o===n.length?af(e):df}))}))}),Yf({next:function(){return o=!0},complete:function(){if(!o){var i=new td(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Yf(function(e){var n=new sd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Q(function(e){var n=function(e,t,n){var i=hp(e,t._root,n?n._root:void 0);return new tp(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Yf(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Q(function(e){return new xp(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Yf({next:function(){a=!0},complete:function(){a=!0}}),Zf(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),zf(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=Op(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new td(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new nd(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(l){e.reject(l)}}var u;return df}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Mp(e),this.config=e.map(Np),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.relativeTo,r=n.queryParams,o=n.fragment,a=n.queryParamsHandling,s=n.preserveFragment,u=i||this.routerState.root,l=s?this.currentUrlTree.fragment:o,c=null;switch(a){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(e,n,i,r,o){if(0===i.length)return vp(n.root,n.root,n,r,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gp(!0,0,e);var n=0,i=!1,r=e.reduce(function(e,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Cd(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(t(e),[{outlets:a}])}if(r.segmentPath)return[].concat(t(e),[r.segmentPath])}return"string"!=typeof r?[].concat(t(e),[r]):0===o?(r.split("/").forEach(function(t,r){0==r&&"."===t||(0==r&&""===t?i=!0:".."===t?n++:""!=t&&e.push(t))}),e):[].concat(t(e),[r])},[]);return new gp(i,n,r)}(i);if(a.toRoot())return vp(n.root,new Id([],{}),n,r,o);var s=function(e,t,n){if(e.isAbsolute)return new yp(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yp(i,i===t.root,0)}var r=dp(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yp(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,n,e),u=s.processChildren?bp(s.segmentGroup,s.index,a.commands):_p(s.segmentGroup,s.index,a.commands);return vp(s.segmentGroup,u,n,r,o)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Op(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};v(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return g(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Jf?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ed&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof pd&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new pd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Rv)(Lt(Ev),Lt(gh),Lt(void 0))},Rv.\u0275prov=Ee({token:Rv,factory:Rv.\u0275fac}),Rv),jv=new Le("ROUTER_CONFIGURATION"),Bv=new Le("ROUTER_FORROOT_GUARD"),zv=[Fc,{provide:Md,useClass:Ld},{provide:Ev,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Ev(null,e,t,n,i,r,o,kd(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var h=pc();c.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return c},deps:[Md,yv,Fc,ba,oc,Ll,vv,jv,[function(){return function e(){v(this,e)}}(),new _e],[function(){return function e(){v(this,e)}}(),new _e]]},yv,{provide:ip,useFactory:function(e){return e.routerState.root},deps:[Ev]},{provide:oc,useClass:uc},Nv,Fv,function(){function e(){v(this,e)}return g(e,[{key:"preload",value:function(e,t){return t().pipe(zf(function(){return af(null)}))}}]),e}(),{provide:jv,useValue:{enableTracing:!1}}];function Hv(){return new Xl("Router",Ev)}var Uv,qv=((Uv=function(){function e(t,n){v(this,e)}return g(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[zv,Kv(t),{provide:Bv,useFactory:Gv,deps:[[Ev,new _e,new ke]]},{provide:jv,useValue:n||{}},{provide:Ac,useFactory:Yv,deps:[gc,[new ye(Pc),new _e],jv]},{provide:Vv,useFactory:Wv,deps:[Ev,gh,jv]},{provide:Lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fv},{provide:Xl,multi:!0,useFactory:Hv},[Qv,{provide:gl,multi:!0,useFactory:Xv,deps:[Qv]},{provide:Jv,useFactory:$v,deps:[Qv]},{provide:Sl,multi:!0,useExisting:Jv}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Kv(t)]}}}]),e}()).\u0275mod=yt({type:Uv}),Uv.\u0275inj=Te({factory:function(e){return new(e||Uv)(Lt(Bv,8),Lt(Ev,8))}}),Uv);function Wv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Vv(e,t,n)}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Lc(e,t):new Mc(e,t)}function Gv(e){return"guarded"}function Kv(e){return[{provide:Fe,multi:!0,useValue:e},{provide:vv,multi:!0,useValue:e}]}var Zv,Qv=((Zv=function(){function e(t){v(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return g(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(bc,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(Ev),r=e.injector.get(jv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?af(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(jv),n=this.injector.get(Nv),i=this.injector.get(Vv),r=this.injector.get(Ev),o=this.injector.get(ic);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||Zv)(Lt(ba))},Zv.\u0275prov=Ee({token:Zv,factory:Zv.\u0275fac}),Zv);function Xv(e){return e.appInitializer.bind(e)}function $v(e){return e.bootstrapListener.bind(e)}var Jv=new Le("Router Initializer"),em=function e(){v(this,e)},tm=function e(){v(this,e)},nm=function(){function e(t){var n=this;v(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return g(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var n=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,n);var r=("a"===e.op?this.headers.get(n):void 0)||[];r.push.apply(r,t(i)),this.headers.set(n,r);break;case"d":var o=e.value;if(o){var a=this.headers.get(n);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),im=function(){function e(){v(this,e)}return g(e,[{key:"encodeKey",value:function(e){return rm(e)}},{key:"encodeValue",value:function(e){return rm(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function rm(e){return encodeURIComponent(e).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,"/")}var om=function(){function t(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new im,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){var i=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),o=e(-1==r?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,r)),n.decodeValue(t.slice(r+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var t=i.fromObject[e];n.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return g(t,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function am(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function sm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function um(e){return"undefined"!=typeof FormData&&e instanceof FormData}var lm=function(){function e(t,n,i,r){var o;if(v(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new nm),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,i,o,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),cm=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),hm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,e),this.headers=t.headers||new nm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},fm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.ResponseHeader,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),dm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.Response,e.body=void 0!==i.body?i.body:null,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),pm=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(hm);function vm(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var mm,gm,ym,_m,bm,km,wm,Cm,Sm,xm,Em,Tm,Am,Om,Im,Rm=((mm=function(){function e(t){v(this,e),this.handler=t}return g(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof lm)n=e;else{var o=void 0;o=r.headers instanceof nm?r.headers:new nm(r.headers);var a=void 0;r.params&&(a=r.params instanceof om?r.params:new om({fromObject:r.params})),n=new lm(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=af(n).pipe(qf(function(e){return i.handler.handle(e)}));if(e instanceof lm||"events"===r.observe)return s;var u=s.pipe(gf(function(e){return e instanceof dm}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Q(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(Q(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new om).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,vm(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,vm(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,vm(n,t))}}]),e}()).\u0275fac=function(e){return new(e||mm)(Lt(em))},mm.\u0275prov=Ee({token:mm,factory:mm.\u0275fac}),mm),Dm=function(){function e(t,n){v(this,e),this.next=t,this.interceptor=n}return g(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Pm=new Le("HTTP_INTERCEPTORS"),Mm=((gm=function(){function e(){v(this,e)}return g(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||gm)},gm.\u0275prov=Ee({token:gm,factory:gm.\u0275fac}),gm),Lm=/^\)\]\}',?\n/,Fm=function e(){v(this,e)},Nm=((_m=function(){function e(){v(this,e)}return g(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||_m)},_m.\u0275prov=Ee({token:_m,factory:_m.\u0275fac}),_m),Vm=((ym=function(){function e(t){v(this,e),this.xhrFactory=t}return g(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new nm(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new fm({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(Lm,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new dm({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new pm({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new pm({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(u()),h=!0);var r={type:cm.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:cm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),e.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:cm.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||ym)(Lt(Fm))},ym.\u0275prov=Ee({token:ym,factory:ym.\u0275fac}),ym),jm=new Le("XSRF_COOKIE_NAME"),Bm=new Le("XSRF_HEADER_NAME"),zm=function e(){v(this,e)},Hm=((Im=function(){function e(t,n,i){v(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return g(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uc(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Im)(Lt(mc),Lt(Cl),Lt(jm))},Im.\u0275prov=Ee({token:Im,factory:Im.\u0275fac}),Im),Um=((Om=function(){function e(t,n){v(this,e),this.tokenService=t,this.headerName=n}return g(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Om)(Lt(zm),Lt(Bm))},Om.\u0275prov=Ee({token:Om,factory:Om.\u0275fac}),Om),qm=((Am=function(){function e(t,n){v(this,e),this.backend=t,this.injector=n,this.chain=null}return g(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Pm,[]);this.chain=t.reduceRight(function(e,t){return new Dm(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Am)(Lt(tm),Lt(ba))},Am.\u0275prov=Ee({token:Am,factory:Am.\u0275fac}),Am),Wm=((Tm=function(){function e(){v(this,e)}return g(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Um,useClass:Mm}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:jm,useValue:t.cookieName}:[],t.headerName?{provide:Bm,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=yt({type:Tm}),Tm.\u0275inj=Te({factory:function(e){return new(e||Tm)},providers:[Um,{provide:Pm,useExisting:Um,multi:!0},{provide:zm,useClass:Hm},{provide:jm,useValue:"XSRF-TOKEN"},{provide:Bm,useValue:"X-XSRF-TOKEN"}]}),Tm),Ym=((Em=function e(){v(this,e)}).\u0275mod=yt({type:Em}),Em.\u0275inj=Te({factory:function(e){return new(e||Em)},providers:[Rm,{provide:em,useClass:qm},Vm,{provide:tm,useExisting:Vm},Nm,{provide:Fm,useExisting:Nm}],imports:[[Wm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Em),Gm=((xm=function(){function e(t){v(this,e),this.http=t}return g(e,[{key:"load",value:function(){var e=this;return this._configData=null,this.http.get("/adme/client/assets/data/config.json").toPromise().then(function(t){null==t.apiBaseUrl&&(t.apiBaseUrl="/adme/"),e._configData=t}).catch(function(e){return Promise.resolve()})}},{key:"configData",get:function(){return this._configData},set:function(e){this._configData=e}}]),e}()).\u0275fac=function(e){return new(e||xm)(Lt(Rm))},xm.\u0275prov=Ee({token:xm,factory:xm.\u0275fac,providedIn:"root"}),xm),Km=((Sm=function(){function e(t,n){v(this,e),this.configService=t,this.platformId=n,this.isActive=!1,vh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}return g(e,[{key:"init",value:function(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}},{key:"onGlobalError",value:function(e){this.sendException("message: ".concat(e.message," | filenname: ").concat(e.filename," | lineno: ").concat(e.lineno," | colno: ").concat(e.colno))}},{key:"sendPageView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href;if(this.isActive){var n={page_title:e,page_path:t};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}},{key:"sendEvent",value:function(e,t,n,i){this.isActive&&this.gtag("event",e,{event_category:t,event_label:n,value:i})}},{key:"sendException",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isActive&&this.gtag("event","exception",{description:e,fatal:t})}}]),e}()).\u0275fac=function(e){return new(e||Sm)(Lt(Gm),Lt(Cl))},Sm.\u0275prov=Ee({token:Sm,factory:Sm.\u0275fac,providedIn:"root"}),Sm),Zm=((Cm=function(){function e(t){v(this,e),this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}return g(e,[{key:"onClick",value:function(e){this.evLabel=e.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}]),e}()).\u0275fac=function(e){return new(e||Cm)(Va(Km))},Cm.\u0275dir=bt({type:Cm,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(e,t){1&e&&Xa("click",function(e){return t.onClick(e.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),Cm),Qm=((wm=function(){function e(){v(this,e)}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wm)},wm.\u0275cmp=pt({type:wm,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h2"),xs(3," Background "),Ua(),Ha(4,"p",2),xs(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Ha(6,"a",3),xs(7,"download the self-contained instance of ADME@NCATS"),Ua(),xs(8," that can be run locally. "),Ua(),Ha(9,"p",2),xs(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Ua(),Ua(),Ua())},directives:[Zm],styles:[""]}),wm),Xm=((km=function(){function e(){v(this,e),this.loadingStateEmitter=new j}return g(e,[{key:"setLoadingState",value:function(e){this.loadingStateEmitter.next(e)}},{key:"isLoading",get:function(){return this.loadingStateEmitter.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||km)},km.\u0275prov=Ee({token:km,factory:km.\u0275fac,providedIn:"root"}),km);try{bm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cP){bm=!1}var $m,Jm,eg,tg,ng,ig=((eg=function e(t){v(this,e),this._platformId=t,this.isBrowser=this._platformId?vh(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&&!bm)&&"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}).\u0275fac=function(e){return new(e||eg)(Lt(Cl))},eg.\u0275prov=Ee({factory:function(){return new eg(Lt(Cl))},token:eg,providedIn:"root"}),eg),rg=((Jm=function e(){v(this,e)}).\u0275mod=yt({type:Jm}),Jm.\u0275inj=Te({factory:function(e){return new(e||Jm)}}),Jm),og=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ag(){if($m)return $m;if("object"!=typeof document||!document)return $m=new Set(og);var e=document.createElement("input");return $m=new Set(og.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function sg(e){return function(){if(null==tg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return tg=!0}}))}finally{tg=tg||!1}return tg}()?e:!!e.capture}function ug(e){if(function(){if(null==ng){var e="undefined"!=typeof document?document.head:null;ng=!(!e||!e.createShadowRoot&&!e.attachShadow)}return ng}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function lg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){u(n,e);var t=c(n);function n(e,i){return v(this,n),t.call(this)}return g(n,[{key:"schedule",value:function(e){return this}}]),n}(x)),hg=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.SchedulerAction=t,this.now=n}return g(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),fg=function(e){u(n,e);var t=c(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hg.now;return v(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return g(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):s(p(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(hg),dg=new fg(cg);function pg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg;return function(n){return n.lift(new vg(e,t))}}var vg=function(){function e(t,n){v(this,e),this.dueTime=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new mg(e,this.dueTime,this.scheduler))}}]),e}(),mg=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return g(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(A);function gg(e){e.debouncedNext()}function yg(e){return null!=e&&""+e!="false"}function _g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function bg(e){return Array.isArray(e)?e:[e]}function kg(e){return null==e?"":"string"==typeof e?e:e+"px"}function wg(e){return e instanceof Qs?e.nativeElement:e}var Cg,Sg,xg,Eg,Tg=((Eg=function(){function e(){v(this,e)}return g(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||Eg)},Eg.\u0275prov=Ee({factory:function(){return new Eg},token:Eg,providedIn:"root"}),Eg),Ag=((xg=function(){function e(t){v(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return g(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=wg(e);return new P(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new j,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||xg)(Lt(Tg))},xg.\u0275prov=Ee({factory:function(){return new xg(Lt(Tg))},token:xg,providedIn:"root"}),xg),Og=((Sg=function(){function e(t,n,i){v(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Ku,this._disabled=!1,this._currentSubscription=null}return g(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(pg(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=_g(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Sg)(Va(Ag),Va(Qs),Va(Vl))},Sg.\u0275dir=bt({type:Sg,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Sg),Ig=((Cg=function e(){v(this,e)}).\u0275mod=yt({type:Cg}),Cg.\u0275inj=Te({factory:function(e){return new(e||Cg)},providers:[Tg]}),Cg);function Rg(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Dg,Pg,Mg=0,Lg=new Map,Fg=null,Ng=((Dg=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Lg.set(t,{messageElement:t,referenceCount:0})):Lg.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Lg.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Fg&&0===Fg.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return g(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yf(function(t){return e._pressedLetters.push(t)}),pg(t),gf(function(){return e._pressedLetters.length>0}),Q(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||lg(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Qu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),jg=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Vg),Bg=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._origin="program",e}return g(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Vg),zg=((Pg=function(){function e(t){v(this,e),this._platform=t}return g(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(cP){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Ug(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Ug(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Hg(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Pg)(Lt(ig))},Pg.\u0275prov=Ee({factory:function(){return new Pg(Lt(ig))},token:Pg,providedIn:"root"}),Pg);function Hg(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Ug(e){if(!Hg(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var qg,Wg=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return g(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Mf(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),Yg=((qg=function(){function e(t,n,i){v(this,e),this._checker=t,this._ngZone=n,this._document=i}return g(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Wg(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||qg)(Lt(zg),Lt(Vl),Lt(mc))},qg.\u0275prov=Ee({factory:function(){return new qg(Lt(zg),Lt(Vl),Lt(mc))},token:qg,providedIn:"root"}),qg);"undefined"!=typeof Element&∈var Gg,Kg=new Le("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Zg=new Le("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Qg=((Gg=function(){function t(e,n,i,r){v(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return g(t,[{key:"announce",value:function(t){for(var n,i,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1],n=wg(e);if(!this._platform.isBrowser||1!==n.nodeType)return af(null);var i=ug(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new j,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=wg(e);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,t,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=ny(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===ny(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,ey),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ey)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,ey),e.addEventListener("mousedown",t._documentMousedownListener,ey),e.addEventListener("touchstart",t._documentTouchstartListener,ey),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ey),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ey),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,ey),i.removeEventListener("mousedown",this._documentMousedownListener,ey),i.removeEventListener("touchstart",this._documentTouchstartListener,ey),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}}]),e}()).\u0275fac=function(e){return new(e||$g)(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},$g.\u0275prov=Ee({factory:function(){return new $g(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},token:$g,providedIn:"root"}),$g);function ny(e){return e.composedPath?e.composedPath()[0]:e.target}var iy,ry,oy,ay,sy,uy,ly,cy,hy=((oy=function(){function e(t,n){v(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Ku}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||oy)(Va(Qs),Va(ty))},oy.\u0275dir=bt({type:oy,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),oy),fy=((ry=function(){function e(t,n){v(this,e),this._platform=t,this._document=n}return g(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||ry)(Lt(ig),Lt(mc))},ry.\u0275prov=Ee({factory:function(){return new ry(Lt(ig),Lt(mc))},token:ry,providedIn:"root"}),ry),dy=((iy=function e(t){v(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=yt({type:iy}),iy.\u0275inj=Te({factory:function(e){return new(e||iy)(Lt(fy))},imports:[[rg,Ig]]}),iy),py=function(){function e(){v(this,e)}return g(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),vy=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(py),my=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return g(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,s(p(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,s(p(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(py),gy=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).element=e instanceof Qs?e.nativeElement:e,i}return n}(py),yy=function(){function e(){v(this,e),this._isDisposed=!1,this.attachDomPortal=null}return g(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof vy?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof my?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof gy?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),_y=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var u,l;return v(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=o,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),s((u=f(l),p(n.prototype)),"setDisposeFn",u).call(u,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=a,l}return g(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){s(p(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(yy),by=((sy=function(e){u(n,e);var t=c(n);function n(e,i,r){var o,a;return v(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Ku,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(f(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),s((o=f(a),p(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return g(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),s(p(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return s(p(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&s(p(n.prototype),"detach",this).call(this),e&&s(p(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(yy)).\u0275fac=function(e){return new(e||sy)(Va(Ys),Va(Ru),Va(mc))},sy.\u0275dir=bt({type:sy,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[wa]}),sy),ky=((ay=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(by)).\u0275fac=function(e){return wy(e||ay)},ay.\u0275dir=bt({type:ay,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Us([{provide:by,useExisting:ay}]),wa]}),ay),wy=pr(ky),Cy=((uy=function e(){v(this,e)}).\u0275mod=yt({type:uy}),uy.\u0275inj=Te({factory:function(e){return new(e||uy)}}),uy),Sy=new Le("cdk-dir-doc",{providedIn:"root",factory:function(){return Ft(mc)}}),xy=((cy=function(){function e(t){if(v(this,e),this.value="ltr",this.change=new Ku,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return g(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||cy)(Lt(Sy,8))},cy.\u0275prov=Ee({factory:function(){return new cy(Lt(Sy,8))},token:cy,providedIn:"root"}),cy),Ey=((ly=function e(){v(this,e)}).\u0275mod=yt({type:ly}),ly.\u0275inj=Te({factory:function(e){return new(e||ly)}}),ly),Ty=new tu("11.0.1"),Ay=function e(){v(this,e)};function Oy(e,t){return{type:7,name:e,definitions:t,options:{}}}function Iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Ry(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Dy(e){return{type:6,styles:e,offset:null}}function Py(e,t,n){return{type:0,name:e,styles:t,options:n}}function My(e){return{type:5,steps:e}}function Ly(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Fy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Ny(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Vy(e){Promise.resolve(null).then(e)}var jy=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Vy(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),By=function(){function e(t){var n=this;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?Vy(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function zy(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hy(e){switch(e.length){case 0:return new jy;case 1:return e[0];default:return new By(e)}}function Uy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(i.forEach(function(e){var n=e.offset,i=n==u,c=i&&l||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function qy(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Wy(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Wy(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Wy(n,"destroy",e))})}}function Wy(e,t,n){var i=n.totalTime,r=Yy(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Yy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Gy(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Ky(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Zy=function(e,t){return!1},Qy=function(e,t){return!1},Xy=function(e,t,n){return[]},$y=zy();($y||"undefined"!=typeof Element)&&(Zy=function(e,t){return e.contains(t)},Qy=function(){if($y||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Qy}(),Xy=function(e,n,i){var r=[];if(i)r.push.apply(r,t(e.querySelectorAll(n)));else{var o=e.querySelector(n);o&&r.push(o)}return r});var Jy=null,e_=!1;function t_(e){Jy||(Jy=("undefined"!=typeof document?document.body:null)||{},e_=!!Jy.style&&"WebkitAppearance"in Jy.style);var t=!0;return Jy.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Jy.style)&&e_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Jy.style),t}var n_=Qy,i_=Zy,r_=Xy;function o_(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var a_,s_=((a_=function(){function e(){v(this,e)}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new jy(n,i)}}]),e}()).\u0275fac=function(e){return new(e||a_)},a_.\u0275prov=Ee({token:a_,factory:a_.\u0275fac}),a_),u_=function(){var e=function e(){v(this,e)};return e.NOOP=new s_,e}();function l_(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:c_(parseFloat(t[1]),t[2])}function c_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function h_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=c_(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=c_(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=e;if(!n){var l=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function f_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function d_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else f_(e,n);return n}function p_(e,t,n){return n?t+":"+n+";":""}function v_(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(R_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(R_(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:N_(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return T_(n,e,t)}),options:N_(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=T_(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:N_(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return V_(h_(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=V_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return V_((n=n||h_(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Dy({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Dy(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(F_(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[i],d=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),d=!1),o=f.startTime),d&&(h[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,u=t.errors,l=s.params||{},(c=b_(a)).length&&c.forEach(function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:T_(this,y_(e.animation),t),options:N_(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:N_(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:N_(e.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,r=t.options||{};n.queryCount++,n.currentQuery=t;var o=e(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(D_,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(t.selector),2),a=o[0],s=o[1];n.currentQuerySelector=i.length?i+" "+a:a,Gy(n.collectedStyles,n.currentQuerySelector,{});var u=T_(this,y_(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:N_(t.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:h_(e.timings,t.errors,!0);return{type:12,animation:T_(this,y_(e.animation),t),timings:n,options:null}}}]),t}(),L_=function e(t){v(this,e),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 F_(e){return!Array.isArray(e)&&"object"==typeof e}function N_(e){var t;return e?(e=f_(e)).params&&(e.params=(t=e.params)?f_(t):null):e={},e}function V_(e,t,n){return{duration:e,delay:t,easing:n}}function j_(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var B_=function(){function e(){v(this,e),this._map=new Map}return g(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,n){var i,r=this._map.get(e);r||this._map.set(e,r=[]),(i=r).push.apply(i,t(n))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),z_=new RegExp(":enter","g"),H_=new RegExp(":leave","g");function U_(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new q_).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var q_=function(){function e(){v(this,e)}return g(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new B_;var c=new Y_(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),T_(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[j_(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?l_(n.duration):null,o=null!=n.delay?l_(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),T_(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=W_);var a=l_(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return T_(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?l_(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),T_(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return h_(t.params?k_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?l_(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=W_);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),T_(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;T_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),W_={},Y_=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=W_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new G_(this._driver,n,0),s.push(this.currentTimeline)}return g(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=l_(i.duration)),null!=i.delay&&(r.delay=l_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=k_(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=W_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new K_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,n,i,r,o,a){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(z_,"."+this._enterClassName)).replace(H_,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push.apply(s,t(u))}return o||0!=s.length||a.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),G_=function(){function e(t,n,i,r){v(this,e),this._driver=t,this.element=n,this.startTime=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return g(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):d_(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=k_(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=d_(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?w_(t.values()):[],a=n.size?w_(n.values()):[];if(i){var s=r[0],u=f_(s);s.offset=0,u.offset=1,r=[s,u]}return j_(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),K_=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return g(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=d_(e[0],!1);u.offset=0,o.push(u);var l=d_(e[0],!1);l.offset=Z_(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=d_(e[h],!1);f.offset=Z_((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return j_(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(G_);function Z_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Q_=function e(){v(this,e)},X_=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"normalizePropertyName",value:function(e,t){return S_(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if($_[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Q_),$_=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function J_(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var eb={},tb=function(){function e(t,n,i){v(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return g(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||eb,f=this.buildStyles(n,a&&a.params||eb,c),d=s&&s.params||eb,p=this.buildStyles(i,d,c),v=new Set,m=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=l?[]:U_(e,t,this.ast.animation,r,o,f,p,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return J_(t,this._triggerName,n,i,y,f,p,[],[],m,g,k,c);b.forEach(function(e){var n=e.element,i=Gy(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Gy(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=w_(v.values());return J_(t,this._triggerName,n,i,y,f,p,b,w,m,g,k)}}]),e}(),nb=function(){function e(t,n){v(this,e),this.styles=t,this.defaultParams=n}return g(e,[{key:"buildStyles",value:function(e,t){var n={},i=f_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=k_(o,i,t)),n[e]=o})}}),n}}]),e}(),ib=function(){function e(t,n){var i=this;v(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new nb(e.style,e.options&&e.options.params||{})}),rb(this.states,"true","1"),rb(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new tb(t,e,i.states))}),this.fallbackTransition=new tb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return g(e,[{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function rb(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var ob=new B_,ab=function(){function e(t,n,i){v(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return g(e,[{key:"register",value:function(e,t){var n=[],i=P_(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Uy(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=U_(this._driver,t,a,"ng-enter","ng-leave",{},{},r,ob,o)).forEach(function(e){var t=Gy(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var u=Hy(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=Yy(t,"","","");return qy(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),sb=[],ub={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=f_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return g(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}},{key:"params",get:function(){return this.options.params}}]),e}(),hb=new cb("void"),fb=function(){function e(t,n,i){v(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_b(n,this._hostClassName)}return g(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Gy(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=Gy(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),u[t]=hb),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new pb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new cb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=hb),"void"===l.value||u.value!==l.value){var c=Gy(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(_b(e,"ng-animate-queued"),a.onStart(function(){bb(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_b(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bb(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(vb(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return vb(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Hy(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=ub,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(n).forEach(function(e){var t=e.player,n=e.element;if(x.push(t),i.collectedEnterElements.length){var a=n.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!f||!i.driver.containsElement(f,n),d=C.get(n),p=v.get(n),m=i._buildInstruction(e,r,p,d,h);if(m.errors&&m.errors.length)E.push(m);else{if(h)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(n,m.timelines),s.push({instruction:m,player:t,element:n}),m.queriedElements.forEach(function(e){return Gy(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(E.length){var A=[];E.forEach(function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return A.push("- ".concat(e,"\n"))})}),x.forEach(function(e){return e.destroy()}),this.reportError(A)}var O=new Map,I=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(I.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),o.forEach(function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Gy(O,t,[]).push(e),e.destroy()})});var R=g.filter(function(e){return Cb(e,l,c)}),D=new Map;gb(D,this.driver,_,c,"*").forEach(function(e){Cb(e,l,c)&&R.push(e)});var P=new Map;p.forEach(function(e,t){gb(P,i.driver,new Set(e),l,"!")}),R.forEach(function(e){var t=D.get(e),n=P.get(e);D.set(e,Object.assign(Object.assign({},t),n))});var M=[],L=[],F={};s.forEach(function(e){var t=e.element,n=e.player,s=e.instruction;if(r.has(t)){if(h.has(t))return n.onDestroy(function(){return m_(t,s.toStyles)}),n.disabled=!0,n.overrideTotalTime(s.totalTime),void o.push(n);var u=F;if(I.size>1){for(var l=t,c=[];l=l.parentNode;){var f=I.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(e){return I.set(e,u)})}var d=i._buildAnimation(n.namespaceId,s,O,a,P,D);if(n.setRealPlayer(d),u===F)M.push(n);else{var p=i.playersByElement.get(u);p&&p.length&&(n.parentPlayer=Hy(p)),o.push(n)}}else g_(t,s.fromStyles),n.onDestroy(function(){return m_(t,s.toStyles)}),L.push(n),h.has(t)&&o.push(n)}),L.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=Hy(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new jy(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),pb=function(){function e(t,n,i){v(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new jy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return g(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return qy(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Gy(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function vb(e){return e&&1===e.nodeType}function mb(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function gb(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(mb(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=lb,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return mb(e,o[s++])}),a}function yb(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function _b(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function bb(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function kb(e,t,n){Hy(n).onDone(function(){return e.processLeaveNode(t)})}function wb(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function xb(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Tb(t[0]),t.length>1&&(i=Tb(t[t.length-1]))):t&&(n=Tb(t)),n||i?new Eb(e,n,i):null}var Eb=function(){var e=function(){function e(t,n,i){v(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return g(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&m_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(m_(this._element,this._initialStyles),this._endStyles&&(m_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(g_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(g_(this._element,this._endStyles),this._endStyles=null),m_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Tb(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Pb(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Lb(e,"").split(","),(i=Db(n,t))>=0&&(n.splice(i,1),Mb(e,"",n.join(","))))}}]),e}();function Ib(e,t,n){Mb(e,"PlayState",n,Rb(e,t))}function Rb(e,t){var n=Lb(e,"");return n.indexOf(",")>0?Db(n.split(","),t):Db([n],t)}function Db(e,t){for(var n=0;n=0)return n;return-1}function Pb(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Mb(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Lb(e,t){return e.style["animation"+t]}var Fb=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return g(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Ob(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:A_(e.element,i))})}this.currentSnapshot=t}}]),e}(),Nb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=o_(i),r}return g(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),s(p(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),s(p(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,s(p(n.prototype),"destroy",this).call(this))}}]),n}(jy),Vb=function(){function e(){v(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return o_(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter(function(e){return e instanceof Fb}),u={};x_(n,i)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=E_(e,t,u));if(0==n)return new Nb(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=xb(e,t),d=new Fb(e,t,c,n,i,r,l,f);return d.onDestroy(function(){var e;(e=h).parentNode.removeChild(e)}),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),jb=function(){function e(t,n,i,r){v(this,e),this.element=t,this.keyframes=n,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:A_(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Bb=function(){function e(){v(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zb().toString()),this._cssKeyframesDriver=new Vb}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof jb});x_(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=xb(e,t=E_(e,t=t.map(function(e){return d_(e,!1)}),u));return new jb(e,t,s,c)}}]),e}();function zb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Hb,Ub=((Hb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}}),r}return g(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ry(e):e;return Yb(this._renderer,null,t,"register",[n]),new qb(t,this._renderer)}}]),n}(Ay)).\u0275fac=function(e){return new(e||Hb)(Lt(Xs),Lt(mc))},Hb.\u0275prov=Ee({token:Hb,factory:Hb.\u0275fac}),Hb),qb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return g(n,[{key:"create",value:function(e,t){return new Wb(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){v(this,e)}}()),Wb=function(){function e(t,n,i,r){v(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return g(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),$b=function(t){u(i,t);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,t,r,o)).factory=e,a.namespaceId=t,a}return g(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(t,n,i){var r,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t),l=n.substr(1),c="";return"@"!=l.charAt(0)&&(o=(r=l).indexOf("."),l=(s=e([r.substring(0,o),r.substr(o+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,u,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(t,n,i)}}]),i}(Xb),Jb=((Kb=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e.body,i,r)}return n}(Sb)).\u0275fac=function(e){return new(e||Kb)(Lt(mc),Lt(u_),Lt(Q_))},Kb.\u0275prov=Ee({token:Kb,factory:Kb.\u0275fac}),Kb),ek=new Le("AnimationModuleType"),tk=[{provide:u_,useFactory:function(){return"function"==typeof zb()?new Bb:new Vb}},{provide:ek,useValue:"BrowserAnimations"},{provide:Ay,useClass:Ub},{provide:Q_,useFactory:function(){return new X_}},{provide:Sb,useClass:Jb},{provide:Xs,useFactory:function(e,t,n){return new Qb(e,t,n)},deps:[qh,Sb,Vl]}],nk=((Zb=function e(){v(this,e)}).\u0275mod=yt({type:Zb}),Zb.\u0275inj=Te({factory:function(e){return new(e||Zb)},providers:tk,imports:[of]}),Zb);function ik(e,t){if(1&e&&qa(0,"mat-pseudo-checkbox",3),2&e){var n=ns();Ba("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var rk,ok=["*"],ak=function(){var e=function e(){v(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),sk=function(){var e=function e(){v(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),uk=new tu("11.0.1"),lk=new Le("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ck=((rk=function(){function e(t,n,i){v(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return g(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Xn()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){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.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&uk.full!==Ty.full&&console.warn("The Angular Material version ("+uk.full+") does not match the Angular CDK version ("+Ty.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=yt({type:rk}),rk.\u0275inj=Te({factory:function(e){return new(e||rk)(Lt(fy),Lt(lk,8),Lt(mc))},imports:[[Ey],Ey]}),rk);function hk(e){return function(e){u(n,e);var t=c(n);function n(){var e;v(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Ak),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new Tk(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Ak),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=wg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Ik))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Rk),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Xg(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,Ok)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Ik.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}),this._pointerUpEventsRegistered&&Rk.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}))}}]),e}(),Pk=new Le("mat-ripple-global-options"),Mk=((kk=function(){function e(t,n,i,r,o){v(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Dk(this,n,t,i)}return g(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||kk)(Va(Qs),Va(Vl),Va(ig),Va(Pk,8),Va(ek,8))},kk.\u0275dir=bt({type:kk,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&ps("mat-ripple-unbounded",t.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"]}),kk),Lk=((bk=function e(){v(this,e)}).\u0275mod=yt({type:bk}),bk.\u0275inj=Te({factory:function(e){return new(e||bk)},imports:[[ck,rg],ck]}),bk),Fk=((_k=function e(t){v(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||_k)(Va(ek,8))},_k.\u0275cmp=pt({type:_k,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&ps("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),_k),Nk=((yk=function e(){v(this,e)}).\u0275mod=yt({type:yk}),yk.\u0275inj=Te({factory:function(e){return new(e||yk)},imports:[[ck]]}),yk),Vk=hk(function e(){v(this,e)}),jk=0,Bk=((wk=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-"+jk++,e}return n}(Vk)).\u0275fac=function(e){return zk(e||wk)},wk.\u0275dir=bt({type:wk,inputs:{label:"label"},features:[wa]}),wk),zk=pr(Bk),Hk=new Le("MatOptgroup"),Uk=0,qk=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,e),this.source=t,this.isUserInput=n},Wk=new Le("MAT_OPTION_PARENT_COMPONENT"),Yk=((Sk=function(){function e(t,n,i,r){v(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Uk++,this.onSelectionChange=new Ku,this._stateChanges=new j}return g(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||lg(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new qk(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=yg(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||Sk)(Va(Qs),Va(_u),Va(void 0),Va(Bk))},Sk.\u0275dir=bt({type:Sk,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Sk),Gk=((Ck=function(e){u(n,e);var t=c(n);function n(e,i,r,o){return v(this,n),t.call(this,e,i,r,o)}return n}(Yk)).\u0275fac=function(e){return new(e||Ck)(Va(Qs),Va(_u),Va(Wk,8),Va(Hk,8))},Ck.\u0275cmp=pt({type:Ck,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(As("id",t.id),Ma("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),ps("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[wa],ngContentSelectors:ok,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(rs(),Fa(0,ik,1,2,"mat-pseudo-checkbox",0),Ha(1,"span",1),os(2),Ua(),qa(3,"div",2)),2&e&&(Ba("ngIf",t.multiple),uo(3),Ba("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Xc,Mk,Fk],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ck);function Kk(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a1?Array.prototype.slice.call(arguments):e)},t,i)})}function $k(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l=0}function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Jk(t)?i=Number(t)<1?1:Number(t):z(t)&&(n=t),z(n)||(n=dg),new P(function(t){var r=Jk(e)?e:+e-n.now();return n.schedule(tw,r,{index:0,period:i,subscriber:t})})}function tw(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function nw(e,t){return function(n){return n.lift(new iw(e,t))}}var iw=function(){function e(t,n){v(this,e),this.compare=t,this.keySelector=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new rw(e,this.compare,this.keySelector))}}]),e}(),rw=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return g(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(A);function ow(e){return function(t){return t.lift(new aw(e))}}var aw=function(){function e(t){v(this,e),this.notifier=t}return g(e,[{key:"call",value:function(e,t){var n=new sw(e),i=K(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),sw=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e)).seenValue=!1,i}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Z),uw=1,lw=Promise.resolve(),cw={};function hw(e){return e in cw&&(delete cw[e],!0)}var fw=function(e){var t=uw++;return cw[t]=!0,lw.then(function(){return hw(t)&&e()}),t},dw=function(e){hw(e)},pw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return g(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?s(p(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=fw(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return s(p(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(dw(t),e.scheduled=void 0)}}]),n}(cg),vw=new(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i1&&void 0!==arguments[1]?arguments[1]:dg;return t=function(){return ew(e,n)},function(e){return e.lift(new mw(t))}}function _w(e,t){return new P(t?function(n){return t.schedule(bw,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function bw(e){var t=e.error;e.subscriber.error(t)}var kw,ww=((kw=function(){function e(t,n,i){v(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return g(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return af(this.value);case"E":return _w(this.error);case"C":return pf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new kw("C"),kw.undefinedValueNotification=new kw("N",void 0),kw);function Cw(e){return e&&"function"==typeof e.connect}var Sw,xw,Ew,Tw,Aw=function(){function e(){v(this,e)}return g(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var u=n(e,i,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),Ow=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return g(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new P(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(yw(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):af()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(gf(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Xk(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Tw)(Lt(Vl),Lt(ig),Lt(mc,8))},Tw.\u0275prov=Ee({factory:function(){return new Tw(Lt(Vl),Lt(ig),Lt(mc,8))},token:Tw,providedIn:"root"}),Tw),Dw=((Ew=function(){function e(t,n,i){var r=this;v(this,e),this._platform=t,this._change=new j,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return g(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(yw(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||Ew)(Lt(ig),Lt(Vl),Lt(mc,8))},Ew.\u0275prov=Ee({factory:function(){return new Ew(Lt(ig),Lt(Vl),Lt(mc,8))},token:Ew,providedIn:"root"}),Ew),Pw=((xw=function e(){v(this,e)}).\u0275mod=yt({type:xw}),xw.\u0275inj=Te({factory:function(e){return new(e||xw)}}),xw),Mw=((Sw=function e(){v(this,e)}).\u0275mod=yt({type:Sw}),Sw.\u0275inj=Te({factory:function(e){return new(e||Sw)},imports:[[Ey,rg,Pw],Ey,Pw]}),Sw);function Lw(e,t){1&e&&os(0)}var Fw=["*"];function Nw(e,t){}var Vw=function(e){return{animationDuration:e}},jw=function(e,t){return{value:e,params:t}},Bw=["tabBodyWrapper"],zw=["tabHeader"];function Hw(e,t){}function Uw(e,t){1&e&&Fa(0,Hw,0,0,"ng-template",9),2&e&&Ba("cdkPortalOutlet",ns().$implicit.templateLabel)}function qw(e,t){1&e&&xs(0),2&e&&Es(ns().$implicit.textLabel)}function Ww(e,t){if(1&e){var n=Ka();Ha(0,"div",6),Xa("click",function(){cn(n);var e=t.$implicit,i=t.index,r=ns(),o=Na(1);return r._handleClick(e,o,i)}),Ha(1,"div",7),Fa(2,Uw,1,1,"ng-template",8),Fa(3,qw,1,1,"ng-template",8),Ua(),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-label-active",o.selectedIndex==r),Ba("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Ma("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),uo(2),Ba("ngIf",i.templateLabel),uo(1),Ba("ngIf",!i.templateLabel)}}function Yw(e,t){if(1&e){var n=Ka();Ha(0,"mat-tab-body",10),Xa("_onCentered",function(){return cn(n),ns()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return cn(n),ns()._setTabBodyWrapperHeight(e)}),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-body-active",o.selectedIndex==r),Ba("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Ma("aria-labelledby",o._getTabLabelId(r))}}var Gw,Kw,Zw,Qw,Xw,$w,Jw,eC,tC,nC,iC,rC,oC,aC,sC,uC,lC=["tabListContainer"],cC=["tabList"],hC=["nextPaginator"],fC=["previousPaginator"],dC=new Le("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),pC=((Gw=function(){function e(t,n,i,r){v(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return g(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||Gw)(Va(Qs),Va(Vl),Va(dC),Va(ek,8))},Gw.\u0275dir=bt({type:Gw,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&ps("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),Gw),vC=new Le("MatTabContent"),mC=new Le("MatTabLabel"),gC=hk(function e(){v(this,e)}),yC=new Le("MAT_TAB_GROUP"),_C=((Kw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new j,r.position=null,r.origin=null,r.isActive=!1,r}return g(n,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new my(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}}]),n}(gC)).\u0275fac=function(e){return new(e||Kw)(Va(Ru),Va(yC))},Kw.\u0275cmp=pt({type:Kw,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,mC,!0),hl(n,vC,!0,xu)),2&e&&(al(i=dl())&&(t.templateLabel=i.first),al(i=dl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&sl(xu,!0),2&e&&al(n=dl())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[wa,Ai],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,t){1&e&&(rs(),Fa(0,Lw,1,0,"ng-template"))},encapsulation:2}),Kw),bC={translateTab:Oy("translateTab",[Py("center, void, left-origin-center, right-origin-center",Dy({transform:"none"})),Py("left",Dy({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Py("right",Dy({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ly("* => left, * => right, left => center, right => center",Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ly("void => left-origin-center",[Dy({transform:"translate3d(-100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ly("void => right-origin-center",[Dy({transform:"translate3d(100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},kC=((Xw=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i,o))._host=r,a._centeringSub=x.EMPTY,a._leavingSub=x.EMPTY,a}return g(n,[{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(by)).\u0275fac=function(e){return new(e||Xw)(Va(Ys),Va(Ru),Va(qe(function(){return CC})),Va(mc))},Xw.\u0275dir=bt({type:Xw,selectors:[["","matTabBodyHost",""]],features:[wa]}),Xw),wC=((Qw=function(){function e(t,n,i){var r=this;v(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=x.EMPTY,this._translateTabComplete=new j,this._onCentering=new Ku,this._beforeCentering=new Ku,this._afterLeavingCenter=new Ku,this._onCentered=new Ku(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(nw(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return g(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||Qw)(Va(Qs),Va(xy,8),Va(_u))},Qw.\u0275dir=bt({type:Qw,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Qw),CC=((Zw=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(wC)).\u0275fac=function(e){return new(e||Zw)(Va(Qs),Va(xy,8),Va(_u))},Zw.\u0275cmp=pt({type:Zw,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&ul(ky,!0),2&e&&al(n=dl())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[wa],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){var n,i;1&e&&(Ha(0,"div",0,1),Xa("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),Fa(2,Nw,0,0,"ng-template",2),Ua()),2&e&&Ba("@translateTab",function(e,t,n,i,r){return function(e,t,n,i,r,o,a){var s=t+3;return function(e,t,n,i){var r=Pa(e,t,n);return Pa(e,t+1,i)||r}(e,s,r,o)?Da(e,s+2,i(r,o)):Yu(e,s+2)}(un(),yn(),0,t,n,i)}(0,jw,t._position,(n=Vw,i=t.animationDuration,Gu(un(),yn(),1,n,i,void 0))))},directives:[kC],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bC.translateTab]}}),Zw),SC=new Le("MAT_TABS_CONFIG"),xC=0,EC=function e(){v(this,e)},TC=fk(dk(function e(t){v(this,e),this._elementRef=t}),"primary"),AC=((Jw=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,e))._changeDetectorRef=t,a._animationMode=o,a._tabs=new Qu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=x.EMPTY,a._tabLabelSubscription=x.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Ku,a.focusChange=new Ku,a.animationDone=new Ku,a.selectedTabChange=new Ku(!0),a._groupId=xC++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return g(i,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),$w),IC=hk(function e(){v(this,e)}),RC=((eC=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).elementRef=e,i}return g(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(IC)).\u0275fac=function(e){return new(e||eC)(Va(Qs))},eC.\u0275dir=bt({type:eC,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Ma("aria-disabled",!!t.disabled),ps("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[wa]}),eC),DC=sg({passive:!0}),PC=((rC=function(){function e(t,n,i,r,o,a,s){var u=this;v(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new j,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new j,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ku,this.indexFocused=new Ku,o.runOutsideAngular(function(){Xk(t.nativeElement,"mouseleave").pipe(ow(u._destroyed)).subscribe(function(){u._stopInterval()})})}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this;Xk(this._previousPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),Xk(this._nextPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:af(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Bg(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),se(t,n,this._items.changes).pipe(ow(this._destroyed)).subscribe(function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(ow(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!lg(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),ew(650,100).pipe(ow(se(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=_g(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||rC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},rC.\u0275dir=bt({type:rC,inputs:{disablePagination:"disablePagination"}}),rC),MC=((iC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){var l;return v(this,n),(l=t.call(this,e,i,r,o,a,s,u))._disableRipple=!1,l}return g(n,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=yg(e)}}]),n}(PC)).\u0275fac=function(e){return new(e||iC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},iC.\u0275dir=bt({type:iC,inputs:{disableRipple:"disableRipple"},features:[wa]}),iC),LC=((nC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,r,o,a,s,u)}return n}(MC)).\u0275fac=function(e){return new(e||nC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},nC.\u0275cmp=pt({type:nC,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,RC,!1),2&e&&al(i=dl())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(sl(pC,!0),sl(lC,!0),sl(cC,!0),ul(hC,!0),ul(fC,!0)),2&e&&(al(n=dl())&&(t._inkBar=n.first),al(n=dl())&&(t._tabListContainer=n.first),al(n=dl())&&(t._tabList=n.first),al(n=dl())&&(t._nextPaginator=n.first),al(n=dl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[wa],ngContentSelectors:Fw,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0,1),Xa("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),qa(2,"div",2),Ua(),Ha(3,"div",3,4),Xa("keydown",function(e){return t._handleKeydown(e)}),Ha(5,"div",5,6),Xa("cdkObserveContent",function(){return t._onContentChanges()}),Ha(7,"div",7),os(8),Ua(),qa(9,"mat-ink-bar"),Ua(),Ua(),Ha(10,"div",8,9),Xa("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),qa(12,"div",2),Ua()),2&e&&(ps("mat-tab-header-pagination-disabled",t._disableScrollBefore),Ba("matRippleDisabled",t._disableScrollBefore||t.disableRipple),uo(5),ps("_mat-animation-noopable","NoopAnimations"===t._animationMode),uo(5),ps("mat-tab-header-pagination-disabled",t._disableScrollAfter),Ba("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Mk,Og,pC],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),nC),FC=((tC=function e(){v(this,e)}).\u0275mod=yt({type:tC}),tC.\u0275inj=Te({factory:function(e){return new(e||tC)},imports:[[ph,ck,Cy,Lk,Ig,dy],ck]}),tC),NC=["mat-button",""],VC=["*"],jC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],BC=fk(hk(dk(function e(t){v(this,e),this._elementRef=t}))),zC=((aC=function(e){u(n,e);var t=c(n);function n(e,r,o){var a;v(this,n),(a=t.call(this,e))._focusMonitor=r,a._animationMode=o,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=i(jC);try{for(u.s();!(s=u.n()).done;){var l=s.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(c){u.e(c)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return g(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.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:block;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}),aC),HC=((oC=function e(){v(this,e)}).\u0275mod=yt({type:oC}),oC.\u0275inj=Te({factory:function(e){return new(e||oC)},imports:[[Lk,ck],ck]}),oC),UC=["ketcherFrame"],qC=((sC=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.loadingService=n,this.moleculeInput=new Ku,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/ketcher/ketcher.html")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.ketcherFrame.nativeElement.onload=function(){e.ketcher=e.ketcherFrame.nativeElement.contentWindow.ketcher,e.loadingService.setLoadingState(!1)}}},{key:"addMolecule",value:function(){var e=this.ketcher.getSmiles();this.moleculeInput.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||sC)(Va(ef),Va(Xm))},sC.\u0275cmp=pt({type:sC,selectors:[["adme-sketcher"]],viewQuery:function(e,t){var n;1&e&&sl(UC,!0),2&e&&al(n=dl())&&(t.ketcherFrame=n.first)},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(Ha(0,"div",0),qa(1,"iframe",1,2),Ua(),Ha(3,"div",3),Ha(4,"button",4),Xa("click",function(){return t.addMolecule()}),xs(5," Predict "),Ua(),Ua()),2&e&&(uo(1),Ba("src",t.ketcherSrc,wi))},directives:[zC],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),sC),WC={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}},YC=((uC=function(){function e(t){v(this,e),this.el=t,this.selectedFile=new Ku}return g(e,[{key:"ngOnInit",value:function(){this.addHiddenFileInput()}},{key:"ngOnDestroy",value:function(){document.body.removeChild(this.fileInputElement)}},{key:"addHiddenFileInput",value:function(){var e=this;this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=function(t){t.target.files&&t.target.files.length>0&&e.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);var t=this.fileInputElement;this.el.nativeElement.addEventListener("click",function(){t.click()})}}]),e}()).\u0275fac=function(e){return new(e||uC)(Va(Qs))},uC.\u0275dir=bt({type:uC,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),uC);function GC(){for(var e=arguments.length,n=new Array(e),i=0;ie?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return iS(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return iS(e.value)||sS.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return iS(t.value)||!rS(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(iS(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return hS(fS(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return GC(fS(e,t).map(cS)).pipe(Q(hS))}}}]),e}();function lS(e){return null!=e}function cS(e){var t=Za(e)?ee(e):e;return Qa(t),t}function hS(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fS(e,t){return t.map(function(t){return t(e)})}function dS(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function pS(e){return null!=e?uS.compose(dS(e)):null}function vS(e){return null!=e?uS.composeAsync(dS(e)):null}function mS(e,n){return null===e?[n]:Array.isArray(e)?[].concat(t(e),[n]):[e,n]}function gS(e){return e._rawValidators}function yS(e){return e._rawAsyncValidators}var _S,bS,kS,wS,CS,SS,xS,ES,TS,AS,OS=((bS=function(){function e(){v(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return g(e,[{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=pS(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=vS(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}()).\u0275fac=function(e){return new(e||bS)},bS.\u0275dir=bt({type:bS}),bS),IS=((_S=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(OS)).\u0275fac=function(e){return RS(e||_S)},_S.\u0275dir=bt({type:_S,features:[wa]}),_S),RS=pr(IS),DS=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(OS),PS=function(){function e(t){v(this,e),this._cd=t}return g(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),MS=((wS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||wS)(Va(DS,2))},wS.\u0275dir=bt({type:wS,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),wS),LS=((kS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||kS)(Va(IS,2))},kS.\u0275dir=bt({type:kS,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),kS),FS={provide:XC,useExisting:qe(function(){return NS}),multi:!0},NS=((CS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||CS)(Va($s),Va(Qs))},CS.\u0275dir=bt({type:CS,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([FS])]}),CS),VS={provide:XC,useExisting:qe(function(){return BS}),multi:!0},jS=((xS=function(){function e(){v(this,e),this._accessors=[]}return g(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||xS)},xS.\u0275prov=Ee({token:xS,factory:xS.\u0275fac}),xS),BS=((SS=function(){function e(t,n,i,r){v(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return g(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(DS),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}()).\u0275fac=function(e){return new(e||SS)(Va($s),Va(Qs),Va(jS),Va(ba))},SS.\u0275dir=bt({type:SS,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Us([VS])]}),SS),zS={provide:XC,useExisting:qe(function(){return HS}),multi:!0},HS=((ES=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||ES)(Va($s),Va(Qs))},ES.\u0275dir=bt({type:ES,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([zS])]}),ES),US={provide:XC,useExisting:qe(function(){return qS}),multi:!0},qS=((TS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return g(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o0&&e.setValidators(i.filter(function(e){return e!==t.validator}))}if(null!==t.asyncValidator){var r=yS(e);Array.isArray(r)&&r.length>0&&e.setAsyncValidators(r.filter(function(e){return e!==t.asyncValidator}))}}if(n){var o=function(){};KS(t._rawValidators,o),KS(t._rawAsyncValidators,o)}}function XS(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $S(e,t){ZS(e,t,!1)}var JS=[JC,HS,NS,qS,YS,BS];function ex(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function tx(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function nx(e){return(ax(e)?e.validators:e)||null}function ix(e){return Array.isArray(e)?pS(e):e||null}function rx(e,t){return(ax(t)?t.asyncValidators:e)||null}function ox(e){return Array.isArray(e)?vS(e):e||null}function ax(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var sx,ux,lx,cx,hx,fx,dx,px,vx,mx=function(){function e(t,n){v(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ix(this._rawValidators),this._composedAsyncValidatorFn=ox(this._rawAsyncValidators)}return g(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ix(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ox(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=cS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof yx?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof _x&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Ku,this.statusChanges=new Ku}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ax(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),gx=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,n),(e=t.call(this,nx(r),rx(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return g(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){tx(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){tx(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(mx),yx=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof gx?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(mx),_x=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof gx?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=i(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(mx),bx={provide:IS,useExisting:qe(function(){return wx})},kx=Promise.resolve(null),wx=((sx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ku,r.form=new yx({},pS(e),vS(i)),r}return g(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),GS(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),tx(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path),i=new yx({});$S(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;kx.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(IS)).\u0275fac=function(e){return new(e||sx)(Va(oS,10),Va(aS,10))},sx.\u0275dir=bt({type:sx,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([bx]),wa]}),sx),Cx={provide:DS,useExisting:qe(function(){return xx})},Sx=Promise.resolve(null),xx=((lx=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this)).control=new gx,a._registered=!1,a.update=new Ku,a._parent=e,a._setValidators(t),a._setAsyncValidators(r),a.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){var t;e.constructor===nS?n=e:(t=e,JS.some(function(e){return t.constructor===e})?i=e:r=e)}),r||i||n||null}(0,o),a}return g(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){GS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Sx.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Sx.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?[].concat(t(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),i}(DS)).\u0275fac=function(e){return new(e||lx)(Va(IS,9),Va(oS,10),Va(aS,10),Va(XC,10))},lx.\u0275dir=bt({type:lx,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Us([Cx]),wa,Ai]}),lx),Ex=((ux=function e(){v(this,e)}).\u0275fac=function(e){return new(e||ux)},ux.\u0275dir=bt({type:ux,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ux),Tx=new Le("NgModelWithFormControlWarning"),Ax={provide:IS,useExisting:qe(function(){return Ox})},Ox=((cx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ku,r._setValidators(e),r._setAsyncValidators(i),r}return g(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return GS(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){tx(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),QS(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}(t.control||null,t),n&&GS(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ZS(this.form,this,!1),this._oldForm&&QS(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(IS)).\u0275fac=function(e){return new(e||cx)(Va(oS,10),Va(aS,10))},cx.\u0275dir=bt({type:cx,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([Ax]),wa,Ai]}),cx),Ix={provide:oS,useExisting:qe(function(){return Rx}),multi:!0},Rx=((vx=function(){function e(){v(this,e),this._required=!1}return g(e,[{key:"validate",value:function(e){return this.required?uS.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||vx)},vx.\u0275dir=bt({type:vx,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ma("required",t.required?"":null)},inputs:{required:"required"},features:[Us([Ix])]}),vx),Dx=((px=function e(){v(this,e)}).\u0275mod=yt({type:px}),px.\u0275inj=Te({factory:function(e){return new(e||px)}}),px),Px=((dx=function(){function e(){v(this,e)}return g(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new yx(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new gx(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new _x(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof gx||e instanceof yx||e instanceof _x?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||dx)},dx.\u0275prov=Ee({token:dx,factory:dx.\u0275fac}),dx),Mx=((fx=function e(){v(this,e)}).\u0275mod=yt({type:fx}),fx.\u0275inj=Te({factory:function(e){return new(e||fx)},providers:[jS],imports:[Dx]}),fx),Lx=((hx=function(){function e(){v(this,e)}return g(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Tx,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=yt({type:hx}),hx.\u0275inj=Te({factory:function(e){return new(e||hx)},providers:[Px,jS],imports:[Dx]}),hx),Fx=["underline"],Nx=["connectionContainer"],Vx=["inputContainer"],jx=["label"];function Bx(e,t){1&e&&(Wa(0),Ha(1,"div",14),qa(2,"div",15),qa(3,"div",16),qa(4,"div",17),Ua(),Ha(5,"div",18),qa(6,"div",15),qa(7,"div",16),qa(8,"div",17),Ua(),Ya())}function zx(e,t){1&e&&(Ha(0,"div",19),os(1,1),Ua())}function Hx(e,t){if(1&e&&(Wa(0),os(1,2),Ha(2,"span"),xs(3),Ua(),Ya()),2&e){var n=ns(2);uo(3),Es(n._control.placeholder)}}function Ux(e,t){1&e&&os(0,3,["*ngSwitchCase","true"])}function qx(e,t){1&e&&(Ha(0,"span",23),xs(1," *"),Ua())}function Wx(e,t){if(1&e){var n=Ka();Ha(0,"label",20,21),Xa("cdkObserveContent",function(){return cn(n),ns().updateOutlineGap()}),Fa(2,Hx,4,1,"ng-container",12),Fa(3,Ux,1,0,"ng-content",12),Fa(4,qx,2,0,"span",22),Ua()}if(2&e){var i=ns();ps("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ba("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ma("for",i._control.id)("aria-owns",i._control.id),uo(2),Ba("ngSwitchCase",!1),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Yx(e,t){1&e&&(Ha(0,"div",24),os(1,4),Ua())}function Gx(e,t){if(1&e&&(Ha(0,"div",25,26),qa(2,"span",27),Ua()),2&e){var n=ns();uo(2),ps("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Kx(e,t){1&e&&(Ha(0,"div"),os(1,5),Ua()),2&e&&Ba("@transitionMessages",ns()._subscriptAnimationState)}function Zx(e,t){if(1&e&&(Ha(0,"div",31),xs(1),Ua()),2&e){var n=ns(2);Ba("id",n._hintLabelId),uo(1),Es(n.hintLabel)}}function Qx(e,t){if(1&e&&(Ha(0,"div",28),Fa(1,Zx,2,2,"div",29),os(2,6),qa(3,"div",30),os(4,7),Ua()),2&e){var n=ns();Ba("@transitionMessages",n._subscriptAnimationState),uo(1),Ba("ngIf",n.hintLabel)}}var Xx,$x,Jx,eE,tE,nE,iE=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],rE=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],oE=new Le("MatError"),aE={transitionMessages:Oy("transitionMessages",[Py("enter",Dy({opacity:1,transform:"translateY(0%)"})),Ly("void => enter",[Dy({opacity:0,transform:"translateY(-100%)"}),Iy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sE=((Xx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Xx)},Xx.\u0275dir=bt({type:Xx}),Xx),uE=0,lE=new Le("MatHint"),cE=((eE=function e(){v(this,e),this.align="start",this.id="mat-hint-"+uE++}).\u0275fac=function(e){return new(e||eE)},eE.\u0275dir=bt({type:eE,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Ma("id",t.id)("align",null),ps("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[Us([{provide:lE,useExisting:eE}])]}),eE),hE=((Jx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Jx)},Jx.\u0275dir=bt({type:Jx,selectors:[["mat-label"]]}),Jx),fE=(($x=function e(){v(this,e)}).\u0275fac=function(e){return new(e||$x)},$x.\u0275dir=bt({type:$x,selectors:[["mat-placeholder"]]}),$x),dE=new Le("MatPrefix"),pE=new Le("MatSuffix"),vE=0,mE=fk(function e(t){v(this,e),this._elementRef=t},"primary"),gE=new Le("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yE=new Le("MatFormField"),_E=((nE=function(e){u(i,e);var n=c(i);function i(e,t,r,o,a,s,u,l){var c;return v(this,i),(c=n.call(this,e))._elementRef=e,c._changeDetectorRef=t,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new j,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+vE++,c._labelId="mat-form-field-label-"+vE++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return g(i,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Vf(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ow(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(ow(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ow(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xk(this._label.nativeElement,"transitionend").pipe(Mf(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,t(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var n=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,i=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push.apply(e,t(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;ft.height||e.scrollWidth>t.width}}]),e}(),SE=function(){function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),xE=function(){function e(){v(this,e)}return g(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function EE(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function TE(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var AE,OE,IE,RE,DE,PE=function(){function e(t,n,i,r){v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;EE(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ME=((AE=function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new xE},this.close=function(e){return new SE(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new CE(o._viewportRuler,o._document)},this.reposition=function(e){return new PE(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||AE)(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},AE.\u0275prov=Ee({factory:function(){return new AE(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},token:AE,providedIn:"root"}),AE),LE=function e(t){if(v(this,e),this.scrollStrategy=new xE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||RE)(Lt(mc))},RE.\u0275prov=Ee({factory:function(){return new RE(Lt(mc))},token:RE,providedIn:"root"}),RE),jE=((IE=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||IE)(Lt(mc))},IE.\u0275prov=Ee({factory:function(){return new IE(Lt(mc))},token:IE,providedIn:"root"}),IE),BE=((OE=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||OE)(Lt(mc),Lt(ig))},OE.\u0275prov=Ee({factory:function(){return new OE(Lt(mc),Lt(ig))},token:OE,providedIn:"root"}),OE),zE=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),HE=((DE=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||zE)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=g,d=m)}}catch(y){v.e(y)}finally{v.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&YE(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+t.height-n.height,c=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,u,l),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:t.width*t.height===f,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=GE(this._overlayRef.getConfig().minHeight),a=GE(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return i=t.width<=o.width?l||-a:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=kg(n.height),i.top=kg(n.top),i.bottom=kg(n.bottom),i.width=kg(n.width),i.left=kg(n.left),i.right=kg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=kg(r)),o&&(i.maxWidth=kg(o))}this._lastBoundingBoxSize=n,YE(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){YE(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){YE(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();YE(n,this._getExactOverlayY(t,e,a)),YE(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=kg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=kg(o.maxWidth):r&&(n.maxWidth="")),YE(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=kg(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=kg(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:TE(e,n),isOriginOutsideView:EE(e,n),isOverlayClipped:TE(t,n),isOverlayOutsideView:EE(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),tT=((ZE=function(){function e(t,n,i,r){v(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return g(e,[{key:"global",value:function(){return new eT}},{key:"connectedTo",value:function(e,t,n){return new JE(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new WE(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||ZE)(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},ZE.\u0275prov=Ee({factory:function(){return new ZE(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},token:ZE,providedIn:"root"}),ZE),nT=0,iT=((KE=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return g(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new LE(e);return r.direction=r.direction||this._directionality.value,new UE(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+nT++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(ic)),new _y(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||KE)(Lt(ME),Lt(HE),Lt(Ys),Lt(tT),Lt(jE),Lt(ba),Lt(Vl),Lt(mc),Lt(xy),Lt(Fc),Lt(BE))},KE.\u0275prov=Ee({token:KE,factory:KE.\u0275fac}),KE),rT=[{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"}],oT=new Le("cdk-connected-overlay-scroll-strategy"),aT=((XE=function e(t){v(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||XE)(Va(Qs))},XE.\u0275dir=bt({type:XE,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),XE),sT=((QE=function(){function e(t,n,i,r,o){v(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=x.EMPTY,this._attachSubscription=x.EMPTY,this._detachSubscription=x.EMPTY,this._positionSubscription=x.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 my(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return g(e,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=rT);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||lg(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new LE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new kE(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=yg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=yg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=yg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=yg(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||QE)(Va(iT),Va(xu),Va(Ru),Va(oT),Va(xy,8))},QE.\u0275dir=bt({type:QE,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:[Ai]}),QE),uT={provide:oT,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},lT=(($E=function e(){v(this,e)}).\u0275mod=yt({type:$E}),$E.\u0275inj=Te({factory:function(e){return new(e||$E)},providers:[iT,uT],imports:[[Ey,Cy,Mw],Mw]}),$E),cT=["trigger"],hT=["panel"];function fT(e,t){if(1&e&&(Ha(0,"span",8),xs(1),Ua()),2&e){var n=ns();uo(1),Es(n.placeholder||"\xa0")}}function dT(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.triggerValue||"\xa0")}}function pT(e,t){1&e&&os(0,0,["*ngSwitchCase","true"])}function vT(e,t){1&e&&(Ha(0,"span",9),Fa(1,dT,2,1,"span",10),Fa(2,pT,1,0,"ng-content",11),Ua()),2&e&&(Ba("ngSwitch",!!ns().customTrigger),uo(2),Ba("ngSwitchCase",!0))}function mT(e,t){if(1&e){var n=Ka();Ha(0,"div",12),Ha(1,"div",13,14),Xa("@transformPanel.done",function(e){return cn(n),ns()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return cn(n),ns()._handleKeydown(e)}),os(3,1),Ua(),Ua()}if(2&e){var i=ns();Ba("@transformPanelWrap",void 0),uo(1),"mat-select-panel ",r=i._getPanelTheme(),"",function(e,t,n,i){var r=ln(),o=bn(2);r.firstUpdatePass&&ys(r,null,o,!0);var a=un();if(n!==so&&Pa(a,o,n)){var s=r.data[Mn()];if(Ss(s,!0)&&!gs(r,o)){var u=s.classesWithoutHost;null!==u&&(n=Ce(u,n||"")),za(r,s,a,n,!0)}else!function(e,t,n,i,r,o,a,s){r===so&&(r=as);for(var u=0,l=0,c=0 void",Ny("@transformPanel",[Fy()],{optional:!0}))]),transformPanel:Oy("transformPanel",[Py("void",Dy({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Py("showing",Dy({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Py("showing-multiple",Dy({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ly("void => *",Iy("120ms cubic-bezier(0, 0, 0.2, 1)")),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))])},xT=0,ET=new Le("mat-select-scroll-strategy"),TT=new Le("MAT_SELECT_CONFIG"),AT={provide:ET,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},OT=function e(t,n){v(this,e),this.source=t,this.value=n},IT=dk(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){u(i,e);var n=c(i);function i(){var e;v(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=yg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=yg(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=_g(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(IT)).\u0275fac=function(e){return new(e||yT)(Va(Dw),Va(_u),Va(Vl),Va(xk),Va(Qs),Va(xy,8),Va(wx,8),Va(Ox,8),Va(yE,8),Va(DS,10),ja("tabindex"),Va(ET),Va(Qg),Va(TT,8))},yT.\u0275dir=bt({type:yT,viewQuery:function(e,t){var n;1&e&&(ul(cT,!0),ul(hT,!0),ul(sT,!0)),2&e&&(al(n=dl())&&(t.trigger=n.first),al(n=dl())&&(t.panel=n.first),al(n=dl())&&(t.overlayDir=n.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:[wa,Ai]}),yT),PT=((gT=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return g(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(ow(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;s(p(n.prototype),"_canOpen",this).call(this)&&(s(p(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=Kk(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),s(p(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new OT(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=Kk(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(DT)).\u0275fac=function(e){return MT(e||gT)},gT.\u0275cmp=pt({type:gT,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,RT,!0),cl(n,Gk,!0),cl(n,Hk,!0)),2&e&&(al(i=dl())&&(t.customTrigger=i.first),al(i=dl())&&(t.options=i),al(i=dl())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xa("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ma("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),ps("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Us([{provide:sE,useExisting:gT},{provide:Wk,useExisting:gT}]),wa],ngContentSelectors:CT,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(rs(wT),Ha(0,"div",0,1),Xa("click",function(){return t.toggle()}),Ha(3,"div",2),Fa(4,fT,2,1,"span",3),Fa(5,vT,3,2,"span",4),Ua(),Ha(6,"div",5),qa(7,"div",6),Ua(),Ua(),Fa(8,mT,4,14,"ng-template",7),Xa("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Na(1);Ma("aria-owns",t.panelOpen?t.id+"-panel":null),uo(3),Ba("ngSwitch",t.empty),Ma("id",t._valueId),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1),uo(3),Ba("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[aT,sh,uh,sT,lh,Gc],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}\n"],encapsulation:2,data:{animation:[ST.transformPanelWrap,ST.transformPanel]},changeDetection:0}),gT),MT=pr(PT),LT=((_T=function e(){v(this,e)}).\u0275mod=yt({type:_T}),_T.\u0275inj=Te({factory:function(e){return new(e||_T)},providers:[AT],imports:[[ph,lT,Qk,ck],Pw,bE,Qk,ck]}),_T),FT=function(){function e(t){v(this,e),this.total=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new NT(e,this.total))}}]),e}(),NT=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(A),VT=new Set,jT=((kT=function(){function e(t){v(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BT}return g(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!VT.has(e))try{bT||((bT=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(bT)),bT.sheet&&(bT.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),VT.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||kT)(Lt(ig))},kT.\u0275prov=Ee({factory:function(){return new kT(Lt(ig))},token:kT,providedIn:"root"}),kT);function BT(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var zT,HT=((zT=function(){function e(t,n){v(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new j}return g(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return UT(bg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=lf(UT(bg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Nf(n.pipe(Mf(1)),n.pipe(function(e){return e.lift(new FT(1))},pg(0)))).pipe(Q(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new P(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),Q(function(t){var n=t.matches;return{query:e,matches:n}}),ow(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||zT)(Lt(jT),Lt(Vl))},zT.\u0275prov=Ee({factory:function(){return new zT(Lt(jT),Lt(Vl))},token:zT,providedIn:"root"}),zT);function UT(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var qT,WT,YT,GT,KT,ZT,QT,XT,$T={tooltipState:Oy("state",[Py("initial, void, hidden",Dy({opacity:0,transform:"scale(0)"})),Py("visible",Dy({transform:"scale(1)"})),Ly("* => visible",Iy("200ms cubic-bezier(0, 0, 0.2, 1)",My([Dy({opacity:0,transform:"scale(0)",offset:0}),Dy({opacity:.5,transform:"scale(0.99)",offset:.5}),Dy({opacity:1,transform:"scale(1)",offset:1})]))),Ly("* => hidden",Iy("100ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:0})))])},JT=sg({passive:!0}),eA=new Le("mat-tooltip-scroll-strategy"),tA={provide:eA,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},nA=new Le("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iA=((YT=function(){function t(e,n,i,r,o,a,s,u,l,c,h){var f=this;v(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!lg(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return g(t,[{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ow(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(n){var i=e(n,2),r=i[0],o=i[1];t.removeEventListener(r,o,JT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new vy(rA,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(ow(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Mf(1),ow(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(t){var n=this;t.forEach(function(t){var i=e(t,2),r=i[0],o=i[1];n._elementRef.nativeElement.addEventListener(r,o,JT)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(e){return new(e||YT)(Va(iT),Va(Qs),Va(Rw),Va(Ru),Va(Vl),Va(ig),Va(Ng),Va(ty),Va(eA),Va(xy,8),Va(nA,8))},YT.\u0275dir=bt({type:YT,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),YT),rA=((WT=function(){function e(t,n){v(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return g(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||WT)(Va(_u),Va(HT))},WT.\u0275cmp=pt({type:WT,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleBodyInteraction()},!1,kr),2&e&&ds("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Xa("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),function(e,t){var n,i=ln();i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if("async"===i.name)return i}throw new xi("302","The pipe 'async' could not be found!")}(0,i.pipeRegistry),i.data[21]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(21,n.onDestroy)):n=i.data[21];var r=n.factory||(n.factory=Si(n.type)),o=Tt(Va);try{var a=Zi(!1),s=r();Zi(a),function(e,t,n,i){21>=e.data.length&&(e.data[21]=null,e.blueprint[21]=null),t[21]=i}(i,un(),0,s)}finally{Tt(o)}}(),xs(2),Ua()),2&e){var n=null;ps("mat-tooltip-handset",null==(i=t._isHandset,r=un(),o=Xt(r,21),n=function(e,t){return Oa.isWrapped(t)&&(t=Oa.unwrap(t),e[an.lFrame.bindingIndex]=so),t}(r,function(e,t){return e[1].data[21].pure}(r)?Gu(r,yn(),5,o.transform,i,o):o.transform(i)))?null:n.matches),Ba("ngClass",t.tooltipClass)("@state",t._visibility),uo(2),Es(t.message)}var i,r,o},directives:[Gc],pipes:[dh],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:[$T.tooltipState]},changeDetection:0}),WT),oA=((qT=function e(){v(this,e)}).\u0275mod=yt({type:qT}),qT.\u0275inj=Te({factory:function(e){return new(e||qT)},providers:[tA],imports:[[dy,ph,lT,ck],ck,Pw]}),qT),aA=sg({passive:!0}),sA=((KT=function(){function e(t,n){v(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return g(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return df;var n=wg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new j,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,aA),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,aA)}}),r}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||KT)(Lt(ig),Lt(Vl))},KT.\u0275prov=Ee({factory:function(){return new KT(Lt(ig),Lt(Vl))},token:KT,providedIn:"root"}),KT),uA=((GT=function e(){v(this,e)}).\u0275mod=yt({type:GT}),GT.\u0275inj=Te({factory:function(e){return new(e||GT)},imports:[[rg]]}),GT),lA=new Le("MAT_INPUT_VALUE_ACCESSOR"),cA=["button","checkbox","file","hidden","image","radio","range","reset","submit"],hA=0,fA=pk(function e(t,n,i,r){v(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),dA=((XT=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u,l,c,h){var f;v(this,n),(f=t.call(this,s,o,a,r))._elementRef=e,f._platform=i,f.ngControl=r,f._autofillMonitor=l,f._formField=h,f._uid="mat-input-"+hA++,f.focused=!1,f.stateChanges=new j,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ag().has(e)});var d=f._elementRef.nativeElement,p=d.nodeName.toLowerCase();return f._inputValueAccessor=u||d,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&c.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===p,f._isTextarea="textarea"===p,f._isNativeSelect&&(f.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),f}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){cA.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=yg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ag().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=yg(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(fA)).\u0275fac=function(e){return new(e||XT)(Va(Qs),Va(ig),Va(DS,10),Va(wx,8),Va(Ox,8),Va(xk),Va(lA,10),Va(sA),Va(Vl),Va(yE,8))},XT.\u0275dir=bt({type:XT,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Xa("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(As("disabled",t.disabled)("required",t.required),Ma("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),ps("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Us([{provide:sE,useExisting:XT}]),wa,Ai]}),XT),pA=((QT=function e(){v(this,e)}).\u0275mod=yt({type:QT}),QT.\u0275inj=Te({factory:function(e){return new(e||QT)},providers:[xk],imports:[[uA,bE,ck],uA,bE]}),QT),vA=((ZT=function(){function e(){v(this,e),this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Ku,this.fileDataAdded=new Ku,this.fileUploadFinished=new Ku,this.fileProcess=new Ku,this.subscriptions=[]}return g(e,[{key:"ngOnInit",value:function(){var e=localStorage.getItem("fileType");e&&(this.fileType=e);var t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):WC[this.fileType],this.acceptedFileTypes=Object.keys(WC)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"fileSelected",value:function(e){var t=this;if(e){this.selectedFile=e,this.selectedFileName=e.name;var n=this.selectedFileName.split("."),i=n[n.length-1];this.acceptedFileTypes.indexOf(i)>-1&&(this.fileType=i,this.updateType());var r=new FileReader;r.onload=function(){t.selectedFileContent=r.result},r.readAsText(e)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}},{key:"updateType",value:function(){localStorage.setItem("fileType",this.fileType);var e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):WC[this.fileType]}},{key:"updateOptions",value:function(){var e=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",e)}},{key:"processFile",value:function(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}]),e}()).\u0275fac=function(e){return new(e||ZT)},ZT.\u0275cmp=pt({type:ZT,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Ha(1,"div",1),xs(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Ha(3,"a",2),xs(4,"these instructions"),Ua(),xs(5," to export it as Text or CSV. "),Ua(),Ha(6,"div"),Ha(7,"button",3),Xa("selectedFile",function(e){return t.fileSelected(e)}),xs(8,"Browse"),Ua(),Ha(9,"span"),xs(10),Ua(),Ua(),Ha(11,"form",4,5),Ha(13,"div",6),Ha(14,"div",7),Ha(15,"mat-form-field"),Ha(16,"mat-label"),xs(17,"File type"),Ua(),Ha(18,"mat-select",8),Xa("ngModelChange",function(e){return t.fileType=e})("selectionChange",function(){return t.updateType()}),Ha(19,"mat-option",9),xs(20," CSV "),Ua(),Ha(21,"mat-option",10),xs(22," Text "),Ua(),Ha(23,"mat-option",11),xs(24," SMI "),Ua(),Ua(),Ua(),Ua(),Ha(25,"div",12),Ha(26,"mat-form-field"),Ha(27,"mat-label"),xs(28,"Column separator"),Ua(),Ha(29,"mat-select",13),Xa("ngModelChange",function(e){return t.options.columnSeparator=e})("selectionChange",function(){return t.updateOptions()}),Ha(30,"mat-option",14),xs(31," Comma (,) "),Ua(),Ha(32,"mat-option",14),xs(33," Tab (\\t) "),Ua(),Ua(),Ua(),Ua(),Ha(34,"div",15),Ha(35,"mat-form-field"),Ha(36,"mat-label"),xs(37,"Has header row"),Ua(),Ha(38,"mat-select",16),Xa("ngModelChange",function(e){return t.options.hasHeaderRow=e})("selectionChange",function(){return t.updateOptions()}),Ha(39,"mat-option",14),xs(40," Yes "),Ua(),Ha(41,"mat-option",14),xs(42," No "),Ua(),Ua(),Ua(),Ua(),Ha(43,"div",17),Ha(44,"mat-form-field"),Ha(45,"input",18),Xa("ngModelChange",function(e){return t.options.indexIdentifierColumn=e})("change",function(){return t.updateOptions()}),Ua(),Ha(46,"mat-hint"),xs(47,"Zero indicates that the SMILES are in the first column"),Ua(),Ua(),Ua(),Ua(),Ha(48,"div",19),qa(49,"span",20),Ha(50,"button",21),Xa("click",function(){return t.processFile()}),xs(51," Process file "),Ua(),Ua(),Ua(),Ua()),2&e){var n=Na(12);uo(10),Ts(" \xa0 ",t.selectedFileName?"Selected file: "+t.selectedFileName:"No file selected"," "),uo(8),Ba("ngModel",t.fileType),uo(11),Ba("ngModel",t.options.columnSeparator),uo(1),Ba("value",","),uo(2),Ba("value","\t"),uo(6),Ba("ngModel",t.options.hasHeaderRow),uo(1),Ba("value",!0),uo(2),Ba("value",!1),uo(4),Ba("ngModel",t.options.indexIdentifierColumn),uo(5),Ba("disabled",n.invalid||!t.selectedFileName||!t.selectedFileContent)}},directives:[zC,YC,Ex,LS,wx,_E,hE,PT,Rx,MS,xx,Gk,iA,NS,dA,nS,cE],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),ZT),mA=["*"];function gA(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function yA(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function _A(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var bA,kA=function e(t,n,i){v(this,e),this.url=t,this.svgText=n,this.options=i},wA=((bA=function(){function e(t,n,i,r){v(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return g(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new kA(n,null,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(bi.HTML,n);if(!r)throw _A(n);return this._addSvgIconConfig(e,t,new kA("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new kA(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(bi.HTML,t);if(!i)throw _A(t);return this._addSvgIconSetConfig(e,new kA("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(bi.RESOURCE_URL,e);if(!n)throw yA(e);var i=this._cachedIconsByUrl.get(n);return i?af(CA(i)):this._loadSvgIconFromConfig(new kA(e,null)).pipe(Yf(function(e){return t._cachedIconsByUrl.set(n,e)}),Q(function(e){return CA(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=SA(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):_w(gA(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?af(CA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Q(function(e){return CA(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?af(i):GC(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(zf(function(t){var i=n._sanitizer.sanitize(bi.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),af(null)}))})).pipe(Q(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw gA(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}),Q(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?af(null):this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i enter",Iy("150ms cubic-bezier(0, 0, 0.2, 1)",Dy({transform:"none",opacity:1}))),Ly("* => void, * => exit",Iy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Dy({opacity:0})))])},jA=((FA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new Ku,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return g(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(yy)).\u0275fac=function(e){return new(e||FA)(Va(Qs),Va(Yg),Va(_u),Va(mc,8),Va(NA),Va(ty))},FA.\u0275dir=bt({type:FA,viewQuery:function(e,t){var n;1&e&&sl(by,!0),2&e&&al(n=dl())&&(t._portalOutlet=n.first)},features:[wa]}),FA),BA=((LA=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._state="enter",e}return g(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(jA)).\u0275fac=function(e){return zA(e||LA)},LA.\u0275cmp=pt({type:LA,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&$a("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(As("id",t._id),Ma("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Os("@dialogContainer",t._state))},features:[wa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fa(0,MA,0,0,"ng-template",0)},directives:[by],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VA.dialogContainer]}}),LA),zA=pr(BA),HA=0,UA=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+HA++;v(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,n._id=r,n._animationStateChanged.pipe(gf(function(e){return"opened"===e.state}),Mf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(gf(function(e){return"closed"===e.state}),Mf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(gf(function(e){return 27===e.keyCode&&!i.disableClose&&!lg(e)})).subscribe(function(e){e.preventDefault(),qA(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():qA(i,"mouse")})}return g(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(gf(function(e){return"closing"===e.state}),Mf(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function qA(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var WA,YA,GA,KA,ZA,QA=new Le("MatDialogData"),XA=new Le("mat-dialog-default-options"),$A=new Le("mat-dialog-scroll-strategy"),JA={provide:$A,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},eO=((ZA=function(){function e(t,n,i,r,o,a,s,u,l){var c=this;v(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=vf(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return g(e,[{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new NA)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new LE({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=ba.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:NA,useValue:t}]}),i=new vy(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof xu)t.attachTemplatePortal(new my(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new vy(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(xy,null)||r.push({provide:xy,useValue:{value:e.direction,change:af()}}),ba.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||ZA)(Va(iT),Va(ba),Va(void 0),Va(void 0),Va(HE),Va(void 0),Va(Ge),Va(Ge),Va(Le))},ZA.\u0275dir=bt({type:ZA}),ZA),tO=((KA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,o,s,u,a,UA,BA,QA)}return n}(eO)).\u0275fac=function(e){return new(e||KA)(Lt(iT),Lt(ba),Lt(Fc,8),Lt(XA,8),Lt($A),Lt(KA,12),Lt(HE))},KA.\u0275prov=Ee({token:KA,factory:KA.\u0275fac}),KA),nO=((GA=function e(){v(this,e)}).\u0275mod=yt({type:GA}),GA.\u0275inj=Te({factory:function(e){return new(e||GA)},providers:[tO,JA],imports:[[lT,Cy,ck],ck]}),GA),iO=((YA=function(){function e(t,n){v(this,e),this.el=t,this.http=n,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}return g(e,[{key:"ngAfterViewInit",value:function(){this.isAfterViewInit=!0,this.setImageSrc()}},{key:"setImageSrc",value:function(){if(this.isAfterViewInit){var e="/adme/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=e,this.imageElement.alt="structure image"}}},{key:"version",set:function(e){e!==this.privateVersion&&(this.privateVersion=e,this.setImageSrc())}},{key:"entityId",set:function(e){e!==this.privateEntityId&&(this.privateEntityId=e,this.setImageSrc())}},{key:"size",set:function(e){e!==this.privateSize&&(this.privateSize=e,this.setImageSrc())}},{key:"stereo",set:function(e){e!==this.privateStereo&&(this.privateStereo=e,this.setImageSrc())}},{key:"atomMaps",set:function(e){e!==this.privateAtomMaps&&(this.privateAtomMaps=e,this.setImageSrc())}}]),e}()).\u0275fac=function(e){return new(e||YA)(Va(Qs),Va(Rm))},YA.\u0275dir=bt({type:YA,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),YA),rO=((WA=function(){function e(t){v(this,e),this.data=t,this.smiles=t.smiles}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||WA)(Va(QA))},WA.\u0275cmp=pt({type:WA,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(e,t){1&e&&qa(0,"img",0),2&e&&Ba("entityId",t.smiles)},directives:[iO],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),WA);function oO(e,t){if(1&e&&(Ha(0,"mat-option",19),xs(1),Ua()),2&e){var n=t.$implicit;Ba("value",n),uo(1),Ts(" ",n," ")}}function aO(e,t){if(1&e){var n=Ka();Ha(0,"mat-form-field",16),Ha(1,"mat-select",17),Xa("selectionChange",function(e){return cn(n),ns(2)._changePageSize(e.value)}),Fa(2,oO,2,2,"mat-option",18),Ua(),Ua()}if(2&e){var i=ns(2);Ba("appearance",i._formFieldAppearance)("color",i.color),uo(1),Ba("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),uo(1),Ba("ngForOf",i._displayedPageSizeOptions)}}function sO(e,t){if(1&e&&(Ha(0,"div",20),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.pageSize)}}function uO(e,t){if(1&e&&(Ha(0,"div",12),Ha(1,"div",13),xs(2),Ua(),Fa(3,aO,3,6,"mat-form-field",14),Fa(4,sO,2,1,"div",15),Ua()),2&e){var n=ns();uo(2),Ts(" ",n._intl.itemsPerPageLabel," "),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length>1),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length<=1)}}function lO(e,t){if(1&e){var n=Ka();Ha(0,"button",21),Xa("click",function(){return cn(n),ns().firstPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",22),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ma("aria-label",i._intl.firstPageLabel)}}function cO(e,t){if(1&e){var n=Ka();Nn(),Vn(),Ha(0,"button",23),Xa("click",function(){return cn(n),ns().lastPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",24),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ma("aria-label",i._intl.lastPageLabel)}}var hO,fO,dO,pO,vO=((hO=function e(){v(this,e),this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||hO)},hO.\u0275prov=Ee({factory:function(){return new hO},token:hO,providedIn:"root"}),hO),mO={provide:vO,deps:[[new _e,new ke,vO]],useFactory:function(e){return e||new vO}},gO=new Le("MAT_PAGINATOR_DEFAULT_OPTIONS"),yO=hk(vk(function e(){v(this,e)})),_O=((pO=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;if(v(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Ku,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return h(o)}return g(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];v(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._cachedCellWidths=[]}return g(e,[{key:"clearStickyPositioning",value:function(e,t){var n,r=this,o=[],a=i(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(var u=0;u3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],s=a.children.length,u=this._getCellWidths(a,o),l=this._getStickyStartColumnPositions(u,t),c=this._getStickyEndColumnPositions(u,n);this._scheduleStyleChanges(function(){var o,a="rtl"===r.direction,u=a?"right":"left",h=a?"left":"right",f=i(e);try{for(f.s();!(o=f.n()).done;)for(var d=o.value,p=0;p1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),vI=((qO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||qO)(Va(Ru),Va(Qs))},qO.\u0275dir=bt({type:qO,selectors:[["","rowOutlet",""]]}),qO),mI=((UO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||UO)(Va(Ru),Va(Qs))},UO.\u0275dir=bt({type:UO,selectors:[["","headerRowOutlet",""]]}),UO),gI=((HO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||HO)(Va(Ru),Va(Qs))},HO.\u0275dir=bt({type:HO,selectors:[["","footerRowOutlet",""]]}),HO),yI=((zO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||zO)(Va(Ru),Va(Qs))},zO.\u0275dir=bt({type:zO,selectors:[["","noDataRowOutlet",""]]}),zO),_I=((BO=function(){function e(t,n,i,r,o,a,s,u,l,c){v(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new j,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 sf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(ow(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,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()}},{key:"ngOnDestroy",value:function(){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(),Cw(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,r,{$implicit:o.data})}else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(t(n),t(i),t(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,r=i(this._getCellTemplates(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;lI.mostRecentCellOutlet&&lI.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t)}}catch(a){r.e(a)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t=r.length&&(o=0),r[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(cR)).\u0275fac=function(e){return fR(e||oR)},oR.\u0275dir=bt({type:oR,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[wa,Ai]}),oR),fR=pr(hR),dR=sk.ENTERING+" "+ak.STANDARD_CURVE,pR={indicator:Oy("indicator",[Py("active-asc, asc",Dy({transform:"translateY(0px)"})),Py("active-desc, desc",Dy({transform:"translateY(10px)"})),Ly("active-asc <=> active-desc",Iy(dR))]),leftPointer:Oy("leftPointer",[Py("active-asc, asc",Dy({transform:"rotate(-45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),rightPointer:Oy("rightPointer",[Py("active-asc, asc",Dy({transform:"rotate(45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(-45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),arrowOpacity:Oy("arrowOpacity",[Py("desc-to-active, asc-to-active, active",Dy({opacity:1})),Py("desc-to-hint, asc-to-hint, hint",Dy({opacity:.54})),Py("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Dy({opacity:0})),Ly("* => asc, * => desc, * => active, * => hint, * => void",Iy("0ms")),Ly("* <=> *",Iy(dR))]),arrowPosition:Oy("arrowPosition",[Ly("* => desc-to-hint, * => desc-to-active",Iy(dR,My([Dy({transform:"translateY(-25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-desc, * => active-to-desc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(25%)"})]))),Ly("* => asc-to-hint, * => asc-to-active",Iy(dR,My([Dy({transform:"translateY(25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-asc, * => active-to-asc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(-25%)"})]))),Py("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Dy({transform:"translateY(0)"})),Py("hint-to-desc, active-to-desc, desc",Dy({transform:"translateY(-25%)"})),Py("hint-to-asc, active-to-asc, asc",Dy({transform:"translateY(25%)"}))]),allowChildren:Oy("allowChildren",[Ly("* <=> *",[Ny("@*",Fy(),{optional:!0})])])},vR=((aR=function e(){v(this,e),this.changes=new j,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||aR)},aR.\u0275prov=Ee({factory:function(){return new aR},token:aR,providedIn:"root"}),aR),mR={provide:vR,deps:[[new _e,new ke,vR]],useFactory:function(e){return e||new vR}},gR=hk(function e(){v(this,e)}),yR=((uR=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._intl=e,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._rerenderSubscription=se(r.sortChange,r._stateChanges,e.changes).subscribe(function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),i.markForCheck()}),u}return g(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){return e._setIndicatorHintVisible(!!t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(gR)).\u0275fac=function(e){return new(e||uR)(Va(vR),Va(_u),Va(hR,8),Va("MAT_SORT_HEADER_COLUMN_DEF",8),Va(ty),Va(Qs))},uR.\u0275cmp=pt({type:uR,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ma("aria-sort",t._getAriaSortAttribute()),ps("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[wa],attrs:iR,ngContentSelectors:lR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0),Ha(1,"div",1),os(2),Ua(),Fa(3,rR,6,6,"div",2),Ua()),2&e&&(ps("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ma("tabindex",t._isDisabled()?null:0),uo(3),Ba("ngIf",t._renderArrow()))},directives:[Xc],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pR.indicator,pR.leftPointer,pR.rightPointer,pR.arrowOpacity,pR.arrowPosition,pR.allowChildren]},changeDetection:0}),uR),_R=((sR=function e(){v(this,e)}).\u0275mod=yt({type:sR}),sR.\u0275inj=Te({factory:function(e){return new(e||sR)},providers:[mR],imports:[[ph,ck]]}),sR);function bR(e,t){if(1&e&&(Ha(0,"li"),xs(1),Ua()),2&e){var n=t.$implicit;uo(1),Es(n)}}function kR(e,t){if(1&e&&(Ha(0,"ul"),Fa(1,bR,2,1,"li",8),Ua()),2&e){var n=ns(2);uo(1),Ba("ngForOf",n.errorMessages)}}function wR(e,t){if(1&e){var n=Ka();Ha(0,"div",2),Ha(1,"div",3),Ha(2,"div"),xs(3),Ua(),Fa(4,kR,2,1,"ul",4),Ua(),Ha(5,"div",5),Ha(6,"button",6),Xa("click",function(){return cn(n),ns().clearErrorMessage()}),qa(7,"mat-icon",7),Ua(),Ua(),Ua()}if(2&e){var i=ns();uo(3),Ts(" ",i.errorMessage," "),uo(1),Ba("ngIf",i.errorMessages&&i.errorMessages.length)}}function CR(e,t){if(1&e&&(Ha(0,"mat-header-cell",23),Ha(1,"span",24),xs(2),Ua(),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("matTooltip",i.displayedColumnsDict[n].description),uo(1),Ts(" ",i.displayedColumnsDict[n].isSmilesColumn?"mol":n," ")}}function SR(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns().$implicit,i=ns().$implicit;uo(1),Es("0 (0.0)"==n[i]?"0 (0.01)":n[i])}}function xR(e,t){if(1&e){var n=Ka();Ha(0,"a",26),Xa("click",function(){cn(n);var e=ns().$implicit,t=ns().$implicit;return ns(2).openStructureImageDialog(e[t])}),qa(1,"img",27),Ua()}if(2&e){var i=ns().$implicit,r=ns().$implicit;Ba("matTooltip",i[r]),uo(1),Ba("entityId",i[r])}}function ER(e,t){if(1&e&&(Ha(0,"mat-cell"),Fa(1,SR,2,1,"span",4),Fa(2,xR,2,2,"a",25),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("ngIf",!i.displayedColumnsDict[n].isSmilesColumn),uo(1),Ba("ngIf",i.displayedColumnsDict[n].isSmilesColumn)}}function TR(e,t){1&e&&(Wa(0,20),Fa(1,CR,3,2,"mat-header-cell",21),Fa(2,ER,3,2,"mat-cell",22),Ya()),2&e&&Ba("matColumnDef",t.$implicit)}function AR(e,t){1&e&&qa(0,"mat-header-row")}function OR(e,t){1&e&&qa(0,"mat-row",28)}var IR=function(){return[5,10,25,100]};function RR(e,t){if(1&e){var n=Ka();Ha(0,"div",9),Ha(1,"h2"),xs(2,"Model predictions"),Ua(),Ha(3,"div",10),Ha(4,"button",11),Xa("click",function(){return cn(n),ns().downloadCSV()}),xs(5,"Download"),Ua(),qa(6,"div",12),Ha(7,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua(),Ha(8,"div",14),Ha(9,"mat-table",15,16),Xa("matSortChange",function(e){return cn(n),ns().sortData(e)}),Fa(11,TR,3,1,"ng-container",17),Fa(12,AR,1,0,"mat-header-row",18),Fa(13,OR,1,0,"mat-row",19),Ua(),Ua(),Ha(14,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua()}if(2&e){var i=ns();uo(7),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(12,IR)),uo(2),Ba("dataSource",i.paged),uo(2),Ba("ngForOf",i.displayedColumns),uo(1),Ba("matHeaderRowDef",i.displayedColumns),uo(1),Ba("matRowDefColumns",i.displayedColumns),uo(1),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(13,IR))}}var DR,PR=((DR=function(){function e(t,n){v(this,e),this.dialog=t,this.gaService=n,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Ku}return g(e,[{key:"ngOnInit",value:function(){}},{key:"pageChange",value:function(e){this.clearErrorMessage(),null!=e?(e.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=e.pageIndex,e.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=e.pageSize):this.page=0,this.paged=[];for(var t=this.page*this.pageSize,n=t;n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Ua(),Ua(),Ha(60,"div",4),Ha(61,"div",5),xs(62,"Data for Download:"),Ua(),Ha(63,"div",6),xs(64," A subset of the dataset used for developing these models is available for download. Click "),Ha(65,"a",12),xs(66,"here"),Ua(),xs(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Ha(68,"a",13),xs(69,"AID 1508591"),Ua(),xs(70,". "),Ua(),Ua(),Ua(),qa(71,"br"),Ha(72,"h3"),xs(73," RLM Assay Protocol "),Ua(),Ha(74,"p",14),xs(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Ha(76,"sub"),xs(77,"1/2"),Ua(),xs(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Ua(),Ha(79,"h3"),xs(80," References: "),Ua(),Ha(81,"ol"),Ha(82,"li"),xs(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Ua(),Ha(84,"li"),xs(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Ua(),Ua(),Ua()),2&e){var n=ns();uo(65),Ba("href",n.dataDownloadHref,ki)}}function WR(e,t){1&e&&(Ha(0,"div",2),Ha(1,"h2"),xs(2," CYP450 Models "),Ua(),Ha(3,"h3"),xs(4," High-throughput metabolic stability assays: "),Ua(),Ha(5,"p"),xs(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Ha(7,"sup"),xs(8,"1"),Ua(),xs(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Ha(10,"sub"),xs(11,"1/2"),Ua(),xs(12,") determinations were performed as previously described"),Ha(13,"sup"),xs(14,"1"),Ua(),xs(15,". "),Ua(),Ha(16,"div",15),Ha(17,"div",16),xs(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Ua(),Ha(19,"div",17),Ha(20,"table",18),Ha(21,"thead"),Ha(22,"tr",19),Ha(23,"th",20),xs(24," Matrix "),Ua(),Ha(25,"th",20),xs(26," Final Protein Concentration [mg/mL] "),Ua(),Ha(27,"th",20),xs(28," Total CYP content [nM] "),Ua(),Ha(29,"th",20),xs(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Ua(),Ha(31,"th",20),xs(32," Cytochrome b"),Ha(33,"sub"),xs(34,"5"),Ua(),xs(35," content [pmol/mg protein] "),Ua(),Ha(36,"th",20),xs(37," High clearance controls "),Ua(),Ha(38,"th",20),xs(39," Moderate clearance controls "),Ua(),Ha(40,"th",20),xs(41," Low clearance controls "),Ua(),Ua(),Ua(),Ha(42,"tbody"),Ha(43,"tr",21),Ha(44,"td",22),xs(45," CYP3A4 "),Ua(),Ha(46,"td",23),xs(47," ~0.2 "),Ua(),Ha(48,"td",23),xs(49," 30 "),Ua(),Ha(50,"td",23),xs(51," 2900 "),Ua(),Ha(52,"td",23),xs(53," 1090 "),Ua(),Ha(54,"td",23),xs(55," Buspirone, Loperamide "),Ua(),Ha(56,"td",23),xs(57," Ketoconazole "),Ua(),Ha(58,"td",23),xs(59," Antipyrine, Carbamazepine "),Ua(),Ua(),Ha(60,"tr",21),Ha(61,"td",22),xs(62," CYP2C9 "),Ua(),Ha(63,"td",23),xs(64," ~0.12 "),Ua(),Ha(65,"td",23),xs(66," 45 "),Ua(),Ha(67,"td",23),xs(68," 985 "),Ua(),Ha(69,"td",23),xs(70," 710 "),Ua(),Ha(71,"td",23),xs(72," Glyburide, Glimepiride "),Ua(),Ha(73,"td",23),xs(74," Tamoxifen "),Ua(),Ha(75,"td",23),xs(76," Antipyrine, Meloxicam "),Ua(),Ua(),Ha(77,"tr",21),Ha(78,"td",22),xs(79," CYP2D6 "),Ua(),Ha(80,"td",23),xs(81," ~0.38 "),Ua(),Ha(82,"td",23),xs(83," 60 "),Ua(),Ha(84,"td",23),xs(85," 3000 "),Ua(),Ha(86,"td",23),xs(87," - "),Ua(),Ha(88,"td",23),xs(89," Bufuralol, Desipramine, Amitriptyline "),Ua(),Ha(90,"td",23),xs(91," Mexiletine "),Ua(),Ha(92,"td",23),xs(93," Codeine "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(94,"h3"),xs(95," P450-Glo qHTS: "),Ua(),Ha(96,"p"),xs(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Ha(98,"sup"),xs(99,"2"),Ua(),xs(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Ua(),Ha(101,"div",15),Ha(102,"div",16),xs(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Ua(),Ha(104,"div",17),Ha(105,"table",18),Ha(106,"thead"),Ha(107,"tr",19),Ha(108,"th",20),xs(109," Enzyme "),Ua(),Ha(110,"th",20),xs(111," Inhibitor "),Ua(),Ha(112,"th",20),xs(113," Dilution Format "),Ua(),Ha(114,"th",20),xs(115," Inhibitor Concentration "),Ua(),Ha(116,"th",20),xs(117," Incubation conditions "),Ua(),Ua(),Ua(),Ha(118,"tbody"),Ha(119,"tr",21),Ha(120,"td",22),xs(121," CYP3A4 "),Ua(),Ha(122,"td",23),xs(123," Ketoconazole "),Ua(),Ha(124,"td",24),Ha(125,"div"),xs(126,"16 concentrations/"),Ua(),Ha(127,"div"),xs(128,"2-fold dilution in"),Ua(),Ha(129,"div"),xs(130,"duplicates"),Ua(),Ua(),Ha(131,"td",23),xs(132," 57 \xb5M-1.8 nM "),Ua(),Ha(133,"td",23),xs(134," 1 h/RT "),Ua(),Ua(),Ha(135,"tr",21),Ha(136,"td",22),xs(137," CYP2C9 "),Ua(),Ha(138,"td",23),xs(139," Sulfaphenazole "),Ua(),Ha(140,"td",23),xs(141," 57 \xb5M-1.8 nM "),Ua(),Ha(142,"td",23),xs(143," 1 h/ 37\u02daC/ 0.4% BSA "),Ua(),Ua(),Ha(144,"tr",21),Ha(145,"td",22),xs(146," CYP2D6 "),Ua(),Ha(147,"td",23),xs(148," Quinidine "),Ua(),Ha(149,"td",23),xs(150," 1.4 \xb5M-0.04 nM "),Ua(),Ha(151,"td",23),xs(152," 1 h/RT "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(153,"div",15),Ha(154,"div",16),xs(155," Parsing of Substrates and Inhibitors: "),Ua(),Ha(156,"div",17),Ha(157,"table",25),Ha(158,"thead"),Ha(159,"tr",19),Ha(160,"th",20),xs(161," Category "),Ua(),Ha(162,"th",20),Ha(163,"div"),xs(164,"Clearance"),Ua(),Ha(165,"div"),xs(166,"/"),Ua(),Ha(167,"div"),xs(168,"P450-Glo"),Ua(),Ua(),Ha(169,"th",20),xs(170," Classification "),Ua(),Ha(171,"th",20),xs(172," Parsing Rationale "),Ua(),Ua(),Ua(),Ha(173,"tbody"),Ha(174,"tr",21),Ha(175,"td",23),xs(176," 1 "),Ua(),Ha(177,"td",23),xs(178," + / + "),Ua(),Ha(179,"td",23),xs(180," Substrate "),Ua(),Ha(181,"td",26),xs(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Ua(),Ua(),Ha(183,"tr",21),Ha(184,"td",23),xs(185," 2 "),Ua(),Ha(186,"td",23),xs(187," - / + "),Ua(),Ha(188,"td",23),xs(189," Inhibitor "),Ua(),Ha(190,"td",26),xs(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Ua(),Ua(),Ha(192,"tr",21),Ha(193,"td",23),xs(194," 3 "),Ua(),Ha(195,"td",23),xs(196," - / - "),Ua(),Ha(197,"td",23),xs(198," Non-ligand "),Ua(),Ha(199,"td",26),xs(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Ua(),Ua(),Ha(201,"tr",21),Ha(202,"td",23),xs(203," 4 "),Ua(),Ha(204,"td",23),xs(205," + / - "),Ua(),Ha(206,"td",23),xs(207," Substrate "),Ua(),Ha(208,"td",26),xs(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(210,"h3"),xs(211," References: "),Ua(),Ha(212,"ol"),Ha(213,"li"),xs(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Ua(),Ha(215,"li"),xs(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Ua(),Ua(),Ua())}var YR,GR,KR,ZR,QR=[{path:"home",component:Qm,data:{pageTitle:"home"}},{path:"predictions",component:(KR=function(){function e(t,n,i){v(this,e),this.http=t,this.loadingService=n,this.gaService=i,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}return g(e,[{key:"ngOnInit",value:function(){this.link=document.createElement("a")}},{key:"processSketcherInput",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/adme/api/v1/predict",{params:{smiles:e,model:this.models}}).subscribe(function(e){t.sketcherData=e,t.loadingService.setLoadingState(!1)},function(e){t.errorMessage="There was an error processing your structure. Please modify it and try again.",t.loadingService.setLoadingState(!1)})}},{key:"processFile",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);var n=new FormData;n.append("lineBreak",e.lineBreak),this.lineBreak=e.lineBreak,n.append("columnSeparator",e.columnSeparator),this.columnSeparator=e.columnSeparator,n.append("hasHeaderRow",e.hasHeaderRow.toString()),n.append("indexIdentifierColumn",e.indexIdentifierColumn.toString()),n.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=e.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,n.append("file",e.file),this.http.post("/adme/api/v1/predict-file",n).subscribe(function(e){e.hasErrors?t.errorMessage=e.errorMessages:e&&Object.keys(e).length>0&&(t.fileData=e),t.loadingService.setLoadingState(!1)},function(e){t.fileData=null,t.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",t.loadingService.setLoadingState(!1)})}},{key:"clearErrorMessage",value:function(){this.errorMessage="",this.errorMessages=[]}},{key:"downloadCSV",value:function(e){var n=this,i=t(e.allColumns).join(this.columnSeparator),r=[];e.data.forEach(function(t){return r.push(e.allColumns.map(function(e){return t[e]}).join(n.columnSeparator))});var o=i+this.lineBreak+r.join(this.lineBreak);this.file=new Blob([o],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}},{key:"downloadFile",value:function(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}},{key:"selectedTabChange",value:function(e,t){this.gaService.sendEvent("click:tab",t,e.tab.textLabel)}}]),e}(),KR.\u0275fac=function(e){return new(e||KR)(Va(Rm),Va(Xm),Va(Km))},KR.\u0275cmp=pt({type:KR,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"mat-tab-group",2),Xa("selectedTabChange",function(e){return t.selectedTabChange(e,"predictions:input-type")}),Ha(3,"mat-tab",3),Ha(4,"div",4),Ha(5,"adme-sketcher",5),Xa("moleculeInput",function(e){return t.processSketcherInput(e)}),Ua(),Ua(),Fa(6,FR,8,2,"div",6),Fa(7,VR,3,1,"div",7),Ua(),Ha(8,"mat-tab",8),Ha(9,"div",4),Ha(10,"adme-text-file",9),Xa("fileProcess",function(e){return t.processFile(e)}),Ua(),Ua(),Fa(11,zR,8,2,"div",6),Fa(12,UR,3,1,"div",7),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.sketcherData),uo(4),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.fileData))},directives:[OC,_C,qC,Xc,vA,zC,DA,Zc,PR],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),KR),data:{pageTitle:"predictions"}},{path:"models/:model",component:(GR=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.activatedRoute=n,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/adme/client/assets/rlm_public_set.xlsx")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.activatedRoute.params.subscribe(function(t){e.model=t.model})}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),e}(),GR.\u0275fac=function(e){return new(e||GR)(Va(ef),Va(ip))},GR.\u0275cmp=pt({type:GR,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(e,t){1&e&&(Ha(0,"div",0),Fa(1,qR,86,1,"div",1),Fa(2,WR,217,0,"div",1),Ua()),2&e&&(uo(1),Ba("ngIf","rlm"==t.model),uo(1),Ba("ngIf","cyp450"==t.model))},directives:[Xc,Zm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),GR),data:{pageTitle:"model"}},{path:"contact",component:(YR=function(){function e(t){v(this,e),this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/epam_ketcher.png")}return g(e,[{key:"ngOnInit",value:function(){}}]),e}(),YR.\u0275fac=function(e){return new(e||YR)(Va(ef))},YR.\u0275cmp=pt({type:YR,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h1"),xs(3," Contact "),Ua(),Ha(4,"div",2),Ha(5,"div",3),qa(6,"img",4),Ua(),Ha(7,"div",5),Ha(8,"div"),xs(9," Vishal Siramshetty "),Ua(),Ha(10,"div"),xs(11," Postdoctoral Fellow (Informatics) "),Ua(),Ha(12,"div"),xs(13," Email: "),Ha(14,"a",6),xs(15,"siramshettyv2@nih.gov"),Ua(),xs(16," (models/predictions related queries) "),Ua(),Ua(),Ua(),Ha(17,"div",2),Ha(18,"div",3),qa(19,"img",4),Ua(),Ha(20,"div",5),Ha(21,"div"),xs(22," Pranav Shah "),Ua(),Ha(23,"div"),xs(24," Lead (In Vitro ADME) "),Ua(),Ha(25,"div"),xs(26," Email: "),Ha(27,"a",7),xs(28,"pranav.shah@nih.gov"),Ua(),xs(29," (assay/data related queries) "),Ua(),Ua(),Ua(),Ha(30,"div",2),Ha(31,"div",3),qa(32,"img",4),Ua(),Ha(33,"div",5),Ha(34,"div"),xs(35," Jorge Neyra "),Ua(),Ha(36,"div"),xs(37," Software Developer (Informatics) "),Ua(),Ha(38,"div"),xs(39," Email: "),Ha(40,"a",8),xs(41,"jorge.neyra@nih.gov"),Ua(),xs(42," (software related queries) "),Ua(),Ua(),Ua(),Ha(43,"div",2),Ha(44,"div",3),qa(45,"img",4),Ua(),Ha(46,"div",5),Ha(47,"div"),xs(48," Jordan Williams "),Ua(),Ha(49,"div"),xs(50," Postbaccalaureate Fellow (In Vitro ADME) "),Ua(),Ha(51,"div"),xs(52," Email: "),Ha(53,"a",9),xs(54,"jordan.williams2@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(55,"div",2),Ha(56,"div",3),qa(57,"img",4),Ua(),Ha(58,"div",5),Ha(59,"div"),xs(60," Noel Southall "),Ua(),Ha(61,"div"),xs(62," Lead (Informatics) "),Ua(),Ha(63,"div"),xs(64," Email: "),Ha(65,"a",10),xs(66,"southalln@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(67,"div",2),Ha(68,"div",3),qa(69,"img",4),Ua(),Ha(70,"div",5),Ha(71,"div"),xs(72," Trung Nguyen "),Ua(),Ha(73,"div"),xs(74," Staff Scientist (Informatics) "),Ua(),Ha(75,"div"),xs(76," Email: "),Ha(77,"a",11),xs(78,"nguyenda@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(79,"div",2),Ha(80,"div",3),qa(81,"img",4),Ua(),Ha(82,"div",5),Ha(83,"div"),xs(84," Xin Xu "),Ua(),Ha(85,"div"),xs(86," Lead (ADME Group) "),Ua(),Ha(87,"div"),xs(88," Email: "),Ha(89,"a",12),xs(90,"xin.xu3@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(91,"div",13),Ha(92,"h1"),xs(93," Resources "),Ua(),Ha(94,"div",14),Ha(95,"div"),Ha(96,"a",15),qa(97,"img",4),Ua(),Ua(),Ha(98,"div"),Ha(99,"a",16),qa(100,"img",4),Ua(),Ua(),Ua(),Ha(101,"div",14),Ha(102,"div"),Ha(103,"a",17),qa(104,"img",4),Ua(),Ua(),Ha(105,"div"),Ha(106,"a",18),qa(107,"img",4),Ua(),Ua(),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("src",t.vishalImgSrc,ki),uo(13),Ba("src",t.pranavImgSrc,ki),uo(13),Ba("src",t.jorgeImgSrc,ki),uo(13),Ba("src",t.jordanImgSrc,ki),uo(12),Ba("src",t.noelImgSrc,ki),uo(12),Ba("src",t.trungImgSrc,ki),uo(12),Ba("src",t.xinImgSrc,ki),uo(16),Ba("src",t.rdkitImgSrc,ki),uo(3),Ba("src",t.pythonImgSrc,ki),uo(4),Ba("src",t.angularImgSrc,ki),uo(3),Ba("src",t.epamImgSrc,ki))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),YR),data:{pageTitle:"contact"}},{path:"**",component:Qm}],XR=((ZR=function e(){v(this,e)}).\u0275mod=yt({type:ZR}),ZR.\u0275inj=Te({factory:function(e){return new(e||ZR)},imports:[[qv.forRoot(QR,{relativeLinkResolution:"legacy"})],qv]}),ZR);function $R(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function JR(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function eD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function tD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}var nD,iD,rD,oD=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",aD=fk(function e(t){v(this,e),this._elementRef=t},"primary"),sD=new Le("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),uD=((rD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;v(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return g(n,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ug(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=_g(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=_g(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,_g(e)))}}]),n}(aD)).\u0275fac=function(e){return new(e||rD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},rD.\u0275cmp=pt({type:rD,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(Ma("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,$R,1,9,"circle",1),Fa(2,JR,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),rD._diameters=new WeakMap,rD),lD=((iD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i,r,o,a)).mode="indeterminate",s}return n}(uD)).\u0275fac=function(e){return new(e||iD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},iD.\u0275cmp=pt({type:iD,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,eD,1,9,"circle",1),Fa(2,tD,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),iD),cD=((nD=function e(){v(this,e)}).\u0275mod=yt({type:nD}),nD.\u0275inj=Te({factory:function(e){return new(e||nD)},imports:[[ck,ph],ck]}),nD);function hD(e,t){1&e&&(Ha(0,"div",1),qa(1,"mat-spinner"),Ua())}var fD,dD,pD,vD,mD=((fD=function(){function e(t){v(this,e),this.lodadingService=t,this.isLoading=!1}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.lodadingService.isLoading.subscribe(function(t){e.isLoading=t})}}]),e}()).\u0275fac=function(e){return new(e||fD)(Va(Xm))},fD.\u0275cmp=pt({type:fD,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(e,t){1&e&&Fa(0,hD,2,0,"div",0),2&e&&Ba("ngIf",t.isLoading)},directives:[Xc,lD],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),fD),gD=["*",[["mat-toolbar-row"]]],yD=["*","mat-toolbar-row"],_D=fk(function e(t){v(this,e),this._elementRef=t}),bD=((vD=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vD)},vD.\u0275dir=bt({type:vD,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),vD),kD=((pD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(_D)).\u0275fac=function(e){return new(e||pD)(Va(Qs),Va(ig),Va(mc))},pD.\u0275cmp=pt({type:pD,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,bD,!0),2&e&&al(i=dl())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[wa],ngContentSelectors:yD,decls:2,vars:0,template:function(e,t){1&e&&(rs(gD),os(0),os(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),pD),wD=((dD=function e(){v(this,e)}).\u0275mod=yt({type:dD}),dD.\u0275inj=Te({factory:function(e){return new(e||dD)},imports:[[ck],ck]}),dD);function CD(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new SD(i,n))}}var SD=function(){function e(t,n){v(this,e),this.delay=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new xD(e,this.delay,this.scheduler))}}]),e}(),xD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return g(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new ED(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(ww.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(ww.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(A),ED=function e(t,n){v(this,e),this.time=t,this.notification=n},TD=["mat-menu-item",""],AD=["*"];function OD(e,t){if(1&e){var n=Ka();Ha(0,"div",0),Xa("keydown",function(e){return cn(n),ns()._handleKeydown(e)})("click",function(){return cn(n),ns().closed.emit("click")})("@transformMenu.start",function(e){return cn(n),ns()._onAnimationStart(e)})("@transformMenu.done",function(e){return cn(n),ns()._onAnimationDone(e)}),Ha(1,"div",1),os(2),Ua(),Ua()}if(2&e){var i=ns();Ba("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ma("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var ID,RD,DD,PD,MD,LD,FD,ND,VD,jD,BD,zD={transformMenu:Oy("transformMenu",[Py("void",Dy({opacity:0,transform:"scale(0.8)"})),Ly("void => enter",Iy("120ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:1,transform:"scale(1)"}))),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))]),fadeInItems:Oy("fadeInItems",[Py("showing",Dy({opacity:1})),Ly("void => *",[Dy({opacity:0}),Iy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HD=new Le("MatMenuContent"),UD=new Le("MAT_MENU_PANEL"),qD=dk(hk(function e(){v(this,e)})),WD=((ID=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new j,a._focused=new j,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(f(a)),a}return g(n,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=yg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||DD)(Va(Qs),Va(Vl),Va(YD))},DD.\u0275dir=bt({type:DD,contentQueries:function(e,t,n){var i;1&e&&(cl(n,HD,!0),cl(n,WD,!0),cl(n,WD,!1)),2&e&&(al(i=dl())&&(t.lazyContent=i.first),al(i=dl())&&(t._allItems=i),al(i=dl())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&ul(xu,!0),2&e&&al(n=dl())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),DD),ZD=((RD=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(KD)).\u0275fac=function(e){return new(e||RD)(Va(Qs),Va(Vl),Va(YD))},RD.\u0275cmp=pt({type:RD,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Us([{provide:UD,useExisting:RD}]),wa],ngContentSelectors:AD,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(rs(),Fa(0,OD,3,6,"ng-template"))},directives:[Gc],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[zD.transformMenu,zD.fadeInItems]},changeDetection:0}),RD),QD=new Le("mat-menu-scroll-strategy"),XD={provide:QD,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},$D=sg({passive:!0}),JD=((BD=function(){function t(e,n,i,r,o,a,s,u){var l=this;v(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=x.EMPTY,this._hoverSubscription=x.EMPTY,this._menuCloseSubscription=x.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Ku,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ku,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof KD?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,$D),a&&(a._triggersSubmenu=this.triggersSubmenu())}return g(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$D),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof KD&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof KD?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(gf(function(e){return"void"===e.toState}),Mf(1),ow(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new LE({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var n=e("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=n[0],r=n[1],o=e("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,l=s,c=i,h=r,f=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",f="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",l="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:f},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:f},{originX:i,originY:l,overlayX:c,overlayY:s,offsetY:-f},{originX:r,originY:l,overlayX:h,overlayY:s,offsetY:-f}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return se(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:af(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(gf(function(t){return t!==e._menuItemInstance}),gf(function(){return e._menuOpen})):af(),n)}},{key:"_handleMousedown",value:function(e){Xg(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(gf(function(t){return t===e._menuItemInstance&&!t.disabled}),CD(0,vw)).subscribe(function(){e._openedBy="mouse",e.menu instanceof KD&&e.menu._isAnimating?e.menu._animationDone.pipe(Mf(1),CD(0,vw),ow(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new my(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(e){return new(e||BD)(Va(iT),Va(Qs),Va(Ru),Va(QD),Va(UD,8),Va(WD,10),Va(xy,8),Va(ty))},BD.\u0275dir=bt({type:BD,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ma("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),BD),eP=((jD=function e(){v(this,e)}).\u0275mod=yt({type:jD}),jD.\u0275inj=Te({factory:function(e){return new(e||jD)},providers:[XD],imports:[ck]}),jD),tP=((VD=function e(){v(this,e)}).\u0275mod=yt({type:VD}),VD.\u0275inj=Te({factory:function(e){return new(e||VD)},providers:[XD],imports:[[ph,ck,Lk,lT,eP],Pw,ck,eP]}),VD),nP=((ND=function(){function e(t,n,i,r,o){v(this,e),this.router=i,this.gaService=r,this._document=o,t.addSvgIcon("cancel",n.bypassSecurityTrustResourceUrl("/adme/client/assets/icons/cancel-24px.svg"))}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._document.getElementById("appFavicon").setAttribute("href","/adme/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(function(t){t instanceof sd&&e.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}},{key:"ngOnDestroy",value:function(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ND)(Va(wA),Va(ef),Va(Ev),Va(Km),Va(mc))},ND.\u0275cmp=pt({type:ND,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(e,t){if(1&e&&(qa(0,"adme-loading"),Ha(1,"mat-toolbar",0),Ha(2,"a",1),xs(3,"ADME @ NCATS"),Ua(),Ha(4,"div",2),Ha(5,"a",3),xs(6,"Predict"),Ua(),Ha(7,"a",4),xs(8,"Models"),Ua(),Ha(9,"mat-menu",null,5),Ha(11,"button",6),xs(12,"RLM"),Ua(),Ha(13,"button",7),xs(14,"CYP450"),Ua(),Ua(),Ha(15,"a",8),xs(16,"Contact"),Ua(),Ua(),qa(17,"span",9),Ua(),qa(18,"router-outlet")),2&e){var n=Na(10);uo(7),Ba("matMenuTriggerFor",n)}},directives:[mD,kD,Av,JD,ZD,WD,Tv,Pv],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),ND),iP=((FD=function e(){v(this,e)}).\u0275mod=yt({type:FD}),FD.\u0275inj=Te({factory:function(e){return new(e||FD)},imports:[[ph,HC]]}),FD),rP=((LD=function e(){v(this,e)}).\u0275mod=yt({type:LD}),LD.\u0275inj=Te({factory:function(e){return new(e||LD)},imports:[[ph,ck],ck]}),LD),oP=((MD=function e(){v(this,e)}).\u0275mod=yt({type:MD}),MD.\u0275inj=Te({factory:function(e){return new(e||MD)},imports:[[ck],ck]}),MD),aP=((PD=function e(){v(this,e)}).\u0275mod=yt({type:PD}),PD.\u0275inj=Te({factory:function(e){return new(e||PD)},imports:[[Ek,Lk,ck,Nk,ph],Ek,ck,Nk,oP]}),PD);function sP(e){return function(){return e.load()}}var uP,lP=((uP=function e(){v(this,e)}).\u0275mod=yt({type:uP,bootstrap:[nP]}),uP.\u0275inj=Te({factory:function(e){return new(e||uP)},providers:[Gm,{provide:gl,useFactory:sP,deps:[Gm],multi:!0}],imports:[[of,XR,nk,iP,nR,kO,Ym,HC,wD,Mx,Lx,bE,LT,FC,pA,rP,cD,aP,nO,_R,oA,PA,tP]]}),uP);(function(){if(Qn)throw new Error("Cannot enable prod mode after platform setup.");Zn=!1})(),nf().bootstrapModule(lP).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file diff --git a/server/client/main-es5.e043658e91f3fa1d6dea.js b/server/client/main-es5.e043658e91f3fa1d6dea.js deleted file mode 100644 index 771982d..0000000 --- a/server/client/main-es5.e043658e91f3fa1d6dea.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,p(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)})(e)}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new H(e,n,i);if(!r.closed)return t instanceof P?t.subscribe(r):G(t)(r)}var Z=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(A);function Q(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new X(e,t))}}var X=function(){function e(t,n){v(this,e),this.project=t,this.thisArg=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||f(o),o}return g(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(A);function J(e,t){return new P(function(n){var i=new x,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ee(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[I]}(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){var r=e[I]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Y(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(W(e))return J(e,t);if(function(e){return e&&"function"==typeof e[q]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(function(n){var i,r=new x;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[q](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof P?e:new P(G(e))}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(te(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ne(e,n))})}var ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=t,this.concurrent=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new ie(e,this.project,this.concurrent))}}]),e}(),ie=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return g(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Z);function re(e){return e}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return te(re,e)}function ae(e,t){return t?J(e,t):new P(U(e))}function se(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof P?t[0]:oe(i)(ae(t,r))}function ue(){return function(e){return e.lift(new ce(e))}}var le,ce=function(){function e(t){v(this,e),this.connectable=t}return g(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new he(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),he=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(A),fe={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(le=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return g(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new x).add(this.source.subscribe(new de(this.getSubject(),this))),e.closed&&(this._connection=null,e=x.EMPTY)),e}},{key:"refCount",value:function(){return ue()(this)}}]),n}(P).prototype)._subscribe},_isComplete:{value:le._isComplete,writable:!0},getSubject:{value:le.getSubject},connect:{value:le.connect},refCount:{value:le.refCount}},de=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_error",value:function(e){this._unsubscribe(),s(p(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),s(p(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(V);function pe(){return new j}function ve(){return function(e){return ue()((t=pe,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,fe);return i.source=e,i.subjectFactory=n,i})(e));var t}}function me(e){return{toString:e}.toString()}function ge(e,t,n){return me(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $e(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function et(e,t){var n=tt(e,t);if(n>=0)return e[1|n]}function tt(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var nt,it=((nt={})[nt.Emulated=0]="Emulated",nt[nt.None=2]="None",nt[nt.ShadowDom=3]="ShadowDom",nt),rt={},ot=[],at=Se({"\u0275cmp":Se}),st=Se({"\u0275dir":Se}),ut=Se({"\u0275pipe":Se}),lt=Se({"\u0275mod":Se}),ct=Se({"\u0275loc":Se}),ht=Se({"\u0275fac":Se}),ft=Se({__NG_ELEMENT_ID__:Se}),dt=0;function pt(e){return me(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ne.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ot,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||ot,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=dt++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(vt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(mt)}:null,n})}function vt(e){return kt(e)||function(e){return e[st]||null}(e)}function mt(e){return function(e){return e[ut]||null}(e)}var gt={};function yt(e){var t={type:e.type,bootstrap:e.bootstrap||ot,declarations:e.declarations||ot,imports:e.imports||ot,exports:e.exports||ot,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me(function(){gt[e.id]=e.type}),t}function _t(e,t){if(null==e)return rt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var bt=pt;function kt(e){return e[at]||null}function wt(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(we(e)," does not have '\u0275mod' property."));return n}function Ct(e){return"string"==typeof e?e:null==e?"":""+e}function St(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ct(e)}var xt,Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Tt(e){var t=xt;return xt=e,t}function At(e,t,n){var i=Ae(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Et.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(we(e),"]"))}var Ot={},It=/\n/gm,Rt=Se({provide:String,useValue:Se}),Dt=void 0;function Pt(e){var t=Dt;return Dt=e,t}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;if(void 0===Dt)throw new Error("inject() must be called from an injection context");return null===Dt?At(e,void 0,t):Dt.get(e,t&Et.Optional?null:void 0,t)}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;return(xt||Mt)(We(e),t)}var Ft=Lt;function Nt(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ci.hasOwnProperty(t)&&!ai.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(yi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function yi(e){return e.replace(/&/g,"&").replace(mi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function _i(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function ki(e){var t=Ci();return t?t.sanitize(bi.URL,e)||"":Gn(e,"URL")?Yn(e):ni(Ct(e))}function wi(e){var t=Ci();if(t)return t.sanitize(bi.RESOURCE_URL,e)||"";if(Gn(e,"ResourceURL"))return Yn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Ci(){var e=un();return e&&e[12]}function Si(e,t){return e.hasOwnProperty(ht)?e[ht]:null}var xi=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(n(Error));function Ei(e,t){var n=t?" in "+t:"";throw new xi("201","No provider for ".concat(St(e)," found").concat(n))}var Ti=function(){function e(t,n,i){v(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return g(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ai(){return Oi}function Oi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),Ii}function Ii(){var e=Di(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ri(e,t,n,i){var r=Di(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ti(u&&u.currentValue,t,a===rt),e[i]=t}function Di(e){return e.__ngSimpleChanges__||null}function Pi(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}Ai.ngInherit=!0;var ji=function e(t,n,i){v(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bi(e,t,n){for(var i=Wt(e),r=0;rt){a=o-1;break}}}for(;o>16,i=t;n>0;)i=i[15],n--;return i}var Ki=!0;function Zi(e){var t=Ki;return Ki=e,t}var Qi=0;function Xi(e,t){var n=Ji(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$i(i.data,e),$i(t,null),$i(i.blueprint,null));var r=er(e,t),o=e.injectorIndex;if(Wi(r))for(var a=Yi(r),s=Gi(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function $i(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ji(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function er(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function tr(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ft)&&(i=n[ft]),null==i&&(i=n[ft]=Qi++);var r=255&i,o=1<3&&void 0!==arguments[3]?arguments[3]:Et.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ft)?e[ft]:void 0;return"number"==typeof t?t>=0?255&t:ar:t}(n);if("function"==typeof o){if(!En(t,e,i))return i&Et.Host?nr(r,n,i):ir(t,n,i,r);try{var a=o();if(null!=a||i&Et.Optional)return a;Ei(n)}finally{Dn()}}else if("number"==typeof o){var s=null,u=Ji(e,t),l=-1,c=i&Et.Host?t[16][6]:null;for((-1===u||i&Et.SkipSelf)&&(-1!==(l=-1===u?er(e,t):t[u+8])&&hr(i,!1)?(s=t[1],u=Yi(l),t=Gi(l,t)):u=-1);-1!==u;){var h=t[1];if(cr(o,u,h.data)){var f=sr(u,t,n,s,i,c);if(f!==or)return f}-1!==(l=t[u+8])&&hr(i,t[1].data[u+8]===c)&&cr(o,u,t)?(s=h,u=Yi(l),t=Gi(l,t)):u=-1}}}return ir(t,n,i,r)}var or={};function ar(){return new fr(hn(),un())}function sr(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ur(s,a,n,null==i?Ht(s)&&Ki:i!=a&&0!=(3&s.type),r&Et.Host&&o===s);return null!==u?lr(t,a,u,s):or}function ur(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&qt(d)&&d.type===n)return u}return null}function lr(e,t,n,i){var r=e[n],o=t.data;if(r instanceof ji){var a=r;a.resolving&&function(e,t){throw new xi("200","Circular dependency in DI detected for "+e)}(St(o[n]));var s=Zi(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Tt(a.injectImpl):null;En(e,i,Et.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Oi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Tt(u),Zi(s),a.resolving=!1,Dn()}}return r}function cr(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var a=Xe(e,10+t);Yr(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Pr(e,t){if(!(256&t[2])){var n=t[11];Wt(n)&&n.destroyNode&&Yr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Mr(e[1],e);for(;t;){var n=null;if(jt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)jt(t)&&Mr(t[1],t),t=t[3];null===t&&(t=e),jt(t)&&Mr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[u]():i[-u].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Wt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Bt(t[3])){n!==t[3]&&Rr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Lr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===it.None||r===it.Emulated)return null}return Zt(i,n)}(e,t.parent,n)}function Fr(e,t,n,i,r){Wt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Nr(e,t,n){Wt(e)?e.appendChild(t,n):t.appendChild(n)}function Vr(e,t,n,i,r){null!==i?Fr(e,t,n,i,r):Nr(e,t,n)}function jr(e,t){return Wt(e)?e.parentNode(t):t.parentNode}function Br(e,t,n){return zr(e,t,n)}var zr=function(e,t,n){return 40&e.type?Zt(e,n):null};function Hr(e,t,n,i){var r=Lr(e,i,t),o=t[11],a=Br(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;so?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==Qr(f,l,0)||2&i&&l!==h){if(to(i))return!1;a=!0}}}}else{if(!a&&!to(i)&&!to(u))return!1;if(a&&to(u))continue;a=!1,i=u|1&i}}return to(i)||a}function to(e){return 0==(1&e)}function no(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||to(a)||(t+=oo(o,r),r=""),i=a,o=o||!to(i);n++}return""!==r&&(t+=oo(o,r)),t}var so={};function uo(e){lo(ln(),un(),Mn()+e,mn())}function lo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Mi(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Li(t,o,0,n)}Ln(n)}function co(e,t){return e<<17|t<<2}function ho(e){return e>>17&32767}function fo(e){return 2|e}function po(e){return(131068&e)>>2}function vo(e,t){return-131069&e|t<<2}function mo(e){return 1|e}function go(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&lo(e,t,20,mn()),n(i,r)}finally{Ln(o)}}function xo(e,t,n){if(zt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Zt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Lo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function No(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&Wo(n)}}function Wo(e){for(var t=Er(e);null!==t;t=Tr(t))for(var n=10;n0&&Wo(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Wo(s)}}function Yo(e,t){var n=$t(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Ot;if(t===Ot){var n=new Error("NullInjectorError: No provider for ".concat(we(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),aa=new Le("Set Injector scope."),sa={},ua={},la=[],ca=void 0;function ha(){return void 0===ca&&(ca=new oa),ca}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new da(e,n,t||ha(),i)}var da=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ze(n,function(e){return r.processProvider(e,t,n)}),Ze([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ra,ma(void 0,this));var s=this.records.get(aa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:we(t))}return g(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;this.assertNotDestroyed();var i,r=Pt(this);try{if(!(n&Et.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Le)&&Ae(e);o=a&&this.injectableDefInScope(a)?ma(pa(e),sa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Et.Self?ha():this.parent).get(e,t=n&Et.Optional&&t===Ot?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(we(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=we(t);if(Array.isArray(t))r=t.map(we).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):we(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(It,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Pt(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(we(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=We(e)))return!1;var r=Ie(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ie(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{Ze(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;Ze(r,function(e){return i.processProvider(e,n,r||la)})},c=0;c0){var n=$e(t,"?");throw new Error("Can't resolve all parameters for ".concat(we(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Re]||e[Pe]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function va(e,n,i){var r,o=void 0;if(ya(e)){var s=We(e);return Si(s)||pa(s)}if(ga(e))o=function(){return We(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,t(Nt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Lt(We(e.useExisting))};else{var u=We(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Si(u)||pa(u);o=function(){return a(u,t(Nt(e.deps)))}}return o}function ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function ga(e){return null!==e&&"object"==typeof e&&Rt in e}function ya(e){return"function"==typeof e}var _a=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=fa(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},ba=function(){var e=function(){function e(){v(this,e)}return g(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?_a(e,t,""):_a(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ot,e.NULL=new oa,e.\u0275prov=Ee({token:e,providedIn:"any",factory:function(){return Lt(ra)}}),e.__NG_ELEMENT_ID__=-1,e}();function ka(e,t){Pi(Jt(e)[1],hn())}function wa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(qt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Ca(e.inputs),o.declaredInputs=Ca(e.declaredInputs),o.outputs=Ca(e.outputs);var a=r.hostBindings;a&&Ea(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Sa(e,s),u&&xa(e,u),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),qt(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ui(r.hostAttrs,n=Ui(n,r.hostAttrs))}}(i)}function Ca(e){return e===rt?{}:e===ot?[]:e}function Sa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function xa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ea(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ta=null;function Aa(){if(!Ta){var e=He.Symbol;if(e&&e.iterator)Ta=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Et.Default,n=un();return null===n?Lt(e,t):rr(hn(),n,We(e),t)}function ja(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=un(),o=ln(),a=hn();return Ja(o,r,r[11],a,e,t,n,i),Xa}function $a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=hn(),o=un(),a=ln();return Ja(a,o,ea(wn(a.data),r,o),r,e,t,n,i),$a}function Ja(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ut(i),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Jo(t),h=!0;if(3&i.type){var f=Zt(i,t),d=s?s(f):rt,p=d.target||f,v=c.length,m=s?function(e){return s(Gt(e[i.index])).target}:i.index;if(Wt(n)){var g=null;if(!s&&u&&(g=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=ts(i,t,o,!1);var y=n.listen(d.name||p,r,o);c.push(o,y),l&&l.push(r,m,v,v+1)}}else o=ts(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),l&&l.push(r,m,v,a)}var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(an.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,an.lFrame.contextLView))[8]}(e)}function is(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=un(),r=ln(),o=_o(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),vn(),64!=(64&o.flags)&&function(e,t,n){Gr(t[11],0,t,n,Lr(e,n,t),Br(n.parent||t[6],n,t))}(r,i,o)}var as=[];function ss(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?ho(o):po(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];us(e[s],t)&&(u=!0,e[s+1]=i?mo(l):fo(l)),s=i?ho(l):po(l)}u&&(e[n+1]=i?fo(o):mo(o))}function us(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&tt(e,t)>=0}var ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cs(e){return e.substring(ls.key,ls.keyEnd)}function hs(e,t){var n=ls.textEnd;return n===t?-1:(t=ls.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,ls.key=t,n),fs(e,t,n))}function fs(e,t,n){for(;t=0;n=hs(t,n))Je(e,cs(t),!0)}function ms(e,t,n,i){var r=un(),o=ln(),a=bn(2);o.firstUpdatePass&&ys(o,e,a,i),t!==so&&Pa(r,a,t)&&ks(o,o.data[Mn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(Yn(e)))),e}(t,n),i,a)}function gs(e,t){return t>=e.expandoStartIndex}function ys(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],a=gs(e,n);Ss(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=wn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=bs(n=_s(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=_s(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==po(i))return e[ho(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[ho(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=bs(s=_s(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=ho(e[s+1]);e[i+1]=co(f,s),0!==f&&(e[f+1]=vo(e[f+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=co(s,0),0!==s&&(e[s+1]=vo(e[s+1],i)),s=i;else e[i+1]=co(u,0),0===s?s=i:e[u+1]=vo(e[u+1],i),u=i;c&&(e[i+1]=fo(e[i+1])),ss(e,l,i,!0),ss(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&tt(o,t)>=0&&(n[i+1]=mo(n[i+1]))}(t,l,e,i,o),a=co(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function _s(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===so&&(f=h?as:void 0);var d=h?et(f,i):c===i?f:void 0;if(l&&!Cs(d)&&(d=et(u,i)),Cs(d)&&(s=d,a))return s;var p=e[r+1];r=a?ho(p):po(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=et(v,i))}return s}function Cs(e){return void 0!==e}function Ss(e,t){return 0!=(e.flags&(t?16:32))}function xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=un(),i=ln(),r=e+20,o=i.firstCreatePass?_o(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Wt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Hr(i,n,a,o),dn(o,!1)}function Es(e){return Ts("",e,""),Es}function Ts(e,t,n){var i=un(),r=La(i,e,t,n);return r!==so&&function(e,t,n){var i=Kt(t,e);!function(e,t,n){Wt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,Mn(),r),Ts}function As(e,t,n){var i=un();return Pa(i,_n(),t)&&Do(ln(),Fn(),i,e,t,i[11],n,!0),As}function Os(e,t,n){var i=un();if(Pa(i,_n(),t)){var r=ln(),o=Fn();Do(r,o,i,e,t,ea(wn(r.data),o,i),n,!0)}return Os}var Is=void 0,Rs=["en",[["a","p"],["AM","PM"],Is],[["AM","PM"],Is,Is],[["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"]],Is,[["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"]],Is,[["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}",Is,"{1} 'at' {0}",Is],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ds={};function Ps(e){return e in Ds||(Ds[e]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[e]),Ds[e]}var Ms=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Ls(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Fs(e,t,n,i,r){if(e=We(e),Array.isArray(e))for(var o=0;o>20;if(ya(e)||!e.multi){var p=new ji(l,r,Va),v=js(u,t,r?h:h+d,f);-1===v?(tr(Xi(c,s),a,u),Ns(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=js(u,t,h+d,f),g=js(u,t,h,h+d),y=m>=0&&n[m],_=g>=0&&n[g];if(r&&!_||!r&&!y){tr(Xi(c,s),a,u);var b=function(e,t,n,i,r){var o=new ji(e,n,Va);return o.multi=[],o.index=t,o.componentProviders=0,Vs(o,r,i&&!n),o}(r?zs:Bs,n.length,r,i,l);!r&&_&&(n[g].providerFactory=b),Ns(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else Ns(a,e,m>-1?m:g,Vs(n[r?g:m],l,!r&&i));!r&&i&&_&&n[g].componentProviders++}}}function Ns(e,t,n,i){var r=ya(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Vs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function js(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ln();if(i.firstCreatePass){var r=qt(e);Fs(n,i.data,i.blueprint,r,!0),Fs(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var qs=function e(){v(this,e)},Ws=function(){function e(){v(this,e)}return g(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(we(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ys=function(){var e=function e(){v(this,e)};return e.NULL=new Ws,e}();function Gs(){}function Ks(e,t){return new Qs(Zt(e,t))}var Zs=function(){return Ks(hn(),un())},Qs=function(){var e=function e(t){v(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Zs,e}(),Xs=function e(){v(this,e)},$s=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return Js()},e}(),Js=function(){var e=un(),t=$t(hn().index,e);return function(e){return e[11]}(jt(t)?t:e)},eu=function(){var e=function e(){v(this,e)};return e.\u0275prov=Ee({token:e,providedIn:"root",factory:function(){return null}}),e}(),tu=function e(t){v(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},nu=new tu("11.0.2"),iu=function(){function e(){v(this,e)}return g(e,[{key:"supports",value:function(e){return Ia(e)}},{key:"create",value:function(e){return new ou(e)}}]),e}(),ru=function(e,t){return t},ou=function(){function e(t){v(this,e),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||ru}return g(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(Gt(a)),Bt(a))for(var s=10;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Pr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Io(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ko(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Zo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){gn(!0);try{Zo(e,t,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Yr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return vu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),gu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._view=e,i}return g(n,[{key:"detectChanges",value:function(){Qo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){gn(!0);try{Qo(e)}finally{gn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(mu),yu=bu,_u=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=yu,e.__ChangeDetectorRef__=!0,e}();function bu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ht(e)){var i=$t(e.index,t);return new mu(i,i)}return 47&e.type?new mu(t[16],t):null}(hn(),un(),e)}var ku=[new cu],wu=new du([new iu]),Cu=new pu(ku),Su=function(){return Tu(hn(),un())},xu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Su,e}(),Eu=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return g(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=yo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ko(t,n,e),new mu(n)}}]),n}(xu);function Tu(e,t){return 4&e.type?new Eu(t,e,Ks(e,t)):null}var Au=function e(){v(this,e)},Ou=function e(){v(this,e)},Iu=function(){return Lu(hn(),un())},Ru=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Iu,e}(),Du=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return g(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Pu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(Bt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Ks(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=er(this._hostTNode,this._hostLView);if(Wi(e)){var t=Gi(e,this._hostLView),n=Yi(e);return new fr(t[1].data[n+8],t)}return new fr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Ru);function Pu(e){return e[8]}function Mu(e){return e[8]||(e[8]=[])}function Lu(e,t){var n,i=t[e.index];if(Bt(i))n=i;else{var r;if(8&e.type)r=Gt(i);else{var o=t[11];r=o.createComment("");var a=Zt(e,t);Fr(o,jr(o,a),r,function(e,t){return Wt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Uo(i,t,r,e),Go(t,n)}return new Du(n,e,t)}var Fu={},Nu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).ngModule=e,i}return g(n,[{key:"resolveComponentFactory",value:function(e){var t=kt(e);return new Bu(t,this.ngModule)}}]),n}(Ys);function Vu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ju=new Le("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return br}}),Bu=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(ao).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return g(n,[{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Fu,r);return o!==Fu||i===Fu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Xs,Yt),u=a.get(eu,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Wt(e))return e.selectRootElement(t,n===it.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):Ir(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:br,clean:$o,playerHandler:null,flags:0},p=Oo(0,null,null,1,0,null,null,null,null,null),v=yo(null,p,d,f,null,null,s,l,u,a);Tn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=_o(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(ia(s,u,!0),null!==e&&(Bi(r,e,u),null!==s.classes&&Zr(r,e,s.classes),null!==s.styles&&Kr(r,e,s.styles)));var l=i.createRenderer(e,t),c=yo(n,Ao(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(tr(Xi(s,n),a,t.type),Fo(a,s),Vo(s,n.length,1)),Go(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Bi(l,h,["ng-version",nu.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i0&&Zr(l,h,_.join(" "))}if(o=Qt(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:ba.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;return e===ba||e===Au||e===ra?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Au),qu=function(e){u(n,e);var t=c(n);function n(e){var r,o,a;return v(this,n),(r=t.call(this)).moduleType=e,null!==wt(e)&&(o=e,a=new Set,function e(t){var n=wt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(we(t)," vs ").concat(we(t.name)))}(r,Hu.get(r),t),Hu.set(r,t));var o,s=i(wr(n.imports));try{for(s.s();!(o=s.n()).done;){var u=o.value;a.has(u)||(a.add(u),e(u))}}catch(l){s.e(l)}finally{s.f()}}(o)),r}return g(n,[{key:"create",value:function(e){return new Uu(this.moduleType,e)}}]),n}(Ou);function Wu(e,t,n){var i=yn()+e,r=un();return r[i]===so?Da(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Yu(e,t){var n=e[t];return n===so?void 0:n}function Gu(e,t,n,i,r,o){var a=t+n;return Pa(e,a,r)?Da(e,a+1,o?i.call(o,r):i(r)):Yu(e,a+1)}var Ku=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,n),(e=t.call(this)).__isAsync=i,e}return g(n,[{key:"emit",value:function(e){s(p(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(a=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var u=s(p(n.prototype),"subscribe",this).call(this,r,o,a);return e instanceof x&&e.add(u),u}}]),n}(j);function Zu(){return this._results[Aa()]()}var Qu=function(){function e(){v(this,e),this.dirty=!0,this._results=[],this.changes=new Ku,this.length=0;var t=Aa(),n=e.prototype;n[t]||(n[t]=Zu)}return g(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=Ke(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Xu=function(){function e(t){v(this,e),this.queryList=t,this.matches=null}return g(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),$u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=r},el=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return g(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(Vl))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Kl=function(){var e=function(){function e(){v(this,e),this._applications=new Map,Zl.addToWindow(this)}return g(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Zl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Zl=new(function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ql=new Le("AllowMultipleToken"),Xl=function e(t,n){v(this,e),this.name=t,this.token=n};function $l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new Le(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Jl();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:aa,useValue:"platform"});!function(e){if(Wl&&!Wl.destroyed&&!Wl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wl=e.get(ec);var t=e.get(wl,null);t&&t.forEach(function(e){return e()})}(ba.create({providers:a,name:i}))}return function(e){var t=Jl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Jl(){return Wl&&!Wl.destroyed?Wl:null}var ec=function(){var e=function(){function e(t){v(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return g(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Yl:("zone.js"===n?void 0:n)||new Vl({enableLongStackTrace:Xn(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Vl,useValue:o}];return o.run(function(){var t=ba.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(yr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return rc(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})}),function(e,t,i){try{var o=((a=n.injector.get(yl)).runInitializers(),a.donePromise.then(function(){return Ls(n.injector.get(El,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Za(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=tc({},n);return function(e,t,n){var i=new qu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(ic);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(we(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(ba))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function tc(e,t){return Array.isArray(t)?t.reduce(tc,e):Object.assign(Object.assign({},e),t)}var nc,ic=((nc=function(){function e(t,n,i,r,o,a){var s=this;v(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new P(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new P(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Vl.assertNotInAngularZone(),Nl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Vl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=se(u,l.pipe(ve()))}return g(e,[{key:"bootstrap",value:function(e,t){var n,i=this;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.");n=e instanceof qs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Au),o=n.create(ba.NULL,[],t||n.selector,r);o.onDestroy(function(){i._unloadComponent(o)});var a=o.injector.get(Gl,null);return a&&o.injector.get(Kl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Xn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=i(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,o=i(this._views);try{for(o.s();!(r=o.n()).done;)r.value.checkNoChanges()}catch(a){o.e(a)}finally{o.f()}}}catch(s){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(s)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;rc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),rc(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||nc)(Lt(Vl),Lt(xl),Lt(ba),Lt(yr),Lt(Ys),Lt(yl))},nc.\u0275prov=Ee({token:nc,factory:nc.\u0275fac}),nc);function rc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oc=function e(){v(this,e)},ac=function e(){v(this,e)},sc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},uc=function(){var t=function(){function t(e,n){v(this,t),this._compiler=e,this._config=n||sc}return g(t,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(t){var n=this,i=e(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),l("zn8P")(r).then(function(e){return e[o]}).then(function(e){return lc(e,r,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(t){var n=e(t.split("#"),2),i=n[0],r=n[1],o="NgFactory";return void 0===r&&(r="default",o=""),l("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return lc(e,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Lt(Ll),Lt(ac,8))},t.\u0275prov=Ee({token:t,factory:t.\u0275fac}),t}();function lc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var cc=$l(null,"core",[{provide:Cl,useValue:"unknown"},{provide:ec,deps:[ba]},{provide:Kl,deps:[]},{provide:xl,deps:[]}]),hc=[{provide:ic,useClass:ic,deps:[Vl,xl,ba,yr,Ys,yl]},{provide:ju,deps:[Vl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:yl,useClass:yl,deps:[[new _e,gl]]},{provide:Ll,useClass:Ll,deps:[]},bl,{provide:du,useFactory:function(){return wu},deps:[]},{provide:pu,useFactory:function(){return Cu},deps:[]},{provide:El,useFactory:function(e){return Ls(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ye(El),new _e,new ke]]},{provide:Tl,useValue:"USD"}],fc=function(){var e=function e(t){v(this,e)};return e.\u0275mod=yt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)(Lt(ic))},providers:hc}),e}(),dc=null;function pc(){return dc}var vc,mc=new Le("DocumentToken"),gc=((vc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vc)},vc.\u0275prov=Ee({factory:yc,token:vc,providedIn:"platform"}),vc);function yc(){return Lt(kc)}var _c,bc=new Le("Location Initialized"),kc=((_c=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i._init(),i}return g(n,[{key:"_init",value:function(){this.location=pc().getLocation(),this._history=pc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return pc().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){wc()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){wc()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(gc)).\u0275fac=function(e){return new(e||_c)(Lt(mc))},_c.\u0275prov=Ee({factory:Cc,token:_c,providedIn:"platform"}),_c);function wc(){return!!window.history.pushState}function Cc(){return new kc(Lt(mc))}function Sc(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function xc(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ec(e){return e&&"?"!==e[0]?"?"+e:e}var Tc,Ac=((Tc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Tc)},Tc.\u0275prov=Ee({factory:Oc,token:Tc,providedIn:"root"}),Tc);function Oc(e){var t=Lt(mc).location;return new Mc(Lt(gc),t&&t.origin||"")}var Ic,Rc,Dc,Pc=new Le("appBaseHref"),Mc=((Dc=function(e){u(n,e);var t=c(n);function n(e,i){var r;if(v(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,h(r)}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Sc(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Ec(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Dc)(Lt(gc),Lt(Pc,8))},Dc.\u0275prov=Ee({token:Dc,factory:Dc.\u0275fac}),Dc),Lc=((Rc=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Sc(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Rc)(Lt(gc),Lt(Pc,8))},Rc.\u0275prov=Ee({token:Rc,factory:Rc.\u0275fac}),Rc),Fc=((Ic=function(){function e(t,n){var i=this;v(this,e),this._subject=new Ku,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=xc(Vc(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return g(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Ec(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Vc(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ic)(Lt(Ac),Lt(gc))},Ic.normalizeQueryParams=Ec,Ic.joinWithSlash=Sc,Ic.stripTrailingSlash=xc,Ic.\u0275prov=Ee({factory:Nc,token:Ic,providedIn:"root"}),Ic);function Nc(){return new Fc(Lt(Ac),Lt(gc))}function Vc(e){return e.replace(/\/index.html$/,"")}var jc,Bc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),zc=function e(){v(this,e)},Hc=((jc=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).locale=e,i}return g(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ps(t);if(n)return n;var i=t.split("-")[0];if(n=Ps(i))return n;if("en"===i)return Rs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ms.PluralCase]}(t||this.locale)(e)){case Bc.Zero:return"zero";case Bc.One:return"one";case Bc.Two:return"two";case Bc.Few:return"few";case Bc.Many:return"many";default:return"other"}}}]),n}(zc)).\u0275fac=function(e){return new(e||jc)(Lt(El))},jc.\u0275prov=Ee({token:jc,factory:jc.\u0275fac}),jc);function Uc(t,n){n=encodeURIComponent(n);var r,o=i(t.split(";"));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.indexOf("="),u=e(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),l=u[0],c=u[1];if(l.trim()===n)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var qc,Wc,Yc,Gc=((qc=function(){function e(t,n,i,r){v(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+we(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ia(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||qc)(Va(du),Va(pu),Va(Qs),Va($s))},qc.\u0275dir=bt({type:qc,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),qc),Kc=function(){function e(t,n,i,r){v(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return g(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Zc=((Wc=function(){function e(t,n,i){v(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Kc(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Qc(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Qc(e,s);n.push(u)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Et.Default,t=bu(!0);if(null!=t||e&Et.Optional)return t;Ei("ChangeDetectorRef")}())},oh.\u0275pipe={type:(rh={name:"async",type:oh,pure:!1}).type,name:rh.name,factory:null,pure:!1!==rh.pure,onDestroy:rh.type.prototype.ngOnDestroy||null},oh),ph=((ih=function e(){v(this,e)}).\u0275mod=yt({type:ih}),ih.\u0275inj=Te({factory:function(e){return new(e||ih)},providers:[{provide:zc,useClass:Hc}]}),ih);function vh(e){return"browser"===e}var mh,gh=((mh=function e(){v(this,e)}).\u0275prov=Ee({token:mh,providedIn:"root",factory:function(){return new yh(Lt(mc),window,Lt(yr))}}),mh),yh=function(){function e(t,n,i){v(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return g(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=_h(this.window.history)||_h(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function _h(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var bh,kh,wh,Ch,Sh=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=xh||(xh=document.querySelector("base"))?xh.getAttribute("href"):null;return null==n?null:(t=n,bh||(bh=document.createElement("a")),bh.setAttribute("href",t),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname)}},{key:"resetBaseElement",value:function(){xh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Uc(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,dc||(dc=e)}}]),n}(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.call(this)}return g(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){v(this,e)}}())),xh=null,Eh=new Le("TRANSITION_ID"),Th=[{provide:gl,useFactory:function(e,t,n){return function(){n.get(yl).donePromise.then(function(){var n=pc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Eh,mc,ba],multi:!0}],Ah=function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){He.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},He.getAllAngularTestabilities=function(){return e.getAllTestabilities()},He.getAllAngularRootElements=function(){return e.getAllRootElements()},He.frameworkStabilizers||(He.frameworkStabilizers=[]),He.frameworkStabilizers.push(function(e){var t=He.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?pc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Zl=t}}]),e}(),Oh=new Le("EventManagerPlugins"),Ih=((kh=function(){function e(t,n){var i=this;v(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return g(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Xh.hasOwnProperty(t)&&(t=Xh[t]))}return Qh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Zh.forEach(function(i){i!=n&&(0,$h[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Rh)).\u0275fac=function(e){return new(e||Hh)(Lt(mc))},Hh.\u0275prov=Ee({token:Hh,factory:Hh.\u0275fac}),Hh),ef=((zh=function e(){v(this,e)}).\u0275fac=function(e){return new(e||zh)},zh.\u0275prov=Ee({factory:function(){return Lt(tf)},token:zh,providedIn:"root"}),zh),tf=((Bh=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i}return g(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case bi.NONE:return t;case bi.HTML:return Gn(t,"HTML")?Yn(t):function(e,t){var n=null;try{oi=oi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString(jn(""),"text/html")}catch(e){return!1}}()?new $n:new Jn(e)}(e);var i=t?String(t):"";n=oi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=oi.getInertBodyElement(i)}while(i!==o);var a=new vi,s=a.sanitizeChildren(_i(n)||n);return Xn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=_i(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t));case bi.STYLE:return Gn(t,"Style")?Yn(t):t;case bi.SCRIPT:if(Gn(t,"Script"))return Yn(t);throw new Error("unsafe value used in a script context");case bi.URL:return Kn(t),Gn(t,"URL")?Yn(t):ni(String(t));case bi.RESOURCE_URL:if(Gn(t,"ResourceURL"))return Yn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new zn(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Hn(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Un(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qn(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Wn(e)}}]),n}(ef)).\u0275fac=function(e){return new(e||Bh)(Lt(mc))},Bh.\u0275prov=Ee({factory:function(){return e=Lt(ra),new tf(e.get(mc));var e},token:Bh,providedIn:"root"}),Bh),nf=$l(cc,"browser",[{provide:Cl,useValue:"browser"},{provide:wl,useValue:function(){Sh.makeCurrent(),Ah.init()},multi:!0},{provide:mc,useFactory:function(){return function(e){Vt=e}(document),document},deps:[]}]),rf=[[],{provide:aa,useValue:"root"},{provide:yr,useFactory:function(){return new yr},deps:[]},{provide:Oh,useClass:Kh,multi:!0,deps:[mc,Vl,Cl]},{provide:Oh,useClass:Jh,multi:!0,deps:[mc]},[],{provide:qh,useClass:qh,deps:[Ih,Ph,_l]},{provide:Xs,useExisting:qh},{provide:Dh,useExisting:Ph},{provide:Ph,useClass:Ph,deps:[mc]},{provide:Gl,useClass:Gl,deps:[Vl]},{provide:Ih,useClass:Ih,deps:[Oh,Vl]},[]],of=((Uh=function(){function e(t){if(v(this,e),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.")}return g(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_l,useValue:t.appId},{provide:Eh,useExisting:_l},Th]}}}]),e}()).\u0275mod=yt({type:Uh}),Uh.\u0275inj=Te({factory:function(e){return new(e||Uh)(Lt(Uh,12))},providers:rf,imports:[ph,fc]}),Uh);function af(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Tf;return function(t){return t.lift(new xf(e))}}var xf=function(){function e(t){v(this,e),this.errorFactory=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ef(e,this.errorFactory))}}]),e}(),Ef=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return g(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(A);function Tf(){return new ff}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Of(e))}}var Of=function(){function e(t){v(this,e),this.defaultValue=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new If(e,this.defaultValue))}}]),e}(),If=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return g(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(A);function Rf(e,t){return"function"==typeof t?function(n){return n.pipe(Rf(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Df(e))}}var Df=function(){function e(t){v(this,e),this.project=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Pf(e,this.project))}}]),e}(),Pf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return g(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new H(this,t,n),o=this.destination;o.add(r),this.innerSubscription=K(this,e,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||s(p(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&s(p(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}}]),n}(Z);function Mf(e){return function(t){return 0===e?pf():t.lift(new Lf(e))}}var Lf=function(){function e(t){if(v(this,e),this.total=t,this.total<0)throw new bf}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ff(e,this.total))}}]),e}(),Ff=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(A);function Nf(){return mf()(af.apply(void 0,arguments))}function Vf(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Bf(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Bf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return g(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(A);function zf(e){return function(t){var n=new Hf(e),i=t.lift(n);return n.caught=i}}var Hf=function(){function e(t){v(this,e),this.selector=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Uf(e,this.selector,this.caught))}}]),e}(),Uf=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return g(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void s(p(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new H(this,void 0,void 0);this.add(i);var r=K(this,t,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}(Z);function qf(e,t){return te(e,t,1)}function Wf(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,Mf(1),n?Af(t):Sf(function(){return new ff}))}}function Yf(e,t,n){return function(i){return i.lift(new Gf(e,t,n))}}var Gf=function(){function e(t,n,i){v(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Kf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Kf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e))._tapNext=R,a._tapError=R,a._tapComplete=R,a._tapError=r||R,a._tapComplete=o||R,d(i)?(a._context=f(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||R,a._tapError=i.error||R,a._tapComplete=i.complete||R),a}return g(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(A);function Zf(e){return function(t){return t.lift(new Qf(e))}}var Qf=function(){function e(t){v(this,e),this.callback=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Xf(e,this.callback))}}]),e}(),Xf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).add(new x(i)),r}return n}(A),$f=function e(t,n){v(this,e),this.id=t,this.url=n},Jf=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return g(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),ed=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return g(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}($f),td=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).reason=r,o}return g(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),nd=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).error=r,o}return g(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}($f),id=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),rd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),od=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return g(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}($f),ad=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),sd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),ud=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ld=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),cd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pd=function(){function e(t,n,i){v(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return g(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),vd=function(){function e(t){v(this,e),this.params=t||{}}return g(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function md(e){return new vd(e)}function gd(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yd(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Cd(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sd(e){return Qa(e)?e:Za(e)?ee(Promise.resolve(e)):af(e)}function xd(e,t,n){return n?function(e,t){return _d(e,t)}(e.queryParams,t.queryParams)&&Ed(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return bd(e[n],t[n])})}(e.queryParams,t.queryParams)&&Td(e.root,t.root)}function Ed(e,t){if(!Dd(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Ed(e.children[n],t.children[n]))return!1}return!0}function Td(e,t){return Ad(e,t,t.segments)}function Ad(e,t,n){if(e.segments.length>n.length)return!!Dd(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Dd(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Td(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!Dd(e.segments,r)&&!!e.children.primary&&Ad(e.children.primary,t,o)}var Od=function(){function e(t,n,i){v(this,e),this.root=t,this.queryParams=n,this.fragment=i}return g(e,[{key:"toString",value:function(){return Fd.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),Id=function(){function e(t,n){var i=this;v(this,e),this.segments=t,this.children=n,this.parent=null,Cd(n,function(e,t){return e.parent=i})}return g(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Nd(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Rd=function(){function e(t,n){v(this,e),this.path=t,this.parameters=n}return g(e,[{key:"toString",value:function(){return qd(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}}]),e}();function Dd(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Pd(e,t){var n=[];return Cd(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Cd(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}var Md=function e(){v(this,e)},Ld=function(){function e(){v(this,e)}return g(e,[{key:"parse",value:function(e){var t=new Zd(e);return new Od(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Vd(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Bd(e),"=").concat(Bd(t))}).join("&"):"".concat(Bd(e),"=").concat(Bd(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Fd=new Ld;function Nd(e){return e.segments.map(function(e){return qd(e)}).join("/")}function Vd(e,t){if(!e.hasChildren())return Nd(e);if(t){var n=e.children.primary?Vd(e.children.primary,!1):"",i=[];return Cd(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Vd(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=Pd(e,function(t,n){return"primary"===n?[Vd(e.children.primary,!1)]:["".concat(n,":").concat(Vd(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Nd(e),"/").concat(r[0]):"".concat(Nd(e),"/(").concat(r.join("//"),")")}function jd(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bd(e){return jd(e).replace(/%3B/gi,";")}function zd(e){return jd(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hd(e){return decodeURIComponent(e)}function Ud(e){return Hd(e.replace(/\+/g,"%20"))}function qd(e){return"".concat(zd(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(zd(e),"=").concat(zd(t[e]))}).join("")));var t}var Wd=/^[^\/()?;=#]+/;function Yd(e){var t=e.match(Wd);return t?t[0]:""}var Gd=/^[^=?&#]+/,Kd=/^[^?&#]+/,Zd=function(){function e(t){v(this,e),this.url=t,this.remaining=t}return g(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Id([],{}):new Id([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Id(e,t)),n}},{key:"parseSegment",value:function(){var e=Yd(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Rd(Hd(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Yd(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Yd(this.remaining);i&&(n=i,this.capture(n))}e[Hd(t)]=Hd(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Gd);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Kd);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Ud(t),o=Ud(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Yd(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Id([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Qd=function(){function e(t){v(this,e),this._root=t}return g(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xd(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xd(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$d(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $d(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function Xd(e,t){if(e===t.value)return t;var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=Xd(e,n.value);if(o)return o}}catch(a){r.e(a)}finally{r.f()}return null}function $d(e,t){if(e===t.value)return[t];var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=$d(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){r.e(a)}finally{r.f()}return[]}var Jd=function(){function e(t,n){v(this,e),this.value=t,this.children=n}return g(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ep(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var tp=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).snapshot=i,sp(f(r),e),r}return g(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Qd);function np(e,t){var n=function(e,t){var n=new op([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ap("",new Jd(n,[]))}(e,t),i=new sf([new Rd("",{})]),r=new sf({}),o=new sf({}),a=new sf({}),s=new sf(""),u=new ip(i,r,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new tp(new Jd(u,[]),n)}var ip=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return g(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q(function(e){return md(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(function(e){return md(e)}))),this._queryParamMap}}]),e}();function rp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var op=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return g(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=md(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),ap=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,i)).url=e,sp(f(r),i),r}return g(n,[{key:"toString",value:function(){return up(this._root)}}]),n}(Qd);function sp(e,t){t.value._routerState=e,t.children.forEach(function(t){return sp(e,t)})}function up(e){var t=e.children.length>0?" { ".concat(e.children.map(up).join(", ")," } "):"";return"".concat(e.value).concat(t)}function lp(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,_d(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),_d(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&dp(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(pp);if(r&&r!==wd(i))throw new Error("{outlets:{}} has to be the last command")}return g(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yp=function e(t,n,i){v(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function _p(e,t,n){if(e||(e=new Id([],{})),0===e.segments.length&&e.hasChildren())return bp(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(pp(s))break;var u=""+s,l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sp(u,l,a))return o;i+=2}else{if(!Sp(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex=2&&(n=!0),function(i){return i.lift(new jf(e,t,n))}}(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==Ip)return e;if(i===Ip&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||Op(i))return i}return e},e)},Ip),gf(function(e){return e!==Ip}),Q(function(e){return Op(e)?e:!0===e}),Mf(1))})}var Dp,Pp=((Dp=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Dp)},Dp.\u0275cmp=pt({type:Dp,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&qa(0,"router-outlet")},directives:function(){return[Pv]},encapsulation:2}),Dp);function Mp(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new Id([],{primary:e}):e;return new Od(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Q(function(e){return new Id([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return af({});var o=[],a=[],s={};return Cd(n,function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(e,t,l,u)).pipe(Q(function(e){return s[r]=e}));"primary"===r?o.push(c):a.push(c)}),af.apply(null,o.concat(a)).pipe(mf(),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,kf(1),n?Af(t):Sf(function(){return new ff}))}}(),Q(function(){return s}))}(n.children)}},{key:"expandSegment",value:function(t,n,i,r,o,a){var s=this,u=function(e){return e.reduce(function(e,t){var n=Vp(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(i);u.has(o)||u.set(o,[]);return ee(Array.from(u.entries()).map(function(i){var u=e(i,2),l=u[0],c=function(e){return ee(e).pipe(qf(function(i){return s.expandSegmentAgainstRoute(t,n,e,i,r,o,a).pipe(zf(function(e){if(e instanceof jp)return af(null);throw e}))}),Wf(function(e){return null!==e}),zf(function(e){if(e instanceof ff||"EmptyError"===e.name){if(s.noLeftoversInUrl(n,r,o))return af(new Id([],{}));throw new jp(n)}throw e}))}(u[1]);return l===o?c:c.pipe(Q(function(){return null}),zf(function(){return af(null)}))})).pipe(function(e){return e.lift(new cf(void 0))},Wf(),Q(function(e){return e.find(function(e){return null!==e})}))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Vp(i)!==o&&""!==i.path?zp(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):zp(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Hp(o):this.lineralizeSegments(n,o).pipe(te(function(n){var o=new Id(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Wp(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return zp(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Hp(f):this.lineralizeSegments(i,f).pipe(te(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Q(function(e){return n._loadedConfig=e,new Id(r,{})})):af(new Id(r,{}));var a=Wp(t,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return zp(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(te(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)&&"primary"!==Vp(n)})}(e,n,r)?{segmentGroup:Yp(new Id(t,function(e,t){var n={};n.primary=t;var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;""===a.path&&"primary"!==Vp(a)&&(n[Vp(a)]=new Id([],{}))}}catch(s){o.e(s)}finally{o.f()}return n}(r,new Id(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)})}(e,n,r)?{segmentGroup:Yp(new Id(e.segments,function(e,t,n,r){var o,a={},s=i(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;Gp(e,t,u)&&!r[Vp(u)]&&(a[Vp(u)]=new Id([],{}))}}catch(l){s.e(l)}finally{s.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,c,r),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(Q(function(e){return new Id(u,e)})):0===r.length&&0===l.length?af(new Id(u,{})):o.expandSegment(n,s,r,l,"primary",!0).pipe(Q(function(e){return new Id(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?af(new Tp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?af(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(te(function(n){return n?i.configLoader.load(e.injector,t).pipe(Q(function(e){return t._loadedConfig=e,e})):function(e){return new P(function(t){return t.error(gd("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):af(new Tp([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?af(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&Ap(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!Ap(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Sd(r)})).pipe(Rp(),Yf(function(e){if(Op(e)){var t=gd('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Q(function(e){return!0===e})):af(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return af(n);if(i.numberOfChildren>1||!i.children.primary)return Up(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Od(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Cd(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Cd(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Id(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=i(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(s){o.e(s)}finally{o.f()}return e}}]),t}();function Wp(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||yd)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Yp(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Id(e.segments.concat(t.segments),t.children)}return e}function Gp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Kp=function e(t){v(this,e),this.path=t,this.route=this.path[this.path.length-1]},Zp=function e(t,n){v(this,e),this.component=t,this.route=n};function Qp(e,t,n){var i=e._root;return $p(i,t?t._root:null,n,[i.value])}function Xp(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function $p(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=ep(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Dd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dd(e.url,t.url)||!_d(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cp(e,t)||!_d(e.queryParams,t.queryParams);case"paramsChange":default:return!cp(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Kp(i)):(o.data=a.data,o._resolvedData=a._resolvedData),$p(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Zp(s.outlet.component,a))}else a&&Jp(t,s,r),r.canActivateChecks.push(new Kp(i)),$p(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Cd(o,function(e,t){return Jp(e,n.getContext(t),r)}),r}function Jp(e,t,n){var i=ep(e),r=e.value;Cd(i,function(e,i){Jp(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Zp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ev(e,t){return null!==e&&t&&t(new fd(e)),af(!0)}function tv(e,t){return null!==e&&t&&t(new cd(e)),af(!0)}function nv(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?af(i.map(function(i){return vf(function(){var r,o=Xp(i,t,n);if(function(e){return e&&Ap(e.canActivate)}(o))r=Sd(o.canActivate(t,e));else{if(!Ap(o))throw new Error("Invalid CanActivate guard");r=Sd(o(t,e))}return r.pipe(Wf())})})).pipe(Rp()):af(!0)}function iv(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return vf(function(){return af(t.guards.map(function(r){var o,a=Xp(r,t.node,n);if(function(e){return e&&Ap(e.canActivateChild)}(a))o=Sd(a.canActivateChild(i,e));else{if(!Ap(a))throw new Error("Invalid CanActivateChild guard");o=Sd(a(i,e))}return o.pipe(Wf())})).pipe(Rp())})});return af(r).pipe(Rp())}var rv=function e(){v(this,e)},ov=function(){function e(t,n,i,r,o,a){v(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return g(e,[{key:"recognize",value:function(){try{var e=uv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new op([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Jd(n,t),r=new ap(this.url,i);return this.inheritParamsAndData(r._root),af(r)}catch(o){return new P(function(e){return e.error(o)})}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=rp(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,i=this,r=Pd(t,function(t,n){return i.processSegmentGroup(e,t,n)});return n={},r.forEach(function(e){var t=n[e.value.outlet];if(t){var i=t.url.map(function(e){return e.toString()}).join("/"),r=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[e.value.outlet]=e.value}),r.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),r}},{key:"processSegment",value:function(e,t,n,r){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(u){if(!(u instanceof rv))throw u}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new rv}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new rv;if((e.outlet||"primary")!==i)throw new rv;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?wd(n).parameters:{};r=new op(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+n.length,fv(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new rv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||yd)(n,e,t);if(!i)throw new rv;var r={};Cd(i.posParams,function(e,t){r[t]=e.path});var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),r=new op(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+o.length,fv(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=uv(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Jd(r,d)]}if(0===l.length&&0===f.length)return[new Jd(r,[])];var p=this.processSegment(l,h,f,"primary");return[new Jd(r,p)]}}]),e}();function av(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function sv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function uv(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return lv(e,t,n)&&"primary"!==cv(n)})}(e,n,r)){var a=new Id(t,function(e,t,n,r){var o={};o.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==cv(u)){var l=new Id([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[cv(u)]=l}}}catch(c){s.e(c)}finally{s.f()}return o}(e,t,r,new Id(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return lv(e,t,n)})}(e,n,r)){var s=new Id(e.segments,function(e,t,n,r,o,a){var s,u={},l=i(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(lv(e,n,c)&&!o[cv(c)]){var h=new Id([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===a?e.segments.length:t.length,u[cv(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),u)}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var u=new Id(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function lv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function cv(e){return e.outlet||"primary"}function hv(e){return e.data||{}}function fv(e){return e.resolve||{}}function dv(e){return function(t){return t.pipe(Rf(function(t){var n=e(t);return n?ee(n).pipe(Q(function(){return t})):ee([t])}))}}var pv=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(function(){function e(){v(this,e)}return g(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vv=new Le("ROUTES"),mv=function(){function e(t,n,i,r){v(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return g(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Q(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Tp(kd(r.injector.get(vv)).map(Np),r)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ee(this.loader.load(e)):Sd(e()).pipe(te(function(e){return e instanceof Ou?af(e):ee(t.compiler.compileModuleAsync(e))}))}}]),e}(),gv=function e(){v(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new yv,this.attachRef=null},yv=function(){function e(){v(this,e),this.contexts=new Map}return g(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new gv,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),_v=function(){function e(){v(this,e)}return g(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bv(e){throw e}function kv(e,t,n){return t.parse("/")}function wv(e,t){return af(null)}var Cv,Sv,xv,Ev=((xv=function(){function e(t,n,i,r,o,a,s,u){var l=this;v(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=bv,this.malformedUriErrorHandler=kv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wv,afterPreactivation:wv},this.urlHandlingStrategy=new _v,this.routeReuseStrategy=new pv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Au),this.console=o.get(xl);var c=o.get(Vl);this.isNgZoneEnabled=c instanceof Vl,this.resetConfig(u),this.currentUrlTree=new Od(new Id([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mv(a,s,function(e){return l.triggerEvent(new ud(e))},function(e){return l.triggerEvent(new ld(e))}),this.routerState=np(this.currentUrlTree,this.rootComponentType),this.transitions=new sf({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return g(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(gf(function(e){return 0!==e.id}),Q(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Rf(function(e){var i,r,o,a=!1,s=!1;return af(e).pipe(Yf(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Rf(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return af(e).pipe(Rf(function(e){var i=t.transitions.getValue();return n.next(new Jf(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?df:[e]}),Rf(function(e){return Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Rf(function(e){return function(e,t,n,i,r){return new qp(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Q(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),Yf(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return function(i){return i.pipe(te(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ov(e,t,n,i,r,o).recognize()}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Q(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Yf(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),Yf(function(e){var i=new id(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Jf(u,t.serializeUrl(l),c,h);n.next(d);var p=np(l,t.rootComponentType).snapshot;return af(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),df}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Yf(function(e){var n=new rd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Q(function(e){return Object.assign(Object.assign({},e),{guards:Qp(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(te(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?af(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ee(e).pipe(te(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?af(o.map(function(o){var a,s=Xp(o,t,r);if(function(e){return e&&Ap(e.canDeactivate)}(s))a=Sd(s.canDeactivate(e,t,n,i));else{if(!Ap(s))throw new Error("Invalid CanDeactivate guard");a=Sd(s(e,t,n,i))}return a.pipe(Wf())})).pipe(Rp()):af(!0)}(e.component,e.route,n,t,i)}),Wf(function(e){return!0!==e},!0))}(s,i,r,e).pipe(te(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ee(t).pipe(qf(function(t){return ee([tv(t.route.parent,i),ev(t.route,i),iv(e,t.path,n),nv(e,t.route,n)]).pipe(mf(),Wf(function(e){return!0!==e},!0))}),Wf(function(e){return!0!==e},!0))}(i,a,e,t):af(n)}),Q(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Yf(function(e){if(Op(e.guardsResult)){var n=gd('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),Yf(function(e){var n=new od(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),gf(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),dv(function(e){if(e.guards.canActivateChecks.length)return af(e).pipe(Yf(function(e){var n=new ad(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Rf(function(e){var i,r,o=!1;return af(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(te(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return af(e);var o=0;return ee(n).pipe(qf(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return af({});var o={};return ee(r).pipe(te(function(r){return function(e,t,n,i){var r=Xp(e,t,i);return Sd(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Yf(function(e){o[r]=e}))}),kf(1),te(function(){return Object.keys(o).length===r.length?af(o):df}))}(e._resolve,e,t,i).pipe(Q(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),rp(e,n).resolve),null}))}(e.route,t,i,r)}),Yf(function(){return o++}),kf(1),te(function(t){return o===n.length?af(e):df}))}))}),Yf({next:function(){return o=!0},complete:function(){if(!o){var i=new td(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Yf(function(e){var n=new sd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Q(function(e){var n=function(e,t,n){var i=hp(e,t._root,n?n._root:void 0);return new tp(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Yf(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Q(function(e){return new xp(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Yf({next:function(){a=!0},complete:function(){a=!0}}),Zf(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),zf(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=Op(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new td(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new nd(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(l){e.reject(l)}}var u;return df}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Mp(e),this.config=e.map(Np),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.relativeTo,r=n.queryParams,o=n.fragment,a=n.queryParamsHandling,s=n.preserveFragment,u=i||this.routerState.root,l=s?this.currentUrlTree.fragment:o,c=null;switch(a){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(e,n,i,r,o){if(0===i.length)return vp(n.root,n.root,n,r,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gp(!0,0,e);var n=0,i=!1,r=e.reduce(function(e,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Cd(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(t(e),[{outlets:a}])}if(r.segmentPath)return[].concat(t(e),[r.segmentPath])}return"string"!=typeof r?[].concat(t(e),[r]):0===o?(r.split("/").forEach(function(t,r){0==r&&"."===t||(0==r&&""===t?i=!0:".."===t?n++:""!=t&&e.push(t))}),e):[].concat(t(e),[r])},[]);return new gp(i,n,r)}(i);if(a.toRoot())return vp(n.root,new Id([],{}),n,r,o);var s=function(e,t,n){if(e.isAbsolute)return new yp(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yp(i,i===t.root,0)}var r=dp(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yp(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,n,e),u=s.processChildren?bp(s.segmentGroup,s.index,a.commands):_p(s.segmentGroup,s.index,a.commands);return vp(s.segmentGroup,u,n,r,o)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Op(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};v(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return g(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Jf?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ed&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof pd&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new pd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Rv)(Lt(Ev),Lt(gh),Lt(void 0))},Rv.\u0275prov=Ee({token:Rv,factory:Rv.\u0275fac}),Rv),jv=new Le("ROUTER_CONFIGURATION"),Bv=new Le("ROUTER_FORROOT_GUARD"),zv=[Fc,{provide:Md,useClass:Ld},{provide:Ev,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Ev(null,e,t,n,i,r,o,kd(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var h=pc();c.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return c},deps:[Md,yv,Fc,ba,oc,Ll,vv,jv,[function(){return function e(){v(this,e)}}(),new _e],[function(){return function e(){v(this,e)}}(),new _e]]},yv,{provide:ip,useFactory:function(e){return e.routerState.root},deps:[Ev]},{provide:oc,useClass:uc},Nv,Fv,function(){function e(){v(this,e)}return g(e,[{key:"preload",value:function(e,t){return t().pipe(zf(function(){return af(null)}))}}]),e}(),{provide:jv,useValue:{enableTracing:!1}}];function Hv(){return new Xl("Router",Ev)}var Uv,qv=((Uv=function(){function e(t,n){v(this,e)}return g(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[zv,Kv(t),{provide:Bv,useFactory:Gv,deps:[[Ev,new _e,new ke]]},{provide:jv,useValue:n||{}},{provide:Ac,useFactory:Yv,deps:[gc,[new ye(Pc),new _e],jv]},{provide:Vv,useFactory:Wv,deps:[Ev,gh,jv]},{provide:Lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fv},{provide:Xl,multi:!0,useFactory:Hv},[Qv,{provide:gl,multi:!0,useFactory:Xv,deps:[Qv]},{provide:Jv,useFactory:$v,deps:[Qv]},{provide:Sl,multi:!0,useExisting:Jv}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Kv(t)]}}}]),e}()).\u0275mod=yt({type:Uv}),Uv.\u0275inj=Te({factory:function(e){return new(e||Uv)(Lt(Bv,8),Lt(Ev,8))}}),Uv);function Wv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Vv(e,t,n)}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Lc(e,t):new Mc(e,t)}function Gv(e){return"guarded"}function Kv(e){return[{provide:Fe,multi:!0,useValue:e},{provide:vv,multi:!0,useValue:e}]}var Zv,Qv=((Zv=function(){function e(t){v(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return g(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(bc,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(Ev),r=e.injector.get(jv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?af(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(jv),n=this.injector.get(Nv),i=this.injector.get(Vv),r=this.injector.get(Ev),o=this.injector.get(ic);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||Zv)(Lt(ba))},Zv.\u0275prov=Ee({token:Zv,factory:Zv.\u0275fac}),Zv);function Xv(e){return e.appInitializer.bind(e)}function $v(e){return e.bootstrapListener.bind(e)}var Jv=new Le("Router Initializer"),em=function e(){v(this,e)},tm=function e(){v(this,e)},nm=function(){function e(t){var n=this;v(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return g(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var n=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,n);var r=("a"===e.op?this.headers.get(n):void 0)||[];r.push.apply(r,t(i)),this.headers.set(n,r);break;case"d":var o=e.value;if(o){var a=this.headers.get(n);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),im=function(){function e(){v(this,e)}return g(e,[{key:"encodeKey",value:function(e){return rm(e)}},{key:"encodeValue",value:function(e){return rm(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function rm(e){return encodeURIComponent(e).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,"/")}var om=function(){function t(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new im,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){var i=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),o=e(-1==r?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,r)),n.decodeValue(t.slice(r+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var t=i.fromObject[e];n.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return g(t,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function am(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function sm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function um(e){return"undefined"!=typeof FormData&&e instanceof FormData}var lm=function(){function e(t,n,i,r){var o;if(v(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new nm),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,i,o,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),cm=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),hm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,e),this.headers=t.headers||new nm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},fm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.ResponseHeader,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),dm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.Response,e.body=void 0!==i.body?i.body:null,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),pm=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(hm);function vm(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var mm,gm,ym,_m,bm,km,wm,Cm,Sm,xm,Em,Tm,Am,Om,Im,Rm=((mm=function(){function e(t){v(this,e),this.handler=t}return g(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof lm)n=e;else{var o=void 0;o=r.headers instanceof nm?r.headers:new nm(r.headers);var a=void 0;r.params&&(a=r.params instanceof om?r.params:new om({fromObject:r.params})),n=new lm(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=af(n).pipe(qf(function(e){return i.handler.handle(e)}));if(e instanceof lm||"events"===r.observe)return s;var u=s.pipe(gf(function(e){return e instanceof dm}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Q(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(Q(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new om).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,vm(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,vm(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,vm(n,t))}}]),e}()).\u0275fac=function(e){return new(e||mm)(Lt(em))},mm.\u0275prov=Ee({token:mm,factory:mm.\u0275fac}),mm),Dm=function(){function e(t,n){v(this,e),this.next=t,this.interceptor=n}return g(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Pm=new Le("HTTP_INTERCEPTORS"),Mm=((gm=function(){function e(){v(this,e)}return g(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||gm)},gm.\u0275prov=Ee({token:gm,factory:gm.\u0275fac}),gm),Lm=/^\)\]\}',?\n/,Fm=function e(){v(this,e)},Nm=((_m=function(){function e(){v(this,e)}return g(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||_m)},_m.\u0275prov=Ee({token:_m,factory:_m.\u0275fac}),_m),Vm=((ym=function(){function e(t){v(this,e),this.xhrFactory=t}return g(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new nm(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new fm({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(Lm,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new dm({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new pm({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new pm({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(u()),h=!0);var r={type:cm.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:cm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),e.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:cm.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||ym)(Lt(Fm))},ym.\u0275prov=Ee({token:ym,factory:ym.\u0275fac}),ym),jm=new Le("XSRF_COOKIE_NAME"),Bm=new Le("XSRF_HEADER_NAME"),zm=function e(){v(this,e)},Hm=((Im=function(){function e(t,n,i){v(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return g(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uc(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Im)(Lt(mc),Lt(Cl),Lt(jm))},Im.\u0275prov=Ee({token:Im,factory:Im.\u0275fac}),Im),Um=((Om=function(){function e(t,n){v(this,e),this.tokenService=t,this.headerName=n}return g(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Om)(Lt(zm),Lt(Bm))},Om.\u0275prov=Ee({token:Om,factory:Om.\u0275fac}),Om),qm=((Am=function(){function e(t,n){v(this,e),this.backend=t,this.injector=n,this.chain=null}return g(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Pm,[]);this.chain=t.reduceRight(function(e,t){return new Dm(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Am)(Lt(tm),Lt(ba))},Am.\u0275prov=Ee({token:Am,factory:Am.\u0275fac}),Am),Wm=((Tm=function(){function e(){v(this,e)}return g(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Um,useClass:Mm}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:jm,useValue:t.cookieName}:[],t.headerName?{provide:Bm,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=yt({type:Tm}),Tm.\u0275inj=Te({factory:function(e){return new(e||Tm)},providers:[Um,{provide:Pm,useExisting:Um,multi:!0},{provide:zm,useClass:Hm},{provide:jm,useValue:"XSRF-TOKEN"},{provide:Bm,useValue:"X-XSRF-TOKEN"}]}),Tm),Ym=((Em=function e(){v(this,e)}).\u0275mod=yt({type:Em}),Em.\u0275inj=Te({factory:function(e){return new(e||Em)},providers:[Rm,{provide:em,useClass:qm},Vm,{provide:tm,useExisting:Vm},Nm,{provide:Fm,useExisting:Nm}],imports:[[Wm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Em),Gm=((xm=function(){function e(t){v(this,e),this.http=t}return g(e,[{key:"load",value:function(){var e=this;return this._configData=null,this.http.get("/client/assets/data/config.json").toPromise().then(function(t){null==t.apiBaseUrl&&(t.apiBaseUrl="/"),e._configData=t}).catch(function(e){return Promise.resolve()})}},{key:"configData",get:function(){return this._configData},set:function(e){this._configData=e}}]),e}()).\u0275fac=function(e){return new(e||xm)(Lt(Rm))},xm.\u0275prov=Ee({token:xm,factory:xm.\u0275fac,providedIn:"root"}),xm),Km=((Sm=function(){function e(t,n){v(this,e),this.configService=t,this.platformId=n,this.isActive=!1,vh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}return g(e,[{key:"init",value:function(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}},{key:"onGlobalError",value:function(e){this.sendException("message: ".concat(e.message," | filenname: ").concat(e.filename," | lineno: ").concat(e.lineno," | colno: ").concat(e.colno))}},{key:"sendPageView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href;if(this.isActive){var n={page_title:e,page_path:t};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}},{key:"sendEvent",value:function(e,t,n,i){this.isActive&&this.gtag("event",e,{event_category:t,event_label:n,value:i})}},{key:"sendException",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isActive&&this.gtag("event","exception",{description:e,fatal:t})}}]),e}()).\u0275fac=function(e){return new(e||Sm)(Lt(Gm),Lt(Cl))},Sm.\u0275prov=Ee({token:Sm,factory:Sm.\u0275fac,providedIn:"root"}),Sm),Zm=((Cm=function(){function e(t){v(this,e),this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}return g(e,[{key:"onClick",value:function(e){this.evLabel=e.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}]),e}()).\u0275fac=function(e){return new(e||Cm)(Va(Km))},Cm.\u0275dir=bt({type:Cm,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(e,t){1&e&&Xa("click",function(e){return t.onClick(e.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),Cm),Qm=((wm=function(){function e(){v(this,e)}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wm)},wm.\u0275cmp=pt({type:wm,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h2"),xs(3," Background "),Ua(),Ha(4,"p",2),xs(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Ha(6,"a",3),xs(7,"download the self-contained instance of ADME@NCATS"),Ua(),xs(8," that can be run locally. "),Ua(),Ha(9,"p",2),xs(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Ua(),Ua(),Ua())},directives:[Zm],styles:[""]}),wm),Xm=((km=function(){function e(){v(this,e),this.loadingStateEmitter=new j}return g(e,[{key:"setLoadingState",value:function(e){this.loadingStateEmitter.next(e)}},{key:"isLoading",get:function(){return this.loadingStateEmitter.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||km)},km.\u0275prov=Ee({token:km,factory:km.\u0275fac,providedIn:"root"}),km);try{bm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cP){bm=!1}var $m,Jm,eg,tg,ng,ig=((eg=function e(t){v(this,e),this._platformId=t,this.isBrowser=this._platformId?vh(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&&!bm)&&"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}).\u0275fac=function(e){return new(e||eg)(Lt(Cl))},eg.\u0275prov=Ee({factory:function(){return new eg(Lt(Cl))},token:eg,providedIn:"root"}),eg),rg=((Jm=function e(){v(this,e)}).\u0275mod=yt({type:Jm}),Jm.\u0275inj=Te({factory:function(e){return new(e||Jm)}}),Jm),og=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ag(){if($m)return $m;if("object"!=typeof document||!document)return $m=new Set(og);var e=document.createElement("input");return $m=new Set(og.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function sg(e){return function(){if(null==tg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return tg=!0}}))}finally{tg=tg||!1}return tg}()?e:!!e.capture}function ug(e){if(function(){if(null==ng){var e="undefined"!=typeof document?document.head:null;ng=!(!e||!e.createShadowRoot&&!e.attachShadow)}return ng}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function lg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){u(n,e);var t=c(n);function n(e,i){return v(this,n),t.call(this)}return g(n,[{key:"schedule",value:function(e){return this}}]),n}(x)),hg=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.SchedulerAction=t,this.now=n}return g(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),fg=function(e){u(n,e);var t=c(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hg.now;return v(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return g(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):s(p(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(hg),dg=new fg(cg);function pg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg;return function(n){return n.lift(new vg(e,t))}}var vg=function(){function e(t,n){v(this,e),this.dueTime=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new mg(e,this.dueTime,this.scheduler))}}]),e}(),mg=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return g(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(A);function gg(e){e.debouncedNext()}function yg(e){return null!=e&&""+e!="false"}function _g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function bg(e){return Array.isArray(e)?e:[e]}function kg(e){return null==e?"":"string"==typeof e?e:e+"px"}function wg(e){return e instanceof Qs?e.nativeElement:e}var Cg,Sg,xg,Eg,Tg=((Eg=function(){function e(){v(this,e)}return g(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||Eg)},Eg.\u0275prov=Ee({factory:function(){return new Eg},token:Eg,providedIn:"root"}),Eg),Ag=((xg=function(){function e(t){v(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return g(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=wg(e);return new P(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new j,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||xg)(Lt(Tg))},xg.\u0275prov=Ee({factory:function(){return new xg(Lt(Tg))},token:xg,providedIn:"root"}),xg),Og=((Sg=function(){function e(t,n,i){v(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Ku,this._disabled=!1,this._currentSubscription=null}return g(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(pg(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=_g(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Sg)(Va(Ag),Va(Qs),Va(Vl))},Sg.\u0275dir=bt({type:Sg,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Sg),Ig=((Cg=function e(){v(this,e)}).\u0275mod=yt({type:Cg}),Cg.\u0275inj=Te({factory:function(e){return new(e||Cg)},providers:[Tg]}),Cg);function Rg(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Dg,Pg,Mg=0,Lg=new Map,Fg=null,Ng=((Dg=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Lg.set(t,{messageElement:t,referenceCount:0})):Lg.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Lg.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Fg&&0===Fg.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return g(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yf(function(t){return e._pressedLetters.push(t)}),pg(t),gf(function(){return e._pressedLetters.length>0}),Q(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||lg(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Qu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),jg=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Vg),Bg=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._origin="program",e}return g(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Vg),zg=((Pg=function(){function e(t){v(this,e),this._platform=t}return g(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(cP){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Ug(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Ug(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Hg(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Pg)(Lt(ig))},Pg.\u0275prov=Ee({factory:function(){return new Pg(Lt(ig))},token:Pg,providedIn:"root"}),Pg);function Hg(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Ug(e){if(!Hg(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var qg,Wg=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return g(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Mf(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),Yg=((qg=function(){function e(t,n,i){v(this,e),this._checker=t,this._ngZone=n,this._document=i}return g(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Wg(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||qg)(Lt(zg),Lt(Vl),Lt(mc))},qg.\u0275prov=Ee({factory:function(){return new qg(Lt(zg),Lt(Vl),Lt(mc))},token:qg,providedIn:"root"}),qg);"undefined"!=typeof Element&∈var Gg,Kg=new Le("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Zg=new Le("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Qg=((Gg=function(){function t(e,n,i,r){v(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return g(t,[{key:"announce",value:function(t){for(var n,i,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1],n=wg(e);if(!this._platform.isBrowser||1!==n.nodeType)return af(null);var i=ug(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new j,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=wg(e);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,t,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=ny(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===ny(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,ey),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ey)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,ey),e.addEventListener("mousedown",t._documentMousedownListener,ey),e.addEventListener("touchstart",t._documentTouchstartListener,ey),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ey),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ey),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,ey),i.removeEventListener("mousedown",this._documentMousedownListener,ey),i.removeEventListener("touchstart",this._documentTouchstartListener,ey),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}}]),e}()).\u0275fac=function(e){return new(e||$g)(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},$g.\u0275prov=Ee({factory:function(){return new $g(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},token:$g,providedIn:"root"}),$g);function ny(e){return e.composedPath?e.composedPath()[0]:e.target}var iy,ry,oy,ay,sy,uy,ly,cy,hy=((oy=function(){function e(t,n){v(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Ku}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||oy)(Va(Qs),Va(ty))},oy.\u0275dir=bt({type:oy,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),oy),fy=((ry=function(){function e(t,n){v(this,e),this._platform=t,this._document=n}return g(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||ry)(Lt(ig),Lt(mc))},ry.\u0275prov=Ee({factory:function(){return new ry(Lt(ig),Lt(mc))},token:ry,providedIn:"root"}),ry),dy=((iy=function e(t){v(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=yt({type:iy}),iy.\u0275inj=Te({factory:function(e){return new(e||iy)(Lt(fy))},imports:[[rg,Ig]]}),iy),py=function(){function e(){v(this,e)}return g(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),vy=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(py),my=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return g(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,s(p(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,s(p(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(py),gy=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).element=e instanceof Qs?e.nativeElement:e,i}return n}(py),yy=function(){function e(){v(this,e),this._isDisposed=!1,this.attachDomPortal=null}return g(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof vy?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof my?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof gy?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),_y=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var u,l;return v(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=o,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),s((u=f(l),p(n.prototype)),"setDisposeFn",u).call(u,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=a,l}return g(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){s(p(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(yy),by=((sy=function(e){u(n,e);var t=c(n);function n(e,i,r){var o,a;return v(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Ku,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(f(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),s((o=f(a),p(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return g(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),s(p(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return s(p(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&s(p(n.prototype),"detach",this).call(this),e&&s(p(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(yy)).\u0275fac=function(e){return new(e||sy)(Va(Ys),Va(Ru),Va(mc))},sy.\u0275dir=bt({type:sy,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[wa]}),sy),ky=((ay=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(by)).\u0275fac=function(e){return wy(e||ay)},ay.\u0275dir=bt({type:ay,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Us([{provide:by,useExisting:ay}]),wa]}),ay),wy=pr(ky),Cy=((uy=function e(){v(this,e)}).\u0275mod=yt({type:uy}),uy.\u0275inj=Te({factory:function(e){return new(e||uy)}}),uy),Sy=new Le("cdk-dir-doc",{providedIn:"root",factory:function(){return Ft(mc)}}),xy=((cy=function(){function e(t){if(v(this,e),this.value="ltr",this.change=new Ku,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return g(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||cy)(Lt(Sy,8))},cy.\u0275prov=Ee({factory:function(){return new cy(Lt(Sy,8))},token:cy,providedIn:"root"}),cy),Ey=((ly=function e(){v(this,e)}).\u0275mod=yt({type:ly}),ly.\u0275inj=Te({factory:function(e){return new(e||ly)}}),ly),Ty=new tu("11.0.1"),Ay=function e(){v(this,e)};function Oy(e,t){return{type:7,name:e,definitions:t,options:{}}}function Iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Ry(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Dy(e){return{type:6,styles:e,offset:null}}function Py(e,t,n){return{type:0,name:e,styles:t,options:n}}function My(e){return{type:5,steps:e}}function Ly(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Fy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Ny(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Vy(e){Promise.resolve(null).then(e)}var jy=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Vy(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),By=function(){function e(t){var n=this;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?Vy(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function zy(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hy(e){switch(e.length){case 0:return new jy;case 1:return e[0];default:return new By(e)}}function Uy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(i.forEach(function(e){var n=e.offset,i=n==u,c=i&&l||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function qy(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Wy(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Wy(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Wy(n,"destroy",e))})}}function Wy(e,t,n){var i=n.totalTime,r=Yy(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Yy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Gy(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Ky(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Zy=function(e,t){return!1},Qy=function(e,t){return!1},Xy=function(e,t,n){return[]},$y=zy();($y||"undefined"!=typeof Element)&&(Zy=function(e,t){return e.contains(t)},Qy=function(){if($y||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Qy}(),Xy=function(e,n,i){var r=[];if(i)r.push.apply(r,t(e.querySelectorAll(n)));else{var o=e.querySelector(n);o&&r.push(o)}return r});var Jy=null,e_=!1;function t_(e){Jy||(Jy=("undefined"!=typeof document?document.body:null)||{},e_=!!Jy.style&&"WebkitAppearance"in Jy.style);var t=!0;return Jy.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Jy.style)&&e_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Jy.style),t}var n_=Qy,i_=Zy,r_=Xy;function o_(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var a_,s_=((a_=function(){function e(){v(this,e)}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new jy(n,i)}}]),e}()).\u0275fac=function(e){return new(e||a_)},a_.\u0275prov=Ee({token:a_,factory:a_.\u0275fac}),a_),u_=function(){var e=function e(){v(this,e)};return e.NOOP=new s_,e}();function l_(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:c_(parseFloat(t[1]),t[2])}function c_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function h_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=c_(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=c_(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=e;if(!n){var l=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function f_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function d_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else f_(e,n);return n}function p_(e,t,n){return n?t+":"+n+";":""}function v_(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(R_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(R_(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:N_(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return T_(n,e,t)}),options:N_(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=T_(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:N_(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return V_(h_(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=V_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return V_((n=n||h_(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Dy({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Dy(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(F_(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[i],d=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),d=!1),o=f.startTime),d&&(h[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,u=t.errors,l=s.params||{},(c=b_(a)).length&&c.forEach(function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:T_(this,y_(e.animation),t),options:N_(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:N_(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:N_(e.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,r=t.options||{};n.queryCount++,n.currentQuery=t;var o=e(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(D_,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(t.selector),2),a=o[0],s=o[1];n.currentQuerySelector=i.length?i+" "+a:a,Gy(n.collectedStyles,n.currentQuerySelector,{});var u=T_(this,y_(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:N_(t.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:h_(e.timings,t.errors,!0);return{type:12,animation:T_(this,y_(e.animation),t),timings:n,options:null}}}]),t}(),L_=function e(t){v(this,e),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 F_(e){return!Array.isArray(e)&&"object"==typeof e}function N_(e){var t;return e?(e=f_(e)).params&&(e.params=(t=e.params)?f_(t):null):e={},e}function V_(e,t,n){return{duration:e,delay:t,easing:n}}function j_(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var B_=function(){function e(){v(this,e),this._map=new Map}return g(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,n){var i,r=this._map.get(e);r||this._map.set(e,r=[]),(i=r).push.apply(i,t(n))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),z_=new RegExp(":enter","g"),H_=new RegExp(":leave","g");function U_(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new q_).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var q_=function(){function e(){v(this,e)}return g(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new B_;var c=new Y_(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),T_(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[j_(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?l_(n.duration):null,o=null!=n.delay?l_(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),T_(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=W_);var a=l_(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return T_(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?l_(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),T_(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return h_(t.params?k_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?l_(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=W_);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),T_(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;T_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),W_={},Y_=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=W_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new G_(this._driver,n,0),s.push(this.currentTimeline)}return g(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=l_(i.duration)),null!=i.delay&&(r.delay=l_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=k_(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=W_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new K_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,n,i,r,o,a){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(z_,"."+this._enterClassName)).replace(H_,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push.apply(s,t(u))}return o||0!=s.length||a.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),G_=function(){function e(t,n,i,r){v(this,e),this._driver=t,this.element=n,this.startTime=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return g(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):d_(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=k_(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=d_(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?w_(t.values()):[],a=n.size?w_(n.values()):[];if(i){var s=r[0],u=f_(s);s.offset=0,u.offset=1,r=[s,u]}return j_(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),K_=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return g(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=d_(e[0],!1);u.offset=0,o.push(u);var l=d_(e[0],!1);l.offset=Z_(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=d_(e[h],!1);f.offset=Z_((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return j_(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(G_);function Z_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Q_=function e(){v(this,e)},X_=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"normalizePropertyName",value:function(e,t){return S_(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if($_[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Q_),$_=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function J_(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var eb={},tb=function(){function e(t,n,i){v(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return g(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||eb,f=this.buildStyles(n,a&&a.params||eb,c),d=s&&s.params||eb,p=this.buildStyles(i,d,c),v=new Set,m=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=l?[]:U_(e,t,this.ast.animation,r,o,f,p,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return J_(t,this._triggerName,n,i,y,f,p,[],[],m,g,k,c);b.forEach(function(e){var n=e.element,i=Gy(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Gy(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=w_(v.values());return J_(t,this._triggerName,n,i,y,f,p,b,w,m,g,k)}}]),e}(),nb=function(){function e(t,n){v(this,e),this.styles=t,this.defaultParams=n}return g(e,[{key:"buildStyles",value:function(e,t){var n={},i=f_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=k_(o,i,t)),n[e]=o})}}),n}}]),e}(),ib=function(){function e(t,n){var i=this;v(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new nb(e.style,e.options&&e.options.params||{})}),rb(this.states,"true","1"),rb(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new tb(t,e,i.states))}),this.fallbackTransition=new tb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return g(e,[{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function rb(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var ob=new B_,ab=function(){function e(t,n,i){v(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return g(e,[{key:"register",value:function(e,t){var n=[],i=P_(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Uy(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=U_(this._driver,t,a,"ng-enter","ng-leave",{},{},r,ob,o)).forEach(function(e){var t=Gy(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var u=Hy(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=Yy(t,"","","");return qy(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),sb=[],ub={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=f_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return g(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}},{key:"params",get:function(){return this.options.params}}]),e}(),hb=new cb("void"),fb=function(){function e(t,n,i){v(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_b(n,this._hostClassName)}return g(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Gy(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=Gy(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),u[t]=hb),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new pb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new cb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=hb),"void"===l.value||u.value!==l.value){var c=Gy(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(_b(e,"ng-animate-queued"),a.onStart(function(){bb(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_b(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bb(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(vb(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return vb(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Hy(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=ub,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(n).forEach(function(e){var t=e.player,n=e.element;if(x.push(t),i.collectedEnterElements.length){var a=n.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!f||!i.driver.containsElement(f,n),d=C.get(n),p=v.get(n),m=i._buildInstruction(e,r,p,d,h);if(m.errors&&m.errors.length)E.push(m);else{if(h)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(n,m.timelines),s.push({instruction:m,player:t,element:n}),m.queriedElements.forEach(function(e){return Gy(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(E.length){var A=[];E.forEach(function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return A.push("- ".concat(e,"\n"))})}),x.forEach(function(e){return e.destroy()}),this.reportError(A)}var O=new Map,I=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(I.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),o.forEach(function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Gy(O,t,[]).push(e),e.destroy()})});var R=g.filter(function(e){return Cb(e,l,c)}),D=new Map;gb(D,this.driver,_,c,"*").forEach(function(e){Cb(e,l,c)&&R.push(e)});var P=new Map;p.forEach(function(e,t){gb(P,i.driver,new Set(e),l,"!")}),R.forEach(function(e){var t=D.get(e),n=P.get(e);D.set(e,Object.assign(Object.assign({},t),n))});var M=[],L=[],F={};s.forEach(function(e){var t=e.element,n=e.player,s=e.instruction;if(r.has(t)){if(h.has(t))return n.onDestroy(function(){return m_(t,s.toStyles)}),n.disabled=!0,n.overrideTotalTime(s.totalTime),void o.push(n);var u=F;if(I.size>1){for(var l=t,c=[];l=l.parentNode;){var f=I.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(e){return I.set(e,u)})}var d=i._buildAnimation(n.namespaceId,s,O,a,P,D);if(n.setRealPlayer(d),u===F)M.push(n);else{var p=i.playersByElement.get(u);p&&p.length&&(n.parentPlayer=Hy(p)),o.push(n)}}else g_(t,s.fromStyles),n.onDestroy(function(){return m_(t,s.toStyles)}),L.push(n),h.has(t)&&o.push(n)}),L.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=Hy(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new jy(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),pb=function(){function e(t,n,i){v(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new jy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return g(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return qy(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Gy(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function vb(e){return e&&1===e.nodeType}function mb(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function gb(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(mb(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=lb,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return mb(e,o[s++])}),a}function yb(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function _b(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function bb(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function kb(e,t,n){Hy(n).onDone(function(){return e.processLeaveNode(t)})}function wb(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function xb(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Tb(t[0]),t.length>1&&(i=Tb(t[t.length-1]))):t&&(n=Tb(t)),n||i?new Eb(e,n,i):null}var Eb=function(){var e=function(){function e(t,n,i){v(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return g(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&m_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(m_(this._element,this._initialStyles),this._endStyles&&(m_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(g_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(g_(this._element,this._endStyles),this._endStyles=null),m_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Tb(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Pb(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Lb(e,"").split(","),(i=Db(n,t))>=0&&(n.splice(i,1),Mb(e,"",n.join(","))))}}]),e}();function Ib(e,t,n){Mb(e,"PlayState",n,Rb(e,t))}function Rb(e,t){var n=Lb(e,"");return n.indexOf(",")>0?Db(n.split(","),t):Db([n],t)}function Db(e,t){for(var n=0;n=0)return n;return-1}function Pb(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Mb(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Lb(e,t){return e.style["animation"+t]}var Fb=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return g(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Ob(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:A_(e.element,i))})}this.currentSnapshot=t}}]),e}(),Nb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=o_(i),r}return g(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),s(p(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),s(p(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,s(p(n.prototype),"destroy",this).call(this))}}]),n}(jy),Vb=function(){function e(){v(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return o_(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter(function(e){return e instanceof Fb}),u={};x_(n,i)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=E_(e,t,u));if(0==n)return new Nb(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=xb(e,t),d=new Fb(e,t,c,n,i,r,l,f);return d.onDestroy(function(){var e;(e=h).parentNode.removeChild(e)}),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),jb=function(){function e(t,n,i,r){v(this,e),this.element=t,this.keyframes=n,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:A_(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Bb=function(){function e(){v(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zb().toString()),this._cssKeyframesDriver=new Vb}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof jb});x_(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=xb(e,t=E_(e,t=t.map(function(e){return d_(e,!1)}),u));return new jb(e,t,s,c)}}]),e}();function zb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Hb,Ub=((Hb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}}),r}return g(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ry(e):e;return Yb(this._renderer,null,t,"register",[n]),new qb(t,this._renderer)}}]),n}(Ay)).\u0275fac=function(e){return new(e||Hb)(Lt(Xs),Lt(mc))},Hb.\u0275prov=Ee({token:Hb,factory:Hb.\u0275fac}),Hb),qb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return g(n,[{key:"create",value:function(e,t){return new Wb(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){v(this,e)}}()),Wb=function(){function e(t,n,i,r){v(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return g(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),$b=function(t){u(i,t);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,t,r,o)).factory=e,a.namespaceId=t,a}return g(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(t,n,i){var r,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t),l=n.substr(1),c="";return"@"!=l.charAt(0)&&(o=(r=l).indexOf("."),l=(s=e([r.substring(0,o),r.substr(o+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,u,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(t,n,i)}}]),i}(Xb),Jb=((Kb=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e.body,i,r)}return n}(Sb)).\u0275fac=function(e){return new(e||Kb)(Lt(mc),Lt(u_),Lt(Q_))},Kb.\u0275prov=Ee({token:Kb,factory:Kb.\u0275fac}),Kb),ek=new Le("AnimationModuleType"),tk=[{provide:u_,useFactory:function(){return"function"==typeof zb()?new Bb:new Vb}},{provide:ek,useValue:"BrowserAnimations"},{provide:Ay,useClass:Ub},{provide:Q_,useFactory:function(){return new X_}},{provide:Sb,useClass:Jb},{provide:Xs,useFactory:function(e,t,n){return new Qb(e,t,n)},deps:[qh,Sb,Vl]}],nk=((Zb=function e(){v(this,e)}).\u0275mod=yt({type:Zb}),Zb.\u0275inj=Te({factory:function(e){return new(e||Zb)},providers:tk,imports:[of]}),Zb);function ik(e,t){if(1&e&&qa(0,"mat-pseudo-checkbox",3),2&e){var n=ns();Ba("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var rk,ok=["*"],ak=function(){var e=function e(){v(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),sk=function(){var e=function e(){v(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),uk=new tu("11.0.1"),lk=new Le("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ck=((rk=function(){function e(t,n,i){v(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return g(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Xn()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){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.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&uk.full!==Ty.full&&console.warn("The Angular Material version ("+uk.full+") does not match the Angular CDK version ("+Ty.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=yt({type:rk}),rk.\u0275inj=Te({factory:function(e){return new(e||rk)(Lt(fy),Lt(lk,8),Lt(mc))},imports:[[Ey],Ey]}),rk);function hk(e){return function(e){u(n,e);var t=c(n);function n(){var e;v(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Ak),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new Tk(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Ak),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=wg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Ik))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Rk),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Xg(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,Ok)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Ik.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}),this._pointerUpEventsRegistered&&Rk.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}))}}]),e}(),Pk=new Le("mat-ripple-global-options"),Mk=((kk=function(){function e(t,n,i,r,o){v(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Dk(this,n,t,i)}return g(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||kk)(Va(Qs),Va(Vl),Va(ig),Va(Pk,8),Va(ek,8))},kk.\u0275dir=bt({type:kk,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&ps("mat-ripple-unbounded",t.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"]}),kk),Lk=((bk=function e(){v(this,e)}).\u0275mod=yt({type:bk}),bk.\u0275inj=Te({factory:function(e){return new(e||bk)},imports:[[ck,rg],ck]}),bk),Fk=((_k=function e(t){v(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||_k)(Va(ek,8))},_k.\u0275cmp=pt({type:_k,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&ps("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),_k),Nk=((yk=function e(){v(this,e)}).\u0275mod=yt({type:yk}),yk.\u0275inj=Te({factory:function(e){return new(e||yk)},imports:[[ck]]}),yk),Vk=hk(function e(){v(this,e)}),jk=0,Bk=((wk=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-"+jk++,e}return n}(Vk)).\u0275fac=function(e){return zk(e||wk)},wk.\u0275dir=bt({type:wk,inputs:{label:"label"},features:[wa]}),wk),zk=pr(Bk),Hk=new Le("MatOptgroup"),Uk=0,qk=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,e),this.source=t,this.isUserInput=n},Wk=new Le("MAT_OPTION_PARENT_COMPONENT"),Yk=((Sk=function(){function e(t,n,i,r){v(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Uk++,this.onSelectionChange=new Ku,this._stateChanges=new j}return g(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||lg(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new qk(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=yg(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||Sk)(Va(Qs),Va(_u),Va(void 0),Va(Bk))},Sk.\u0275dir=bt({type:Sk,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Sk),Gk=((Ck=function(e){u(n,e);var t=c(n);function n(e,i,r,o){return v(this,n),t.call(this,e,i,r,o)}return n}(Yk)).\u0275fac=function(e){return new(e||Ck)(Va(Qs),Va(_u),Va(Wk,8),Va(Hk,8))},Ck.\u0275cmp=pt({type:Ck,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(As("id",t.id),Ma("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),ps("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[wa],ngContentSelectors:ok,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(rs(),Fa(0,ik,1,2,"mat-pseudo-checkbox",0),Ha(1,"span",1),os(2),Ua(),qa(3,"div",2)),2&e&&(Ba("ngIf",t.multiple),uo(3),Ba("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Xc,Mk,Fk],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ck);function Kk(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a1?Array.prototype.slice.call(arguments):e)},t,i)})}function $k(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l=0}function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Jk(t)?i=Number(t)<1?1:Number(t):z(t)&&(n=t),z(n)||(n=dg),new P(function(t){var r=Jk(e)?e:+e-n.now();return n.schedule(tw,r,{index:0,period:i,subscriber:t})})}function tw(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function nw(e,t){return function(n){return n.lift(new iw(e,t))}}var iw=function(){function e(t,n){v(this,e),this.compare=t,this.keySelector=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new rw(e,this.compare,this.keySelector))}}]),e}(),rw=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return g(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(A);function ow(e){return function(t){return t.lift(new aw(e))}}var aw=function(){function e(t){v(this,e),this.notifier=t}return g(e,[{key:"call",value:function(e,t){var n=new sw(e),i=K(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),sw=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e)).seenValue=!1,i}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Z),uw=1,lw=Promise.resolve(),cw={};function hw(e){return e in cw&&(delete cw[e],!0)}var fw=function(e){var t=uw++;return cw[t]=!0,lw.then(function(){return hw(t)&&e()}),t},dw=function(e){hw(e)},pw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return g(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?s(p(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=fw(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return s(p(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(dw(t),e.scheduled=void 0)}}]),n}(cg),vw=new(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i1&&void 0!==arguments[1]?arguments[1]:dg;return t=function(){return ew(e,n)},function(e){return e.lift(new mw(t))}}function _w(e,t){return new P(t?function(n){return t.schedule(bw,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function bw(e){var t=e.error;e.subscriber.error(t)}var kw,ww=((kw=function(){function e(t,n,i){v(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return g(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return af(this.value);case"E":return _w(this.error);case"C":return pf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new kw("C"),kw.undefinedValueNotification=new kw("N",void 0),kw);function Cw(e){return e&&"function"==typeof e.connect}var Sw,xw,Ew,Tw,Aw=function(){function e(){v(this,e)}return g(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var u=n(e,i,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),Ow=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return g(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new P(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(yw(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):af()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(gf(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Xk(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Tw)(Lt(Vl),Lt(ig),Lt(mc,8))},Tw.\u0275prov=Ee({factory:function(){return new Tw(Lt(Vl),Lt(ig),Lt(mc,8))},token:Tw,providedIn:"root"}),Tw),Dw=((Ew=function(){function e(t,n,i){var r=this;v(this,e),this._platform=t,this._change=new j,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return g(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(yw(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||Ew)(Lt(ig),Lt(Vl),Lt(mc,8))},Ew.\u0275prov=Ee({factory:function(){return new Ew(Lt(ig),Lt(Vl),Lt(mc,8))},token:Ew,providedIn:"root"}),Ew),Pw=((xw=function e(){v(this,e)}).\u0275mod=yt({type:xw}),xw.\u0275inj=Te({factory:function(e){return new(e||xw)}}),xw),Mw=((Sw=function e(){v(this,e)}).\u0275mod=yt({type:Sw}),Sw.\u0275inj=Te({factory:function(e){return new(e||Sw)},imports:[[Ey,rg,Pw],Ey,Pw]}),Sw);function Lw(e,t){1&e&&os(0)}var Fw=["*"];function Nw(e,t){}var Vw=function(e){return{animationDuration:e}},jw=function(e,t){return{value:e,params:t}},Bw=["tabBodyWrapper"],zw=["tabHeader"];function Hw(e,t){}function Uw(e,t){1&e&&Fa(0,Hw,0,0,"ng-template",9),2&e&&Ba("cdkPortalOutlet",ns().$implicit.templateLabel)}function qw(e,t){1&e&&xs(0),2&e&&Es(ns().$implicit.textLabel)}function Ww(e,t){if(1&e){var n=Ka();Ha(0,"div",6),Xa("click",function(){cn(n);var e=t.$implicit,i=t.index,r=ns(),o=Na(1);return r._handleClick(e,o,i)}),Ha(1,"div",7),Fa(2,Uw,1,1,"ng-template",8),Fa(3,qw,1,1,"ng-template",8),Ua(),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-label-active",o.selectedIndex==r),Ba("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Ma("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),uo(2),Ba("ngIf",i.templateLabel),uo(1),Ba("ngIf",!i.templateLabel)}}function Yw(e,t){if(1&e){var n=Ka();Ha(0,"mat-tab-body",10),Xa("_onCentered",function(){return cn(n),ns()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return cn(n),ns()._setTabBodyWrapperHeight(e)}),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-body-active",o.selectedIndex==r),Ba("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Ma("aria-labelledby",o._getTabLabelId(r))}}var Gw,Kw,Zw,Qw,Xw,$w,Jw,eC,tC,nC,iC,rC,oC,aC,sC,uC,lC=["tabListContainer"],cC=["tabList"],hC=["nextPaginator"],fC=["previousPaginator"],dC=new Le("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),pC=((Gw=function(){function e(t,n,i,r){v(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return g(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||Gw)(Va(Qs),Va(Vl),Va(dC),Va(ek,8))},Gw.\u0275dir=bt({type:Gw,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&ps("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),Gw),vC=new Le("MatTabContent"),mC=new Le("MatTabLabel"),gC=hk(function e(){v(this,e)}),yC=new Le("MAT_TAB_GROUP"),_C=((Kw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new j,r.position=null,r.origin=null,r.isActive=!1,r}return g(n,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new my(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}}]),n}(gC)).\u0275fac=function(e){return new(e||Kw)(Va(Ru),Va(yC))},Kw.\u0275cmp=pt({type:Kw,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,mC,!0),hl(n,vC,!0,xu)),2&e&&(al(i=dl())&&(t.templateLabel=i.first),al(i=dl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&sl(xu,!0),2&e&&al(n=dl())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[wa,Ai],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,t){1&e&&(rs(),Fa(0,Lw,1,0,"ng-template"))},encapsulation:2}),Kw),bC={translateTab:Oy("translateTab",[Py("center, void, left-origin-center, right-origin-center",Dy({transform:"none"})),Py("left",Dy({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Py("right",Dy({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ly("* => left, * => right, left => center, right => center",Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ly("void => left-origin-center",[Dy({transform:"translate3d(-100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ly("void => right-origin-center",[Dy({transform:"translate3d(100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},kC=((Xw=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i,o))._host=r,a._centeringSub=x.EMPTY,a._leavingSub=x.EMPTY,a}return g(n,[{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(by)).\u0275fac=function(e){return new(e||Xw)(Va(Ys),Va(Ru),Va(qe(function(){return CC})),Va(mc))},Xw.\u0275dir=bt({type:Xw,selectors:[["","matTabBodyHost",""]],features:[wa]}),Xw),wC=((Qw=function(){function e(t,n,i){var r=this;v(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=x.EMPTY,this._translateTabComplete=new j,this._onCentering=new Ku,this._beforeCentering=new Ku,this._afterLeavingCenter=new Ku,this._onCentered=new Ku(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(nw(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return g(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||Qw)(Va(Qs),Va(xy,8),Va(_u))},Qw.\u0275dir=bt({type:Qw,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Qw),CC=((Zw=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(wC)).\u0275fac=function(e){return new(e||Zw)(Va(Qs),Va(xy,8),Va(_u))},Zw.\u0275cmp=pt({type:Zw,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&ul(ky,!0),2&e&&al(n=dl())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[wa],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){var n,i;1&e&&(Ha(0,"div",0,1),Xa("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),Fa(2,Nw,0,0,"ng-template",2),Ua()),2&e&&Ba("@translateTab",function(e,t,n,i,r){return function(e,t,n,i,r,o,a){var s=t+3;return function(e,t,n,i){var r=Pa(e,t,n);return Pa(e,t+1,i)||r}(e,s,r,o)?Da(e,s+2,i(r,o)):Yu(e,s+2)}(un(),yn(),0,t,n,i)}(0,jw,t._position,(n=Vw,i=t.animationDuration,Gu(un(),yn(),1,n,i,void 0))))},directives:[kC],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bC.translateTab]}}),Zw),SC=new Le("MAT_TABS_CONFIG"),xC=0,EC=function e(){v(this,e)},TC=fk(dk(function e(t){v(this,e),this._elementRef=t}),"primary"),AC=((Jw=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,e))._changeDetectorRef=t,a._animationMode=o,a._tabs=new Qu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=x.EMPTY,a._tabLabelSubscription=x.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Ku,a.focusChange=new Ku,a.animationDone=new Ku,a.selectedTabChange=new Ku(!0),a._groupId=xC++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return g(i,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),$w),IC=hk(function e(){v(this,e)}),RC=((eC=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).elementRef=e,i}return g(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(IC)).\u0275fac=function(e){return new(e||eC)(Va(Qs))},eC.\u0275dir=bt({type:eC,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Ma("aria-disabled",!!t.disabled),ps("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[wa]}),eC),DC=sg({passive:!0}),PC=((rC=function(){function e(t,n,i,r,o,a,s){var u=this;v(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new j,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new j,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ku,this.indexFocused=new Ku,o.runOutsideAngular(function(){Xk(t.nativeElement,"mouseleave").pipe(ow(u._destroyed)).subscribe(function(){u._stopInterval()})})}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this;Xk(this._previousPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),Xk(this._nextPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:af(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Bg(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),se(t,n,this._items.changes).pipe(ow(this._destroyed)).subscribe(function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(ow(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!lg(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),ew(650,100).pipe(ow(se(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=_g(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||rC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},rC.\u0275dir=bt({type:rC,inputs:{disablePagination:"disablePagination"}}),rC),MC=((iC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){var l;return v(this,n),(l=t.call(this,e,i,r,o,a,s,u))._disableRipple=!1,l}return g(n,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=yg(e)}}]),n}(PC)).\u0275fac=function(e){return new(e||iC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},iC.\u0275dir=bt({type:iC,inputs:{disableRipple:"disableRipple"},features:[wa]}),iC),LC=((nC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,r,o,a,s,u)}return n}(MC)).\u0275fac=function(e){return new(e||nC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},nC.\u0275cmp=pt({type:nC,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,RC,!1),2&e&&al(i=dl())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(sl(pC,!0),sl(lC,!0),sl(cC,!0),ul(hC,!0),ul(fC,!0)),2&e&&(al(n=dl())&&(t._inkBar=n.first),al(n=dl())&&(t._tabListContainer=n.first),al(n=dl())&&(t._tabList=n.first),al(n=dl())&&(t._nextPaginator=n.first),al(n=dl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[wa],ngContentSelectors:Fw,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0,1),Xa("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),qa(2,"div",2),Ua(),Ha(3,"div",3,4),Xa("keydown",function(e){return t._handleKeydown(e)}),Ha(5,"div",5,6),Xa("cdkObserveContent",function(){return t._onContentChanges()}),Ha(7,"div",7),os(8),Ua(),qa(9,"mat-ink-bar"),Ua(),Ua(),Ha(10,"div",8,9),Xa("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),qa(12,"div",2),Ua()),2&e&&(ps("mat-tab-header-pagination-disabled",t._disableScrollBefore),Ba("matRippleDisabled",t._disableScrollBefore||t.disableRipple),uo(5),ps("_mat-animation-noopable","NoopAnimations"===t._animationMode),uo(5),ps("mat-tab-header-pagination-disabled",t._disableScrollAfter),Ba("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Mk,Og,pC],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),nC),FC=((tC=function e(){v(this,e)}).\u0275mod=yt({type:tC}),tC.\u0275inj=Te({factory:function(e){return new(e||tC)},imports:[[ph,ck,Cy,Lk,Ig,dy],ck]}),tC),NC=["mat-button",""],VC=["*"],jC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],BC=fk(hk(dk(function e(t){v(this,e),this._elementRef=t}))),zC=((aC=function(e){u(n,e);var t=c(n);function n(e,r,o){var a;v(this,n),(a=t.call(this,e))._focusMonitor=r,a._animationMode=o,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=i(jC);try{for(u.s();!(s=u.n()).done;){var l=s.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(c){u.e(c)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return g(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.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:block;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}),aC),HC=((oC=function e(){v(this,e)}).\u0275mod=yt({type:oC}),oC.\u0275inj=Te({factory:function(e){return new(e||oC)},imports:[[Lk,ck],ck]}),oC),UC=["ketcherFrame"],qC=((sC=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.loadingService=n,this.moleculeInput=new Ku,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/client/assets/ketcher/ketcher.html")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.ketcherFrame.nativeElement.onload=function(){e.ketcher=e.ketcherFrame.nativeElement.contentWindow.ketcher,e.loadingService.setLoadingState(!1)}}},{key:"addMolecule",value:function(){var e=this.ketcher.getSmiles();this.moleculeInput.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||sC)(Va(ef),Va(Xm))},sC.\u0275cmp=pt({type:sC,selectors:[["adme-sketcher"]],viewQuery:function(e,t){var n;1&e&&sl(UC,!0),2&e&&al(n=dl())&&(t.ketcherFrame=n.first)},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(Ha(0,"div",0),qa(1,"iframe",1,2),Ua(),Ha(3,"div",3),Ha(4,"button",4),Xa("click",function(){return t.addMolecule()}),xs(5," Predict "),Ua(),Ua()),2&e&&(uo(1),Ba("src",t.ketcherSrc,wi))},directives:[zC],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),sC),WC={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}},YC=((uC=function(){function e(t){v(this,e),this.el=t,this.selectedFile=new Ku}return g(e,[{key:"ngOnInit",value:function(){this.addHiddenFileInput()}},{key:"ngOnDestroy",value:function(){document.body.removeChild(this.fileInputElement)}},{key:"addHiddenFileInput",value:function(){var e=this;this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=function(t){t.target.files&&t.target.files.length>0&&e.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);var t=this.fileInputElement;this.el.nativeElement.addEventListener("click",function(){t.click()})}}]),e}()).\u0275fac=function(e){return new(e||uC)(Va(Qs))},uC.\u0275dir=bt({type:uC,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),uC);function GC(){for(var e=arguments.length,n=new Array(e),i=0;ie?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return iS(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return iS(e.value)||sS.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return iS(t.value)||!rS(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(iS(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return hS(fS(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return GC(fS(e,t).map(cS)).pipe(Q(hS))}}}]),e}();function lS(e){return null!=e}function cS(e){var t=Za(e)?ee(e):e;return Qa(t),t}function hS(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fS(e,t){return t.map(function(t){return t(e)})}function dS(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function pS(e){return null!=e?uS.compose(dS(e)):null}function vS(e){return null!=e?uS.composeAsync(dS(e)):null}function mS(e,n){return null===e?[n]:Array.isArray(e)?[].concat(t(e),[n]):[e,n]}function gS(e){return e._rawValidators}function yS(e){return e._rawAsyncValidators}var _S,bS,kS,wS,CS,SS,xS,ES,TS,AS,OS=((bS=function(){function e(){v(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return g(e,[{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=pS(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=vS(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}()).\u0275fac=function(e){return new(e||bS)},bS.\u0275dir=bt({type:bS}),bS),IS=((_S=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(OS)).\u0275fac=function(e){return RS(e||_S)},_S.\u0275dir=bt({type:_S,features:[wa]}),_S),RS=pr(IS),DS=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(OS),PS=function(){function e(t){v(this,e),this._cd=t}return g(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),MS=((wS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||wS)(Va(DS,2))},wS.\u0275dir=bt({type:wS,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),wS),LS=((kS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||kS)(Va(IS,2))},kS.\u0275dir=bt({type:kS,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),kS),FS={provide:XC,useExisting:qe(function(){return NS}),multi:!0},NS=((CS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||CS)(Va($s),Va(Qs))},CS.\u0275dir=bt({type:CS,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([FS])]}),CS),VS={provide:XC,useExisting:qe(function(){return BS}),multi:!0},jS=((xS=function(){function e(){v(this,e),this._accessors=[]}return g(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||xS)},xS.\u0275prov=Ee({token:xS,factory:xS.\u0275fac}),xS),BS=((SS=function(){function e(t,n,i,r){v(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return g(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(DS),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}()).\u0275fac=function(e){return new(e||SS)(Va($s),Va(Qs),Va(jS),Va(ba))},SS.\u0275dir=bt({type:SS,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Us([VS])]}),SS),zS={provide:XC,useExisting:qe(function(){return HS}),multi:!0},HS=((ES=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||ES)(Va($s),Va(Qs))},ES.\u0275dir=bt({type:ES,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([zS])]}),ES),US={provide:XC,useExisting:qe(function(){return qS}),multi:!0},qS=((TS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return g(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o0&&e.setValidators(i.filter(function(e){return e!==t.validator}))}if(null!==t.asyncValidator){var r=yS(e);Array.isArray(r)&&r.length>0&&e.setAsyncValidators(r.filter(function(e){return e!==t.asyncValidator}))}}if(n){var o=function(){};KS(t._rawValidators,o),KS(t._rawAsyncValidators,o)}}function XS(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $S(e,t){ZS(e,t,!1)}var JS=[JC,HS,NS,qS,YS,BS];function ex(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function tx(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function nx(e){return(ax(e)?e.validators:e)||null}function ix(e){return Array.isArray(e)?pS(e):e||null}function rx(e,t){return(ax(t)?t.asyncValidators:e)||null}function ox(e){return Array.isArray(e)?vS(e):e||null}function ax(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var sx,ux,lx,cx,hx,fx,dx,px,vx,mx=function(){function e(t,n){v(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ix(this._rawValidators),this._composedAsyncValidatorFn=ox(this._rawAsyncValidators)}return g(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ix(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ox(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=cS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof yx?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof _x&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Ku,this.statusChanges=new Ku}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ax(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),gx=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,n),(e=t.call(this,nx(r),rx(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return g(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){tx(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){tx(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(mx),yx=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof gx?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(mx),_x=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof gx?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=i(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(mx),bx={provide:IS,useExisting:qe(function(){return wx})},kx=Promise.resolve(null),wx=((sx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ku,r.form=new yx({},pS(e),vS(i)),r}return g(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),GS(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),tx(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path),i=new yx({});$S(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;kx.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(IS)).\u0275fac=function(e){return new(e||sx)(Va(oS,10),Va(aS,10))},sx.\u0275dir=bt({type:sx,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([bx]),wa]}),sx),Cx={provide:DS,useExisting:qe(function(){return xx})},Sx=Promise.resolve(null),xx=((lx=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this)).control=new gx,a._registered=!1,a.update=new Ku,a._parent=e,a._setValidators(t),a._setAsyncValidators(r),a.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){var t;e.constructor===nS?n=e:(t=e,JS.some(function(e){return t.constructor===e})?i=e:r=e)}),r||i||n||null}(0,o),a}return g(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){GS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Sx.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Sx.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?[].concat(t(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),i}(DS)).\u0275fac=function(e){return new(e||lx)(Va(IS,9),Va(oS,10),Va(aS,10),Va(XC,10))},lx.\u0275dir=bt({type:lx,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Us([Cx]),wa,Ai]}),lx),Ex=((ux=function e(){v(this,e)}).\u0275fac=function(e){return new(e||ux)},ux.\u0275dir=bt({type:ux,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ux),Tx=new Le("NgModelWithFormControlWarning"),Ax={provide:IS,useExisting:qe(function(){return Ox})},Ox=((cx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ku,r._setValidators(e),r._setAsyncValidators(i),r}return g(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return GS(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){tx(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),QS(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}(t.control||null,t),n&&GS(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ZS(this.form,this,!1),this._oldForm&&QS(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(IS)).\u0275fac=function(e){return new(e||cx)(Va(oS,10),Va(aS,10))},cx.\u0275dir=bt({type:cx,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([Ax]),wa,Ai]}),cx),Ix={provide:oS,useExisting:qe(function(){return Rx}),multi:!0},Rx=((vx=function(){function e(){v(this,e),this._required=!1}return g(e,[{key:"validate",value:function(e){return this.required?uS.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||vx)},vx.\u0275dir=bt({type:vx,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ma("required",t.required?"":null)},inputs:{required:"required"},features:[Us([Ix])]}),vx),Dx=((px=function e(){v(this,e)}).\u0275mod=yt({type:px}),px.\u0275inj=Te({factory:function(e){return new(e||px)}}),px),Px=((dx=function(){function e(){v(this,e)}return g(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new yx(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new gx(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new _x(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof gx||e instanceof yx||e instanceof _x?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||dx)},dx.\u0275prov=Ee({token:dx,factory:dx.\u0275fac}),dx),Mx=((fx=function e(){v(this,e)}).\u0275mod=yt({type:fx}),fx.\u0275inj=Te({factory:function(e){return new(e||fx)},providers:[jS],imports:[Dx]}),fx),Lx=((hx=function(){function e(){v(this,e)}return g(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Tx,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=yt({type:hx}),hx.\u0275inj=Te({factory:function(e){return new(e||hx)},providers:[Px,jS],imports:[Dx]}),hx),Fx=["underline"],Nx=["connectionContainer"],Vx=["inputContainer"],jx=["label"];function Bx(e,t){1&e&&(Wa(0),Ha(1,"div",14),qa(2,"div",15),qa(3,"div",16),qa(4,"div",17),Ua(),Ha(5,"div",18),qa(6,"div",15),qa(7,"div",16),qa(8,"div",17),Ua(),Ya())}function zx(e,t){1&e&&(Ha(0,"div",19),os(1,1),Ua())}function Hx(e,t){if(1&e&&(Wa(0),os(1,2),Ha(2,"span"),xs(3),Ua(),Ya()),2&e){var n=ns(2);uo(3),Es(n._control.placeholder)}}function Ux(e,t){1&e&&os(0,3,["*ngSwitchCase","true"])}function qx(e,t){1&e&&(Ha(0,"span",23),xs(1," *"),Ua())}function Wx(e,t){if(1&e){var n=Ka();Ha(0,"label",20,21),Xa("cdkObserveContent",function(){return cn(n),ns().updateOutlineGap()}),Fa(2,Hx,4,1,"ng-container",12),Fa(3,Ux,1,0,"ng-content",12),Fa(4,qx,2,0,"span",22),Ua()}if(2&e){var i=ns();ps("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ba("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ma("for",i._control.id)("aria-owns",i._control.id),uo(2),Ba("ngSwitchCase",!1),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Yx(e,t){1&e&&(Ha(0,"div",24),os(1,4),Ua())}function Gx(e,t){if(1&e&&(Ha(0,"div",25,26),qa(2,"span",27),Ua()),2&e){var n=ns();uo(2),ps("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Kx(e,t){1&e&&(Ha(0,"div"),os(1,5),Ua()),2&e&&Ba("@transitionMessages",ns()._subscriptAnimationState)}function Zx(e,t){if(1&e&&(Ha(0,"div",31),xs(1),Ua()),2&e){var n=ns(2);Ba("id",n._hintLabelId),uo(1),Es(n.hintLabel)}}function Qx(e,t){if(1&e&&(Ha(0,"div",28),Fa(1,Zx,2,2,"div",29),os(2,6),qa(3,"div",30),os(4,7),Ua()),2&e){var n=ns();Ba("@transitionMessages",n._subscriptAnimationState),uo(1),Ba("ngIf",n.hintLabel)}}var Xx,$x,Jx,eE,tE,nE,iE=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],rE=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],oE=new Le("MatError"),aE={transitionMessages:Oy("transitionMessages",[Py("enter",Dy({opacity:1,transform:"translateY(0%)"})),Ly("void => enter",[Dy({opacity:0,transform:"translateY(-100%)"}),Iy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sE=((Xx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Xx)},Xx.\u0275dir=bt({type:Xx}),Xx),uE=0,lE=new Le("MatHint"),cE=((eE=function e(){v(this,e),this.align="start",this.id="mat-hint-"+uE++}).\u0275fac=function(e){return new(e||eE)},eE.\u0275dir=bt({type:eE,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Ma("id",t.id)("align",null),ps("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[Us([{provide:lE,useExisting:eE}])]}),eE),hE=((Jx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Jx)},Jx.\u0275dir=bt({type:Jx,selectors:[["mat-label"]]}),Jx),fE=(($x=function e(){v(this,e)}).\u0275fac=function(e){return new(e||$x)},$x.\u0275dir=bt({type:$x,selectors:[["mat-placeholder"]]}),$x),dE=new Le("MatPrefix"),pE=new Le("MatSuffix"),vE=0,mE=fk(function e(t){v(this,e),this._elementRef=t},"primary"),gE=new Le("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yE=new Le("MatFormField"),_E=((nE=function(e){u(i,e);var n=c(i);function i(e,t,r,o,a,s,u,l){var c;return v(this,i),(c=n.call(this,e))._elementRef=e,c._changeDetectorRef=t,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new j,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+vE++,c._labelId="mat-form-field-label-"+vE++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return g(i,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Vf(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ow(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(ow(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ow(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xk(this._label.nativeElement,"transitionend").pipe(Mf(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,t(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var n=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,i=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push.apply(e,t(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;ft.height||e.scrollWidth>t.width}}]),e}(),SE=function(){function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),xE=function(){function e(){v(this,e)}return g(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function EE(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function TE(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var AE,OE,IE,RE,DE,PE=function(){function e(t,n,i,r){v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;EE(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ME=((AE=function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new xE},this.close=function(e){return new SE(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new CE(o._viewportRuler,o._document)},this.reposition=function(e){return new PE(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||AE)(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},AE.\u0275prov=Ee({factory:function(){return new AE(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},token:AE,providedIn:"root"}),AE),LE=function e(t){if(v(this,e),this.scrollStrategy=new xE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||RE)(Lt(mc))},RE.\u0275prov=Ee({factory:function(){return new RE(Lt(mc))},token:RE,providedIn:"root"}),RE),jE=((IE=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||IE)(Lt(mc))},IE.\u0275prov=Ee({factory:function(){return new IE(Lt(mc))},token:IE,providedIn:"root"}),IE),BE=((OE=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||OE)(Lt(mc),Lt(ig))},OE.\u0275prov=Ee({factory:function(){return new OE(Lt(mc),Lt(ig))},token:OE,providedIn:"root"}),OE),zE=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),HE=((DE=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||zE)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=g,d=m)}}catch(y){v.e(y)}finally{v.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&YE(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+t.height-n.height,c=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,u,l),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:t.width*t.height===f,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=GE(this._overlayRef.getConfig().minHeight),a=GE(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return i=t.width<=o.width?l||-a:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=kg(n.height),i.top=kg(n.top),i.bottom=kg(n.bottom),i.width=kg(n.width),i.left=kg(n.left),i.right=kg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=kg(r)),o&&(i.maxWidth=kg(o))}this._lastBoundingBoxSize=n,YE(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){YE(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){YE(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();YE(n,this._getExactOverlayY(t,e,a)),YE(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=kg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=kg(o.maxWidth):r&&(n.maxWidth="")),YE(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=kg(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=kg(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:TE(e,n),isOriginOutsideView:EE(e,n),isOverlayClipped:TE(t,n),isOverlayOutsideView:EE(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),tT=((ZE=function(){function e(t,n,i,r){v(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return g(e,[{key:"global",value:function(){return new eT}},{key:"connectedTo",value:function(e,t,n){return new JE(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new WE(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||ZE)(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},ZE.\u0275prov=Ee({factory:function(){return new ZE(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},token:ZE,providedIn:"root"}),ZE),nT=0,iT=((KE=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return g(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new LE(e);return r.direction=r.direction||this._directionality.value,new UE(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+nT++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(ic)),new _y(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||KE)(Lt(ME),Lt(HE),Lt(Ys),Lt(tT),Lt(jE),Lt(ba),Lt(Vl),Lt(mc),Lt(xy),Lt(Fc),Lt(BE))},KE.\u0275prov=Ee({token:KE,factory:KE.\u0275fac}),KE),rT=[{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"}],oT=new Le("cdk-connected-overlay-scroll-strategy"),aT=((XE=function e(t){v(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||XE)(Va(Qs))},XE.\u0275dir=bt({type:XE,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),XE),sT=((QE=function(){function e(t,n,i,r,o){v(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=x.EMPTY,this._attachSubscription=x.EMPTY,this._detachSubscription=x.EMPTY,this._positionSubscription=x.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 my(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return g(e,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=rT);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||lg(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new LE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new kE(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=yg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=yg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=yg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=yg(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||QE)(Va(iT),Va(xu),Va(Ru),Va(oT),Va(xy,8))},QE.\u0275dir=bt({type:QE,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:[Ai]}),QE),uT={provide:oT,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},lT=(($E=function e(){v(this,e)}).\u0275mod=yt({type:$E}),$E.\u0275inj=Te({factory:function(e){return new(e||$E)},providers:[iT,uT],imports:[[Ey,Cy,Mw],Mw]}),$E),cT=["trigger"],hT=["panel"];function fT(e,t){if(1&e&&(Ha(0,"span",8),xs(1),Ua()),2&e){var n=ns();uo(1),Es(n.placeholder||"\xa0")}}function dT(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.triggerValue||"\xa0")}}function pT(e,t){1&e&&os(0,0,["*ngSwitchCase","true"])}function vT(e,t){1&e&&(Ha(0,"span",9),Fa(1,dT,2,1,"span",10),Fa(2,pT,1,0,"ng-content",11),Ua()),2&e&&(Ba("ngSwitch",!!ns().customTrigger),uo(2),Ba("ngSwitchCase",!0))}function mT(e,t){if(1&e){var n=Ka();Ha(0,"div",12),Ha(1,"div",13,14),Xa("@transformPanel.done",function(e){return cn(n),ns()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return cn(n),ns()._handleKeydown(e)}),os(3,1),Ua(),Ua()}if(2&e){var i=ns();Ba("@transformPanelWrap",void 0),uo(1),"mat-select-panel ",r=i._getPanelTheme(),"",function(e,t,n,i){var r=ln(),o=bn(2);r.firstUpdatePass&&ys(r,null,o,!0);var a=un();if(n!==so&&Pa(a,o,n)){var s=r.data[Mn()];if(Ss(s,!0)&&!gs(r,o)){var u=s.classesWithoutHost;null!==u&&(n=Ce(u,n||"")),za(r,s,a,n,!0)}else!function(e,t,n,i,r,o,a,s){r===so&&(r=as);for(var u=0,l=0,c=0 void",Ny("@transformPanel",[Fy()],{optional:!0}))]),transformPanel:Oy("transformPanel",[Py("void",Dy({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Py("showing",Dy({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Py("showing-multiple",Dy({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ly("void => *",Iy("120ms cubic-bezier(0, 0, 0.2, 1)")),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))])},xT=0,ET=new Le("mat-select-scroll-strategy"),TT=new Le("MAT_SELECT_CONFIG"),AT={provide:ET,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},OT=function e(t,n){v(this,e),this.source=t,this.value=n},IT=dk(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){u(i,e);var n=c(i);function i(){var e;v(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=yg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=yg(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=_g(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(IT)).\u0275fac=function(e){return new(e||yT)(Va(Dw),Va(_u),Va(Vl),Va(xk),Va(Qs),Va(xy,8),Va(wx,8),Va(Ox,8),Va(yE,8),Va(DS,10),ja("tabindex"),Va(ET),Va(Qg),Va(TT,8))},yT.\u0275dir=bt({type:yT,viewQuery:function(e,t){var n;1&e&&(ul(cT,!0),ul(hT,!0),ul(sT,!0)),2&e&&(al(n=dl())&&(t.trigger=n.first),al(n=dl())&&(t.panel=n.first),al(n=dl())&&(t.overlayDir=n.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:[wa,Ai]}),yT),PT=((gT=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return g(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(ow(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;s(p(n.prototype),"_canOpen",this).call(this)&&(s(p(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=Kk(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),s(p(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new OT(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=Kk(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(DT)).\u0275fac=function(e){return MT(e||gT)},gT.\u0275cmp=pt({type:gT,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,RT,!0),cl(n,Gk,!0),cl(n,Hk,!0)),2&e&&(al(i=dl())&&(t.customTrigger=i.first),al(i=dl())&&(t.options=i),al(i=dl())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xa("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ma("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),ps("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Us([{provide:sE,useExisting:gT},{provide:Wk,useExisting:gT}]),wa],ngContentSelectors:CT,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(rs(wT),Ha(0,"div",0,1),Xa("click",function(){return t.toggle()}),Ha(3,"div",2),Fa(4,fT,2,1,"span",3),Fa(5,vT,3,2,"span",4),Ua(),Ha(6,"div",5),qa(7,"div",6),Ua(),Ua(),Fa(8,mT,4,14,"ng-template",7),Xa("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Na(1);Ma("aria-owns",t.panelOpen?t.id+"-panel":null),uo(3),Ba("ngSwitch",t.empty),Ma("id",t._valueId),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1),uo(3),Ba("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[aT,sh,uh,sT,lh,Gc],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}\n"],encapsulation:2,data:{animation:[ST.transformPanelWrap,ST.transformPanel]},changeDetection:0}),gT),MT=pr(PT),LT=((_T=function e(){v(this,e)}).\u0275mod=yt({type:_T}),_T.\u0275inj=Te({factory:function(e){return new(e||_T)},providers:[AT],imports:[[ph,lT,Qk,ck],Pw,bE,Qk,ck]}),_T),FT=function(){function e(t){v(this,e),this.total=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new NT(e,this.total))}}]),e}(),NT=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(A),VT=new Set,jT=((kT=function(){function e(t){v(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BT}return g(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!VT.has(e))try{bT||((bT=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(bT)),bT.sheet&&(bT.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),VT.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||kT)(Lt(ig))},kT.\u0275prov=Ee({factory:function(){return new kT(Lt(ig))},token:kT,providedIn:"root"}),kT);function BT(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var zT,HT=((zT=function(){function e(t,n){v(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new j}return g(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return UT(bg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=lf(UT(bg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Nf(n.pipe(Mf(1)),n.pipe(function(e){return e.lift(new FT(1))},pg(0)))).pipe(Q(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new P(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),Q(function(t){var n=t.matches;return{query:e,matches:n}}),ow(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||zT)(Lt(jT),Lt(Vl))},zT.\u0275prov=Ee({factory:function(){return new zT(Lt(jT),Lt(Vl))},token:zT,providedIn:"root"}),zT);function UT(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var qT,WT,YT,GT,KT,ZT,QT,XT,$T={tooltipState:Oy("state",[Py("initial, void, hidden",Dy({opacity:0,transform:"scale(0)"})),Py("visible",Dy({transform:"scale(1)"})),Ly("* => visible",Iy("200ms cubic-bezier(0, 0, 0.2, 1)",My([Dy({opacity:0,transform:"scale(0)",offset:0}),Dy({opacity:.5,transform:"scale(0.99)",offset:.5}),Dy({opacity:1,transform:"scale(1)",offset:1})]))),Ly("* => hidden",Iy("100ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:0})))])},JT=sg({passive:!0}),eA=new Le("mat-tooltip-scroll-strategy"),tA={provide:eA,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},nA=new Le("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iA=((YT=function(){function t(e,n,i,r,o,a,s,u,l,c,h){var f=this;v(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!lg(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return g(t,[{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ow(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(n){var i=e(n,2),r=i[0],o=i[1];t.removeEventListener(r,o,JT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new vy(rA,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(ow(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Mf(1),ow(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(t){var n=this;t.forEach(function(t){var i=e(t,2),r=i[0],o=i[1];n._elementRef.nativeElement.addEventListener(r,o,JT)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(e){return new(e||YT)(Va(iT),Va(Qs),Va(Rw),Va(Ru),Va(Vl),Va(ig),Va(Ng),Va(ty),Va(eA),Va(xy,8),Va(nA,8))},YT.\u0275dir=bt({type:YT,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),YT),rA=((WT=function(){function e(t,n){v(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return g(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||WT)(Va(_u),Va(HT))},WT.\u0275cmp=pt({type:WT,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleBodyInteraction()},!1,kr),2&e&&ds("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Xa("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),function(e,t){var n,i=ln();i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if("async"===i.name)return i}throw new xi("302","The pipe 'async' could not be found!")}(0,i.pipeRegistry),i.data[21]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(21,n.onDestroy)):n=i.data[21];var r=n.factory||(n.factory=Si(n.type)),o=Tt(Va);try{var a=Zi(!1),s=r();Zi(a),function(e,t,n,i){21>=e.data.length&&(e.data[21]=null,e.blueprint[21]=null),t[21]=i}(i,un(),0,s)}finally{Tt(o)}}(),xs(2),Ua()),2&e){var n=null;ps("mat-tooltip-handset",null==(i=t._isHandset,r=un(),o=Xt(r,21),n=function(e,t){return Oa.isWrapped(t)&&(t=Oa.unwrap(t),e[an.lFrame.bindingIndex]=so),t}(r,function(e,t){return e[1].data[21].pure}(r)?Gu(r,yn(),5,o.transform,i,o):o.transform(i)))?null:n.matches),Ba("ngClass",t.tooltipClass)("@state",t._visibility),uo(2),Es(t.message)}var i,r,o},directives:[Gc],pipes:[dh],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:[$T.tooltipState]},changeDetection:0}),WT),oA=((qT=function e(){v(this,e)}).\u0275mod=yt({type:qT}),qT.\u0275inj=Te({factory:function(e){return new(e||qT)},providers:[tA],imports:[[dy,ph,lT,ck],ck,Pw]}),qT),aA=sg({passive:!0}),sA=((KT=function(){function e(t,n){v(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return g(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return df;var n=wg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new j,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,aA),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,aA)}}),r}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||KT)(Lt(ig),Lt(Vl))},KT.\u0275prov=Ee({factory:function(){return new KT(Lt(ig),Lt(Vl))},token:KT,providedIn:"root"}),KT),uA=((GT=function e(){v(this,e)}).\u0275mod=yt({type:GT}),GT.\u0275inj=Te({factory:function(e){return new(e||GT)},imports:[[rg]]}),GT),lA=new Le("MAT_INPUT_VALUE_ACCESSOR"),cA=["button","checkbox","file","hidden","image","radio","range","reset","submit"],hA=0,fA=pk(function e(t,n,i,r){v(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),dA=((XT=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u,l,c,h){var f;v(this,n),(f=t.call(this,s,o,a,r))._elementRef=e,f._platform=i,f.ngControl=r,f._autofillMonitor=l,f._formField=h,f._uid="mat-input-"+hA++,f.focused=!1,f.stateChanges=new j,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ag().has(e)});var d=f._elementRef.nativeElement,p=d.nodeName.toLowerCase();return f._inputValueAccessor=u||d,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&c.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===p,f._isTextarea="textarea"===p,f._isNativeSelect&&(f.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),f}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){cA.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=yg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ag().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=yg(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(fA)).\u0275fac=function(e){return new(e||XT)(Va(Qs),Va(ig),Va(DS,10),Va(wx,8),Va(Ox,8),Va(xk),Va(lA,10),Va(sA),Va(Vl),Va(yE,8))},XT.\u0275dir=bt({type:XT,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Xa("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(As("disabled",t.disabled)("required",t.required),Ma("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),ps("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Us([{provide:sE,useExisting:XT}]),wa,Ai]}),XT),pA=((QT=function e(){v(this,e)}).\u0275mod=yt({type:QT}),QT.\u0275inj=Te({factory:function(e){return new(e||QT)},providers:[xk],imports:[[uA,bE,ck],uA,bE]}),QT),vA=((ZT=function(){function e(){v(this,e),this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Ku,this.fileDataAdded=new Ku,this.fileUploadFinished=new Ku,this.fileProcess=new Ku,this.subscriptions=[]}return g(e,[{key:"ngOnInit",value:function(){var e=localStorage.getItem("fileType");e&&(this.fileType=e);var t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):WC[this.fileType],this.acceptedFileTypes=Object.keys(WC)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"fileSelected",value:function(e){var t=this;if(e){this.selectedFile=e,this.selectedFileName=e.name;var n=this.selectedFileName.split("."),i=n[n.length-1];this.acceptedFileTypes.indexOf(i)>-1&&(this.fileType=i,this.updateType());var r=new FileReader;r.onload=function(){t.selectedFileContent=r.result},r.readAsText(e)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}},{key:"updateType",value:function(){localStorage.setItem("fileType",this.fileType);var e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):WC[this.fileType]}},{key:"updateOptions",value:function(){var e=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",e)}},{key:"processFile",value:function(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}]),e}()).\u0275fac=function(e){return new(e||ZT)},ZT.\u0275cmp=pt({type:ZT,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Ha(1,"div",1),xs(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Ha(3,"a",2),xs(4,"these instructions"),Ua(),xs(5," to export it as Text or CSV. "),Ua(),Ha(6,"div"),Ha(7,"button",3),Xa("selectedFile",function(e){return t.fileSelected(e)}),xs(8,"Browse"),Ua(),Ha(9,"span"),xs(10),Ua(),Ua(),Ha(11,"form",4,5),Ha(13,"div",6),Ha(14,"div",7),Ha(15,"mat-form-field"),Ha(16,"mat-label"),xs(17,"File type"),Ua(),Ha(18,"mat-select",8),Xa("ngModelChange",function(e){return t.fileType=e})("selectionChange",function(){return t.updateType()}),Ha(19,"mat-option",9),xs(20," CSV "),Ua(),Ha(21,"mat-option",10),xs(22," Text "),Ua(),Ha(23,"mat-option",11),xs(24," SMI "),Ua(),Ua(),Ua(),Ua(),Ha(25,"div",12),Ha(26,"mat-form-field"),Ha(27,"mat-label"),xs(28,"Column separator"),Ua(),Ha(29,"mat-select",13),Xa("ngModelChange",function(e){return t.options.columnSeparator=e})("selectionChange",function(){return t.updateOptions()}),Ha(30,"mat-option",14),xs(31," Comma (,) "),Ua(),Ha(32,"mat-option",14),xs(33," Tab (\\t) "),Ua(),Ua(),Ua(),Ua(),Ha(34,"div",15),Ha(35,"mat-form-field"),Ha(36,"mat-label"),xs(37,"Has header row"),Ua(),Ha(38,"mat-select",16),Xa("ngModelChange",function(e){return t.options.hasHeaderRow=e})("selectionChange",function(){return t.updateOptions()}),Ha(39,"mat-option",14),xs(40," Yes "),Ua(),Ha(41,"mat-option",14),xs(42," No "),Ua(),Ua(),Ua(),Ua(),Ha(43,"div",17),Ha(44,"mat-form-field"),Ha(45,"input",18),Xa("ngModelChange",function(e){return t.options.indexIdentifierColumn=e})("change",function(){return t.updateOptions()}),Ua(),Ha(46,"mat-hint"),xs(47,"Zero indicates that the SMILES are in the first column"),Ua(),Ua(),Ua(),Ua(),Ha(48,"div",19),qa(49,"span",20),Ha(50,"button",21),Xa("click",function(){return t.processFile()}),xs(51," Process file "),Ua(),Ua(),Ua(),Ua()),2&e){var n=Na(12);uo(10),Ts(" \xa0 ",t.selectedFileName?"Selected file: "+t.selectedFileName:"No file selected"," "),uo(8),Ba("ngModel",t.fileType),uo(11),Ba("ngModel",t.options.columnSeparator),uo(1),Ba("value",","),uo(2),Ba("value","\t"),uo(6),Ba("ngModel",t.options.hasHeaderRow),uo(1),Ba("value",!0),uo(2),Ba("value",!1),uo(4),Ba("ngModel",t.options.indexIdentifierColumn),uo(5),Ba("disabled",n.invalid||!t.selectedFileName||!t.selectedFileContent)}},directives:[zC,YC,Ex,LS,wx,_E,hE,PT,Rx,MS,xx,Gk,iA,NS,dA,nS,cE],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),ZT),mA=["*"];function gA(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function yA(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function _A(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var bA,kA=function e(t,n,i){v(this,e),this.url=t,this.svgText=n,this.options=i},wA=((bA=function(){function e(t,n,i,r){v(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return g(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new kA(n,null,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(bi.HTML,n);if(!r)throw _A(n);return this._addSvgIconConfig(e,t,new kA("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new kA(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(bi.HTML,t);if(!i)throw _A(t);return this._addSvgIconSetConfig(e,new kA("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(bi.RESOURCE_URL,e);if(!n)throw yA(e);var i=this._cachedIconsByUrl.get(n);return i?af(CA(i)):this._loadSvgIconFromConfig(new kA(e,null)).pipe(Yf(function(e){return t._cachedIconsByUrl.set(n,e)}),Q(function(e){return CA(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=SA(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):_w(gA(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?af(CA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Q(function(e){return CA(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?af(i):GC(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(zf(function(t){var i=n._sanitizer.sanitize(bi.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),af(null)}))})).pipe(Q(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw gA(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}),Q(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?af(null):this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i enter",Iy("150ms cubic-bezier(0, 0, 0.2, 1)",Dy({transform:"none",opacity:1}))),Ly("* => void, * => exit",Iy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Dy({opacity:0})))])},jA=((FA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new Ku,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return g(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(yy)).\u0275fac=function(e){return new(e||FA)(Va(Qs),Va(Yg),Va(_u),Va(mc,8),Va(NA),Va(ty))},FA.\u0275dir=bt({type:FA,viewQuery:function(e,t){var n;1&e&&sl(by,!0),2&e&&al(n=dl())&&(t._portalOutlet=n.first)},features:[wa]}),FA),BA=((LA=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._state="enter",e}return g(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(jA)).\u0275fac=function(e){return zA(e||LA)},LA.\u0275cmp=pt({type:LA,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&$a("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(As("id",t._id),Ma("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Os("@dialogContainer",t._state))},features:[wa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fa(0,MA,0,0,"ng-template",0)},directives:[by],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VA.dialogContainer]}}),LA),zA=pr(BA),HA=0,UA=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+HA++;v(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,n._id=r,n._animationStateChanged.pipe(gf(function(e){return"opened"===e.state}),Mf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(gf(function(e){return"closed"===e.state}),Mf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(gf(function(e){return 27===e.keyCode&&!i.disableClose&&!lg(e)})).subscribe(function(e){e.preventDefault(),qA(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():qA(i,"mouse")})}return g(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(gf(function(e){return"closing"===e.state}),Mf(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function qA(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var WA,YA,GA,KA,ZA,QA=new Le("MatDialogData"),XA=new Le("mat-dialog-default-options"),$A=new Le("mat-dialog-scroll-strategy"),JA={provide:$A,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},eO=((ZA=function(){function e(t,n,i,r,o,a,s,u,l){var c=this;v(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=vf(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return g(e,[{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new NA)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new LE({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=ba.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:NA,useValue:t}]}),i=new vy(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof xu)t.attachTemplatePortal(new my(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new vy(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(xy,null)||r.push({provide:xy,useValue:{value:e.direction,change:af()}}),ba.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||ZA)(Va(iT),Va(ba),Va(void 0),Va(void 0),Va(HE),Va(void 0),Va(Ge),Va(Ge),Va(Le))},ZA.\u0275dir=bt({type:ZA}),ZA),tO=((KA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,o,s,u,a,UA,BA,QA)}return n}(eO)).\u0275fac=function(e){return new(e||KA)(Lt(iT),Lt(ba),Lt(Fc,8),Lt(XA,8),Lt($A),Lt(KA,12),Lt(HE))},KA.\u0275prov=Ee({token:KA,factory:KA.\u0275fac}),KA),nO=((GA=function e(){v(this,e)}).\u0275mod=yt({type:GA}),GA.\u0275inj=Te({factory:function(e){return new(e||GA)},providers:[tO,JA],imports:[[lT,Cy,ck],ck]}),GA),iO=((YA=function(){function e(t,n){v(this,e),this.el=t,this.http=n,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}return g(e,[{key:"ngAfterViewInit",value:function(){this.isAfterViewInit=!0,this.setImageSrc()}},{key:"setImageSrc",value:function(){if(this.isAfterViewInit){var e="/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=e,this.imageElement.alt="structure image"}}},{key:"version",set:function(e){e!==this.privateVersion&&(this.privateVersion=e,this.setImageSrc())}},{key:"entityId",set:function(e){e!==this.privateEntityId&&(this.privateEntityId=e,this.setImageSrc())}},{key:"size",set:function(e){e!==this.privateSize&&(this.privateSize=e,this.setImageSrc())}},{key:"stereo",set:function(e){e!==this.privateStereo&&(this.privateStereo=e,this.setImageSrc())}},{key:"atomMaps",set:function(e){e!==this.privateAtomMaps&&(this.privateAtomMaps=e,this.setImageSrc())}}]),e}()).\u0275fac=function(e){return new(e||YA)(Va(Qs),Va(Rm))},YA.\u0275dir=bt({type:YA,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),YA),rO=((WA=function(){function e(t){v(this,e),this.data=t,this.smiles=t.smiles}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||WA)(Va(QA))},WA.\u0275cmp=pt({type:WA,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(e,t){1&e&&qa(0,"img",0),2&e&&Ba("entityId",t.smiles)},directives:[iO],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),WA);function oO(e,t){if(1&e&&(Ha(0,"mat-option",19),xs(1),Ua()),2&e){var n=t.$implicit;Ba("value",n),uo(1),Ts(" ",n," ")}}function aO(e,t){if(1&e){var n=Ka();Ha(0,"mat-form-field",16),Ha(1,"mat-select",17),Xa("selectionChange",function(e){return cn(n),ns(2)._changePageSize(e.value)}),Fa(2,oO,2,2,"mat-option",18),Ua(),Ua()}if(2&e){var i=ns(2);Ba("appearance",i._formFieldAppearance)("color",i.color),uo(1),Ba("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),uo(1),Ba("ngForOf",i._displayedPageSizeOptions)}}function sO(e,t){if(1&e&&(Ha(0,"div",20),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.pageSize)}}function uO(e,t){if(1&e&&(Ha(0,"div",12),Ha(1,"div",13),xs(2),Ua(),Fa(3,aO,3,6,"mat-form-field",14),Fa(4,sO,2,1,"div",15),Ua()),2&e){var n=ns();uo(2),Ts(" ",n._intl.itemsPerPageLabel," "),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length>1),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length<=1)}}function lO(e,t){if(1&e){var n=Ka();Ha(0,"button",21),Xa("click",function(){return cn(n),ns().firstPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",22),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ma("aria-label",i._intl.firstPageLabel)}}function cO(e,t){if(1&e){var n=Ka();Nn(),Vn(),Ha(0,"button",23),Xa("click",function(){return cn(n),ns().lastPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",24),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ma("aria-label",i._intl.lastPageLabel)}}var hO,fO,dO,pO,vO=((hO=function e(){v(this,e),this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||hO)},hO.\u0275prov=Ee({factory:function(){return new hO},token:hO,providedIn:"root"}),hO),mO={provide:vO,deps:[[new _e,new ke,vO]],useFactory:function(e){return e||new vO}},gO=new Le("MAT_PAGINATOR_DEFAULT_OPTIONS"),yO=hk(vk(function e(){v(this,e)})),_O=((pO=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;if(v(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Ku,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return h(o)}return g(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];v(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._cachedCellWidths=[]}return g(e,[{key:"clearStickyPositioning",value:function(e,t){var n,r=this,o=[],a=i(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(var u=0;u3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],s=a.children.length,u=this._getCellWidths(a,o),l=this._getStickyStartColumnPositions(u,t),c=this._getStickyEndColumnPositions(u,n);this._scheduleStyleChanges(function(){var o,a="rtl"===r.direction,u=a?"right":"left",h=a?"left":"right",f=i(e);try{for(f.s();!(o=f.n()).done;)for(var d=o.value,p=0;p1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),vI=((qO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||qO)(Va(Ru),Va(Qs))},qO.\u0275dir=bt({type:qO,selectors:[["","rowOutlet",""]]}),qO),mI=((UO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||UO)(Va(Ru),Va(Qs))},UO.\u0275dir=bt({type:UO,selectors:[["","headerRowOutlet",""]]}),UO),gI=((HO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||HO)(Va(Ru),Va(Qs))},HO.\u0275dir=bt({type:HO,selectors:[["","footerRowOutlet",""]]}),HO),yI=((zO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||zO)(Va(Ru),Va(Qs))},zO.\u0275dir=bt({type:zO,selectors:[["","noDataRowOutlet",""]]}),zO),_I=((BO=function(){function e(t,n,i,r,o,a,s,u,l,c){v(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new j,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 sf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(ow(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,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()}},{key:"ngOnDestroy",value:function(){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(),Cw(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,r,{$implicit:o.data})}else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(t(n),t(i),t(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,r=i(this._getCellTemplates(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;lI.mostRecentCellOutlet&&lI.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t)}}catch(a){r.e(a)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t=r.length&&(o=0),r[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(cR)).\u0275fac=function(e){return fR(e||oR)},oR.\u0275dir=bt({type:oR,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[wa,Ai]}),oR),fR=pr(hR),dR=sk.ENTERING+" "+ak.STANDARD_CURVE,pR={indicator:Oy("indicator",[Py("active-asc, asc",Dy({transform:"translateY(0px)"})),Py("active-desc, desc",Dy({transform:"translateY(10px)"})),Ly("active-asc <=> active-desc",Iy(dR))]),leftPointer:Oy("leftPointer",[Py("active-asc, asc",Dy({transform:"rotate(-45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),rightPointer:Oy("rightPointer",[Py("active-asc, asc",Dy({transform:"rotate(45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(-45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),arrowOpacity:Oy("arrowOpacity",[Py("desc-to-active, asc-to-active, active",Dy({opacity:1})),Py("desc-to-hint, asc-to-hint, hint",Dy({opacity:.54})),Py("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Dy({opacity:0})),Ly("* => asc, * => desc, * => active, * => hint, * => void",Iy("0ms")),Ly("* <=> *",Iy(dR))]),arrowPosition:Oy("arrowPosition",[Ly("* => desc-to-hint, * => desc-to-active",Iy(dR,My([Dy({transform:"translateY(-25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-desc, * => active-to-desc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(25%)"})]))),Ly("* => asc-to-hint, * => asc-to-active",Iy(dR,My([Dy({transform:"translateY(25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-asc, * => active-to-asc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(-25%)"})]))),Py("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Dy({transform:"translateY(0)"})),Py("hint-to-desc, active-to-desc, desc",Dy({transform:"translateY(-25%)"})),Py("hint-to-asc, active-to-asc, asc",Dy({transform:"translateY(25%)"}))]),allowChildren:Oy("allowChildren",[Ly("* <=> *",[Ny("@*",Fy(),{optional:!0})])])},vR=((aR=function e(){v(this,e),this.changes=new j,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||aR)},aR.\u0275prov=Ee({factory:function(){return new aR},token:aR,providedIn:"root"}),aR),mR={provide:vR,deps:[[new _e,new ke,vR]],useFactory:function(e){return e||new vR}},gR=hk(function e(){v(this,e)}),yR=((uR=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._intl=e,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._rerenderSubscription=se(r.sortChange,r._stateChanges,e.changes).subscribe(function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),i.markForCheck()}),u}return g(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){return e._setIndicatorHintVisible(!!t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(gR)).\u0275fac=function(e){return new(e||uR)(Va(vR),Va(_u),Va(hR,8),Va("MAT_SORT_HEADER_COLUMN_DEF",8),Va(ty),Va(Qs))},uR.\u0275cmp=pt({type:uR,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ma("aria-sort",t._getAriaSortAttribute()),ps("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[wa],attrs:iR,ngContentSelectors:lR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0),Ha(1,"div",1),os(2),Ua(),Fa(3,rR,6,6,"div",2),Ua()),2&e&&(ps("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ma("tabindex",t._isDisabled()?null:0),uo(3),Ba("ngIf",t._renderArrow()))},directives:[Xc],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pR.indicator,pR.leftPointer,pR.rightPointer,pR.arrowOpacity,pR.arrowPosition,pR.allowChildren]},changeDetection:0}),uR),_R=((sR=function e(){v(this,e)}).\u0275mod=yt({type:sR}),sR.\u0275inj=Te({factory:function(e){return new(e||sR)},providers:[mR],imports:[[ph,ck]]}),sR);function bR(e,t){if(1&e&&(Ha(0,"li"),xs(1),Ua()),2&e){var n=t.$implicit;uo(1),Es(n)}}function kR(e,t){if(1&e&&(Ha(0,"ul"),Fa(1,bR,2,1,"li",8),Ua()),2&e){var n=ns(2);uo(1),Ba("ngForOf",n.errorMessages)}}function wR(e,t){if(1&e){var n=Ka();Ha(0,"div",2),Ha(1,"div",3),Ha(2,"div"),xs(3),Ua(),Fa(4,kR,2,1,"ul",4),Ua(),Ha(5,"div",5),Ha(6,"button",6),Xa("click",function(){return cn(n),ns().clearErrorMessage()}),qa(7,"mat-icon",7),Ua(),Ua(),Ua()}if(2&e){var i=ns();uo(3),Ts(" ",i.errorMessage," "),uo(1),Ba("ngIf",i.errorMessages&&i.errorMessages.length)}}function CR(e,t){if(1&e&&(Ha(0,"mat-header-cell",23),Ha(1,"span",24),xs(2),Ua(),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("matTooltip",i.displayedColumnsDict[n].description),uo(1),Ts(" ",i.displayedColumnsDict[n].isSmilesColumn?"mol":n," ")}}function SR(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns().$implicit,i=ns().$implicit;uo(1),Es("0 (0.0)"==n[i]?"0 (0.01)":n[i])}}function xR(e,t){if(1&e){var n=Ka();Ha(0,"a",26),Xa("click",function(){cn(n);var e=ns().$implicit,t=ns().$implicit;return ns(2).openStructureImageDialog(e[t])}),qa(1,"img",27),Ua()}if(2&e){var i=ns().$implicit,r=ns().$implicit;Ba("matTooltip",i[r]),uo(1),Ba("entityId",i[r])}}function ER(e,t){if(1&e&&(Ha(0,"mat-cell"),Fa(1,SR,2,1,"span",4),Fa(2,xR,2,2,"a",25),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("ngIf",!i.displayedColumnsDict[n].isSmilesColumn),uo(1),Ba("ngIf",i.displayedColumnsDict[n].isSmilesColumn)}}function TR(e,t){1&e&&(Wa(0,20),Fa(1,CR,3,2,"mat-header-cell",21),Fa(2,ER,3,2,"mat-cell",22),Ya()),2&e&&Ba("matColumnDef",t.$implicit)}function AR(e,t){1&e&&qa(0,"mat-header-row")}function OR(e,t){1&e&&qa(0,"mat-row",28)}var IR=function(){return[5,10,25,100]};function RR(e,t){if(1&e){var n=Ka();Ha(0,"div",9),Ha(1,"h2"),xs(2,"Model predictions"),Ua(),Ha(3,"div",10),Ha(4,"button",11),Xa("click",function(){return cn(n),ns().downloadCSV()}),xs(5,"Download"),Ua(),qa(6,"div",12),Ha(7,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua(),Ha(8,"div",14),Ha(9,"mat-table",15,16),Xa("matSortChange",function(e){return cn(n),ns().sortData(e)}),Fa(11,TR,3,1,"ng-container",17),Fa(12,AR,1,0,"mat-header-row",18),Fa(13,OR,1,0,"mat-row",19),Ua(),Ua(),Ha(14,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua()}if(2&e){var i=ns();uo(7),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(12,IR)),uo(2),Ba("dataSource",i.paged),uo(2),Ba("ngForOf",i.displayedColumns),uo(1),Ba("matHeaderRowDef",i.displayedColumns),uo(1),Ba("matRowDefColumns",i.displayedColumns),uo(1),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(13,IR))}}var DR,PR=((DR=function(){function e(t,n){v(this,e),this.dialog=t,this.gaService=n,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Ku}return g(e,[{key:"ngOnInit",value:function(){}},{key:"pageChange",value:function(e){this.clearErrorMessage(),null!=e?(e.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=e.pageIndex,e.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=e.pageSize):this.page=0,this.paged=[];for(var t=this.page*this.pageSize,n=t;n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Ua(),Ua(),Ha(60,"div",4),Ha(61,"div",5),xs(62,"Data for Download:"),Ua(),Ha(63,"div",6),xs(64," A subset of the dataset used for developing these models is available for download. Click "),Ha(65,"a",12),xs(66,"here"),Ua(),xs(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Ha(68,"a",13),xs(69,"AID 1508591"),Ua(),xs(70,". "),Ua(),Ua(),Ua(),qa(71,"br"),Ha(72,"h3"),xs(73," RLM Assay Protocol "),Ua(),Ha(74,"p",14),xs(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Ha(76,"sub"),xs(77,"1/2"),Ua(),xs(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Ua(),Ha(79,"h3"),xs(80," References: "),Ua(),Ha(81,"ol"),Ha(82,"li"),xs(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Ua(),Ha(84,"li"),xs(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Ua(),Ua(),Ua()),2&e){var n=ns();uo(65),Ba("href",n.dataDownloadHref,ki)}}function WR(e,t){1&e&&(Ha(0,"div",2),Ha(1,"h2"),xs(2," CYP450 Models "),Ua(),Ha(3,"h3"),xs(4," High-throughput metabolic stability assays: "),Ua(),Ha(5,"p"),xs(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Ha(7,"sup"),xs(8,"1"),Ua(),xs(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Ha(10,"sub"),xs(11,"1/2"),Ua(),xs(12,") determinations were performed as previously described"),Ha(13,"sup"),xs(14,"1"),Ua(),xs(15,". "),Ua(),Ha(16,"div",15),Ha(17,"div",16),xs(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Ua(),Ha(19,"div",17),Ha(20,"table",18),Ha(21,"thead"),Ha(22,"tr",19),Ha(23,"th",20),xs(24," Matrix "),Ua(),Ha(25,"th",20),xs(26," Final Protein Concentration [mg/mL] "),Ua(),Ha(27,"th",20),xs(28," Total CYP content [nM] "),Ua(),Ha(29,"th",20),xs(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Ua(),Ha(31,"th",20),xs(32," Cytochrome b"),Ha(33,"sub"),xs(34,"5"),Ua(),xs(35," content [pmol/mg protein] "),Ua(),Ha(36,"th",20),xs(37," High clearance controls "),Ua(),Ha(38,"th",20),xs(39," Moderate clearance controls "),Ua(),Ha(40,"th",20),xs(41," Low clearance controls "),Ua(),Ua(),Ua(),Ha(42,"tbody"),Ha(43,"tr",21),Ha(44,"td",22),xs(45," CYP3A4 "),Ua(),Ha(46,"td",23),xs(47," ~0.2 "),Ua(),Ha(48,"td",23),xs(49," 30 "),Ua(),Ha(50,"td",23),xs(51," 2900 "),Ua(),Ha(52,"td",23),xs(53," 1090 "),Ua(),Ha(54,"td",23),xs(55," Buspirone, Loperamide "),Ua(),Ha(56,"td",23),xs(57," Ketoconazole "),Ua(),Ha(58,"td",23),xs(59," Antipyrine, Carbamazepine "),Ua(),Ua(),Ha(60,"tr",21),Ha(61,"td",22),xs(62," CYP2C9 "),Ua(),Ha(63,"td",23),xs(64," ~0.12 "),Ua(),Ha(65,"td",23),xs(66," 45 "),Ua(),Ha(67,"td",23),xs(68," 985 "),Ua(),Ha(69,"td",23),xs(70," 710 "),Ua(),Ha(71,"td",23),xs(72," Glyburide, Glimepiride "),Ua(),Ha(73,"td",23),xs(74," Tamoxifen "),Ua(),Ha(75,"td",23),xs(76," Antipyrine, Meloxicam "),Ua(),Ua(),Ha(77,"tr",21),Ha(78,"td",22),xs(79," CYP2D6 "),Ua(),Ha(80,"td",23),xs(81," ~0.38 "),Ua(),Ha(82,"td",23),xs(83," 60 "),Ua(),Ha(84,"td",23),xs(85," 3000 "),Ua(),Ha(86,"td",23),xs(87," - "),Ua(),Ha(88,"td",23),xs(89," Bufuralol, Desipramine, Amitriptyline "),Ua(),Ha(90,"td",23),xs(91," Mexiletine "),Ua(),Ha(92,"td",23),xs(93," Codeine "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(94,"h3"),xs(95," P450-Glo qHTS: "),Ua(),Ha(96,"p"),xs(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Ha(98,"sup"),xs(99,"2"),Ua(),xs(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Ua(),Ha(101,"div",15),Ha(102,"div",16),xs(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Ua(),Ha(104,"div",17),Ha(105,"table",18),Ha(106,"thead"),Ha(107,"tr",19),Ha(108,"th",20),xs(109," Enzyme "),Ua(),Ha(110,"th",20),xs(111," Inhibitor "),Ua(),Ha(112,"th",20),xs(113," Dilution Format "),Ua(),Ha(114,"th",20),xs(115," Inhibitor Concentration "),Ua(),Ha(116,"th",20),xs(117," Incubation conditions "),Ua(),Ua(),Ua(),Ha(118,"tbody"),Ha(119,"tr",21),Ha(120,"td",22),xs(121," CYP3A4 "),Ua(),Ha(122,"td",23),xs(123," Ketoconazole "),Ua(),Ha(124,"td",24),Ha(125,"div"),xs(126,"16 concentrations/"),Ua(),Ha(127,"div"),xs(128,"2-fold dilution in"),Ua(),Ha(129,"div"),xs(130,"duplicates"),Ua(),Ua(),Ha(131,"td",23),xs(132," 57 \xb5M-1.8 nM "),Ua(),Ha(133,"td",23),xs(134," 1 h/RT "),Ua(),Ua(),Ha(135,"tr",21),Ha(136,"td",22),xs(137," CYP2C9 "),Ua(),Ha(138,"td",23),xs(139," Sulfaphenazole "),Ua(),Ha(140,"td",23),xs(141," 57 \xb5M-1.8 nM "),Ua(),Ha(142,"td",23),xs(143," 1 h/ 37\u02daC/ 0.4% BSA "),Ua(),Ua(),Ha(144,"tr",21),Ha(145,"td",22),xs(146," CYP2D6 "),Ua(),Ha(147,"td",23),xs(148," Quinidine "),Ua(),Ha(149,"td",23),xs(150," 1.4 \xb5M-0.04 nM "),Ua(),Ha(151,"td",23),xs(152," 1 h/RT "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(153,"div",15),Ha(154,"div",16),xs(155," Parsing of Substrates and Inhibitors: "),Ua(),Ha(156,"div",17),Ha(157,"table",25),Ha(158,"thead"),Ha(159,"tr",19),Ha(160,"th",20),xs(161," Category "),Ua(),Ha(162,"th",20),Ha(163,"div"),xs(164,"Clearance"),Ua(),Ha(165,"div"),xs(166,"/"),Ua(),Ha(167,"div"),xs(168,"P450-Glo"),Ua(),Ua(),Ha(169,"th",20),xs(170," Classification "),Ua(),Ha(171,"th",20),xs(172," Parsing Rationale "),Ua(),Ua(),Ua(),Ha(173,"tbody"),Ha(174,"tr",21),Ha(175,"td",23),xs(176," 1 "),Ua(),Ha(177,"td",23),xs(178," + / + "),Ua(),Ha(179,"td",23),xs(180," Substrate "),Ua(),Ha(181,"td",26),xs(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Ua(),Ua(),Ha(183,"tr",21),Ha(184,"td",23),xs(185," 2 "),Ua(),Ha(186,"td",23),xs(187," - / + "),Ua(),Ha(188,"td",23),xs(189," Inhibitor "),Ua(),Ha(190,"td",26),xs(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Ua(),Ua(),Ha(192,"tr",21),Ha(193,"td",23),xs(194," 3 "),Ua(),Ha(195,"td",23),xs(196," - / - "),Ua(),Ha(197,"td",23),xs(198," Non-ligand "),Ua(),Ha(199,"td",26),xs(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Ua(),Ua(),Ha(201,"tr",21),Ha(202,"td",23),xs(203," 4 "),Ua(),Ha(204,"td",23),xs(205," + / - "),Ua(),Ha(206,"td",23),xs(207," Substrate "),Ua(),Ha(208,"td",26),xs(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(210,"h3"),xs(211," References: "),Ua(),Ha(212,"ol"),Ha(213,"li"),xs(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Ua(),Ha(215,"li"),xs(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Ua(),Ua(),Ua())}var YR,GR,KR,ZR,QR=[{path:"home",component:Qm,data:{pageTitle:"home"}},{path:"predictions",component:(KR=function(){function e(t,n,i){v(this,e),this.http=t,this.loadingService=n,this.gaService=i,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}return g(e,[{key:"ngOnInit",value:function(){this.link=document.createElement("a")}},{key:"processSketcherInput",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/api/v1/predict",{params:{smiles:e,model:this.models}}).subscribe(function(e){t.sketcherData=e,t.loadingService.setLoadingState(!1)},function(e){t.errorMessage="There was an error processing your structure. Please modify it and try again.",t.loadingService.setLoadingState(!1)})}},{key:"processFile",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);var n=new FormData;n.append("lineBreak",e.lineBreak),this.lineBreak=e.lineBreak,n.append("columnSeparator",e.columnSeparator),this.columnSeparator=e.columnSeparator,n.append("hasHeaderRow",e.hasHeaderRow.toString()),n.append("indexIdentifierColumn",e.indexIdentifierColumn.toString()),n.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=e.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,n.append("file",e.file),this.http.post("/api/v1/predict-file",n).subscribe(function(e){e.hasErrors?t.errorMessage=e.errorMessages:e&&Object.keys(e).length>0&&(t.fileData=e),t.loadingService.setLoadingState(!1)},function(e){t.fileData=null,t.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",t.loadingService.setLoadingState(!1)})}},{key:"clearErrorMessage",value:function(){this.errorMessage="",this.errorMessages=[]}},{key:"downloadCSV",value:function(e){var n=this,i=t(e.allColumns).join(this.columnSeparator),r=[];e.data.forEach(function(t){return r.push(e.allColumns.map(function(e){return t[e]}).join(n.columnSeparator))});var o=i+this.lineBreak+r.join(this.lineBreak);this.file=new Blob([o],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}},{key:"downloadFile",value:function(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}},{key:"selectedTabChange",value:function(e,t){this.gaService.sendEvent("click:tab",t,e.tab.textLabel)}}]),e}(),KR.\u0275fac=function(e){return new(e||KR)(Va(Rm),Va(Xm),Va(Km))},KR.\u0275cmp=pt({type:KR,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"mat-tab-group",2),Xa("selectedTabChange",function(e){return t.selectedTabChange(e,"predictions:input-type")}),Ha(3,"mat-tab",3),Ha(4,"div",4),Ha(5,"adme-sketcher",5),Xa("moleculeInput",function(e){return t.processSketcherInput(e)}),Ua(),Ua(),Fa(6,FR,8,2,"div",6),Fa(7,VR,3,1,"div",7),Ua(),Ha(8,"mat-tab",8),Ha(9,"div",4),Ha(10,"adme-text-file",9),Xa("fileProcess",function(e){return t.processFile(e)}),Ua(),Ua(),Fa(11,zR,8,2,"div",6),Fa(12,UR,3,1,"div",7),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.sketcherData),uo(4),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.fileData))},directives:[OC,_C,qC,Xc,vA,zC,DA,Zc,PR],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),KR),data:{pageTitle:"predictions"}},{path:"models/:model",component:(GR=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.activatedRoute=n,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/client/assets/rlm_public_set.xlsx")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.activatedRoute.params.subscribe(function(t){e.model=t.model})}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),e}(),GR.\u0275fac=function(e){return new(e||GR)(Va(ef),Va(ip))},GR.\u0275cmp=pt({type:GR,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(e,t){1&e&&(Ha(0,"div",0),Fa(1,qR,86,1,"div",1),Fa(2,WR,217,0,"div",1),Ua()),2&e&&(uo(1),Ba("ngIf","rlm"==t.model),uo(1),Ba("ngIf","cyp450"==t.model))},directives:[Xc,Zm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),GR),data:{pageTitle:"model"}},{path:"contact",component:(YR=function(){function e(t){v(this,e),this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/epam_ketcher.png")}return g(e,[{key:"ngOnInit",value:function(){}}]),e}(),YR.\u0275fac=function(e){return new(e||YR)(Va(ef))},YR.\u0275cmp=pt({type:YR,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h1"),xs(3," Contact "),Ua(),Ha(4,"div",2),Ha(5,"div",3),qa(6,"img",4),Ua(),Ha(7,"div",5),Ha(8,"div"),xs(9," Vishal Siramshetty "),Ua(),Ha(10,"div"),xs(11," Postdoctoral Fellow (Informatics) "),Ua(),Ha(12,"div"),xs(13," Email: "),Ha(14,"a",6),xs(15,"siramshettyv2@nih.gov"),Ua(),xs(16," (models/predictions related queries) "),Ua(),Ua(),Ua(),Ha(17,"div",2),Ha(18,"div",3),qa(19,"img",4),Ua(),Ha(20,"div",5),Ha(21,"div"),xs(22," Pranav Shah "),Ua(),Ha(23,"div"),xs(24," Lead (In Vitro ADME) "),Ua(),Ha(25,"div"),xs(26," Email: "),Ha(27,"a",7),xs(28,"pranav.shah@nih.gov"),Ua(),xs(29," (assay/data related queries) "),Ua(),Ua(),Ua(),Ha(30,"div",2),Ha(31,"div",3),qa(32,"img",4),Ua(),Ha(33,"div",5),Ha(34,"div"),xs(35," Jorge Neyra "),Ua(),Ha(36,"div"),xs(37," Software Developer (Informatics) "),Ua(),Ha(38,"div"),xs(39," Email: "),Ha(40,"a",8),xs(41,"jorge.neyra@nih.gov"),Ua(),xs(42," (software related queries) "),Ua(),Ua(),Ua(),Ha(43,"div",2),Ha(44,"div",3),qa(45,"img",4),Ua(),Ha(46,"div",5),Ha(47,"div"),xs(48," Jordan Williams "),Ua(),Ha(49,"div"),xs(50," Postbaccalaureate Fellow (In Vitro ADME) "),Ua(),Ha(51,"div"),xs(52," Email: "),Ha(53,"a",9),xs(54,"jordan.williams2@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(55,"div",2),Ha(56,"div",3),qa(57,"img",4),Ua(),Ha(58,"div",5),Ha(59,"div"),xs(60," Noel Southall "),Ua(),Ha(61,"div"),xs(62," Lead (Informatics) "),Ua(),Ha(63,"div"),xs(64," Email: "),Ha(65,"a",10),xs(66,"southalln@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(67,"div",2),Ha(68,"div",3),qa(69,"img",4),Ua(),Ha(70,"div",5),Ha(71,"div"),xs(72," Trung Nguyen "),Ua(),Ha(73,"div"),xs(74," Staff Scientist (Informatics) "),Ua(),Ha(75,"div"),xs(76," Email: "),Ha(77,"a",11),xs(78,"nguyenda@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(79,"div",2),Ha(80,"div",3),qa(81,"img",4),Ua(),Ha(82,"div",5),Ha(83,"div"),xs(84," Xin Xu "),Ua(),Ha(85,"div"),xs(86," Lead (ADME Group) "),Ua(),Ha(87,"div"),xs(88," Email: "),Ha(89,"a",12),xs(90,"xin.xu3@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(91,"div",13),Ha(92,"h1"),xs(93," Resources "),Ua(),Ha(94,"div",14),Ha(95,"div"),Ha(96,"a",15),qa(97,"img",4),Ua(),Ua(),Ha(98,"div"),Ha(99,"a",16),qa(100,"img",4),Ua(),Ua(),Ua(),Ha(101,"div",14),Ha(102,"div"),Ha(103,"a",17),qa(104,"img",4),Ua(),Ua(),Ha(105,"div"),Ha(106,"a",18),qa(107,"img",4),Ua(),Ua(),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("src",t.vishalImgSrc,ki),uo(13),Ba("src",t.pranavImgSrc,ki),uo(13),Ba("src",t.jorgeImgSrc,ki),uo(13),Ba("src",t.jordanImgSrc,ki),uo(12),Ba("src",t.noelImgSrc,ki),uo(12),Ba("src",t.trungImgSrc,ki),uo(12),Ba("src",t.xinImgSrc,ki),uo(16),Ba("src",t.rdkitImgSrc,ki),uo(3),Ba("src",t.pythonImgSrc,ki),uo(4),Ba("src",t.angularImgSrc,ki),uo(3),Ba("src",t.epamImgSrc,ki))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),YR),data:{pageTitle:"contact"}},{path:"**",component:Qm}],XR=((ZR=function e(){v(this,e)}).\u0275mod=yt({type:ZR}),ZR.\u0275inj=Te({factory:function(e){return new(e||ZR)},imports:[[qv.forRoot(QR,{relativeLinkResolution:"legacy"})],qv]}),ZR);function $R(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function JR(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function eD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function tD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}var nD,iD,rD,oD=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",aD=fk(function e(t){v(this,e),this._elementRef=t},"primary"),sD=new Le("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),uD=((rD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;v(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return g(n,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ug(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=_g(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=_g(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,_g(e)))}}]),n}(aD)).\u0275fac=function(e){return new(e||rD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},rD.\u0275cmp=pt({type:rD,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(Ma("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,$R,1,9,"circle",1),Fa(2,JR,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),rD._diameters=new WeakMap,rD),lD=((iD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i,r,o,a)).mode="indeterminate",s}return n}(uD)).\u0275fac=function(e){return new(e||iD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},iD.\u0275cmp=pt({type:iD,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,eD,1,9,"circle",1),Fa(2,tD,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),iD),cD=((nD=function e(){v(this,e)}).\u0275mod=yt({type:nD}),nD.\u0275inj=Te({factory:function(e){return new(e||nD)},imports:[[ck,ph],ck]}),nD);function hD(e,t){1&e&&(Ha(0,"div",1),qa(1,"mat-spinner"),Ua())}var fD,dD,pD,vD,mD=((fD=function(){function e(t){v(this,e),this.lodadingService=t,this.isLoading=!1}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.lodadingService.isLoading.subscribe(function(t){e.isLoading=t})}}]),e}()).\u0275fac=function(e){return new(e||fD)(Va(Xm))},fD.\u0275cmp=pt({type:fD,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(e,t){1&e&&Fa(0,hD,2,0,"div",0),2&e&&Ba("ngIf",t.isLoading)},directives:[Xc,lD],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),fD),gD=["*",[["mat-toolbar-row"]]],yD=["*","mat-toolbar-row"],_D=fk(function e(t){v(this,e),this._elementRef=t}),bD=((vD=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vD)},vD.\u0275dir=bt({type:vD,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),vD),kD=((pD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(_D)).\u0275fac=function(e){return new(e||pD)(Va(Qs),Va(ig),Va(mc))},pD.\u0275cmp=pt({type:pD,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,bD,!0),2&e&&al(i=dl())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[wa],ngContentSelectors:yD,decls:2,vars:0,template:function(e,t){1&e&&(rs(gD),os(0),os(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),pD),wD=((dD=function e(){v(this,e)}).\u0275mod=yt({type:dD}),dD.\u0275inj=Te({factory:function(e){return new(e||dD)},imports:[[ck],ck]}),dD);function CD(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new SD(i,n))}}var SD=function(){function e(t,n){v(this,e),this.delay=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new xD(e,this.delay,this.scheduler))}}]),e}(),xD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return g(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new ED(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(ww.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(ww.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(A),ED=function e(t,n){v(this,e),this.time=t,this.notification=n},TD=["mat-menu-item",""],AD=["*"];function OD(e,t){if(1&e){var n=Ka();Ha(0,"div",0),Xa("keydown",function(e){return cn(n),ns()._handleKeydown(e)})("click",function(){return cn(n),ns().closed.emit("click")})("@transformMenu.start",function(e){return cn(n),ns()._onAnimationStart(e)})("@transformMenu.done",function(e){return cn(n),ns()._onAnimationDone(e)}),Ha(1,"div",1),os(2),Ua(),Ua()}if(2&e){var i=ns();Ba("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ma("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var ID,RD,DD,PD,MD,LD,FD,ND,VD,jD,BD,zD={transformMenu:Oy("transformMenu",[Py("void",Dy({opacity:0,transform:"scale(0.8)"})),Ly("void => enter",Iy("120ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:1,transform:"scale(1)"}))),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))]),fadeInItems:Oy("fadeInItems",[Py("showing",Dy({opacity:1})),Ly("void => *",[Dy({opacity:0}),Iy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HD=new Le("MatMenuContent"),UD=new Le("MAT_MENU_PANEL"),qD=dk(hk(function e(){v(this,e)})),WD=((ID=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new j,a._focused=new j,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(f(a)),a}return g(n,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=yg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||DD)(Va(Qs),Va(Vl),Va(YD))},DD.\u0275dir=bt({type:DD,contentQueries:function(e,t,n){var i;1&e&&(cl(n,HD,!0),cl(n,WD,!0),cl(n,WD,!1)),2&e&&(al(i=dl())&&(t.lazyContent=i.first),al(i=dl())&&(t._allItems=i),al(i=dl())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&ul(xu,!0),2&e&&al(n=dl())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),DD),ZD=((RD=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(KD)).\u0275fac=function(e){return new(e||RD)(Va(Qs),Va(Vl),Va(YD))},RD.\u0275cmp=pt({type:RD,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Us([{provide:UD,useExisting:RD}]),wa],ngContentSelectors:AD,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(rs(),Fa(0,OD,3,6,"ng-template"))},directives:[Gc],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[zD.transformMenu,zD.fadeInItems]},changeDetection:0}),RD),QD=new Le("mat-menu-scroll-strategy"),XD={provide:QD,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},$D=sg({passive:!0}),JD=((BD=function(){function t(e,n,i,r,o,a,s,u){var l=this;v(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=x.EMPTY,this._hoverSubscription=x.EMPTY,this._menuCloseSubscription=x.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Ku,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ku,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof KD?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,$D),a&&(a._triggersSubmenu=this.triggersSubmenu())}return g(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$D),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof KD&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof KD?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(gf(function(e){return"void"===e.toState}),Mf(1),ow(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new LE({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var n=e("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=n[0],r=n[1],o=e("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,l=s,c=i,h=r,f=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",f="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",l="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:f},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:f},{originX:i,originY:l,overlayX:c,overlayY:s,offsetY:-f},{originX:r,originY:l,overlayX:h,overlayY:s,offsetY:-f}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return se(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:af(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(gf(function(t){return t!==e._menuItemInstance}),gf(function(){return e._menuOpen})):af(),n)}},{key:"_handleMousedown",value:function(e){Xg(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(gf(function(t){return t===e._menuItemInstance&&!t.disabled}),CD(0,vw)).subscribe(function(){e._openedBy="mouse",e.menu instanceof KD&&e.menu._isAnimating?e.menu._animationDone.pipe(Mf(1),CD(0,vw),ow(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new my(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(e){return new(e||BD)(Va(iT),Va(Qs),Va(Ru),Va(QD),Va(UD,8),Va(WD,10),Va(xy,8),Va(ty))},BD.\u0275dir=bt({type:BD,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ma("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),BD),eP=((jD=function e(){v(this,e)}).\u0275mod=yt({type:jD}),jD.\u0275inj=Te({factory:function(e){return new(e||jD)},providers:[XD],imports:[ck]}),jD),tP=((VD=function e(){v(this,e)}).\u0275mod=yt({type:VD}),VD.\u0275inj=Te({factory:function(e){return new(e||VD)},providers:[XD],imports:[[ph,ck,Lk,lT,eP],Pw,ck,eP]}),VD),nP=((ND=function(){function e(t,n,i,r,o){v(this,e),this.router=i,this.gaService=r,this._document=o,t.addSvgIcon("cancel",n.bypassSecurityTrustResourceUrl("/client/assets/icons/cancel-24px.svg"))}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._document.getElementById("appFavicon").setAttribute("href","/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(function(t){t instanceof sd&&e.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}},{key:"ngOnDestroy",value:function(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ND)(Va(wA),Va(ef),Va(Ev),Va(Km),Va(mc))},ND.\u0275cmp=pt({type:ND,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(e,t){if(1&e&&(qa(0,"adme-loading"),Ha(1,"mat-toolbar",0),Ha(2,"a",1),xs(3,"ADME @ NCATS"),Ua(),Ha(4,"div",2),Ha(5,"a",3),xs(6,"Predict"),Ua(),Ha(7,"a",4),xs(8,"Models"),Ua(),Ha(9,"mat-menu",null,5),Ha(11,"button",6),xs(12,"RLM"),Ua(),Ha(13,"button",7),xs(14,"CYP450"),Ua(),Ua(),Ha(15,"a",8),xs(16,"Contact"),Ua(),Ua(),qa(17,"span",9),Ua(),qa(18,"router-outlet")),2&e){var n=Na(10);uo(7),Ba("matMenuTriggerFor",n)}},directives:[mD,kD,Av,JD,ZD,WD,Tv,Pv],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),ND),iP=((FD=function e(){v(this,e)}).\u0275mod=yt({type:FD}),FD.\u0275inj=Te({factory:function(e){return new(e||FD)},imports:[[ph,HC]]}),FD),rP=((LD=function e(){v(this,e)}).\u0275mod=yt({type:LD}),LD.\u0275inj=Te({factory:function(e){return new(e||LD)},imports:[[ph,ck],ck]}),LD),oP=((MD=function e(){v(this,e)}).\u0275mod=yt({type:MD}),MD.\u0275inj=Te({factory:function(e){return new(e||MD)},imports:[[ck],ck]}),MD),aP=((PD=function e(){v(this,e)}).\u0275mod=yt({type:PD}),PD.\u0275inj=Te({factory:function(e){return new(e||PD)},imports:[[Ek,Lk,ck,Nk,ph],Ek,ck,Nk,oP]}),PD);function sP(e){return function(){return e.load()}}var uP,lP=((uP=function e(){v(this,e)}).\u0275mod=yt({type:uP,bootstrap:[nP]}),uP.\u0275inj=Te({factory:function(e){return new(e||uP)},providers:[Gm,{provide:gl,useFactory:sP,deps:[Gm],multi:!0}],imports:[[of,XR,nk,iP,nR,kO,Ym,HC,wD,Mx,Lx,bE,LT,FC,pA,rP,cD,aP,nO,_R,oA,PA,tP]]}),uP);(function(){if(Qn)throw new Error("Cannot enable prod mode after platform setup.");Zn=!1})(),nf().bootstrapModule(lP).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file diff --git a/server/client/runtime-es2015.77ee60893201b199ca73.js b/server/client/runtime-es2015.b23b85bc9e821d2c6257.js similarity index 76% rename from server/client/runtime-es2015.77ee60893201b199ca73.js rename to server/client/runtime-es2015.b23b85bc9e821d2c6257.js index c7d841a..cdb6d3a 100644 --- a/server/client/runtime-es2015.77ee60893201b199ca73.js +++ b/server/client/runtime-es2015.b23b85bc9e821d2c6257.js @@ -1 +1 @@ -!function(e){function r(r){for(var n,l,i=r[0],f=r[1],p=r[2],c=0,s=[];c Date: Wed, 9 Dec 2020 14:38:51 -0500 Subject: [PATCH 02/18] updated startup script --- server/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/startup.sh b/server/startup.sh index 9e5acb8..bf07a3c 100644 --- a/server/startup.sh +++ b/server/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh -gunicorn --workers=1 --threads=1 --worker-class=gthread --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 +gunicorn --workers=2 --threads=2 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 From 7df62640418bfba370cd3ad1458c98890b4c55fc Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Wed, 9 Dec 2020 14:48:05 -0500 Subject: [PATCH 03/18] updated script call again to 4 workers --- server/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/startup.sh b/server/startup.sh index bf07a3c..953fc12 100644 --- a/server/startup.sh +++ b/server/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh -gunicorn --workers=2 --threads=2 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 +gunicorn --workers=4 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 From 212631d16c55d63310e982443ff12097fdfd9cab Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Wed, 9 Dec 2020 16:49:14 -0500 Subject: [PATCH 04/18] changed number of workers to 2 --- server/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/startup.sh b/server/startup.sh index 953fc12..a5cc671 100644 --- a/server/startup.sh +++ b/server/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh -gunicorn --workers=4 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 +gunicorn --workers=2 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 From c3b33ae2afe1ed3e39ae33c97e9934e616458fec Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Thu, 10 Dec 2020 12:07:39 -0500 Subject: [PATCH 05/18] updated multiprocessing code so the application doesn't use every core available --- server/predictors/cyp450/cyp450_predictor.py | 62 +++++++++++--------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index e7ac40c..df942ca 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -16,7 +16,10 @@ from tqdm import tqdm import multiprocessing as mp from copy import deepcopy +import multiprocessing from multiprocessing import Process, Pipe +from multiprocessing import Pool +import os class CYP450Predictor: """ @@ -133,41 +136,46 @@ def get_predictions(self): processes_dict = {} conns_dict = {} - for model_name in tqdm(cyp450_models_dict.keys()): + if multiprocessing.cpu_count() > 1: + processes = multiprocessing.cpu_count() - 1 + else: + processes = 1 + + with Pool(processes=processes) as pool: + + for model_name in cyp450_models_dict.keys(): - parent_conn, child_conn = Pipe() + parent_conn, child_conn = Pipe() - conns_dict[model_name] = parent_conn + conns_dict[model_name] = parent_conn - params_dict = { - "model_name": model_name, - "features": features, - "error_threshold_length": len(self.predictions_df.index) - } + params_dict = { + "model_name": model_name, + "features": features, + "error_threshold_length": len(self.predictions_df.index) + } - processes_dict[model_name] = Process(target=self._get_model_predictions, args=(child_conn,)) - parent_conn.send(params_dict) + parent_conn.send(params_dict) + processes_dict[model_name] = pool.apply_async(self._get_model_predictions, args=(child_conn,)) - for model_name in processes_dict: - processes_dict[model_name].start() + for model_name in processes_dict: + processes_dict[model_name].wait() - for model_name in processes_dict: - response_dict = conns_dict[model_name].recv() - model_has_error = response_dict["model_has_error"] - mean_probs = response_dict["mean_probs"] + for model_name in processes_dict: + response_dict = conns_dict[model_name].recv() + model_has_error = response_dict["model_has_error"] + mean_probs = response_dict["mean_probs"] - if model_has_error: - self.model_errors.append(self._columns_dict[model_name]['description']) + if model_has_error: + self.model_errors.append(self._columns_dict[model_name]['description']) - self.predictions_df[f'{model_name}'] = pd.Series( - pd.Series(np.where(mean_probs>=0.5, 1, 0)).round(2).astype(str) - +' (' - +pd.Series(mean_probs).round(2).astype(str) - +')' - ) - conns_dict[model_name].close() - processes_dict[model_name].join() - processes_dict[model_name].close() + self.predictions_df[f'{model_name}'] = pd.Series( + pd.Series(np.where(mean_probs>=0.5, 1, 0)).round(2).astype(str) + +' (' + +pd.Series(mean_probs).round(2).astype(str) + +')' + ) + conns_dict[model_name].close() end = time.time() print(f'{end - start} seconds to CYP450 predict {len(self.predictions_df.index)} molecules') From 3c39e532ba2286334c96923fd7f11c3244c2e1aa Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Thu, 10 Dec 2020 17:11:56 -0500 Subject: [PATCH 06/18] small update to trigger deploy --- server/app.py | 3 +++ server/predictors/cyp450/cyp450_predictor.py | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/server/app.py b/server/app.py index 6f04944..efccf97 100644 --- a/server/app.py +++ b/server/app.py @@ -19,6 +19,8 @@ from flask import send_file from predictors.rlm.rlm_predictor import RLMPredictior from predictors.cyp450.cyp450_predictor import CYP450Predictor +# from multiprocessing import set_start_method + app = flask.Flask(__name__, static_folder ='./client') CORS(app) @@ -183,4 +185,5 @@ def return_index(path): return app.send_static_file('index.html') if __name__ == "__main__": + # set_start_method('forkserver') app.run() \ No newline at end of file diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index df942ca..a86f949 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -1,3 +1,4 @@ +import os import random import string import pandas as pd @@ -14,12 +15,11 @@ from ..cyp450 import cyp450_models_dict import time from tqdm import tqdm -import multiprocessing as mp from copy import deepcopy import multiprocessing -from multiprocessing import Process, Pipe -from multiprocessing import Pool -import os +# from multiprocessing import Pipe, Pool +# import multiprocessing as mp +mp = multiprocessing.get_context('forkserver') class CYP450Predictor: """ @@ -141,11 +141,11 @@ def get_predictions(self): else: processes = 1 - with Pool(processes=processes) as pool: + with mp.Pool(processes=processes) as pool: for model_name in cyp450_models_dict.keys(): - parent_conn, child_conn = Pipe() + parent_conn, child_conn = mp.Pipe() conns_dict[model_name] = parent_conn From ff2797d1b5cc2eb0ea79bdcff11ae366fea56315 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Mon, 14 Dec 2020 12:10:33 -0500 Subject: [PATCH 07/18] potential fix for multiprocessing --- server/predictors/cyp450/cyp450_predictor.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index a86f949..6d0d294 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -17,9 +17,15 @@ from tqdm import tqdm from copy import deepcopy import multiprocessing -# from multiprocessing import Pipe, Pool -# import multiprocessing as mp -mp = multiprocessing.get_context('forkserver') +from multiprocessing import set_start_method +import multiprocessing as mp +import platform +if platform.system() == 'Linux' and 'Microsoft' not in platform.uname().release: + set_start_method('forkserver') + #mp = multiprocessing.get_context('forkserver') +# else: +# import multiprocessing as mp + class CYP450Predictor: """ From 97bfc891ed18935a512c5f9353a9d82f806b8d81 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Mon, 14 Dec 2020 12:51:19 -0500 Subject: [PATCH 08/18] another potential fix for the multiprocessing problem --- server/predictors/cyp450/cyp450_predictor.py | 5 ++--- server/predictors/setup.py | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index 6d0d294..685929d 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -17,11 +17,10 @@ from tqdm import tqdm from copy import deepcopy import multiprocessing -from multiprocessing import set_start_method import multiprocessing as mp import platform -if platform.system() == 'Linux' and 'Microsoft' not in platform.uname().release: - set_start_method('forkserver') +# if platform.system() == 'Linux' and 'Microsoft' not in platform.uname().release: +# set_start_method('forkserver') #mp = multiprocessing.get_context('forkserver') # else: # import multiprocessing as mp diff --git a/server/predictors/setup.py b/server/predictors/setup.py index 37981b5..f405e9c 100644 --- a/server/predictors/setup.py +++ b/server/predictors/setup.py @@ -1,4 +1,6 @@ from setuptools import setup, find_namespace_packages +from multiprocessing import set_start_method +set_start_method('forkserver') setup( name='ncats-adme-predictors', From 1b7478ba5e8024ec0e1f0786c1f9f629202e1c0e Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Mon, 14 Dec 2020 15:46:41 -0500 Subject: [PATCH 09/18] another multiprocessing update --- server/app.py | 4 +- server/consensus_model.py | 196 --------------------------- server/predictors/cyp450/__init__.py | 42 +++--- server/predictors/rlm/__init__.py | 1 + server/predictors/setup.py | 4 +- server/wsgi.py | 2 + 6 files changed, 30 insertions(+), 219 deletions(-) delete mode 100644 server/consensus_model.py diff --git a/server/app.py b/server/app.py index efccf97..462a04f 100644 --- a/server/app.py +++ b/server/app.py @@ -19,7 +19,6 @@ from flask import send_file from predictors.rlm.rlm_predictor import RLMPredictior from predictors.cyp450.cyp450_predictor import CYP450Predictor -# from multiprocessing import set_start_method app = flask.Flask(__name__, static_folder ='./client') @@ -185,5 +184,6 @@ def return_index(path): return app.send_static_file('index.html') if __name__ == "__main__": - # set_start_method('forkserver') + from multiprocessing import set_start_method + set_start_method('forkserver') app.run() \ No newline at end of file diff --git a/server/consensus_model.py b/server/consensus_model.py deleted file mode 100644 index 241a0e8..0000000 --- a/server/consensus_model.py +++ /dev/null @@ -1,196 +0,0 @@ -import numpy as np -import pandas as pd -import pickle -from keras.preprocessing.text import Tokenizer -from keras.preprocessing.sequence import pad_sequences -from rdkit import Chem -import warnings -warnings.filterwarnings('ignore') -import sys -sys.path.insert(0, './predictors/chemprop') -from chemprop.data.utils import get_data, get_data_from_smiles -from chemprop.data import MoleculeDataLoader, MoleculeDataset -from chemprop.train import predict -from rdkit.Chem import PandasTools -import random -import string -import settings -import models -from predictors.features.morgan_fp import MorganFPGenerator -from predictors.rlm.rlm_predictor import RLMPredictior - -def Average(lst): - return sum(lst) / len(lst) - -def Get_ClassLabel(y_pred_prob): - if y_pred_prob >= 0.7: - return 'Highly Unstable' - elif ((y_pred_prob < 0.7) and (y_pred_prob >= 0.5)): - return 'Unstable' - else: - return 'Stable' - -def get_processed_smi(X_test): - for p in range (X_test.shape[0]): - s = X_test[p] - s = s.replace("[nH]","A") - s = s.replace("Cl","L") - s = s.replace("Br","R") - s = s.replace("[C@]","C") - s = s.replace("[C@@]","C") - s = s.replace("[C@@H]","C") - s =[s[i:i+1] for i in range(0,len(s),1)] - s = " ".join(s) - X_test[p] = s - #X_test = X_test[:,0] - X_test = X_test.tolist() - return X_test - -def get_random_string(length): - letters = string.ascii_letters - result_str = ''.join(random.choice(letters) for i in range(length)) - return result_str - -def getRfPredictions(X_morgan): - y_pred = models.rf_model.predict(X_morgan) - y_pred_prob = models.rf_model.predict_proba(X_morgan).T[1] - return y_pred, y_pred_prob - -def getDnnPredictions(X_morgan): - predictions = models.dnn_model.predict(X_morgan) - y_pred_labels = np.array(predictions).ravel() - labels = y_pred_labels.round(0).astype(int) - predictions = np.array(predictions).ravel() - return predictions, labels - -def getLstmPredictions(X_smi_list): - max_len = 100 - X_smi = get_processed_smi(X_smi_list) - X_smi = models.tokenizer.texts_to_sequences(X_smi) - X_smi = pad_sequences(X_smi, maxlen=max_len, padding='post') - - predictions = models.lstm_model.predict(X_smi) - y_pred_labels = np.array(predictions).ravel() - labels = y_pred_labels.round(0).astype(int) - predictions = np.array(predictions).ravel() - - return predictions, labels - -def getGcnnPredictions(smiles): - full_data = get_data_from_smiles(smiles=smiles, skip_invalid_smiles=False) - full_to_valid_indices = {} - valid_index = 0 - for full_index in range(len(full_data)): - if full_data[full_index].mol is not None: - full_to_valid_indices[full_index] = valid_index - valid_index += 1 - - test_data = MoleculeDataset([full_data[i] for i in sorted(full_to_valid_indices.keys())]) - - # create data loader - test_data_loader = MoleculeDataLoader( - dataset=test_data, - batch_size=50, - num_workers=0 - ) - - model_preds = predict( - model=models.gcnn_model, - data_loader=test_data_loader, - scaler=models.gcnn_scaler - ) - predictions = np.ma.empty(len(full_data)) - predictions.mask = True - labels = np.ma.empty(len(full_data)) - labels.mask = True - for key in full_to_valid_indices.keys(): - full_index = int(key) - predictions[full_index] = model_preds[full_to_valid_indices[key]][0] - labels[full_index] = np.round(model_preds[full_to_valid_indices[key]][0], 0) - return predictions, labels.astype(int) - -def get_kekule_smiles(mol): - Chem.Kekulize(mol) - kek_smi = Chem.MolToSmiles(mol,kekuleSmiles=True) - return kek_smi - - - -# get consensus predictions - -def getConsensusPredictions(df, indexIdentifierColumn): - - columns = settings.columns_dict.keys() - - smi_series = df.iloc[:, indexIdentifierColumn] - smi_column_name = smi_series.name - smi_df = pd.DataFrame(columns=columns) - smi_df.insert(0, smi_column_name, smi_series) - - mol_column_name = get_random_string(10) - - PandasTools.AddMoleculeColumnToFrame(smi_df, smi_column_name, mol_column_name, includeFingerprints=False) - smi_df = smi_df[~smi_df[mol_column_name].isnull()] # this step omits mols for which smiles could not be parsed - smi_df[mol_column_name]=smi_df[mol_column_name].apply(get_kekule_smiles) - has_smi_errors = len(df.index) > len(smi_df.index) - has_rf_errors = False - has_dnn_errors = False - has_lstm_errors = False - has_gcnn_errors = False - - if len(smi_df.index) > 0: - - morgan_fp_generator = MorganFPGenerator(smi_df.copy()) - X_morgan = morgan_fp_generator.get_morgan_features(mol_column_name) - - # change column to where smiles are located - X_smi = smi_df[mol_column_name].values - - - rlm_predictor = RLMPredictior(df, indexIdentifierColumn) - # rf_y_pred, rf_y_pred_prob = getRfPredictions(X_morgan) - rf_y_pred, rf_y_pred_prob = rlm_predictor.rf_predict(X_morgan) - smi_df['RF'] = pd.Series(pd.Series(rf_y_pred).astype(str) + ' (' + pd.Series(rf_y_pred_prob).round(2).astype(str) + ')') - has_rf_errors = len(smi_df.index) > len(rf_y_pred_prob) - - dnn_predictions, dnn_labels = getDnnPredictions(X_morgan) - smi_df['DNN'] = pd.Series(pd.Series(dnn_labels).astype(str) + ' (' + pd.Series(dnn_predictions).round(2).astype(str) + ')') - has_dnn_errors = len(smi_df.index) > len(dnn_predictions) - - lstm_predictions, lstm_labels = getLstmPredictions(X_smi.copy()) - smi_df['LSTM'] = pd.Series(pd.Series(lstm_labels).astype(str) + ' (' + pd.Series(lstm_predictions).round(2).astype(str) + ')') - has_lstm_errors = len(smi_df.index) > len(lstm_predictions) - - gcnn_predictions, gcnn_labels = getGcnnPredictions(smi_df[mol_column_name].tolist()) - smi_df['GCNN'] = pd.Series(pd.Series(gcnn_labels).fillna('').astype(str) + ' (' + pd.Series(gcnn_predictions).round(2).astype(str) + ')').str.replace('(nan)', '', regex=False) - has_gcnn_errors = len(smi_df.index) > len(gcnn_predictions) or np.ma.count_masked(gcnn_predictions) > 0 - - matrix = np.ma.empty((4, max(rf_y_pred_prob.shape[0], dnn_predictions.shape[0], lstm_predictions.shape[0], gcnn_predictions.shape[0]))) - matrix.mask = True - matrix[0, :rf_y_pred_prob.shape[0]] = rf_y_pred_prob - matrix[1, :dnn_predictions.shape[0]] = dnn_predictions - matrix[2, :lstm_predictions.shape[0]] = lstm_predictions - matrix[3, :gcnn_predictions.shape[0]] = gcnn_predictions - - consensus_pred_prob = matrix.mean(axis=0) - smi_df['Consensus'] = pd.Series( - pd.Series(np.where(consensus_pred_prob>=0.5, 1, 0)).round(2).astype(str) - +' (' - +pd.Series(consensus_pred_prob).round(2).astype(str) - +')' - ) - - smi_df['Prediction'] = pd.Series( - pd.Series(np.where(consensus_pred_prob>=0.5, 'unstable', 'stable')) - ) - - smi_df.drop([mol_column_name], axis=1, inplace=True) - - return ( - has_smi_errors, - has_rf_errors, - has_dnn_errors, - has_lstm_errors, - has_gcnn_errors, - df.merge(smi_df, on=smi_column_name, how='left') - ) diff --git a/server/predictors/cyp450/__init__.py b/server/predictors/cyp450/__init__.py index 73b884f..bf90099 100644 --- a/server/predictors/cyp450/__init__.py +++ b/server/predictors/cyp450/__init__.py @@ -40,28 +40,32 @@ def download_file(base_url, model_name, model_number, models_dict): ) as fout: for chunk in cyp450_rf_pkl_file_request.iter_content(chunk_size=4096): fout.write(chunk) - with open(cyp450_model_path, 'wb') as cyp450_rf_pkl_file: - cyp450_rf_pkl_file.write(cyp450_rf_pkl_file_request.content) - with open(cyp450_model_path, 'rb') as cyp450_rf_pkl_file: - cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(cyp450_rf_pkl_file) + with open(cyp450_model_path, 'wb') as cyp450_rf_pkl_file_writer: + cyp450_rf_pkl_file_writer.write(cyp450_rf_pkl_file_request.content) + + cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(BytesIO(cyp450_rf_pkl_file_request.content)) + # with open(cyp450_model_path, 'r') as cyp450_rf_pkl_file_reader: + # print(model_name) + # print(model_number) + # cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(cyp450_rf_pkl_file_reader) def load_models(cyp450_models_dict): # processes = [] - with ThreadPoolExecutor() as executor: - base_url = 'https://tripod.nih.gov/pub/adme/models/CYPP450/' - print(f'Loading CYP450 random forest models', file=sys.stdout) - for model_name in tqdm(cyp450_models_dict.keys()): - # for model_name in cyp450_models_dict.keys(): - for model_number in tqdm(range(0, 64)): - # for model_number in range(0, 64): - cyp450_model_path = f'./models/CYP450/{model_name}/model_{model_number}' - if path.exists(cyp450_model_path): - with open(cyp450_model_path, 'rb') as pkl_file: - cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(pkl_file) - else: - os.makedirs(f'./models/CYP450/{model_name}', exist_ok=True) - # processes.append(executor.submit(download_file, base_url, model_name, model_number, cyp450_models_dict)) - download_file(base_url, model_name, model_number, cyp450_models_dict) + #with ThreadPoolExecutor() as executor: + base_url = 'https://tripod.nih.gov/pub/adme/models/CYPP450/' + print(f'Loading CYP450 random forest models', file=sys.stdout) + for model_name in tqdm(cyp450_models_dict.keys()): + # for model_name in cyp450_models_dict.keys(): + for model_number in tqdm(range(0, 64)): + # for model_number in range(0, 64): + cyp450_model_path = f'./models/CYP450/{model_name}/model_{model_number}' + if path.exists(cyp450_model_path) and os.path.getsize(cyp450_model_path) > 0: + with open(cyp450_model_path, 'rb') as pkl_file: + cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(pkl_file) + else: + os.makedirs(f'./models/CYP450/{model_name}', exist_ok=True) + # processes.append(executor.submit(download_file, base_url, model_name, model_number, cyp450_models_dict)) + download_file(base_url, model_name, model_number, cyp450_models_dict) print(f'Finished loading CYP450 model files', file=sys.stdout) diff --git a/server/predictors/rlm/__init__.py b/server/predictors/rlm/__init__.py index 47d8306..be395e9 100644 --- a/server/predictors/rlm/__init__.py +++ b/server/predictors/rlm/__init__.py @@ -164,6 +164,7 @@ def load_gcnn_model(): return rlm_gcnn_scaler, rlm_gcnn_model + rlm_rf_model = load_rlm_rf_model() rlm_dnn_model = load_rlm_dnn_model() rlm_dnn_tokenizer = load_rlm_dnn_tokenizer() diff --git a/server/predictors/setup.py b/server/predictors/setup.py index f405e9c..dc3c5c7 100644 --- a/server/predictors/setup.py +++ b/server/predictors/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_namespace_packages -from multiprocessing import set_start_method -set_start_method('forkserver') +# from multiprocessing import set_start_method +# set_start_method('forkserver') setup( name='ncats-adme-predictors', diff --git a/server/wsgi.py b/server/wsgi.py index db63965..6699323 100644 --- a/server/wsgi.py +++ b/server/wsgi.py @@ -1,4 +1,6 @@ from app import app if __name__ == "__main__": + from multiprocessing import set_start_method + set_start_method('forkserver') app.run(debug=False) \ No newline at end of file From a7b33dae20a74cb2fc42d89b657f74bb5164145d Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Mon, 14 Dec 2020 16:31:24 -0500 Subject: [PATCH 10/18] yet another multiprocessing solution --- server/app.py | 2 -- server/predictors/cyp450/cyp450_predictor.py | 3 ++- server/wsgi.py | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server/app.py b/server/app.py index 462a04f..a52cc5c 100644 --- a/server/app.py +++ b/server/app.py @@ -184,6 +184,4 @@ def return_index(path): return app.send_static_file('index.html') if __name__ == "__main__": - from multiprocessing import set_start_method - set_start_method('forkserver') app.run() \ No newline at end of file diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index 685929d..7799a30 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -16,7 +16,8 @@ import time from tqdm import tqdm from copy import deepcopy -import multiprocessing +from multiprocessing import set_start_method +set_start_method('forkserver', force=True) import multiprocessing as mp import platform # if platform.system() == 'Linux' and 'Microsoft' not in platform.uname().release: diff --git a/server/wsgi.py b/server/wsgi.py index 6699323..db63965 100644 --- a/server/wsgi.py +++ b/server/wsgi.py @@ -1,6 +1,4 @@ from app import app if __name__ == "__main__": - from multiprocessing import set_start_method - set_start_method('forkserver') app.run(debug=False) \ No newline at end of file From 36ca181d3b6c3d4540785e371dd257018dbc22e2 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Mon, 14 Dec 2020 16:44:50 -0500 Subject: [PATCH 11/18] one more update --- server/predictors/cyp450/cyp450_predictor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index 7799a30..3b93153 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -142,8 +142,8 @@ def get_predictions(self): processes_dict = {} conns_dict = {} - if multiprocessing.cpu_count() > 1: - processes = multiprocessing.cpu_count() - 1 + if mp.cpu_count() > 1: + processes = mp.cpu_count() - 1 else: processes = 1 From 97ab0924f0853e91daa30e6936263ad5d4ed2de1 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Mon, 14 Dec 2020 18:53:16 -0500 Subject: [PATCH 12/18] set startup script to 1 worker --- server/predictors/cyp450/cyp450_predictor.py | 2 -- server/startup.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index 3b93153..47db462 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -16,8 +16,6 @@ import time from tqdm import tqdm from copy import deepcopy -from multiprocessing import set_start_method -set_start_method('forkserver', force=True) import multiprocessing as mp import platform # if platform.system() == 'Linux' and 'Microsoft' not in platform.uname().release: diff --git a/server/startup.sh b/server/startup.sh index a5cc671..5dd9d6d 100644 --- a/server/startup.sh +++ b/server/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh -gunicorn --workers=2 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 +gunicorn --workers=1 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 From 409ebda3522ee6c19ba4fb9efdd3ea800976f61b Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Tue, 15 Dec 2020 10:35:08 -0500 Subject: [PATCH 13/18] closed pool of workers upon finish --- server/predictors/cyp450/cyp450_predictor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index 47db462..d3e81b8 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -181,6 +181,10 @@ def get_predictions(self): ) conns_dict[model_name].close() + pool.close() + pool.terminate() + pool.join() + end = time.time() print(f'{end - start} seconds to CYP450 predict {len(self.predictions_df.index)} molecules') From f1a28224aef045242e10c6b087b8a68b2b299f7a Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Tue, 15 Dec 2020 14:14:32 -0500 Subject: [PATCH 14/18] updated worker count to 2 --- server/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/startup.sh b/server/startup.sh index 5dd9d6d..a5cc671 100644 --- a/server/startup.sh +++ b/server/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh -gunicorn --workers=1 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 +gunicorn --workers=2 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 From 8872a196bc5d5eb9c4614be55d98b0d98fc06c9a Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Tue, 15 Dec 2020 20:57:49 -0500 Subject: [PATCH 15/18] changed back to 1 worker --- server/predictors/cyp450/__init__.py | 43 +++++++++++++------- server/predictors/cyp450/cyp450_predictor.py | 3 +- server/startup.sh | 2 +- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/server/predictors/cyp450/__init__.py b/server/predictors/cyp450/__init__.py index bf90099..6d1aeac 100644 --- a/server/predictors/cyp450/__init__.py +++ b/server/predictors/cyp450/__init__.py @@ -10,17 +10,8 @@ from tqdm import tqdm import requests from io import BytesIO -from concurrent.futures import ThreadPoolExecutor, as_completed from os import path - -cyp450_models_dict = { - 'CYP2C9_inhib': {}, - 'CYP2C9_subs': {}, - 'CYP2D6_inhib': {}, - 'CYP2D6_subs': {}, - 'CYP3A4_inhib': {}, - 'CYP3A4_subs': {} -} +import multiprocessing # for model_name in cyp450_models_dict.keys(): # for model_number in range(0, 64): @@ -43,17 +34,39 @@ def download_file(base_url, model_name, model_number, models_dict): with open(cyp450_model_path, 'wb') as cyp450_rf_pkl_file_writer: cyp450_rf_pkl_file_writer.write(cyp450_rf_pkl_file_request.content) - cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(BytesIO(cyp450_rf_pkl_file_request.content)) + cyp450_rf_model = pickle.load(BytesIO(cyp450_rf_pkl_file_request.content)) + return cyp450_rf_model # with open(cyp450_model_path, 'r') as cyp450_rf_pkl_file_reader: # print(model_name) # print(model_number) # cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(cyp450_rf_pkl_file_reader) -def load_models(cyp450_models_dict): +def load_models(): # processes = [] #with ThreadPoolExecutor() as executor: base_url = 'https://tripod.nih.gov/pub/adme/models/CYPP450/' print(f'Loading CYP450 random forest models', file=sys.stdout) + + # manager = multiprocessing.Manager() + + # cyp450_models_dict = manager.dict({ + # 'CYP2C9_inhib': manager.dict(), + # 'CYP2C9_subs': manager.dict(), + # 'CYP2D6_inhib': manager.dict(), + # 'CYP2D6_subs': manager.dict(), + # 'CYP3A4_inhib': manager.dict(), + # 'CYP3A4_subs': manager.dict() + # }) + + cyp450_models_dict = { + 'CYP2C9_inhib': {}, + 'CYP2C9_subs': {}, + 'CYP2D6_inhib': {}, + 'CYP2D6_subs': {}, + 'CYP3A4_inhib': {}, + 'CYP3A4_subs': {} + } + for model_name in tqdm(cyp450_models_dict.keys()): # for model_name in cyp450_models_dict.keys(): for model_number in tqdm(range(0, 64)): @@ -65,8 +78,10 @@ def load_models(cyp450_models_dict): else: os.makedirs(f'./models/CYP450/{model_name}', exist_ok=True) # processes.append(executor.submit(download_file, base_url, model_name, model_number, cyp450_models_dict)) - download_file(base_url, model_name, model_number, cyp450_models_dict) + cyp450_models_dict[model_name][f'model_{model_number}'] = download_file(base_url, model_name, model_number, cyp450_models_dict) print(f'Finished loading CYP450 model files', file=sys.stdout) + return cyp450_models_dict + -load_models(cyp450_models_dict) \ No newline at end of file +cyp450_models_dict = load_models() \ No newline at end of file diff --git a/server/predictors/cyp450/cyp450_predictor.py b/server/predictors/cyp450/cyp450_predictor.py index d3e81b8..41de318 100644 --- a/server/predictors/cyp450/cyp450_predictor.py +++ b/server/predictors/cyp450/cyp450_predictor.py @@ -214,9 +214,10 @@ def _get_model_predictions(self, con): "mean_probs": mean_probs, "model_has_error": model_has_error } + con.send(response_dict) con.close() - return + return None def get_errors(self): return { diff --git a/server/startup.sh b/server/startup.sh index a5cc671..5dd9d6d 100644 --- a/server/startup.sh +++ b/server/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh -gunicorn --workers=2 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 +gunicorn --workers=1 --worker-class=sync --worker-tmp-dir /dev/shm --log-file=- --bind 0.0.0.0:5000 wsgi:app --timeout 600 From 7ea1aa88ddd86f56c05e53eff4568ce4df5f4b78 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Wed, 16 Dec 2020 18:11:05 -0500 Subject: [PATCH 16/18] updated --- server/predictors/cyp450/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/predictors/cyp450/__init__.py b/server/predictors/cyp450/__init__.py index 6d1aeac..cf704a6 100644 --- a/server/predictors/cyp450/__init__.py +++ b/server/predictors/cyp450/__init__.py @@ -75,6 +75,7 @@ def load_models(): if path.exists(cyp450_model_path) and os.path.getsize(cyp450_model_path) > 0: with open(cyp450_model_path, 'rb') as pkl_file: cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(pkl_file) + print(sys.getsizeof(cyp450_models_dict[model_name][f'model_{model_number}'])) else: os.makedirs(f'./models/CYP450/{model_name}', exist_ok=True) # processes.append(executor.submit(download_file, base_url, model_name, model_number, cyp450_models_dict)) From de993a6f07606287068d785f01b94d70eb6bd32c Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Wed, 16 Dec 2020 18:12:33 -0500 Subject: [PATCH 17/18] updated --- server/predictors/cyp450/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/server/predictors/cyp450/__init__.py b/server/predictors/cyp450/__init__.py index cf704a6..6d1aeac 100644 --- a/server/predictors/cyp450/__init__.py +++ b/server/predictors/cyp450/__init__.py @@ -75,7 +75,6 @@ def load_models(): if path.exists(cyp450_model_path) and os.path.getsize(cyp450_model_path) > 0: with open(cyp450_model_path, 'rb') as pkl_file: cyp450_models_dict[model_name][f'model_{model_number}'] = pickle.load(pkl_file) - print(sys.getsizeof(cyp450_models_dict[model_name][f'model_{model_number}'])) else: os.makedirs(f'./models/CYP450/{model_name}', exist_ok=True) # processes.append(executor.submit(download_file, base_url, model_name, model_number, cyp450_models_dict)) From 2701cc8eb876880b224089f2788e23f2001eea37 Mon Sep 17 00:00:00 2001 From: Jorge Neyra Date: Wed, 16 Dec 2020 18:17:03 -0500 Subject: [PATCH 18/18] fixed multiprocessing bug --- server/client/index.html | 6 +++--- server/client/main-es2015.bf526f6229c9275787d7.js | 1 - server/client/main-es2015.e043658e91f3fa1d6dea.js | 1 + server/client/main-es5.bf526f6229c9275787d7.js | 1 - server/client/main-es5.e043658e91f3fa1d6dea.js | 1 + ...821d2c6257.js => runtime-es2015.77ee60893201b199ca73.js} | 2 +- ...c9e821d2c6257.js => runtime-es5.77ee60893201b199ca73.js} | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 server/client/main-es2015.bf526f6229c9275787d7.js create mode 100644 server/client/main-es2015.e043658e91f3fa1d6dea.js delete mode 100644 server/client/main-es5.bf526f6229c9275787d7.js create mode 100644 server/client/main-es5.e043658e91f3fa1d6dea.js rename server/client/{runtime-es2015.b23b85bc9e821d2c6257.js => runtime-es2015.77ee60893201b199ca73.js} (76%) rename server/client/{runtime-es5.b23b85bc9e821d2c6257.js => runtime-es5.77ee60893201b199ca73.js} (76%) diff --git a/server/client/index.html b/server/client/index.html index 21521b5..b83c922 100644 --- a/server/client/index.html +++ b/server/client/index.html @@ -3,7 +3,7 @@ ADME@NCATS - + @@ -15,8 +15,8 @@ - + - + diff --git a/server/client/main-es2015.bf526f6229c9275787d7.js b/server/client/main-es2015.bf526f6229c9275787d7.js deleted file mode 100644 index d743165..0000000 --- a/server/client/main-es2015.bf526f6229c9275787d7.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.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}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.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(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(){}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:((e=t)?1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)}:_)(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class E extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const T=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return T(t);if(R(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function P(t,e,n,i,s=new E(t,n,i)){if(!s.closed)return e instanceof y?e.subscribe(s):D(e)(s)}class M extends f{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function V(t,e){return new y(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(R(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return V(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[O](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(D(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends M{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 U(t){return t}function q(t=Number.POSITIVE_INFINITY){return B(U,t)}function $(t,e){return e?V(t,e):new y(T(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:q(e)($(t,n))}function Y(){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 i=new K(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class K extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const Q=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class X extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function J(){return new S}function tt(){return t=>{return Y()((e=J,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Q);return i.source=t,i.subjectFactory=n,i})(t));var e}}function et(t){return{toString:t}.toString()}function nt(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");function at(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(at).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 lt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ht(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function pt(t){return ft(t,gt)||ft(t,yt)}function ft(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(bt))?t[_t]:null}const gt=ct({\u0275prov:ct}),_t=ct({\u0275inj:ct}),yt=ct({ngInjectableDef:ct}),bt=ct({ngInjectorDef:ct});class vt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const wt=new vt("AnalyzeForEntryComponents");var Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({});const St="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,Tt=St||Et||xt||kt,It=ct({__forward_ref__:ct});function Ot(t){return t.__forward_ref__=Ot,t.toString=function(){return at(this())},t}function At(t){return Rt(t)?t():t}function Rt(t){return"function"==typeof t&&t.hasOwnProperty(It)&&t.__forward_ref__===Ot}const Dt=Function;function Pt(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Mt(t,e):e(t))}function Lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ft(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Nt(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function jt(t,e){const n=Bt(t,e);if(n>=0)return t[1|n]}function Bt(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var zt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Ht={},Ut=[],qt=ct({\u0275cmp:ct}),$t=ct({\u0275dir:ct}),Wt=ct({\u0275pipe:ct}),Yt=ct({\u0275mod:ct}),Gt=ct({\u0275loc:ct}),Kt=ct({\u0275fac:ct}),Zt=ct({__NG_ELEMENT_ID__:ct});let Qt=0;function Xt(t){return et(()=>{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===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||zt.Emulated,id:"c",styles:t.styles||Ut,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Qt++,n.inputs=ie(t.inputs,e),n.outputs=ie(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Jt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(te):null,n})}function Jt(t){return oe(t)||function(t){return t[$t]||null}(t)}function te(t){return function(t){return t[Wt]||null}(t)}const ee={};function ne(t){const e={type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{ee[t.id]=t.type}),e}function ie(t,e){if(null==t)return Ht;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const se=Xt;function re(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function oe(t){return t[qt]||null}function ae(t,e){const n=t[Yt]||null;if(!n&&!0===e)throw new Error(`Type ${at(t)} does not have '\u0275mod' property.`);return n}function le(t){return"string"==typeof t?t:null==t?"":""+t}function ce(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():le(t)}var he=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let ue;function de(t){const e=ue;return ue=t,e}function pe(t,e,n){const i=pt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&he.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${at(t)}]`)}const fe={},me=/\n/gm,ge=ct({provide:String,useValue:ct});let _e=void 0;function ye(t){const e=_e;return _e=t,e}function be(t,e=he.Default){if(void 0===_e)throw new Error("inject() must be called from an injection context");return null===_e?pe(t,void 0,e):_e.get(t,e&he.Optional?null:void 0,e)}function ve(t,e=he.Default){return(ue||be)(At(t),e)}const we=ve;function Ce(t){const e=[];for(let n=0;nvoid 0!==Se?Se:"undefined"!=typeof document?document:void 0};function De(t){for(;Array.isArray(t);)t=t[0];return t}function Pe(t,e){return De(e[t])}function Me(t,e){return De(e[t.index])}function Le(t,e){return t.data[e]}function Fe(t,e){return t[e]}function Ne(t,e){const n=e[t];return xe(n)?n:n[0]}function Ve(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function je(t){return 4==(4&t[2])}function Be(t){return 128==(128&t[2])}function ze(t,e){return null==e?null:t[e]}function He(t){t[18]=0}function Ue(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const qe={lFrame:mn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $e(){return qe.bindingsEnabled}function We(){return qe.lFrame.lView}function Ye(){return qe.lFrame.tView}function Ge(t){qe.lFrame.contextLView=t}function Ke(){let t=Ze();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ze(){return qe.lFrame.currentTNode}function Qe(t,e){const n=qe.lFrame;n.currentTNode=t,n.isParent=e}function Xe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function tn(){return qe.isInCheckNoChangesMode}function en(t){qe.isInCheckNoChangesMode=t}function nn(){const t=qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sn(){return qe.lFrame.bindingIndex++}function rn(t){const e=qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function on(t,e){const n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=t,an(e)}function an(t){qe.lFrame.currentDirectiveIndex=t}function ln(t){const e=qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function cn(){return qe.lFrame.currentQueryIndex}function hn(t){qe.lFrame.currentQueryIndex=t}function un(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function dn(t,e,n){if(n&he.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&he.Host||(i=un(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=qe.lFrame=fn();return i.currentTNode=e,i.lView=t,!0}function pn(t){const e=fn(),n=t[1];qe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function fn(){const t=qe.lFrame,e=null===t?null:t.child;return null===e?mn(t):e}function mn(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 gn(){const t=qe.lFrame;return qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const _n=gn;function yn(){const t=gn();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 bn(){return qe.lFrame.selectedIndex}function vn(t){qe.lFrame.selectedIndex=t}function wn(){const t=qe.lFrame;return Le(t.tView,t.selectedIndex)}function Cn(){qe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){qe.lFrame.currentNamespace=null}let xn;function kn(t){var e;return(null===(e=function(){if(void 0===xn&&(xn=null,Tt.trustedTypes))try{xn=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return xn}())||void 0===e?void 0:e.createHTML(t))||t}class En{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Tn extends En{getTypeName(){return"HTML"}}class In extends En{getTypeName(){return"Style"}}class On extends En{getTypeName(){return"Script"}}class An extends En{getTypeName(){return"URL"}}class Rn extends En{getTypeName(){return"ResourceURL"}}function Dn(t){return t instanceof En?t.changingThisBreaksApplicationSecurity:t}function Pn(t,e){const n=Mn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Mn(t){return t instanceof En&&t.getTypeName()||null}let Ln=!0,Fn=!1;function Nn(){return Fn=!0,Ln}class Vn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(kn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class jn{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=kn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=kn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Hn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ii(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!$n.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ii(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 ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/([^\#-~ |!])/g;function ii(t){return t.replace(/&/g,"&").replace(ei,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ni,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let si;function ri(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var oi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ai(t){const e=ci();return e?e.sanitize(oi.URL,t)||"":Pn(t,"URL")?Dn(t):Hn(le(t))}function li(t){const e=ci();if(e)return e.sanitize(oi.RESOURCE_URL,t)||"";if(Pn(t,"ResourceURL"))return Dn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function ci(){const t=We();return t&&t[12]}function hi(t,e){return t.hasOwnProperty(Kt)?t[Kt]:null}class ui extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function di(t,e){const n=e?" in "+e:"";throw new ui("201",`No provider for ${ce(t)} found${n}`)}class pi{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fi(){return mi}function mi(t){return t.type.prototype.ngOnChanges&&(t.setInput=_i),gi}function gi(){const t=yi(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Ht)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _i(t,e,n,i){const s=yi(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ht,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new pi(l&&l.currentValue,e,o===Ht),t[i]=e}function yi(t){return t.__ngSimpleChanges__||null}function bi(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}fi.ngInherit=!0;class ki{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ei(t,e,n){const i=Ae(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Mi=!0;function Li(t){const e=Mi;return Mi=t,e}let Fi=0;function Ni(t,e){const n=ji(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Vi(i.data,t),Vi(e,null),Vi(i.blueprint,null));const s=Bi(t,e),r=t.injectorIndex;if(Ri(s)){const t=Di(s),n=Pi(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Vi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ji(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Bi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function zi(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=Fi++);const s=255&i,r=1<=0?255&e:Wi:e}(n);if("function"==typeof r){if(!dn(e,t,i))return i&he.Host?Hi(s,n,i):Ui(e,n,i,s);try{const t=r();if(null!=t||i&he.Optional)return t;di(n)}finally{_n()}}else if("number"==typeof r){let s=null,o=ji(t,e),a=-1,l=i&he.Host?e[16][6]:null;for((-1===o||i&he.SkipSelf)&&(a=-1===o?Bi(t,e):e[o+8],-1!==a&&Qi(i,!1)?(s=e[1],o=Di(a),e=Pi(a,e)):o=-1);-1!==o;){const t=e[1];if(Zi(r,o,t.data)){const t=Yi(o,e,n,s,i,l);if(t!==$i)return t}a=e[o+8],-1!==a&&Qi(i,e[1].data[o+8]===l)&&Zi(r,o,e)?(s=t,o=Di(a),e=Pi(a,e)):o=-1}}}return Ui(e,n,i,s)}const $i={};function Wi(){return new Xi(Ke(),We())}function Yi(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Gi(a,o,n,null==i?Te(a)&&Mi:i!=o&&0!=(3&a.type),s&he.Host&&r===a);return null!==l?Ki(e,o,l,a):$i}function Gi(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&&Oe(t)&&t.type===n)return l}return null}function Ki(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof ki){const o=s;o.resolving&&function(t,e){throw new ui("200","Circular dependency in DI detected for "+t)}(ce(r[n]));const a=Li(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?de(o.injectImpl):null;dn(t,i,he.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=mi(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&de(l),Li(a),o.resolving=!1,_n()}}return s}function Zi(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const t=Ji(At(e));return t?t():null};let n=hi(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function ts(t){return et(()=>{const e=t.prototype.constructor,n=e[Kt]||Ji(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Kt]||Ji(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function es(t){return t.ngDebugContext}function ns(t){return t.ngOriginalError}function is(t,...e){t.error(...e)}class ss{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||is}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?es(t)?es(t):this._findContext(ns(t)):null}_findOriginalError(t){let e=ns(t);for(;e&&ns(e);)e=ns(e);return e}}function rs(t,e){t.__ngContext__=e}const os=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function as(t){return{name:"body",target:t.ownerDocument.body}}function ls(t){return t instanceof Function?t():t}var cs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function hs(t,e){return(void 0)(t,e)}function us(t){const e=t[3];return ke(e)?e[3]:e}function ds(t){return fs(t[13])}function ps(t){return fs(t[4])}function fs(t){for(;null!==t&&!ke(t);)t=t[4];return t}function ms(t,e,n,i,s){if(null!=i){let r,o=!1;ke(i)?r=i:xe(i)&&(o=!0,i=i[0]);const a=De(i);0===t&&null!==n?null==s?Ss(e,n,a):Cs(e,n,a,s||null,!0):1===t&&null!==n?Cs(e,n,a,s||null,!0):2===t?function(t,e,n){const i=ks(t,e);i&&function(t,e,n,i){Ae(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==De(n)&&ms(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const o=Ft(t,10+e);Ds(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function bs(t,e){if(!(256&e[2])){const n=e[11];Ae(n)&&n.destroyNode&&Ds(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return vs(t[1],t);for(;e;){let n=null;if(xe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)xe(e)&&vs(e[1],e),e=e[3];null===e&&(e=t),xe(e)&&vs(e[1],e),n=e&&e[4]}e=n}}(e)}}function vs(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 i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&Ae(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ke(e[3])){n!==e[3]&&_s(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function ws(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===zt.None||e===zt.Emulated)return null}return Me(i,n)}(t,e.parent,n)}function Cs(t,e,n,i,s){Ae(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function Ss(t,e,n){Ae(t)?t.appendChild(e,n):e.appendChild(n)}function xs(t,e,n,i,s){null!==i?Cs(t,e,n,i,s):Ss(t,e,n)}function ks(t,e){return Ae(t)?t.parentNode(e):e.parentNode}function Es(t,e,n){return Ts(t,e,n)}let Ts=function(t,e,n){return 40&t.type?Me(t,n):null};function Is(t,e,n,i){const s=ws(t,i,e),r=e[11],o=Es(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;ar?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Fs(e,c,0)||2&i&&c!==t){if(zs(i))return!1;o=!0}}}}else{if(!o&&!zs(i)&&!zs(l))return!1;if(o&&zs(l))continue;o=!1,i=l|1&i}}return zs(i)||o}function zs(t){return 0==(1&t)}function Hs(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||zs(o)||(e+=$s(r,s),s=""),i=o,r=r||!zs(i);n++}return""!==s&&(e+=$s(r,s)),e}const Ys={};function Gs(t){Ks(Ye(),We(),bn()+t,tn())}function Ks(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&vi(e,i,n)}else{const i=t.preOrderHooks;null!==i&&wi(e,i,0,n)}vn(n)}function Zs(t,e){return t<<17|e<<2}function Qs(t){return t>>17&32767}function Xs(t){return 2|t}function Js(t){return(131068&t)>>2}function tr(t,e){return-131069&t|e<<2}function er(t){return 1|t}function nr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Ks(t,e,20,tn()),n(i,s)}finally{vn(r)}}function hr(t,e,n){if(Ee(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function vr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function wr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Cr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Ar(n)}}function Ar(t){for(let n=ds(t);null!==n;n=ps(n))for(let t=10;t0&&Ar(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Ar(i)}}function Rr(t,e){const n=Ne(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Vr(t){return t[7]||(t[7]=[])}function jr(t,e,n){return(null===t||Oe(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Br(t,e){const n=t[9],i=n?n.get(ss,null):null;i&&i.handleError(e)}function zr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),Mt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ur,eo(void 0,this));const r=this.records.get($r);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:at(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=fe,n=he.Default){this.assertNotDestroyed();const i=ye(this);try{if(!(n&he.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof vt)&&pt(t);e=n&&this.injectableDefInScope(n)?eo(Jr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&he.Self?Zr():this.parent).get(t,e=n&he.Optional&&e===fe?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(at(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=at(e);if(Array.isArray(e))s=e.map(at).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):at(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(me,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{ye(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(at(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=At(t)))return!1;let i=mt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=mt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{Mt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,eo(i.factory,Wr));const a=i.providers;if(null!=a&&!o){const e=t;Mt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=io(t=At(t))?t:At(t&&t.provide);const s=function(t,e,n){return no(t)?eo(void 0,t.useValue):eo(to(t),Wr)}(t);if(io(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=eo(void 0,Wr,!0),e.factory=()=>Ce(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Wr&&(e.value=Yr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Jr(t){const e=pt(t),n=null!==e?e.factory:hi(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof vt)throw new Error(`Token ${at(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Nt(e,"?");throw new Error(`Can't resolve all parameters for ${at(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[yt]);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 to(t,e,n){let i=void 0;if(io(t)){const e=At(t);return hi(e)||Jr(e)}if(no(t))i=()=>At(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Ce(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ve(At(t.useExisting));else{const e=At(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return hi(e)||Jr(e);i=()=>new e(...Ce(t.deps))}var s;return i}function eo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function no(t){return null!==t&&"object"==typeof t&&ge in t}function io(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,i){const s=Qr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ro=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=fe,t.NULL=new qr,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>ve(Ur)}),t.__NG_ELEMENT_ID__=-1,t})();function oo(t,e){bi(Ve(t)[1],Ke())}function ao(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=lo(t.inputs),e.declaredInputs=lo(t.declaredInputs),e.outputs=lo(t.outputs);const n=s.hostBindings;n&&uo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&co(t,r),o&&ho(t,o),ht(t.inputs,s.inputs),ht(t.declaredInputs,s.declaredInputs),ht(t.outputs,s.outputs),Oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Oi(s.hostAttrs,n=Oi(n,s.hostAttrs))}}(i)}function lo(t){return t===Ht?{}:t===Ut?[]:t}function co(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ho(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function uo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let po=null;function fo(){if(!po){const t=Tt.Symbol;if(t&&t.iterator)po=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(De(t[i.index])).target:i.index;if(Ae(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=zo(i,e,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=zo(i,e,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,qe.lFrame.contextLView))[8]}(t)}function Uo(t,e){let n=null;const i=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 s=0;s=0}const Ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zo(t){return t.substring(Ko.key,Ko.keyEnd)}function Qo(t,e){const n=Ko.textEnd;return n===e?-1:(e=Ko.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ko.key=e,n),Xo(t,e,n))}function Xo(t,e,n){for(;e=0;n=Qo(e,n))Vt(t,Zo(e),!0)}function na(t,e,n,i){const s=We(),r=Ye(),o=rn(2);r.firstUpdatePass&&sa(r,t,o,i),e!==Ys&&bo(s,o,e)&&aa(r,r.data[bn()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=at(Dn(t)))),t}(e,n),i,o)}function ia(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[bn()],o=ia(t,n);ha(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ln(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=oa(n=ra(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ra(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Js(i))return t[Qs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ra(null,t,e,n[1],i),n=oa(n,e.attrs,i),function(t,e,n,i){t[Qs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Qs(t[a+1]);t[i+1]=Zs(e,a),0!==e&&(t[e+1]=tr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Zs(a,0),0!==a&&(t[a+1]=tr(t[a+1],i)),a=i;else t[i+1]=Zs(l,0),0===a?a=i:t[l+1]=tr(t[l+1],i),l=i;h&&(t[i+1]=Xs(t[i+1])),Yo(t,c,i,!0),Yo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Bt(r,e)>=0&&(n[i+1]=er(n[i+1]))}(e,c,t,i,r),o=Zs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function ra(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===Ys&&(h=c?Wo:void 0);let u=c?jt(h,i):l===i?h:void 0;if(r&&!ca(u)&&(u=jt(e,i)),ca(u)&&(a=u,o))return a;const d=t[s+1];s=o?Qs(d):Js(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=jt(t,i))}return a}function ca(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function ua(t,e=""){const n=We(),i=Ye(),s=t+20,r=i.firstCreatePass?sr(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Ae(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Is(i,n,o,r),Qe(r,!1)}function da(t){return pa("",t,""),da}function pa(t,e,n){const i=We(),s=wo(i,t,e,n);return s!==Ys&&function(t,e,n){const i=Pe(e,t);!function(t,e,n){Ae(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,bn(),s),pa}function fa(t,e,n){const i=We();return bo(i,sn(),e)&&_r(Ye(),wn(),i,t,e,i[11],n,!0),fa}function ma(t,e,n){const i=We();if(bo(i,sn(),e)){const s=Ye(),r=wn();_r(s,r,i,t,e,jr(ln(s.data),r,i),n,!0)}return ma}const ga=void 0;var _a=["en",[["a","p"],["AM","PM"],ga],[["AM","PM"],ga,ga],[["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"]],ga,[["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"]],ga,[["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}",ga,"{1} 'at' {0}",ga],[".",",",";","%","+","-","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 ya={};function ba(t){return t in ya||(ya[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),ya[t]}var va=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let wa="en-US";function Ca(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(wa=t.toLowerCase().replace(/_/g,"-"))}function Sa(t,e,n,i,s){if(t=At(t),Array.isArray(t))for(let r=0;r>20;if(io(t)||!t.multi){const i=new ki(l,s,xo),p=Ea(a,e,s?h:h+d,u);-1===p?(zi(Ni(c,o),r,a),xa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ea(a,e,h+d,u),f=Ea(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){zi(Ni(c,o),r,a);const h=function(t,e,n,i,s){const r=new ki(t,n,xo);return r.multi=[],r.index=e,r.componentProviders=0,ka(r,s,i&&!n),r}(s?Ia:Ta,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),xa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else xa(r,t,p>-1?p:f,ka(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function xa(t,e,n,i){const s=io(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ka(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ea(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Ye();if(i.firstCreatePass){const s=Oe(t);Sa(n,i.data,i.blueprint,s,!0),Sa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ra{}class Da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${at(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Pa=(()=>{class t{}return t.NULL=new Da,t})();function Ma(...t){}function La(t,e){return new Na(Me(t,e))}const Fa=function(){return La(Ke(),We())};let Na=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Fa,t})();class Va{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ba(),t})();const Ba=function(){const t=We(),e=Ne(Ke().index,t);return function(t){return t[11]}(xe(e)?e:t)};let za=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class Ha{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ua=new Ha("11.0.2");class qa{constructor(){}supports(t){return go(t)}create(t){return new Wa(t)}}const $a=(t,e)=>e;class Wa{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||$a}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;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,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Ya(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ka),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 Ka),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 Ya{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 Ga{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 Ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ga,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 Za(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ja(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 Ja{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let tl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new qa])}),t})(),el=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}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=ut({token:t,providedIn:"root",factory:()=>new t([new Qa])}),t})();function nl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(De(r)),ke(r))for(let t=10;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}bs(this._lView[1],this._lView)}onDestroy(t){mr(this._lView[1],this._lView,null,t)}markForCheck(){Pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){en(!0);try{Mr(t,e,n)}finally{en(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ds(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class sl extends il{constructor(t){super(t),this._view=t}detectChanges(){Lr(this._view)}checkNoChanges(){!function(t){en(!0);try{Lr(t)}finally{en(!1)}}(this._view)}get context(){return null}}const rl=al;let ol=(()=>{class t{}return t.__NG_ELEMENT_ID__=rl,t.__ChangeDetectorRef__=!0,t})();function al(t=!1){return function(t,e,n){if(!n&&Te(t)){const n=Ne(t.index,e);return new il(n,n)}return 47&t.type?new il(e[16],e):null}(Ke(),We(),t)}const ll=[new Qa],cl=new tl([new qa]),hl=new el(ll),ul=function(){return ml(Ke(),We())};let dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=ul,t})();const pl=dl,fl=class extends pl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ir(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),or(e,n,t),new il(n)}};function ml(t,e){return 4&t.type?new fl(e,t,La(t,e)):null}class gl{}class _l{}const yl=function(){return xl(Ke(),We())};let bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=yl,t})();const vl=bl,wl=class extends vl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new Xi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bi(this._hostTNode,this._hostLView);if(Ri(t)){const e=Pi(t,this._hostLView),n=Di(t);return new Xi(e[1].data[n+8],e)}return new Xi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Cl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(gl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new wl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),ios});class Ol extends Ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Tl(this.componentDef.inputs)}get outputs(){return Tl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,kl,s);return r!==kl||i===kl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Va,Re),o=s.get(za,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ae(t))return t.selectRootElement(e,n===zt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):gs(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:os,clean:Nr,playerHandler:null,flags:0},d=fr(0,null,null,1,0,null,null,null,null,null),p=ir(null,d,u,h,null,null,r,a,o,s);let f,m;pn(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=sr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Hr(a,l,!0),null!==t&&(Ei(s,t,l),null!==a.classes&&Ls(s,t,a.classes),null!==a.styles&&Ms(s,t,a.styles)));const c=i.createRenderer(t,e),h=ir(n,pr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(zi(Ni(a,n),o,e.type),wr(o,a),Sr(a,n.length,1)),Dr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ei(a,c,["ng-version",Ua.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Ls(a,c,e.join(" "))}if(m=Le(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Ke();e.contentQueries(1,o,t.directiveStart)}const a=Ke();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(vn(a.index),br(n[1],a,0,a.directiveStart,a.directiveEnd,e),vr(e,o)),o}(t,this.componentDef,p,u,[oo]),or(d,p,null)}finally{yn()}return new Al(this.componentType,f,La(m,p),p,m)}}class Al extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new sl(i),this.componentType=t}get injector(){return new Xi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Rl=new Map;class Dl extends gl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new El(this);const n=ae(t),i=t[Gt]||null;i&&Ca(i),this._bootstrapComponents=ls(n.bootstrap),this._r3Injector=Qr(t,e,[{provide:gl,useValue:this},{provide:Pa,useValue:this.componentFactoryResolver}],at(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ro.THROW_IF_NOT_FOUND,n=he.Default){return t===ro||t===gl||t===Ur?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 Pl extends _l{constructor(t){super(),this.moduleType=t,null!==ae(t)&&function(t){const e=new Set;!function t(n){const i=ae(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${at(e)} vs ${at(e.name)}`)}(s,Rl.get(s),n),Rl.set(s,n));const r=ls(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Dl(this.moduleType,t)}}function Ml(t,e,n){const i=nn()+t,s=We();return s[i]===Ys?yo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function Ll(t,e){const n=t[e];return n===Ys?void 0:n}function Fl(t,e,n,i,s,r){const o=e+n;return bo(t,o,s)?yo(t,o+1,r?i.call(r,s):i(s)):Ll(t,o+1)}const Nl=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function Vl(){return this._results[fo()]()}class jl{constructor(){this.dirty=!0,this._results=[],this.changes=new Nl,this.length=0;const t=fo(),e=jl.prototype;e[t]||(e[t]=Vl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=Pt(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Bl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Bl(this.queryList)}setDirty(){this.queryList.setDirty()}}class zl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Ma,this.reject=Ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ve(oc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lc=new vt("AppId"),cc={provide:lc,useFactory:function(){return`${hc()}${hc()}${hc()}`},deps:[]};function hc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uc=new vt("Platform Initializer"),dc=new vt("Platform ID"),pc=new vt("appBootstrapListener");let fc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const mc=new vt("LocaleId"),gc=new vt("DefaultCurrencyCode");class _c{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const yc=function(t){return new Pl(t)},bc=yc,vc=function(t){return Promise.resolve(yc(t))},wc=function(t){const e=yc(t),n=ls(ae(t).declarations).reduce((t,e)=>{const n=oe(e);return n&&t.push(new Ol(n)),t},[]);return new _c(e,n)},Cc=wc,Sc=function(t){return Promise.resolve(wc(t))};let xc=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=vc,this.compileModuleAndAllComponentsSync=Cc,this.compileModuleAndAllComponentsAsync=Sc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kc=(()=>Promise.resolve(0))();function Ec(t){"undefined"==typeof Zone?kc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nl(!1),this.onMicrotaskEmpty=new Nl(!1),this.onStable=new Nl(!1),this.onError=new Nl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Tt.requestAnimationFrame,e=Tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Rc(t),Ac(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Rc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Dc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Pc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Dc(t),e.invoke(i,s,r,o,a)}finally{Pc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Rc(t),Ac(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.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,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Oc,Ic,Ic);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ic(){}const Oc={};function Ac(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 Rc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Dc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Pc(t){t._nesting--,Ac(t)}class Mc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nl,this.onMicrotaskEmpty=new Nl,this.onStable=new Nl,this.onError=new Nl}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,i){return t.apply(e,n)}}let Lc=(()=>{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:()=>{Tc.assertNotInAngularZone(),Ec(()=>{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())Ec(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Fc=(()=>{class t{constructor(){this._applications=new Map,jc.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 jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Nc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Vc,jc=new Nc;const Bc=new vt("AllowMultipleToken");class zc{constructor(t,e){this.name=t,this.token=e}}function Hc(t,e,n=[]){const i="Platform: "+e,s=new vt(i);return(e=[])=>{let r=Uc();if(!r||r.injector.get(Bc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:$r,useValue:"platform"});!function(t){if(Vc&&!Vc.destroyed&&!Vc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vc=t.get(qc);const e=t.get(uc,null);e&&e.forEach(t=>t())}(ro.create({providers:t,name:i}))}return function(t){const e=Uc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Uc(){return Vc&&!Vc.destroyed?Vc:null}let qc=(()=>{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 Mc:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:Nn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Tc,useValue:n}];return n.run(()=>{const e=ro.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(ss,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Yc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(ac);return t.runInitializers(),t.donePromise.then(()=>(Ca(s.injector.get(mc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=$c({},e);return function(t,e,n){const i=new Pl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${at(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)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function $c(t,e){return Array.isArray(e)?e.reduce($c,t):Object.assign(Object.assign({},t),e)}let Wc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Nn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),Ec(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(tt()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(gl),s=n.create(ro.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Lc,null);return r&&s.injector.get(Fc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Nn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Yc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Yc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(fc),ve(ro),ve(ss),ve(Pa),ve(ac))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Yc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Gc{}class Kc{}const Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Xc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Xc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(ve(xc),ve(Kc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Jc=Hc(null,"core",[{provide:dc,useValue:"unknown"},{provide:qc,deps:[ro]},{provide:Fc,deps:[]},{provide:fc,deps:[]}]),th=[{provide:Wc,useClass:Wc,deps:[Tc,fc,ro,ss,Pa,ac]},{provide:Il,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new st,oc]]},{provide:xc,useClass:xc,deps:[]},cc,{provide:tl,useFactory:function(){return cl},deps:[]},{provide:el,useFactory:function(){return hl},deps:[]},{provide:mc,useFactory:function(t){return Ca(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(mc),new st,new ot]]},{provide:gc,useValue:"USD"}];let eh=(()=>{class t{constructor(t){}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Wc))},providers:th}),t})(),nh=null;function ih(){return nh}const sh=new vt("DocumentToken");let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:oh,token:t,providedIn:"platform"}),t})();function oh(){return ve(lh)}const ah=new vt("Location Initialized");let lh=(()=>{class t extends rh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ih().getLocation(),this._history=ih().getHistory()}getBaseHrefFromDOM(){return ih().getBaseHref(this._doc)}onPopState(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:hh,token:t,providedIn:"platform"}),t})();function ch(){return!!window.history.pushState}function hh(){return new lh(ve(sh))}function uh(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 dh(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 ph(t){return t&&"?"!==t[0]?"?"+t:t}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:mh,token:t,providedIn:"root"}),t})();function mh(t){const e=ve(sh).location;return new _h(ve(rh),e&&e.origin||"")}const gh=new vt("appBaseHref");let _h=(()=>{class t extends fh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return uh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t extends fh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=uh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bh=(()=>{class t{constructor(t,e){this._subject=new Nl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=dh(wh(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+ph(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(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+ph(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(ve(fh),ve(rh))},t.normalizeQueryParams=ph,t.joinWithSlash=uh,t.stripTrailingSlash=dh,t.\u0275prov=ut({factory:vh,token:t,providedIn:"root"}),t})();function vh(){return new bh(ve(fh),ve(rh))}function wh(t){return t.replace(/\/index.html$/,"")}var Ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Sh{}let xh=(()=>{class t extends Sh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ba(e);if(n)return n;const i=e.split("-")[0];if(n=ba(i),n)return n;if("en"===i)return _a;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[va.PluralCase]}(e||this.locale)(t)){case Ch.Zero:return"zero";case Ch.One:return"one";case Ch.Two:return"two";case Ch.Few:return"few";case Ch.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(ve(mc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function kh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let Eh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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&&(go(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 "+at(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)(xo(tl),xo(el),xo(Na),xo(ja))},t.\u0275dir=se({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Th{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 Ih=(()=>{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){Nn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Th(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Oh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Oh(t,s);e.push(r)}});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)(xo(bl),xo(dl),xo(tl))},t.\u0275dir=se({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Oh{constructor(t,e){this.record=t,this.view=e}}let Ah=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Rh,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){Dh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Dh("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)(xo(bl),xo(dl))},t.\u0275dir=se({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Rh{constructor(){this.$implicit=null,this.ngIf=null}}function Dh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${at(e)}'.`)}class Ph{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 Mh=(()=>{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 Ph(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Fh=(()=>{class t{constructor(t,e,n){n._addDefault(new Ph(t,e))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class Nh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Vh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const jh=new Vh,Bh=new Nh;let zh=(()=>{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(Lo(e))return jh;if(Fo(e))return Bh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${at(t)}'`)}_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)(function(t=he.Default){const e=al(!0);if(null!=e||t&he.Optional)return e;di("ChangeDetectorRef")}())},t.\u0275pipe=re({name:"async",type:t,pure:!1}),t})(),Hh=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:Sh,useClass:xh}]}),t})();function Uh(t){return"browser"===t}let qh=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new $h(ve(sh),window,ve(ss))}),t})();class $h{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Wh(this.window.history)||Wh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Wh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Yh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Yh,nh||(nh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Kh||(Kh=document.querySelector("base"),Kh)?Kh.getAttribute("href"):null;return null==e?null:(n=e,Gh||(Gh=document.createElement("a")),Gh.setAttribute("href",n),"/"===Gh.pathname.charAt(0)?Gh.pathname:"/"+Gh.pathname);var n}resetBaseElement(){Kh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return kh(document.cookie,t)}}let Gh,Kh=null;const Zh=new vt("TRANSITION_ID"),Qh=[{provide:oc,useFactory:function(t,e,n){return()=>{n.get(ac).donePromise.then(()=>{const n=ih();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Zh,sh,ro],multi:!0}];class Xh{static init(){var t;t=new Xh,jc=t}addToWindow(t){Tt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Jh=new vt("EventManagerPlugins");let tu=(()=>{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 i=0;i{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=ut({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t extends nu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ih().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const su={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/"},ru=/%COMP%/g;function ou(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let lu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new cu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case zt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new hu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case zt.ShadowDom:return new uu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ou(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)(ve(tu),ve(iu),ve(lc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class cu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(su[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,i){if(i){e=i+":"+e;const s=su[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=su[n];i?t.removeAttributeNS(i,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,i){i&(cs.DashCase|cs.Important)?t.style.setProperty(e,n,i&cs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&cs.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,au(n)):this.eventManager.addEventListener(t,e,au(n))}}class hu extends cu{constructor(t,e,n,i){super(t),this.component=n;const s=ou(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(ru,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ru,i+"-"+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 uu extends cu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ou(i.id,i.styles,[]);for(let r=0;r{class t extends eu{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)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const pu=["alt","control","meta","shift"],fu={"\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"},mu={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"},gu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let _u=(()=>{class t extends eu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ih().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(pu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&mu.hasOwnProperty(e)&&(e=mu[e]))}return fu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),pu.forEach(i=>{i!=n&&(0,gu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return ve(bu)},token:t,providedIn:"root"}),t})(),bu=(()=>{class t extends yu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case oi.NONE:return e;case oi.HTML:return Pn(e,"HTML")?Dn(e):function(t,e){let n=null;try{si=si||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(kn(""),"text/html")}catch(t){return!1}}()?new Vn:new jn(t)}(t);let i=e?String(e):"";n=si.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=si.getInertBodyElement(i)}while(i!==r);const o=new ti,a=o.sanitizeChildren(ri(n)||n);return Nn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=ri(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case oi.STYLE:return Pn(e,"Style")?Dn(e):e;case oi.SCRIPT:if(Pn(e,"Script"))return Dn(e);throw new Error("unsafe value used in a script context");case oi.URL:return Mn(e),Pn(e,"URL")?Dn(e):Hn(String(e));case oi.RESOURCE_URL:if(Pn(e,"ResourceURL"))return Dn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Tn(t)}bypassSecurityTrustStyle(t){return new In(t)}bypassSecurityTrustScript(t){return new On(t)}bypassSecurityTrustUrl(t){return new An(t)}bypassSecurityTrustResourceUrl(t){return new Rn(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:function(){return t=ve(Ur),new bu(t.get(sh));var t},token:t,providedIn:"root"}),t})();const vu=Hc(Jc,"browser",[{provide:dc,useValue:"browser"},{provide:uc,useValue:function(){Yh.makeCurrent(),Xh.init()},multi:!0},{provide:sh,useFactory:function(){return function(t){Se=t}(document),document},deps:[]}]),wu=[[],{provide:$r,useValue:"root"},{provide:ss,useFactory:function(){return new ss},deps:[]},{provide:Jh,useClass:du,multi:!0,deps:[sh,Tc,dc]},{provide:Jh,useClass:_u,multi:!0,deps:[sh]},[],{provide:lu,useClass:lu,deps:[tu,iu,lc]},{provide:Va,useExisting:lu},{provide:nu,useExisting:iu},{provide:iu,useClass:iu,deps:[sh]},{provide:Lc,useClass:Lc,deps:[Tc]},{provide:tu,useClass:tu,deps:[Jh,Tc]},[]];let Cu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:lc,useValue:e.appId},{provide:Zh,useExisting:lc},Qh]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(t,12))},providers:wu,imports:[Hh,eh]}),t})();function Su(...t){let e=t[t.length-1];return k(e)?(t.pop(),V(t,e)):$(t)}"undefined"!=typeof window&&window;class xu extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}const ku={};function Eu(...t){let e=null,n=null;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Tu(e))}class Tu{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Iu(t,this.resultSelector))}}class Iu extends M{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(ku),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{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Au=new y(t=>t.complete());function Ru(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Au}function Du(t){return new y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):Ru()).subscribe(e)})}function Pu(){return q(1)}function Mu(t,e){return function(n){return n.lift(new Lu(t,e))}}class Lu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fu(t,this.predicate,this.thisArg))}}class Fu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Nu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Vu(t){return function(e){return 0===t?Ru():e.lift(new ju(t))}}class ju{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Bu(t,this.total))}}class Bu extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new Hu(t))}class Hu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Uu(t,this.errorFactory))}}class Uu extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function qu(){return new Ou}function $u(t=null){return e=>e.lift(new Wu(t))}class Wu{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Yu(t,this.defaultValue))}}class Yu extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Gu(t,e){return"function"==typeof e?n=>n.pipe(Gu((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))))):e=>e.lift(new Ku(t))}class Ku{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zu(t,this.project))}}class Zu extends M{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(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new E(this,e,n),r=this.destination;r.add(s),this.innerSubscription=P(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.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,i,s){this.destination.next(e)}}function Qu(t){return e=>0===t?Ru():e.lift(new Xu(t))}class Xu{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Ju(t,this.total))}}class Ju extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function td(...t){return Pu()(Su(...t))}function ed(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>td(t,n,e)):e=>td(t,e)}class nd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new id(t,this.accumulator,this.seed,this.hasSeed))}}class id extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function sd(t){return function(e){const n=new rd(t),i=e.lift(n);return n.caught=i}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends M{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 i=new E(this,void 0,void 0);this.add(i);const s=P(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function ad(t,e){return B(t,e,1)}function ld(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Qu(1),n?$u(e):zu(()=>new Ou))}function cd(t,e,n){return function(i){return i.lift(new hd(t,e,n))}}class hd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ud(t,this.nextOrObserver,this.error,this.complete))}}class ud extends f{constructor(t,e,n,s){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function dd(t){return e=>e.lift(new pd(t))}class pd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new fd(t,this.callback))}}class fd extends f{constructor(t,e){super(t),this.add(new u(e))}}class md{constructor(t,e){this.id=t,this.url=e}}class gd extends md{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _d extends md{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yd extends md{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bd extends md{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cd extends md{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kd{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ed{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Td{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Id{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Od{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ad{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rd{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}')`}}class Dd{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 Pd(t){return new Dd(t)}function Md(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ld(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function Vd(t){return Array.prototype.concat.apply([],t)}function jd(t){return t.length>0?t[t.length-1]:null}function Bd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zd(t){return Fo(t)?t:Lo(t)?j(Promise.resolve(t)):Su(t)}function Hd(t,e,n){return n?function(t,e){return Fd(t,e)}(t.queryParams,e.queryParams)&&Ud(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Nd(t[n],e[n]))}(t.queryParams,e.queryParams)&&qd(t.root,e.root)}function Ud(t,e){if(!Kd(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Ud(t.children[n],e.children[n]))return!1}return!0}function qd(t,e){return $d(t,e,e.segments)}function $d(t,e,n){if(t.segments.length>n.length)return!!Kd(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Kd(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!qd(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Kd(t.segments,i)&&!!t.children.primary&&$d(t.children.primary,e,s)}}class Wd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return Jd.serialize(this)}}class Yd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Bd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tp(this)}}class Gd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Pd(this.parameters)),this._parameterMap}toString(){return ap(this)}}function Kd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Zd(t,e){let n=[];return Bd(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Bd(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class Qd{}class Xd{parse(t){const e=new dp(t);return new Wd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+ep(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ip(e)}=${ip(t)}`).join("&"):`${ip(e)}=${ip(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Jd=new Xd;function tp(t){return t.segments.map(t=>ap(t)).join("/")}function ep(t,e){if(!t.hasChildren())return tp(t);if(e){const e=t.children.primary?ep(t.children.primary,!1):"",n=[];return Bd(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${ep(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Zd(t,(e,n)=>"primary"===n?[ep(t.children.primary,!1)]:[`${n}:${ep(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${tp(t)}/${e[0]}`:`${tp(t)}/(${e.join("//")})`}}function np(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ip(t){return np(t).replace(/%3B/gi,";")}function sp(t){return np(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rp(t){return decodeURIComponent(t)}function op(t){return rp(t.replace(/\+/g,"%20"))}function ap(t){return`${sp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${sp(t)}=${sp(e[t])}`).join("")}`;var e}const lp=/^[^\/()?;=#]+/;function cp(t){const e=t.match(lp);return e?e[0]:""}const hp=/^[^=?&#]+/,up=/^[^?&#]+/;class dp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yd([],{}):new Yd([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Yd(t,e)),n}parseSegment(){const t=cp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Gd(rp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=cp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=cp(this.remaining);t&&(n=t,this.capture(n))}t[rp(e)]=rp(n)}parseQueryParam(t){const e=function(t){const e=t.match(hp);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(up);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=op(e),s=op(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Yd([],r),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 pp{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=fp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return mp(t,this._root).map(t=>t.value)}}function fp(t,e){if(t===e.value)return e;for(const n of e.children){const e=fp(t,n);if(e)return e}return null}function mp(t,e){if(t===e.value)return[e];for(const n of e.children){const i=mp(t,n);if(i.length)return i.unshift(e),i}return[]}class gp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function _p(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yp extends pp{constructor(t,e){super(t),this.snapshot=e,xp(this,t)}toString(){return this.snapshot.toString()}}function bp(t,e){const n=function(t,e){const n=new Cp([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Sp("",new gp(n,[]))}(t,e),i=new xu([new Gd("",{})]),s=new xu({}),r=new xu({}),o=new xu({}),a=new xu(""),l=new vp(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new yp(new gp(l,[]),n)}class vp{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>Pd(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Pd(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wp(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class Cp{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=Pd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sp extends pp{constructor(t,e){super(e),this.url=t,xp(this,e)}toString(){return kp(this._root)}}function xp(t,e){e.value._routerState=t,e.children.forEach(e=>xp(t,e))}function kp(t){const e=t.children.length>0?` { ${t.children.map(kp).join(", ")} } `:"";return`${t.value}${e}`}function Ep(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Fd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Fd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nFd(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Tp(t.parent,e.parent))}function Ip(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Ip(t,e,i);return Ip(t,e)})}(t,e,n);return new gp(i,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Op(e,t),t}{const n=new vp(new xu((i=e.value).url),new xu(i.params),new xu(i.queryParams),new xu(i.fragment),new xu(i.data),i.outlet,i.component,i),s=e.children.map(e=>Ip(t,e));return new gp(n,s)}}var i}function Op(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{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Wd(n.root===t?e:Pp(n.root,t,e),r,s)}function Pp(t,e,n){const i={};return Bd(t.children,(t,s)=>{i[s]=t===e?n:Pp(t,e,n)}),new Yd(t.segments,i)}class Mp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ap(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Rp);if(i&&i!==jd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Fp(t,e,n){if(t||(t=new Yd([],{})),0===t.segments.length&&t.hasChildren())return Np(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(Rp(o))break;const a=""+o,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!zp(a,l,e))return r;i+=2}else{if(!zp(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(s[i]=Fp(t.children[i],e,n))}),Bd(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Yd(t.segments,s)}}function Vp(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=Vp(new Yd([],{}),0,t))}),e}function Bp(t){const e={};return Bd(t,(t,n)=>e[n]=""+t),e}function zp(t,e,n){return t==n.path&&Fd(e,n.parameters)}class Hp{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ep(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Bd(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=_p(t),s=t.value.component?n.children:e;Bd(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Ad(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Id(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Ep(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Up(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}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Up(t){Ep(t.value),t.children.forEach(Up)}class qp{constructor(t,e){this.routes=t,this.module=e}}function $p(t){return"function"==typeof t}function Wp(t){return t instanceof Wd}const Yp=Symbol("INITIAL_VALUE");function Gp(){return Gu(t=>Eu(...t.map(t=>t.pipe(Qu(1),ed(Yp)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new nd(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Yp)return t;if(i===Yp&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||Wp(i))return i}return t},t)},Yp),Mu(t=>t!==Yp),L(t=>Wp(t)?t:!0===t),Qu(1)))}let Kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ao(0,"router-outlet")},directives:function(){return[qf]},encapsulation:2}),t})();function Zp(t,e=""){for(let n=0;ne.error(new ef(t)))}function rf(t){return new y(e=>e.error(new nf(t)))}function of(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class af{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(gl)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(L(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sd(t=>{if(t instanceof nf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ef)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(L(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sd(t=>{if(t instanceof ef)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Yd([],{primary:t}):t;return new Wd(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new Yd([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Su({});const n=[],i=[],s={};return Bd(t,(t,r)=>{const o=e(r,t).pipe(L(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),Su.apply(null,n.concat(i)).pipe(Pu(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Vu(1),n?$u(e):zu(()=>new Ou))}(),L(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,r){const o=function(t){return t.reduce((t,e)=>{const n=tf(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);o.has(s)||o.set(s,[]);const a=n=>j(n).pipe(ad(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sd(t=>{if(t instanceof ef)return Su(null);throw t}))),ld(t=>null!==t),sd(t=>{if(t instanceof Ou||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return Su(new Yd([],{}));throw new ef(e)}throw t}));return j(Array.from(o.entries()).map(([t,e])=>{const n=a(e);return t===s?n:n.pipe(L(()=>null),sd(()=>Su(null)))})).pipe(t=>t.lift(new Tu(void 0)),ld(),L(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return tf(i)!==r&&""!==i.path?sf(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):sf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rf(s):this.lineralizeSegments(n,s).pipe(B(n=>{const s=new Yd(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=lf(e,i,s);if(!o)return sf(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?rf(h):this.lineralizeSegments(i,h).pipe(B(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new Yd(i,{})))):Su(new Yd(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=lf(e,n,i);if(!s)return sf(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>hf(t,e,n)&&"primary"!==tf(n))}(t,n,i)?{segmentGroup:cf(new Yd(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==tf(i)&&(n[tf(i)]=new Yd([],{}));return n}(i,new Yd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>hf(t,e,n))}(t,n,i)?{segmentGroup:cf(new Yd(t.segments,function(t,e,n,i){const s={};for(const r of n)hf(t,e,r)&&!i[tf(r)]&&(s[tf(r)]=new Yd([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(L(t=>new Yd(r,t))):0===i.length&&0===o.length?Su(new Yd(r,{})):this.expandSegment(n,s,i,o,"primary",!0).pipe(L(t=>new Yd(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Su(new qp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Su(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(Md(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Su(new qp([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Su(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&$p(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!$p(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return zd(r)})).pipe(Gp(),cd(t=>{if(!Wp(t))return;const e=Md(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),L(t=>!0===t)):Su(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Su(n);if(i.numberOfChildren>1||!i.children.primary)return of(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Wd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Bd(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Bd(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Yd(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function lf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Ld)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cf(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yd(t.segments.concat(e.segments),e.children)}return t}function hf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class uf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class df{constructor(t,e){this.component=t,this.route=e}}function pf(t,e,n){const i=t._root;return mf(i,e?e._root:null,n,[i.value])}function ff(t,e,n){const i=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(i?i.module.injector:n).get(t)}function mf(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=_p(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Kd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kd(t.url,e.url)||!Fd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tp(t,e)||!Fd(t.queryParams,e.queryParams);case"paramsChange":default:return!Tp(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new uf(i)):(r.data=o.data,r._resolvedData=o._resolvedData),mf(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new df(a.outlet.component,o))}else o&&gf(e,a,s),s.canActivateChecks.push(new uf(i)),mf(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Bd(r,(t,e)=>gf(t,n.getContext(e),s)),s}function gf(t,e,n){const i=_p(t),s=t.value;Bd(i,(t,i)=>{gf(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new df(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function _f(t,e){return null!==t&&e&&e(new Od(t)),Su(!0)}function yf(t,e){return null!==t&&e&&e(new Td(t)),Su(!0)}function bf(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Su(i.map(i=>Du(()=>{const s=ff(i,e,n);let r;if(function(t){return t&&$p(t.canActivate)}(s))r=zd(s.canActivate(e,t));else{if(!$p(s))throw new Error("Invalid CanActivate guard");r=zd(s(e,t))}return r.pipe(ld())}))).pipe(Gp()):Su(!0)}function vf(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Du(()=>Su(e.guards.map(s=>{const r=ff(s,e.node,n);let o;if(function(t){return t&&$p(t.canActivateChild)}(r))o=zd(r.canActivateChild(i,t));else{if(!$p(r))throw new Error("Invalid CanActivateChild guard");o=zd(r(i,t))}return o.pipe(ld())})).pipe(Gp())));return Su(s).pipe(Gp())}class wf{}class Cf{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=kf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Cp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new gp(n,e),s=new Sp(this.url,i);return this.inheritParamsAndData(s._root),Su(s)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=wp(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=Zd(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof wf))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new wf}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new wf;if((t.outlet||"primary")!==i)throw new wf;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?jd(n).parameters:{};s=new Cp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+n.length,Of(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new wf;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Ld)(n,t,e);if(!i)throw new wf;const s={};Bd(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new Cp(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+r.length,Of(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=kf(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new gp(s,t)]}if(0===a.length&&0===c.length)return[new gp(s,[])];const h=this.processSegment(a,l,c,"primary");return[new gp(s,h)]}}function Sf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xf(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 kf(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>Ef(t,e,n)&&"primary"!==Tf(n))}(t,n,i)){const s=new Yd(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Tf(r)){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Tf(r)]=n}return s}(t,e,i,new Yd(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ef(t,e,n))}(t,n,i)){const r=new Yd(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ef(t,n,a)&&!s[Tf(a)]){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Tf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Yd(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ef(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Tf(t){return t.outlet||"primary"}function If(t){return t.data||{}}function Of(t){return t.resolve||{}}function Af(t){return function(e){return e.pipe(Gu(e=>{const n=t(e);return n?j(n).pipe(L(()=>e)):j([e])}))}}class Rf 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 Df=new vt("ROUTES");class Pf{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new qp(Vd(i.injector.get(Df)).map(Jp),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):zd(t()).pipe(B(t=>t instanceof _l?Su(t):j(this.compiler.compileModuleAsync(t))))}}class Mf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Lf,this.attachRef=null}}class Lf{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 Mf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ff{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Nf(t){throw t}function Vf(t,e,n){return e.parse("/")}function jf(t,e){return Su(null)}let Bf=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Nf,this.malformedUriErrorHandler=Vf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:jf,afterPreactivation:jf},this.urlHandlingStrategy=new Ff,this.routeReuseStrategy=new Rf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(gl),this.console=s.get(fc);const l=s.get(Tc);this.isNgZoneEnabled=l instanceof Tc,this.resetConfig(a),this.currentUrlTree=new Wd(new Yd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pf(r,o,t=>this.triggerEvent(new kd(t)),t=>this.triggerEvent(new Ed(t))),this.routerState=bp(this.currentUrlTree,this.rootComponentType),this.transitions=new xu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Mu(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Gu(t=>{let n=!1,i=!1;return Su(t).pipe(cd(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}}),Gu(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Su(t).pipe(Gu(t=>{const n=this.transitions.getValue();return e.next(new gd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Au:[t]}),Gu(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(Gu(t=>function(t,e,n,i,s){return new af(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),cd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(B(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new Cf(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(L(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),cd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),cd(t=>{const n=new vd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new gd(n,this.serializeUrl(i),s,r);e.next(a);const l=bp(i,this.rootComponentType).snapshot;return Su(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Au}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),cd(t=>{const e=new wd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:pf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Su(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Su(r.map(r=>{const o=ff(r,e,s);let a;if(function(t){return t&&$p(t.canDeactivate)}(o))a=zd(o.canDeactivate(t,e,n,i));else{if(!$p(o))throw new Error("Invalid CanDeactivate guard");a=zd(o(t,e,n,i))}return a.pipe(ld())})).pipe(Gp()):Su(!0)}(t.component,t.route,n,e,i)),ld(t=>!0!==t,!0))}(o,i,s,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(ad(e=>j([yf(e.route.parent,i),_f(e.route,i),vf(t,e.path,n),bf(t,e.route,n)]).pipe(Pu(),ld(t=>!0!==t,!0))),ld(t=>!0!==t,!0))}(i,r,t,e):Su(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),cd(t=>{if(Wp(t.guardsResult)){const e=Md(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),cd(t=>{const e=new Cd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mu(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Af(t=>{if(t.guards.canActivateChecks.length)return Su(t).pipe(cd(t=>{const e=new Sd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Gu(t=>{let n=!1;return Su(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Su(t);let r=0;return j(n).pipe(ad(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Su({});const r={};return j(s).pipe(B(s=>function(t,e,n,i){const s=ff(t,e,i);return zd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(cd(t=>{r[s]=t}))),Vu(1),B(()=>Object.keys(r).length===s.length?Su(r):Au))}(t._resolve,t,e,i).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),wp(t,n).resolve),null)))}(t.route,e,i,s)),cd(()=>r++),Vu(1),B(e=>r===n.length?Su(t):Au))}))}),cd({next:()=>n=!0,complete:()=>{if(!n){const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),cd(t=>{const e=new xd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),L(t=>{const e=function(t,e,n){const i=Ip(t,e._root,n?n._root:void 0);return new yp(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),cd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),L(t=>(new Hp(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),cd({next(){n=!0},complete(){n=!0}}),dd(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),sd(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=Wp(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new yd(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new bd(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return Au}));var s,r,o}))}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:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},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){Zp(t),this.config=t.map(Jp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return Dp(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Mp(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Bd(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Mp(n,e,i)}(n);if(r.toRoot())return Dp(e.root,new Yd([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Lp(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Lp(t,t===e.root,0)}const i=Ap(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Lp(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Np(o.segmentGroup,o.index,r.commands):Fp(o.segmentGroup,o.index,r.commands);return Dp(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Wp(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new _d(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(ve(Dt),ve(Qd),ve(Lf),ve(bh),ve(ro),ve(Gc),ve(xc),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),zf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),ko("tabindex"),xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&No("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})(),Hf=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof _d&&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,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),xo(fh))},t.\u0275dir=se({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(fa("href",e.href,ai),vo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})();function Uf(t){return""===t||!!t}let qf=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Nl,this.deactivateEvents=new Nl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new $f(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(xo(Lf),xo(bl),xo(Pa),ko("name"),xo(ol))},t.\u0275dir=se({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $f{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===vp?this.route:t===Lf?this.childContexts:this.parent.get(t,e)}}class Wf{}class Yf{preload(t,e){return Su(null)}}let Gf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Pf(e,n,e=>t.triggerEvent(new kd(e)),e=>t.triggerEvent(new Ed(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mu(t=>t instanceof _d),ad(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(gl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe(q(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(ve(Bf),ve(Gc),ve(xc),ve(ro),ve(Wf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Kf=(()=>{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 gd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _d&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Rd&&(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 Rd(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)(ve(Bf),ve(qh),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Zf=new vt("ROUTER_CONFIGURATION"),Qf=new vt("ROUTER_FORROOT_GUARD"),Xf=[bh,{provide:Qd,useClass:Xd},{provide:Bf,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Bf(null,t,e,n,i,s,r,Vd(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.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,h),a.enableTracing){const t=ih();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[Qd,Lf,bh,ro,Gc,xc,Df,Zf,[class{},new st],[class{},new st]]},Lf,{provide:vp,useFactory:function(t){return t.routerState.root},deps:[Bf]},{provide:Gc,useClass:Qc},Gf,Yf,class{preload(t,e){return e().pipe(sd(()=>Su(null)))}},{provide:Zf,useValue:{enableTracing:!1}}];function Jf(){return new zc("Router",Bf)}let tm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Xf,sm(e),{provide:Qf,useFactory:im,deps:[[Bf,new st,new ot]]},{provide:Zf,useValue:n||{}},{provide:fh,useFactory:nm,deps:[rh,[new it(gh),new st],Zf]},{provide:Kf,useFactory:em,deps:[Bf,qh,Zf]},{provide:Wf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Yf},{provide:zc,multi:!0,useFactory:Jf},[rm,{provide:oc,multi:!0,useFactory:om,deps:[rm]},{provide:lm,useFactory:am,deps:[rm]},{provide:pc,multi:!0,useExisting:lm}]]}}static forChild(e){return{ngModule:t,providers:[sm(e)]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Qf,8),ve(Bf,8))}}),t})();function em(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Kf(t,e,n)}function nm(t,e,n={}){return n.useHash?new yh(t,e):new _h(t,e)}function im(t){return"guarded"}function sm(t){return[{provide:wt,multi:!0,useValue:t},{provide:Df,multi:!0,useValue:t}]}let rm=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(ah,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Bf),i=this.injector.get(Zf);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Su(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Zf),n=this.injector.get(Gf),i=this.injector.get(Kf),s=this.injector.get(Bf),r=this.injector.get(Wc);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function om(t){return t.appInitializer.bind(t)}function am(t){return t.bootstrapListener.bind(t)}const lm=new vt("Router Initializer");class cm{}class hm{}class um{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),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 um?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 um;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof um?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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dm{encodeKey(t){return pm(t)}encodeValue(t){return pm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function pm(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class fm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function mm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _m(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ym{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new um),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ym(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var bm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class vm{constructor(t,e=200,n="OK"){this.headers=t.headers||new um,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 wm extends vm{constructor(t={}){super(t),this.type=bm.ResponseHeader}clone(t={}){return new wm({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 Cm extends vm{constructor(t={}){super(t),this.type=bm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cm({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 Sm extends vm{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 xm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let km=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof ym)i=t;else{let s=void 0;s=n.headers instanceof um?n.headers:new um(n.headers);let r=void 0;n.params&&(r=n.params instanceof fm?n.params:new fm({fromObject:n.params})),i=new ym(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Su(i).pipe(ad(t=>this.handler.handle(t)));if(t instanceof ym||"events"===n.observe)return s;const r=s.pipe(Mu(t=>t instanceof Cm));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(L(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(L(t=>t.body))}case"response":return r;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 fm).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,xm(n,e))}post(t,e,n={}){return this.request("POST",t,xm(n,e))}put(t,e,n={}){return this.request("PUT",t,xm(n,e))}}return t.\u0275fac=function(e){return new(e||t)(ve(cm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Em{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Tm=new vt("HTTP_INTERCEPTORS");let Im=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Om=/^\)\]\}',?\n/;class Am{}let Rm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Dm=(()=>{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 y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new um(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new wm({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Om,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Cm({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Sm({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Sm({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:bm.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:bm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:bm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ve(Am))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Pm=new vt("XSRF_COOKIE_NAME"),Mm=new vt("XSRF_HEADER_NAME");class Lm{}let Fm,Nm=(()=>{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=kh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(dc),ve(Pm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Vm=(()=>{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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Lm),ve(Mm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),jm=(()=>{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(Tm,[]);this.chain=t.reduceRight((t,e)=>new Em(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(hm),ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Bm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Vm,useClass:Im}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Pm,useValue:e.cookieName}:[],e.headerName?{provide:Mm,useValue:e.headerName}:[]]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Vm,{provide:Tm,useExisting:Vm,multi:!0},{provide:Lm,useClass:Nm},{provide:Pm,useValue:"XSRF-TOKEN"},{provide:Mm,useValue:"X-XSRF-TOKEN"}]}),t})(),zm=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[km,{provide:cm,useClass:jm},Dm,{provide:hm,useExisting:Dm},Rm,{provide:Am,useExisting:Rm}],imports:[[Bm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),Hm=(()=>{class t{constructor(t){this.http=t}load(){return this._configData=null,this.http.get("/adme/client/assets/data/config.json").toPromise().then(t=>{null==t.apiBaseUrl&&(t.apiBaseUrl="/adme/"),this._configData=t}).catch(t=>Promise.resolve())}get configData(){return this._configData}set configData(t){this._configData=t}}return t.\u0275fac=function(e){return new(e||t)(ve(km))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Um=(()=>{class t{constructor(t,e){this.configService=t,this.platformId=e,this.isActive=!1,Uh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}init(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}onGlobalError(t){this.sendException(`message: ${t.message} | filenname: ${t.filename} | lineno: ${t.lineno} | colno: ${t.colno}`)}sendPageView(t,e=location.href){if(this.isActive){const n={page_title:t,page_path:e};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}sendEvent(t,e,n,i){this.isActive&&this.gtag("event",t,{event_category:e,event_label:n,value:i})}sendException(t,e=!1){this.isActive&&this.gtag("event","exception",{description:t,fatal:e})}}return t.\u0275fac=function(e){return new(e||t)(ve(Hm),ve(dc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qm=(()=>{class t{constructor(t){this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}onClick(t){this.evLabel=t.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}return t.\u0275fac=function(e){return new(e||t)(xo(Um))},t.\u0275dir=se({type:t,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),t})(),$m=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h2"),ua(3," Background "),Oo(),Io(4,"p",2),ua(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Io(6,"a",3),ua(7,"download the self-contained instance of ADME@NCATS"),Oo(),ua(8," that can be run locally. "),Oo(),Io(9,"p",2),ua(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Oo(),Oo(),Oo())},directives:[qm],styles:[""]}),t})(),Wm=(()=>{class t{constructor(){this.loadingStateEmitter=new S}get isLoading(){return this.loadingStateEmitter.asObservable()}setLoadingState(t){this.loadingStateEmitter.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();try{Fm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cO){Fm=!1}let Ym,Gm=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Uh(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&&!Fm)&&"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)(ve(dc))},t.\u0275prov=ut({factory:function(){return new t(ve(dc))},token:t,providedIn:"root"}),t})(),Km=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Zm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qm(){if(Ym)return Ym;if("object"!=typeof document||!document)return Ym=new Set(Zm),Ym;let t=document.createElement("input");return Ym=new Set(Zm.filter(e=>(t.setAttribute("type",e),t.type===e))),Ym}let Xm,Jm;function tg(t){return function(){if(null==Xm&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xm=!0}))}finally{Xm=Xm||!1}return Xm}()?t:!!t.capture}function eg(t){if(function(){if(null==Jm){const t="undefined"!=typeof document?document.head:null;Jm=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Jm}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ng(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class ig extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class sg extends ig{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let rg=(()=>{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 og extends rg{constructor(t,e=rg.now){super(t,()=>og.delegate&&og.delegate!==this?og.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return og.delegate&&og.delegate!==this?og.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 ag=new og(sg);function lg(t,e=ag){return n=>n.lift(new cg(t,e))}class cg{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new hg(t,this.dueTime,this.scheduler))}}class hg extends f{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(ug,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 ug(t){t.debouncedNext()}function dg(t){return null!=t&&""+t!="false"}function pg(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function fg(t){return Array.isArray(t)?t:[t]}function mg(t){return null==t?"":"string"==typeof t?t:t+"px"}function gg(t){return t instanceof Na?t.nativeElement:t}let _g=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),yg=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gg(t);return new y(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 S,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)(ve(_g))},t.\u0275prov=ut({factory:function(){return new t(ve(_g))},token:t,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Nl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pg(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(lg(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yg),xo(Na),xo(Tc))},t.\u0275dir=se({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),vg=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[_g]}),t})();function wg(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Cg=0;const Sg=new Map;let xg=null,kg=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Sg.set(e,{messageElement:e,referenceCount:0})):Sg.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Sg.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}xg&&0===xg.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Sg.get(e);!function(t,e,n){const i=wg(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=Sg.get(e);n.referenceCount--,function(t,e,n){const i=wg(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=wg(t,"aria-describedby"),i=Sg.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();class Eg{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new S,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new S,this.change=new S,t instanceof jl&&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(cd(t=>this._pressedLetters.push(t)),lg(t),Mu(()=>this._pressedLetters.length>0),L(()=>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||ng(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),i=e[n];this._activeItem=null==i?null:i,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 i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_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 jl?this._items.toArray():this._items}}class Tg extends Eg{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ig extends Eg{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Og=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(cO){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===Rg(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=Rg(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ag(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function Ag(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Rg(t){if(!Ag(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Dg{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Qu(1)).subscribe(t)}}let Pg=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Dg(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(ve(Og),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Og),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Mg=new vt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lg=new vt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Fg=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Ng(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=zg(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=zg(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=gg(t);if(!this._platform.isBrowser||1!==n.nodeType)return Su(null);const i=eg(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new S,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=gg(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 i=gg(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.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._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_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)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=zg(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===zg(t))&&this._originChanged(e,this._getFocusOrigin(t),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,jg),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,jg)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,jg),t.addEventListener("mousedown",this._documentMousedownListener,jg),t.addEventListener("touchstart",this._documentTouchstartListener,jg),e.addEventListener("focus",this._windowFocusListener)})}_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,jg),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jg),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,jg),t.removeEventListener("mousedown",this._documentMousedownListener,jg),t.removeEventListener("touchstart",this._documentTouchstartListener,jg),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},token:t,providedIn:"root"}),t})();function zg(t){return t.composedPath?t.composedPath()[0]:t.target}let Hg=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Nl}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),Ug=(()=>{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,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(sh))},token:t,providedIn:"root"}),t})(),qg=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug))},imports:[[Km,vg]]}),t})();class $g{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 Wg extends $g{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Yg extends $g{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 Gg extends $g{constructor(t){super(),this.element=t instanceof Na?t.nativeElement:t}}class Kg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Wg?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yg?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Gg?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Zg extends Kg{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Qg=(()=>{class t extends Kg{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Nl,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ao]}),t})(),Xg=(()=>{class t extends Qg{}return t.\u0275fac=function(e){return Jg(e||t)},t.\u0275dir=se({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Aa([{provide:Qg,useExisting:t}]),ao]}),t})();const Jg=ts(Xg);let t_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const e_=new vt("cdk-dir-doc",{providedIn:"root",factory:function(){return we(sh)}});let n_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Nl,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)(ve(e_,8))},t.\u0275prov=ut({factory:function(){return new t(ve(e_,8))},token:t,providedIn:"root"}),t})(),i_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const s_=new Ha("11.0.1");class r_{}function o_(t,e){return{type:7,name:t,definitions:e,options:{}}}function a_(t,e=null){return{type:4,styles:e,timings:t}}function l_(t,e=null){return{type:2,steps:t,options:e}}function c_(t){return{type:6,styles:t,offset:null}}function h_(t,e,n){return{type:0,name:t,styles:e,options:n}}function u_(t){return{type:5,steps:t}}function d_(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p_(t=null){return{type:9,options:t}}function f_(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m_(t){Promise.resolve(null).then(t)}class g_{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){m_(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class __{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,i=0;const s=this.players.length;0==s?m_(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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 y_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b_(t){switch(t.length){case 0:return new g_;case 1:return t[0];default:return new __(t)}}function v_(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function w_(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&C_(n,"start",t)));break;case"done":t.onDone(()=>i(n&&C_(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&C_(n,"destroy",t)))}}function C_(t,e,n){const i=n.totalTime,s=S_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function S_(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function x_(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function k_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let E_=(t,e)=>!1,T_=(t,e)=>!1,I_=(t,e,n)=>[];const O_=y_();(O_||"undefined"!=typeof Element)&&(E_=(t,e)=>t.contains(e),T_=(()=>{if(O_||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]):T_}})(),I_=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let A_=null,R_=!1;function D_(t){A_||(A_=("undefined"!=typeof document?document.body:null)||{},R_=!!A_.style&&"WebkitAppearance"in A_.style);let e=!0;return A_.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in A_.style,!e&&R_)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in A_.style),e}const P_=T_,M_=E_,L_=I_;function F_(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let N_=(()=>{class t{validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new g_(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),V_=(()=>{class t{}return t.NOOP=new N_,t})();function j_(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:B_(parseFloat(e[1]),e[2])}function B_(t,e){switch(e){case"s":return 1e3*t;default:return t}}function z_(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";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:""};i=B_(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=B_(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function H_(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function U_(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else H_(t,n);return n}function q_(t,e,n){return n?e+":"+n+";":""}function $_(t){let e="";for(let n=0;n{const s=ty(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),y_()&&$_(t))}function Y_(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=ty(e);t.style[n]=""}),y_()&&$_(t))}function G_(t){return Array.isArray(t)?1==t.length?t[0]:l_(t):t}const K_=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z_(t){let e=[];if("string"==typeof t){let n;for(;n=K_.exec(t);)e.push(n[1]);K_.lastIndex=0}return e}function Q_(t,e,n){const i=t.toString(),s=i.replace(K_,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function X_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const J_=/-+([a-z0-9])/g;function ty(t){return t.replace(J_,(...t)=>t[1].toUpperCase())}function ey(t,e){return 0===t||0===e}function ny(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(ly(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(ly(o,s))}(t,n,e)):n.push(t),n}const oy=new Set(["true","1"]),ay=new Set(["false","0"]);function ly(t,e){const n=oy.has(t)||ay.has(t),i=oy.has(e)||ay.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?oy.has(t):ay.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?oy.has(e):ay.has(e)),o&&a}}const cy=new RegExp("s*:selfs*,?","g");function hy(t,e,n){return new uy(t).build(e,n)}class uy{constructor(t){this._driver=t}build(t,e){const n=new dy(e);return this._resetContextStyleTimingState(n),iy(this,G_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(py(t)){const e=t;Object.keys(e).forEach(t=>{Z_(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=X_(s.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=iy(this,G_(t.animation),e);return{type:1,matchers:ry(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:fy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>iy(this,t,e)),options:fy(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=iy(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:fy(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 my(z_(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=my(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||z_(i,e),my(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:c_({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=c_(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(py(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=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 r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Z_(t);s.length&&s.forEach(t=>{i.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 i=0;const s=[];let r=!1,o=!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(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:iy(this,G_(t.animation),e),options:fy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(cy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,x_(e.collectedStyles,e.currentQuerySelector,{});const o=iy(this,G_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:fy(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"}:z_(t.timings,e.errors,!0);return{type:12,animation:iy(this,G_(t.animation),e),timings:n,options:null}}}class dy{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 py(t){return!Array.isArray(t)&&"object"==typeof t}function fy(t){var e;return t?(t=H_(t)).params&&(t.params=(e=t.params)?H_(e):null):t={},t}function my(t,e,n){return{duration:t,delay:e,easing:n}}function gy(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class _y{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 yy=new RegExp(":enter","g"),by=new RegExp(":leave","g");function vy(t,e,n,i,s,r={},o={},a,l,c=[]){return(new wy).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class wy{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new _y;const h=new Sy(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),iy(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[gy(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 i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}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 i=e.currentTimeline.currentTime;const s=null!=n.duration?j_(n.duration):null,r=null!=n.delay?j_(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),iy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cy);const t=j_(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>iy(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?j_(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),iy(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return z_(e.params?Q_(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?j_(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Cy);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),iy(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;iy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Cy={};class Sy{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new xy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=j_(n.duration)),null!=n.delay&&(i.delay=j_(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Q_(s[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 i=e||this.element,s=new Sy(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Cy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ky(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(yy,"."+this._enterClassName)).replace(by,"."+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)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class xy{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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 xy(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]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):U_(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Q_(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=U_(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?X_(t.values()):[],r=e.size?X_(e.values()):[];if(n){const t=i[0],e=H_(t);t.offset=0,e.offset=1,i=[t,e]}return gy(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ky extends xy{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=U_(t[0],!1);a.offset=0,s.push(a);const l=U_(t[0],!1);l.offset=Ey(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=U_(t[i],!1);o.offset=Ey((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return gy(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ey(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ty{}class Iy extends Ty{normalizePropertyName(t,e){return ty(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Oy[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Oy=(()=>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 Ay(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Ry={};class Dy{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Ry,d=this.buildStyles(n,o&&o.params||Ry,h),p=a&&a.params||Ry,f=this.buildStyles(i,p,h),m=new Set,g=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:vy(t,e,this.ast.animation,s,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Ay(e,this._triggerName,n,i,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,i=x_(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=x_(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=X_(m.values());return Ay(e,this._triggerName,n,i,y,d,f,v,C,g,_,w)}}class Py{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=H_(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Q_(r,i,e)),n[t]=r})}}),n}}class My{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Py(t.style,t.options&&t.options.params||{})}),Ly(this.states,"true","1"),Ly(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Dy(t,e,this.states))}),this.fallbackTransition=new Dy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ly(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Fy=new _y;class Ny{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=hy(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]=i}_buildPlayer(t,e,n){const i=t.element,s=v_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=vy(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Fy,i),r.forEach(t=>{const e=x_(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=b_(r.map(t=>{const e=o.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,i){const s=S_(e,"","","");return w_(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Vy=[],jy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},By={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class zy{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=H_(t);delete e.value,this.options=e}else this.options={};var i;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 Hy=new zy("void");class Uy{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,Zy(e,this._hostClassName)}listen(t,e,n,i){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("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=x_(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=x_(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),a[e]=Hy),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new $y(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new zy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Hy),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{Y_(t,n),W_(t,i)})}return}const c=x_(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Zy(t,"ng-animate-queued"),r.onStart(()=>{Qy(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}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,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)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,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&b_(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Hy,o=new zy("void"),a=new $y(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==jy||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Zy(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=S_(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,w_(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 qy{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 Uy(t,e,this);return e.parentNode?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 i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zy(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qy(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Wy(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Wy(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 b_(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=jy,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!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?b_(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 _y,i=[],s=new Map,r=[],o=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="ng-enter"+f++;p.set(e,n),t.forEach(t=>Zy(t,n))});const m=[],g=new Set,_=new Set;for(let A=0;Ag.add(t)):_.add(t))}const y=new Map,b=Ky(u,Array.from(g));b.forEach((t,e)=>{const n="ng-leave"+f++;y.set(e,n),t.forEach(t=>Zy(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Qy(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Qy(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=y.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>x_(o,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 i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.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;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{x_(C,e,[]).push(t),t.destroy()})});const x=m.filter(t=>tb(t,a,l)),k=new Map;Gy(k,this.driver,_,l,"*").forEach(t=>{tb(t,a,l)&&x.push(t)});const E=new Map;d.forEach((t,e)=>{Gy(E,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>W_(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=O;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,E,k);if(r.setRealPlayer(n),t===O)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=b_(e)),i.push(r)}}else Y_(e,o.fromStyles),r.onDestroy(()=>W_(e,o.toStyles)),I.push(r),c.has(e)&&i.push(r)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=b_(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A!t.destroyed);i.length?Xy(this,t,i):this.processLeaveNode(t)}return m.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 i=e.__ng_removed;return i&&i.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,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=x_(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Y_(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new g_(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return Jy(t,e),e}((n.get(u)||Vy).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),_=v_(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&h.add(u),p){const e=new $y(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{x_(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Zy(t,"ng-animating"));const d=b_(u);return d.onDestroy(()=>{c.forEach(t=>Qy(t,"ng-animating")),W_(a,e.toStyles)}),h.forEach(t=>{x_(i,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 g_(t.duration,t.delay)}}class $y{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new g_,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=>w_(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){x_(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 Wy(t){return t&&1===t.nodeType}function Yy(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gy(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Yy(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=By,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Yy(t,r[a++])),o}function Ky(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Zy(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Qy(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Xy(t,e,n){b_(n).onDone(()=>t.processLeaveNode(e))}function Jy(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class eb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qy(t,e,n),this._timelineEngine=new Ny(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=hy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new My(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=k_(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=k_(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function nb(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=sb(e[0]),e.length>1&&(i=sb(e[e.length-1]))):e&&(n=sb(e)),n||i?new ib(t,n,i):null}let ib=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W_(this._element,this._initialStyles),this._endStyles&&(W_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y_(this._element,this._endStyles),this._endStyles=null),W_(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sb(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=db(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hb(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=db(t,"").split(","),i=cb(n,e);i>=0&&(n.splice(i,1),ub(t,"",n.join(",")))}(this._element,this._name))}}function ab(t,e,n){ub(t,"PlayState",n,lb(t,e))}function lb(t,e){const n=db(t,"");return n.indexOf(",")>0?cb(n.split(","),e):cb([n],e)}function cb(t,e){for(let n=0;n=0)return n;return-1}function hb(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ub(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function db(t,e){return t.style["animation"+e]}class pb{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ob(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]:sy(this.element,n))})}this.currentSnapshot=t}}class fb extends g_{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=F_(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 mb{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>F_(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof pb),l={};ey(n,i)&&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=ny(t,e,l));if(0==n)return new fb(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=nb(t,e),p=new pb(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class gb{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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){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]:sy(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _b{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(yb().toString()),this._cssKeyframesDriver=new mb}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof gb);ey(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=nb(t,e=ny(t,e=e.map(t=>U_(t,!1)),l));return new gb(t,e,a,h)}}function yb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let bb=(()=>{class t extends r_{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:zt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?l_(t):t;return Cb(this._renderer,null,e,"register",[n]),new vb(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Va),ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class vb extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new wb(this._id,t,e||{},this._renderer)}}class wb{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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 Cb(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Cb(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let Sb=(()=>{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 xb("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new kb(this,s,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)(ve(Va),ve(eb),ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class xb{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,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?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 kb extends xb{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?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 i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Eb=(()=>{class t extends eb{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(V_),ve(Ty))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Tb=new vt("AnimationModuleType"),Ib=[{provide:V_,useFactory:function(){return"function"==typeof yb()?new _b:new mb}},{provide:Tb,useValue:"BrowserAnimations"},{provide:r_,useClass:bb},{provide:Ty,useFactory:function(){return new Iy}},{provide:eb,useClass:Eb},{provide:Va,useFactory:function(t,e,n){return new Sb(t,e,n)},deps:[lu,eb,Tc]}];let Ob=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:Ib,imports:[Cu]}),t})();function Ab(t,e){if(1&t&&Ao(0,"mat-pseudo-checkbox",3),2&t){const t=Ho();Eo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Rb=["*"];let Db=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Pb=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Mb=new Ha("11.0.1"),Lb=new vt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Fb,Nb=(()=>{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 Nn()&&!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)&&Mb.full!==s_.full&&console.warn("The Angular Material version ("+Mb.full+") does not match the Angular CDK version ("+s_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug),ve(Lb,8),ve(sh))},imports:[[i_],i_]}),t})();function Vb(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t)}}}function jb(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 Bb(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}}}function zb(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?pg(t):this.defaultTabIndex}}}function Hb(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new S}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 Ub(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(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{Fb="undefined"!=typeof Intl}catch(cO){Fb=!1}let qb=(()=>{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=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),$b=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();class Wb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yb={enterDuration:450,exitDuration:400},Gb=tg({passive:!0}),Kb=["mousedown","touchstart"],Zb=["mouseup","mouseleave","touchend","touchcancel"];class Qb{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=gg(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Yb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Wb(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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,i=Object.assign(Object.assign({},Yb),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Kb))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Zb),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Ng(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,Gb)})})}_removeTriggerEvents(){this._triggerElement&&(Kb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}),this._pointerUpEventsRegistered&&Zb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}))}}const Xb=new vt("mat-ripple-global-options");let Jb=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Qb(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(xo(Na),xo(Tc),xo(Gm),xo(Xb,8),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ta("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})(),tv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Km],Nb]}),t})(),ev=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ta("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})(),nv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb]]}),t})();class iv{}const sv=Vb(iv);let rv=0,ov=(()=>{class t extends sv{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rv++}}return t.\u0275fac=function(e){return av(e||t)},t.\u0275dir=se({type:t,inputs:{label:"label"},features:[ao]}),t})();const av=ts(ov),lv=new vt("MatOptgroup");let cv=0;class hv{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const uv=new vt("MAT_OPTION_PARENT_COMPONENT");let dv=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+cv++,this.onSelectionChange=new Nl,this._stateChanges=new S}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=dg(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||ng(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 hv(this,t))}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(void 0),xo(ov))},t.\u0275dir=se({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pv=(()=>{class t extends dv{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(uv,8),xo(lv,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&No("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(fa("id",e.id),vo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ta("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[ao],ngContentSelectors:Rb,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(qo(),Co(0,Ab,1,2,"mat-pseudo-checkbox",0),Io(1,"span",1),$o(2),Oo(),Ao(3,"div",2)),2&t&&(Eo("ngIf",e.multiple),Gs(3),Eo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Ah,Jb,ev],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.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 fv(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Hh,Nb,nv]]}),t})();function gv(t,e,n,s){return i(n)&&(s=n,n=void 0),s?gv(t,e,n).pipe(L(t=>l(t)?s(...t):s(t))):new y(i=>{_v(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function _v(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r=0}function bv(t=0,e,n){let i=-1;return yv(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=ag),new y(e=>{const s=yv(t)?t:+t-n.now();return n.schedule(vv,s,{index:0,period:i,subscriber:e})})}function vv(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wv(t,e){return n=>n.lift(new Cv(t,e))}class Cv{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Sv(t,this.compare,this.keySelector))}}class Sv extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function xv(t){return e=>e.lift(new kv(t))}class kv{constructor(t){this.notifier=t}call(t,e){const n=new Ev(t),i=P(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Ev extends M{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Tv=1;const Iv=(()=>Promise.resolve())(),Ov={};function Av(t){return t in Ov&&(delete Ov[t],!0)}const Rv={setImmediate(t){const e=Tv++;return Ov[e]=!0,Iv.then(()=>Av(e)&&t()),e},clearImmediate(t){Av(t)}};class Dv extends sg{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=Rv.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&&(Rv.clearImmediate(e),t.scheduled=void 0)}}class Pv extends og{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++ibv(t,e),function(t){return t.lift(new Lv(n))};var n}function Vv(t,e){return new y(e?n=>e.schedule(jv,0,{error:t,subscriber:n}):e=>e.error(t))}function jv({error:t,subscriber:e}){e.error(t)}let Bv=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Su(this.value);case"E":return Vv(this.error);case"C":return Ru()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function zv(t){return t&&"function"==typeof t.connect}class Hv{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class Uv{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new S,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 qv=new vt("_ViewRepeater");let $v=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new S,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Nv(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Su()}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(Mu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>gv(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)(ve(Tc),ve(Gm),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8))},token:t,providedIn:"root"}),t})(),Wv=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new S,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._updateViewportSize())})}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,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Nv(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)(ve(Gm),ve(Tc),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc),ve(sh,8))},token:t,providedIn:"root"}),t})(),Yv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Gv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[i_,Km,Yv],i_,Yv]}),t})();function Kv(t,e){1&t&&$o(0)}const Zv=["*"];function Qv(t,e){}const Xv=function(t){return{animationDuration:t}},Jv=function(t,e){return{value:t,params:e}},tw=["tabBodyWrapper"],ew=["tabHeader"];function nw(t,e){}function iw(t,e){1&t&&Co(0,nw,0,0,"ng-template",9),2&t&&Eo("cdkPortalOutlet",Ho().$implicit.templateLabel)}function sw(t,e){1&t&&ua(0),2&t&&da(Ho().$implicit.textLabel)}function rw(t,e){if(1&t){const t=Mo();Io(0,"div",6),No("click",function(){Ge(t);const n=e.$implicit,i=e.index,s=Ho(),r=So(1);return s._handleClick(n,r,i)}),Io(1,"div",7),Co(2,iw,1,1,"ng-template",8),Co(3,sw,1,1,"ng-template",8),Oo(),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-label-active",i.selectedIndex==n),Eo("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),vo("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),Gs(2),Eo("ngIf",t.templateLabel),Gs(1),Eo("ngIf",!t.templateLabel)}}function ow(t,e){if(1&t){const t=Mo();Io(0,"mat-tab-body",10),No("_onCentered",function(){return Ge(t),Ho()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Ge(t),Ho()._setTabBodyWrapperHeight(e)}),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-body-active",i.selectedIndex==n),Eo("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),vo("aria-labelledby",i._getTabLabelId(n))}}const aw=["tabListContainer"],lw=["tabList"],cw=["nextPaginator"],hw=["previousPaginator"],uw=new vt("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let dw=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(uw),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const pw=new vt("MatTabContent"),fw=new vt("MatTabLabel");class mw{}const gw=Vb(mw),_w=new vt("MAT_TAB_GROUP");let yw=(()=>{class t extends gw{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new S,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Yg(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(_w))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,fw,!0),tc(n,pw,!0,dl)),2&t){let t;Kl(t=nc())&&(e.templateLabel=t.first),Kl(t=nc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Zl(dl,!0),2&t){let t;Kl(t=nc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[ao,fi],ngContentSelectors:Zv,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Co(0,Kv,1,0,"ng-template"))},encapsulation:2}),t})();const bw={translateTab:o_("translateTab",[h_("center, void, left-origin-center, right-origin-center",c_({transform:"none"})),h_("left",c_({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h_("right",c_({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),d_("* => left, * => right, left => center, right => center",a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),d_("void => left-origin-center",[c_({transform:"translate3d(-100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),d_("void => right-origin-center",[c_({transform:"translate3d(100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let vw=(()=>{class t extends Qg{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.EMPTY,this._leavingSub=u.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ed(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(Ot(()=>Cw)),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","matTabBodyHost",""]],features:[ao]}),t})(),ww=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.EMPTY,this._translateTabComplete=new S,this._onCentering=new Nl,this._beforeCentering=new Nl,this._afterLeavingCenter=new Nl,this._onCentered=new Nl(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(wv((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275dir=se({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Cw=(()=>{class t extends ww{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Ql(Xg,!0),2&t){let t;Kl(t=nc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[ao],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var n,i;1&t&&(Io(0,"div",0,1),No("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Co(2,Qv,0,0,"ng-template",2),Oo()),2&t&&Eo("@translateTab",function(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return function(t,e,n,i){const s=bo(t,e,n);return bo(t,e+1,i)||s}(t,a,s,r)?yo(t,a+2,o?i.call(o,s,r):i(s,r)):Ll(t,a+2)}(We(),nn(),t,e,n,i,s)}(3,Jv,e._position,(1,n=Xv,i=e.animationDuration,Fl(We(),nn(),1,n,i,undefined))))},directives:[vw],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bw.translateTab]}}),t})();const Sw=new vt("MAT_TABS_CONFIG");let xw=0;class kw{}class Ew{constructor(t){this._elementRef=t}}const Tw=jb(Bb(Ew),"primary");let Iw=(()=>{class t extends Tw{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new jl,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.EMPTY,this._tabLabelSubscription=u.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new Nl,this.focusChange=new Nl,this.animationDone=new Nl,this.selectedTabChange=new Nl(!0),this._groupId=xw++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=dg(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=pg(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new kw;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ao]}),t})(),Ow=(()=>{class t extends Iw{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,yw,!0),2&t){let t;Kl(t=nc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Ql(tw,!0),Ql(ew,!0)),2&t){let t;Kl(t=nc())&&(e._tabBodyWrapper=t.first),Kl(t=nc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Aa([{provide:_w,useExisting:t}]),ao],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Io(0,"mat-tab-header",0,1),No("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Co(2,rw,4,14,"div",2),Oo(),Io(3,"div",3,4),Co(5,ow,1,8,"mat-tab-body",5),Oo()),2&t&&(Eo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),Gs(2),Eo("ngForOf",e._tabs),Gs(1),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(2),Eo("ngForOf",e._tabs))},directives:function(){return[Fw,Ih,Dw,Jb,Hg,Ah,Qg,Cw]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class Aw{}const Rw=Vb(Aw);let Dw=(()=>{class t extends Rw{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(vo("aria-disabled",!!e.disabled),ta("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[ao]}),t})();const Pw=tg({passive:!0});let Mw=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new S,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new S,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Nl,this.indexFocused=new Nl,s.runOutsideAngular(()=>{gv(t.nativeElement,"mouseleave").pipe(xv(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=pg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){gv(this._previousPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),gv(this._nextPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Su(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ig(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),W(t,e,this._items.changes).pipe(xv(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(xv(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ng(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),bv(650,100).pipe(xv(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Lw=(()=>{class t extends Mw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disableRipple:"disableRipple"},features:[ao]}),t})(),Fw=(()=>{class t extends Lw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,Dw,!1),2&t){let t;Kl(t=nc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Zl(dw,!0),Zl(aw,!0),Zl(lw,!0),Ql(cw,!0),Ql(hw,!0)),2&t){let t;Kl(t=nc())&&(e._inkBar=t.first),Kl(t=nc())&&(e._tabListContainer=t.first),Kl(t=nc())&&(e._tabList=t.first),Kl(t=nc())&&(e._nextPaginator=t.first),Kl(t=nc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ao],ngContentSelectors:Zv,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(qo(),Io(0,"div",0,1),No("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ao(2,"div",2),Oo(),Io(3,"div",3,4),No("keydown",function(t){return e._handleKeydown(t)}),Io(5,"div",5,6),No("cdkObserveContent",function(){return e._onContentChanges()}),Io(7,"div",7),$o(8),Oo(),Ao(9,"mat-ink-bar"),Oo(),Oo(),Io(10,"div",8,9),No("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ao(12,"div",2),Oo()),2&t&&(ta("mat-tab-header-pagination-disabled",e._disableScrollBefore),Eo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Gs(5),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(5),ta("mat-tab-header-pagination-disabled",e._disableScrollAfter),Eo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Jb,bg,dw],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),Nw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,t_,tv,vg,qg],Nb]}),t})();const Vw=["mat-button",""],jw=["*"],Bw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class zw{constructor(t){this._elementRef=t}}const Hw=jb(Vb(Bb(zw)));let Uw=(()=>{class t extends Hw{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 i of Bw)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);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="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,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)(xo(Na),xo(Bg),xo(Tb,8))},t.\u0275cmp=Xt({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&&Ql(Jb,!0),2&t){let t;Kl(t=nc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ao],attrs:Vw,ngContentSelectors:jw,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&&(qo(),Io(0,"span",0),$o(1),Oo(),Ao(2,"span",1),Ao(3,"span",2)),2&t&&(Gs(2),ta("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Eo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Jb],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:block;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})(),qw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Nb],Nb]}),t})();const $w=["ketcherFrame"];let Ww=(()=>{class t{constructor(t,e){this.domSanatizer=t,this.loadingService=e,this.moleculeInput=new Nl,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/ketcher/ketcher.html")}ngOnInit(){this.ketcherFrame.nativeElement.onload=()=>{this.ketcher=this.ketcherFrame.nativeElement.contentWindow.ketcher,this.loadingService.setLoadingState(!1)}}addMolecule(){const t=this.ketcher.getSmiles();this.moleculeInput.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-sketcher"]],viewQuery:function(t,e){if(1&t&&Zl($w,!0),2&t){let t;Kl(t=nc())&&(e.ketcherFrame=t.first)}},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),Ao(1,"iframe",1,2),Oo(),Io(3,"div",3),Io(4,"button",4),No("click",function(){return e.addMolecule()}),ua(5," Predict "),Oo(),Oo()),2&t&&(Gs(1),Eo("src",e.ketcherSrc,li))},directives:[Uw],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),t})();const Yw={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}};let Gw=(()=>{class t{constructor(t){this.el=t,this.selectedFile=new Nl}ngOnInit(){this.addHiddenFileInput()}ngOnDestroy(){document.body.removeChild(this.fileInputElement)}addHiddenFileInput(){this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=t=>{t.target.files&&t.target.files.length>0&&this.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);const t=this.fileInputElement;this.el.nativeElement.addEventListener("click",()=>{t.click()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),t})();function Kw(...t){if(1===t.length){const e=t[0];if(l(e))return Zw(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Zw(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Zw(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(L(t=>e(...t)))}return Zw(t,null)}function Zw(t,e){return new y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const Qw=new vt("NgValueAccessor"),Xw={provide:Qw,useExisting:Ot(()=>Jw),multi:!0};let Jw=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Aa([Xw])]}),t})();const tC={provide:Qw,useExisting:Ot(()=>nC),multi:!0},eC=new vt("CompositionEventMode");let nC=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ih()?ih().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(eC,8))},t.\u0275dir=se({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&&No("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:[Aa([tC])]}),t})();function iC(t){return null==t||0===t.length}function sC(t){return null!=t&&"number"==typeof t.length}const rC=new vt("NgValidators"),oC=new vt("NgAsyncValidators"),aC=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class lC{static min(t){return e=>{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return iC(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return iC(t.value)||aC.test(t.value)?null:{email:!0}}static minLength(t){return e=>iC(e.value)||!sC(e.value)?null:e.value.lengthsC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return lC.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(iC(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return uC(dC(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return Kw(dC(t,e).map(hC)).pipe(L(uC))}}}function cC(t){return null!=t}function hC(t){const e=Lo(t)?j(t):t;return Fo(e),e}function uC(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 dC(t,e){return e.map(e=>e(t))}function pC(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function fC(t){return null!=t?lC.compose(pC(t)):null}function mC(t){return null!=t?lC.composeAsync(pC(t)):null}function gC(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function _C(t){return t._rawValidators}function yC(t){return t._rawAsyncValidators}let bC=(()=>{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=fC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mC(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=se({type:t}),t})(),vC=(()=>{class t extends bC{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return wC(e||t)},t.\u0275dir=se({type:t,features:[ao]}),t})();const wC=ts(vC);class CC extends bC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class SC{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let xC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(CC,2))},t.\u0275dir=se({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})(),kC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,2))},t.\u0275dir=se({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})();const EC={provide:Qw,useExisting:Ot(()=>TC),multi:!0};let TC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&No("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([EC])]}),t})();const IC={provide:Qw,useExisting:Ot(()=>AC),multi:!0};let OC=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),AC=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(CC),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(OC),xo(ro))},t.\u0275dir=se({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Aa([IC])]}),t})();const RC={provide:Qw,useExisting:Ot(()=>DC),multi:!0};let DC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([RC])]}),t})();const PC={provide:Qw,useExisting:Ot(()=>MC),multi:!0};let MC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Aa([PC])]}),t})();const LC={provide:Qw,useExisting:Ot(()=>FC),multi:!0};let FC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&zC(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&&zC(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 VC(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function jC(t,e,n){const i=_C(t);null!==e.validator?t.setValidators(gC(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=yC(t);if(null!==e.asyncValidator?t.setAsyncValidators(gC(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();VC(e._rawValidators,n),VC(e._rawAsyncValidators,n)}}function BC(t,e,n){if(null!==t){if(null!==e.validator){const n=_C(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=yC(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};VC(e._rawValidators,t),VC(e._rawAsyncValidators,t)}}function zC(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HC(t,e){jC(t,e,!1)}const UC=[Jw,DC,TC,MC,FC,AC];function qC(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function $C(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function WC(t){return(ZC(t)?t.validators:t)||null}function YC(t){return Array.isArray(t)?fC(t):t||null}function GC(t,e){return(ZC(e)?e.asyncValidators:t)||null}function KC(t){return Array.isArray(t)?mC(t):t||null}function ZC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class QC{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=YC(this._rawValidators),this._composedAsyncValidatorFn=KC(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=YC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=KC(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=hC(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)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof JC?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof tS&&i.at(t)||null}),i}(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 Nl,this.statusChanges=new Nl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ZC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class XC extends QC{constructor(t=null,e,n){super(WC(e),GC(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){$C(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$C(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 JC extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{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 XC?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),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 tS extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof XC?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const eS={provide:vC,useExisting:Ot(()=>iS)},nS=(()=>Promise.resolve(null))();let iS=(()=>{class t extends vC{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Nl,this.form=new JC({},fC(t),mC(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){nS.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),NC(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),$C(this._directives,t)})}addFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path),n=new JC({});HC(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){nS.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,qC(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)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([eS]),ao]}),t})();const sS={provide:CC,useExisting:Ot(()=>oS)},rS=(()=>Promise.resolve(null))();let oS=(()=>{class t extends CC{constructor(t,e,n,i){super(),this.control=new XC,this._registered=!1,this.update=new Nl,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===nC?n=t:(e=t,UC.some(t=>e.constructor===t)?i=t:s=t)}),s||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){NC(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){rS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;rS.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,9),xo(rC,10),xo(oC,10),xo(Qw,10))},t.\u0275dir=se({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:[Aa([sS]),ao,fi]}),t})(),aS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const lS=new vt("NgModelWithFormControlWarning"),cS={provide:vC,useExisting:Ot(()=>hS)};let hS=(()=>{class t extends vC{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Nl,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return NC(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$C(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,qC(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),BC(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&NC(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jC(this.form,this,!1),this._oldForm&&BC(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([cS]),ao,fi]}),t})();const uS={provide:rC,useExisting:Ot(()=>dS),multi:!0};let dS=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?lC.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&vo("required",e.required?"":null)},inputs:{required:"required"},features:[Aa([uS])]}),t})(),pS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),fS=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new JC(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new XC(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new tS(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof XC||t instanceof JC||t instanceof tS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),mS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[OC],imports:[pS]}),t})(),gS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:lS,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[fS,OC],imports:[pS]}),t})();const _S=["underline"],yS=["connectionContainer"],bS=["inputContainer"],vS=["label"];function wS(t,e){1&t&&(Ro(0),Io(1,"div",14),Ao(2,"div",15),Ao(3,"div",16),Ao(4,"div",17),Oo(),Io(5,"div",18),Ao(6,"div",15),Ao(7,"div",16),Ao(8,"div",17),Oo(),Do())}function CS(t,e){1&t&&(Io(0,"div",19),$o(1,1),Oo())}function SS(t,e){if(1&t&&(Ro(0),$o(1,2),Io(2,"span"),ua(3),Oo(),Do()),2&t){const t=Ho(2);Gs(3),da(t._control.placeholder)}}function xS(t,e){1&t&&$o(0,3,["*ngSwitchCase","true"])}function kS(t,e){1&t&&(Io(0,"span",23),ua(1," *"),Oo())}function ES(t,e){if(1&t){const t=Mo();Io(0,"label",20,21),No("cdkObserveContent",function(){return Ge(t),Ho().updateOutlineGap()}),Co(2,SS,4,1,"ng-container",12),Co(3,xS,1,0,"ng-content",12),Co(4,kS,2,0,"span",22),Oo()}if(2&t){const t=Ho();ta("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),Eo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),vo("for",t._control.id)("aria-owns",t._control.id),Gs(2),Eo("ngSwitchCase",!1),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function TS(t,e){1&t&&(Io(0,"div",24),$o(1,4),Oo())}function IS(t,e){if(1&t&&(Io(0,"div",25,26),Ao(2,"span",27),Oo()),2&t){const t=Ho();Gs(2),ta("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function OS(t,e){1&t&&(Io(0,"div"),$o(1,5),Oo()),2&t&&Eo("@transitionMessages",Ho()._subscriptAnimationState)}function AS(t,e){if(1&t&&(Io(0,"div",31),ua(1),Oo()),2&t){const t=Ho(2);Eo("id",t._hintLabelId),Gs(1),da(t.hintLabel)}}function RS(t,e){if(1&t&&(Io(0,"div",28),Co(1,AS,2,2,"div",29),$o(2,6),Ao(3,"div",30),$o(4,7),Oo()),2&t){const t=Ho();Eo("@transitionMessages",t._subscriptAnimationState),Gs(1),Eo("ngIf",t.hintLabel)}}const DS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],MS=new vt("MatError"),LS={transitionMessages:o_("transitionMessages",[h_("enter",c_({opacity:1,transform:"translateY(0%)"})),d_("void => enter",[c_({opacity:0,transform:"translateY(-100%)"}),a_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let FS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t}),t})(),NS=0;const VS=new vt("MatHint");let jS=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+NS++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(vo("id",e.id)("align",null),ta("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Aa([{provide:VS,useExisting:t}])]}),t})(),BS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-label"]]}),t})(),zS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-placeholder"]]}),t})();const HS=new vt("MatPrefix"),US=new vt("MatSuffix");let qS=0;class $S{constructor(t){this._elementRef=t}}const WS=jb($S,"primary"),YS=new vt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),GS=new vt("MatFormField");let KS=(()=>{class t extends WS{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new S,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+qS++,this._labelId="mat-form-field-label-"+qS++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.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=dg(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(ed(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(xv(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xv(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ed(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ed(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(xv(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,gv(this._label.nativeElement,"transitionend").pipe(Qu(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())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,vg],Nb]}),t})();class QS{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new XS(t,this.predicate,this.inclusive))}}class XS extends f{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(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}class JS{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=mg(-this._previousScrollPosition.left),t.style.top=mg(-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,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_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 tx{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,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 ex{enable(){}disable(){}attach(){}}function nx(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function ix(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class sx{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,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();nx(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 rx=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new ex,this.close=t=>new tx(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new JS(this._viewportRuler,this._document),this.reposition=t=>new sx(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(ve($v),ve(Wv),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve($v),ve(Wv),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();class ox{constructor(t){if(this.scrollStrategy=new ex,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 ax{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class lx{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let cx=(()=>{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),hx=(()=>{class t extends cx{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),ux=(()=>{class t extends cx{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();const dx=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let px=(()=>{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(){if(this._platform.isBrowser||dx){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new S,this._outsidePointerEvents=new S,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.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(Qu(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=mg(this._config.width),t.height=mg(this._config.height),t.minWidth=mg(this._config.minWidth),t.minHeight=mg(this._config.minHeight),t.maxWidth=mg(this._config.maxWidth),t.maxHeight=mg(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;fg(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xv(W(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 mx=/([A-Za-z%]+)$/;class gx{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,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 S,this._resizeSubscription=u.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("cdk-overlay-connected-position-bounding-box"),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,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_x(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-s,s+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=yx(this._overlayRef.getConfig().minHeight),o=yx(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&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 i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_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 i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=mg(n.height),i.top=mg(n.top),i.bottom=mg(n.bottom),i.width=mg(n.width),i.left=mg(n.left),i.right=mg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=mg(t)),s&&(i.maxWidth=mg(s))}this._lastBoundingBoxSize=n,_x(this._boundingBox.style,i)}_resetBoundingBoxStyles(){_x(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_x(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();_x(n,this._getExactOverlayY(e,t,i)),_x(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=mg(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=mg(r.maxWidth):s&&(n.maxWidth="")),_x(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=mg(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=mg(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ix(t,n),isOriginOutsideView:nx(t,n),isOverlayClipped:ix(e,n),isOverlayOutsideView:nx(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&&fg(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 Na)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 _x(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function yx(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(mx);return n&&"px"!==n?null:parseFloat(e)}return t||null}class bx{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new gx(n,i,s,r,o).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,i){const s=new ax(t,e,n,i);return this._preferredPositions.push(s),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}}class vx{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("cdk-global-overlay-wrapper"),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:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);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("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let wx=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new vx}connectedTo(t,e,n){return new bx(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new gx(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Wv),ve(sh),ve(Gm),ve(px))},t.\u0275prov=ut({factory:function(){return new t(ve(Wv),ve(sh),ve(Gm),ve(px))},token:t,providedIn:"root"}),t})(),Cx=0,Sx=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new ox(t);return s.direction=s.direction||this._directionality.value,new fx(i,e,n,s,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-"+Cx++,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(Wc)),new Zg(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ve(rx),ve(px),ve(Pa),ve(wx),ve(hx),ve(ro),ve(Tc),ve(sh),ve(n_),ve(bh),ve(ux))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const xx=[{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"}],kx=new vt("cdk-connected-overlay-scroll-strategy");let Ex=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Tx=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Nl,this.positionChange=new Nl,this.attach=new Nl,this.detach=new Nl,this.overlayKeydown=new Nl,this.overlayOutsideClick=new Nl,this._templatePortal=new Yg(e,n),this._scrollStrategyFactory=i,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=dg(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=dg(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=dg(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=dg(t)}get push(){return this._push}set push(t){this._push=dg(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=xx);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||ng(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 ox({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 QS(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)(xo(Sx),xo(dl),xo(bl),xo(kx),xo(n_,8))},t.\u0275dir=se({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:[fi]}),t})();const Ix={provide:kx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Ox=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Sx,Ix],imports:[[i_,t_,Gv],Gv]}),t})();const Ax=["trigger"],Rx=["panel"];function Dx(t,e){if(1&t&&(Io(0,"span",8),ua(1),Oo()),2&t){const t=Ho();Gs(1),da(t.placeholder||"\xa0")}}function Px(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.triggerValue||"\xa0")}}function Mx(t,e){1&t&&$o(0,0,["*ngSwitchCase","true"])}function Lx(t,e){1&t&&(Io(0,"span",9),Co(1,Px,2,1,"span",10),Co(2,Mx,1,0,"ng-content",11),Oo()),2&t&&(Eo("ngSwitch",!!Ho().customTrigger),Gs(2),Eo("ngSwitchCase",!0))}function Fx(t,e){if(1&t){const t=Mo();Io(0,"div",12),Io(1,"div",13,14),No("@transformPanel.done",function(e){return Ge(t),Ho()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)}),$o(3,1),Oo(),Oo()}if(2&t){const t=Ho();Eo("@transformPanelWrap",void 0),Gs(1),n="mat-select-panel ",i=t._getPanelTheme(),s="",function(t,e,n,i){const s=Ye(),r=rn(2);s.firstUpdatePass&&sa(s,null,r,!0);const o=We();if(n!==Ys&&bo(o,r,n)){const i=s.data[bn()];if(ha(i,!0)&&!ia(s,r)){let t=i.classesWithoutHost;null!==t&&(n=lt(t,n||"")),To(s,i,o,n,!0)}else!function(t,e,n,i,s,r,o,a){s===Ys&&(s=Wo);let l=0,c=0,h=0 void",f_("@transformPanel",[p_()],{optional:!0}))]),transformPanel:o_("transformPanel",[h_("void",c_({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h_("showing",c_({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h_("showing-multiple",c_({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d_("void => *",a_("120ms cubic-bezier(0, 0, 0.2, 1)")),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))])};let Bx=0;const zx=new vt("mat-select-scroll-strategy"),Hx=new vt("MAT_SELECT_CONFIG"),Ux={provide:zx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class qx{constructor(t,e){this.source=t,this.value=e}}class $x{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const Wx=Bb(zb(Vb(Hb($x)))),Yx=new vt("MatSelectTrigger");let Gx=(()=>{class t extends Wx{constructor(t,e,n,i,s,r,o,a,l,c,h,u,d,p){var f,m,g,_,y;super(s,i,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Bx++,this._triggerAriaLabelledBy=null,this._destroy=new S,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Bx++,this._panelDoneAnimatingStream=new S,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!==(g=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this._typeaheadDebounceInterval=null!==(y=null===(_=this._defaultOptions)||void 0===_?void 0:_.typeaheadDebounceInterval)&&void 0!==y?y:0,this.optionSelectionChanges=Du(()=>{const t=this.options;return t?t.changes.pipe(ed(t),Gu(()=>W(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Qu(1),Gu(()=>this.optionSelectionChanges))}),this.openedChange=new Nl,this._openedStream=this.openedChange.pipe(Mu(t=>t),L(()=>{})),this._closedStream=this.openedChange.pipe(Mu(t=>!t),L(()=>{})),this.selectionChange=new Nl,this.valueChange=new Nl,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||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=dg(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=dg(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=dg(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.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=pg(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Uv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wv(),xv(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xv(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ed(null),xv(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,i=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&i&&!ng(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||13!==n&&32!==n||!e.activeItem||ng(t))if(!s&&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&&i&&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(Qu(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=>{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 Tg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(xv(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(xv(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=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xv(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(t=>t._stateChanges)).pipe(xv(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(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(xo(Wv),xo(ol),xo(Tc),xo(qb),xo(Na),xo(n_,8),xo(iS,8),xo(hS,8),xo(GS,8),xo(CC,10),ko("tabindex"),xo(zx),xo(Fg),xo(Hx,8))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&(Ql(Ax,!0),Ql(Rx,!0),Ql(Tx,!0)),2&t){let t;Kl(t=nc())&&(e.trigger=t.first),Kl(t=nc())&&(e.panel=t.first),Kl(t=nc())&&(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:[ao,fi]}),t})(),Kx=(()=>{class t extends Gx{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 i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(xv(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(Qu(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=fv(t,this.options,this.optionGroups),n=this._getItemHeight();var i,s,r;this.panel.nativeElement.scrollTop=(s=n,(i=(t+e)*n)<(r=this.panel.nativeElement.scrollTop)?i:i+s>r+256?Math.max(0,i-256+s):r)}_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 qx(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,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 i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,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),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=fv(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_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(e){return Zx(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,Yx,!0),Jl(n,pv,!0),Jl(n,lv,!0)),2&t){let t;Kl(t=nc())&&(e.customTrigger=t.first),Kl(t=nc())&&(e.options=t),Kl(t=nc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&No("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(vo("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()),ta("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:[Aa([{provide:FS,useExisting:t},{provide:uv,useExisting:t}]),ao],ngContentSelectors:Vx,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(qo(Nx),Io(0,"div",0,1),No("click",function(){return e.toggle()}),Io(3,"div",2),Co(4,Dx,2,1,"span",3),Co(5,Lx,3,2,"span",4),Oo(),Io(6,"div",5),Ao(7,"div",6),Oo(),Oo(),Co(8,Fx,4,14,"ng-template",7),No("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=So(1);vo("aria-owns",e.panelOpen?e.id+"-panel":null),Gs(3),Eo("ngSwitch",e.empty),vo("id",e._valueId),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1),Gs(3),Eo("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:[Ex,Mh,Lh,Tx,Fh,Eh],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}\n"],encapsulation:2,data:{animation:[jx.transformPanelWrap,jx.transformPanel]},changeDetection:0}),t})();const Zx=ts(Kx);let Qx=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Ux],imports:[[Hh,Ox,mv,Nb],Yv,ZS,mv,Nb]}),t})();class Xx{constructor(t){this.total=t}call(t,e){return e.subscribe(new Jx(t,this.total))}}class Jx extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const tk=new Set;let ek,nk=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ik}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!tk.has(t))try{ek||(ek=document.createElement("style"),ek.setAttribute("type","text/css"),document.head.appendChild(ek)),ek.sheet&&(ek.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),tk.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function ik(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let sk=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new S}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return rk(fg(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Eu(rk(fg(t)).map(t=>this._registerQuery(t).observable));return e=td(e.pipe(Qu(1)),e.pipe(t=>t.lift(new Xx(1)),lg(0))),e.pipe(L(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(ed(e),L(({matches:e})=>({query:t,matches:e})),xv(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(ve(nk),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(nk),ve(Tc))},token:t,providedIn:"root"}),t})();function rk(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const ok={tooltipState:o_("state",[h_("initial, void, hidden",c_({opacity:0,transform:"scale(0)"})),h_("visible",c_({transform:"scale(1)"})),d_("* => visible",a_("200ms cubic-bezier(0, 0, 0.2, 1)",u_([c_({opacity:0,transform:"scale(0)",offset:0}),c_({opacity:.5,transform:"scale(0.99)",offset:.5}),c_({opacity:1,transform:"scale(1)",offset:1})]))),d_("* => hidden",a_("100ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:0})))])},ak=tg({passive:!0}),lk=new vt("mat-tooltip-scroll-strategy"),ck={provide:lk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},hk=new vt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let uk=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ng(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),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)})}))}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(xv(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,ak)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),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 Wg(dk,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(xv(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(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(xv(this._destroyed)).subscribe(t=>{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:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(xv(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_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:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_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:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Qu(1),xv(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}}_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()]);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,ak)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_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)(xo(Sx),xo(Na),xo($v),xo(bl),xo(Tc),xo(Gm),xo(kg),xo(Bg),xo(lk),xo(n_,8),xo(hk,8))},t.\u0275dir=se({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),dk=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){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()}}return t.\u0275fac=function(e){return new(e||t)(xo(ol),xo(sk))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleBodyInteraction()},!1,as),2&t&&Jo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Io(0,"div",0),No("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),function(t,e){const n=Ye();let i;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const t=e[n];if("async"===t.name)return t}throw new ui("302","The pipe 'async' could not be found!")}(0,n.pipeRegistry),n.data[21]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,i.onDestroy)):i=n.data[21];const s=i.factory||(i.factory=hi(i.type)),r=de(xo);try{const t=Li(!1),e=s();Li(t),function(t,e,n,i){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=i}(n,We(),0,e)}finally{de(r)}}(),ua(2),Oo()),2&t){let t=null;ta("mat-tooltip-handset",null==(t=function(t,e,n){const i=t+20,s=We(),r=Fe(s,i);return function(t,e){return mo.isWrapped(e)&&(e=mo.unwrap(e),t[qe.lFrame.bindingIndex]=Ys),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?Fl(s,nn(),e,r.transform,n,r):r.transform(n))}(1,5,e._isHandset))?null:t.matches),Eo("ngClass",e.tooltipClass)("@state",e._visibility),Gs(2),da(e.message)}},directives:[Eh],pipes:[zh],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:[ok.tooltipState]},changeDetection:0}),t})(),pk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[ck],imports:[[qg,Hh,Ox,Nb],Nb,Yv]}),t})();const fk=tg({passive:!0});let mk=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Au;const e=gg(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new S,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,fk),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,fk)}}),i}stopMonitoring(t){const e=gg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc))},token:t,providedIn:"root"}),t})(),gk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Km]]}),t})();const _k=new vt("MAT_INPUT_VALUE_ACCESSOR"),yk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bk=0;class vk{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const wk=Hb(vk);let Ck=(()=>{class t extends wk{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+bk++,this.focused=!1,this.stateChanges=new S,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Qm().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=dg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=dg(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Qm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=dg(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){yk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(CC,10),xo(iS,8),xo(hS,8),xo(qb),xo(_k,10),xo(mk),xo(Tc),xo(GS,8))},t.\u0275dir=se({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&No("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(fa("disabled",e.disabled)("required",e.required),vo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ta("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Aa([{provide:FS,useExisting:t}]),ao,fi]}),t})(),Sk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[qb],imports:[[gk,ZS,Nb],gk,ZS]}),t})(),xk=(()=>{class t{constructor(){this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Nl,this.fileDataAdded=new Nl,this.fileUploadFinished=new Nl,this.fileProcess=new Nl,this.subscriptions=[]}ngOnInit(){const t=localStorage.getItem("fileType");t&&(this.fileType=t);const e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):Yw[this.fileType],this.acceptedFileTypes=Object.keys(Yw)}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}fileSelected(t){if(t){this.selectedFile=t,this.selectedFileName=t.name;const e=this.selectedFileName.split("."),n=e[e.length-1];this.acceptedFileTypes.indexOf(n)>-1&&(this.fileType=n,this.updateType());const i=new FileReader;i.onload=()=>{this.selectedFileContent=i.result},i.readAsText(t)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}updateType(){localStorage.setItem("fileType",this.fileType);const t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):Yw[this.fileType]}updateOptions(){const t=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",t)}processFile(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){if(1&t&&(Io(0,"div",0),Io(1,"div",1),ua(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Io(3,"a",2),ua(4,"these instructions"),Oo(),ua(5," to export it as Text or CSV. "),Oo(),Io(6,"div"),Io(7,"button",3),No("selectedFile",function(t){return e.fileSelected(t)}),ua(8,"Browse"),Oo(),Io(9,"span"),ua(10),Oo(),Oo(),Io(11,"form",4,5),Io(13,"div",6),Io(14,"div",7),Io(15,"mat-form-field"),Io(16,"mat-label"),ua(17,"File type"),Oo(),Io(18,"mat-select",8),No("ngModelChange",function(t){return e.fileType=t})("selectionChange",function(){return e.updateType()}),Io(19,"mat-option",9),ua(20," CSV "),Oo(),Io(21,"mat-option",10),ua(22," Text "),Oo(),Io(23,"mat-option",11),ua(24," SMI "),Oo(),Oo(),Oo(),Oo(),Io(25,"div",12),Io(26,"mat-form-field"),Io(27,"mat-label"),ua(28,"Column separator"),Oo(),Io(29,"mat-select",13),No("ngModelChange",function(t){return e.options.columnSeparator=t})("selectionChange",function(){return e.updateOptions()}),Io(30,"mat-option",14),ua(31," Comma (,) "),Oo(),Io(32,"mat-option",14),ua(33," Tab (\\t) "),Oo(),Oo(),Oo(),Oo(),Io(34,"div",15),Io(35,"mat-form-field"),Io(36,"mat-label"),ua(37,"Has header row"),Oo(),Io(38,"mat-select",16),No("ngModelChange",function(t){return e.options.hasHeaderRow=t})("selectionChange",function(){return e.updateOptions()}),Io(39,"mat-option",14),ua(40," Yes "),Oo(),Io(41,"mat-option",14),ua(42," No "),Oo(),Oo(),Oo(),Oo(),Io(43,"div",17),Io(44,"mat-form-field"),Io(45,"input",18),No("ngModelChange",function(t){return e.options.indexIdentifierColumn=t})("change",function(){return e.updateOptions()}),Oo(),Io(46,"mat-hint"),ua(47,"Zero indicates that the SMILES are in the first column"),Oo(),Oo(),Oo(),Oo(),Io(48,"div",19),Ao(49,"span",20),Io(50,"button",21),No("click",function(){return e.processFile()}),ua(51," Process file "),Oo(),Oo(),Oo(),Oo()),2&t){const t=So(12);Gs(10),pa(" \xa0 ",e.selectedFileName?"Selected file: "+e.selectedFileName:"No file selected"," "),Gs(8),Eo("ngModel",e.fileType),Gs(11),Eo("ngModel",e.options.columnSeparator),Gs(1),Eo("value",","),Gs(2),Eo("value","\t"),Gs(6),Eo("ngModel",e.options.hasHeaderRow),Gs(1),Eo("value",!0),Gs(2),Eo("value",!1),Gs(4),Eo("ngModel",e.options.indexIdentifierColumn),Gs(5),Eo("disabled",t.invalid||!e.selectedFileName||!e.selectedFileContent)}},directives:[Uw,Gw,aS,kC,iS,KS,BS,Kx,dS,xC,oS,pv,uk,TC,Ck,nC,jS],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),t})();const kk=["*"];function Ek(t){return Error(`Unable to find icon with the name "${t}"`)}function Tk(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Ik(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ok{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Ak=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,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,i){return this._addSvgIconConfig(t,e,new Ok(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(oi.HTML,n);if(!s)throw Ik(n);return this._addSvgIconConfig(t,e,new Ok("",s,i))}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 Ok(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(oi.HTML,e);if(!i)throw Ik(e);return this._addSvgIconSetConfig(t,new Ok("",i,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(oi.RESOURCE_URL,t);if(!e)throw Tk(t);const n=this._cachedIconsByUrl.get(e);return n?Su(Rk(n)):this._loadSvgIconFromConfig(new Ok(t,null)).pipe(cd(t=>this._cachedIconsByUrl.set(e,t)),L(t=>Rk(t)))}getNamedSvgIcon(t,e=""){const n=Dk(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Vv(Ek(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Su(Rk(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(L(t=>Rk(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Su(n):Kw(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(sd(e=>{const n=this._sanitizer.sanitize(oi.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Su(null)})))).pipe(L(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Ek(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(cd(e=>t.svgText=e),L(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Su(null):this._fetchIcon(t).pipe(cd(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,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 i=0;ithis._inProgressUrlFetches.delete(r)),tt());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Dk(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}}return t.\u0275fac=function(e){return new(e||t)(ve(km,8),ve(yu),ve(sh,8),ve(ss))},t.\u0275prov=ut({factory:function(){return new t(ve(km,8),ve(yu),ve(sh,8),ve(ss))},token:t,providedIn:"root"}),t})();function Rk(t){return t.cloneNode(!0)}function Dk(t,e){return t+":"+e}class Pk{constructor(t){this._elementRef=t}}const Mk=jb(Pk),Lk=new vt("mat-icon-location",{providedIn:"root",factory:function(){const t=we(sh),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Fk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Nk=Fk.map(t=>`[${t}]`).join(", "),Vk=/^url\(['"]?#(.*?)['"]?\)$/;let jk=(()=>{class t extends Mk{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=dg(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 i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Nk),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(Vk):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[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(Qu(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)(xo(Na),xo(Ak),ko("aria-hidden"),xo(Lk),xo(ss))},t.\u0275cmp=Xt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(vo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ta("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:[ao],ngContentSelectors:kk,decls:1,vars:0,template:function(t,e){1&t&&(qo(),$o(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})(),Bk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function zk(t,e){}class Hk{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Uk={dialogContainer:o_("dialogContainer",[h_("void, exit",c_({opacity:0,transform:"scale(0.7)"})),h_("enter",c_({transform:"none"})),d_("* => enter",a_("150ms cubic-bezier(0, 0, 0.2, 1)",c_({transform:"none",opacity:1}))),d_("* => void, * => exit",a_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",c_({opacity:0})))])};let qk=(()=>{class t extends Kg{constructor(t,e,n,i,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=r,this._animationStateChanged=new Nl,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Pg),xo(ol),xo(sh,8),xo(Hk),xo(Bg))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&Zl(Qg,!0),2&t){let t;Kl(t=nc())&&(e._portalOutlet=t.first)}},features:[ao]}),t})(),$k=(()=>{class t extends qk{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return Wk(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Vo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(fa("id",e._id),vo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ma("@dialogContainer",e._state))},features:[ao],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Co(0,zk,0,0,"ng-template",0)},directives:[Qg],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Uk.dialogContainer]}}),t})();const Wk=ts($k);let Yk=0;class Gk{constructor(t,e,n="mat-dialog-"+Yk++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new S,this._afterClosed=new S,this._beforeClosed=new S,this._state=0,e._id=n,e._animationStateChanged.pipe(Mu(t=>"opened"===t.state),Qu(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Mu(t=>"closed"===t.state),Qu(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Mu(t=>27===t.keyCode&&!this.disableClose&&!ng(t))).subscribe(t=>{t.preventDefault(),Kk(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Kk(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Mu(t=>"closing"===t.state),Qu(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Kk(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const Zk=new vt("MatDialogData"),Qk=new vt("mat-dialog-default-options"),Xk=new vt("mat-dialog-scroll-strategy"),Jk={provide:Xk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.block()}};let tE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new S,this._afterOpenedAtThisLevel=new S,this._ariaHiddenElements=new Map,this.afterAllClosed=Du(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ed(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Hk)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ox({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=ro.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Hk,useValue:e}]}),i=new Wg(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const s=new this._dialogRefConstructor(n,e,i.id);if(t instanceof dl)e.attachTemplatePortal(new Yg(t,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,e),r=e.attachComponentPortal(new Wg(t,i.viewContainerRef,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(n_,null)||s.push({provide:n_,useValue:{value:t.direction,change:Su()}}),ro.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(ro),xo(void 0),xo(void 0),xo(px),xo(void 0),xo(Dt),xo(Dt),xo(vt))},t.\u0275dir=se({type:t}),t})(),eE=(()=>{class t extends tE{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,Gk,$k,Zk)}}return t.\u0275fac=function(e){return new(e||t)(ve(Sx),ve(ro),ve(bh,8),ve(Qk,8),ve(Xk),ve(t,12),ve(px))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),nE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[eE,Jk],imports:[[Ox,t_,Nb],Nb]}),t})(),iE=(()=>{class t{constructor(t,e){this.el=t,this.http=e,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}ngAfterViewInit(){this.isAfterViewInit=!0,this.setImageSrc()}set version(t){t!==this.privateVersion&&(this.privateVersion=t,this.setImageSrc())}set entityId(t){t!==this.privateEntityId&&(this.privateEntityId=t,this.setImageSrc())}set size(t){t!==this.privateSize&&(this.privateSize=t,this.setImageSrc())}set stereo(t){t!==this.privateStereo&&(this.privateStereo=t,this.setImageSrc())}set atomMaps(t){t!==this.privateAtomMaps&&(this.privateAtomMaps=t,this.setImageSrc())}setImageSrc(){if(this.isAfterViewInit){const t="/adme/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=t,this.imageElement.alt="structure image"}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(km))},t.\u0275dir=se({type:t,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),t})(),sE=(()=>{class t{constructor(t){this.data=t,this.smiles=t.smiles}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Zk))},t.\u0275cmp=Xt({type:t,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(t,e){1&t&&Ao(0,"img",0),2&t&&Eo("entityId",e.smiles)},directives:[iE],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),t})();function rE(t,e){if(1&t&&(Io(0,"mat-option",19),ua(1),Oo()),2&t){const t=e.$implicit;Eo("value",t),Gs(1),pa(" ",t," ")}}function oE(t,e){if(1&t){const t=Mo();Io(0,"mat-form-field",16),Io(1,"mat-select",17),No("selectionChange",function(e){return Ge(t),Ho(2)._changePageSize(e.value)}),Co(2,rE,2,2,"mat-option",18),Oo(),Oo()}if(2&t){const t=Ho(2);Eo("appearance",t._formFieldAppearance)("color",t.color),Gs(1),Eo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),Gs(1),Eo("ngForOf",t._displayedPageSizeOptions)}}function aE(t,e){if(1&t&&(Io(0,"div",20),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.pageSize)}}function lE(t,e){if(1&t&&(Io(0,"div",12),Io(1,"div",13),ua(2),Oo(),Co(3,oE,3,6,"mat-form-field",14),Co(4,aE,2,1,"div",15),Oo()),2&t){const t=Ho();Gs(2),pa(" ",t._intl.itemsPerPageLabel," "),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length>1),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length<=1)}}function cE(t,e){if(1&t){const t=Mo();Io(0,"button",21),No("click",function(){return Ge(t),Ho().firstPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",22),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),vo("aria-label",t._intl.firstPageLabel)}}function hE(t,e){if(1&t){const t=Mo();Cn(),Sn(),Io(0,"button",23),No("click",function(){return Ge(t),Ho().lastPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",24),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),vo("aria-label",t._intl.lastPageLabel)}}let uE=(()=>{class t{constructor(){this.changes=new S,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 i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const dE={provide:uE,deps:[[new st,new ot,uE]],useFactory:function(t){return t||new uE}},pE=new vt("MAT_PAGINATOR_DEFAULT_OPTIONS");class fE{}const mE=Vb(Ub(fE));let gE=(()=>{class t extends mE{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 Nl,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(pg(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=pg(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(pg(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>pg(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=dg(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=dg(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)(xo(uE),xo(ol),xo(void 0))},t.\u0275dir=se({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ao]}),t})(),_E=(()=>{class t extends gE{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)(xo(uE),xo(ol),xo(pE,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ao],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&&(Io(0,"div",0),Io(1,"div",1),Co(2,lE,5,3,"div",2),Io(3,"div",3),Io(4,"div",4),ua(5),Oo(),Co(6,cE,3,5,"button",5),Io(7,"button",6),No("click",function(){return e.previousPage()}),Cn(),Io(8,"svg",7),Ao(9,"path",8),Oo(),Oo(),Sn(),Io(10,"button",9),No("click",function(){return e.nextPage()}),Cn(),Io(11,"svg",7),Ao(12,"path",10),Oo(),Oo(),Co(13,hE,3,5,"button",11),Oo(),Oo(),Oo()),2&t&&(Gs(2),Eo("ngIf",!e.hidePageSize),Gs(3),pa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),Gs(1),Eo("ngIf",e.showFirstLastButtons),Gs(1),Eo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),vo("aria-label",e._intl.previousPageLabel),Gs(3),Eo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),vo("aria-label",e._intl.nextPageLabel),Gs(3),Eo("ngIf",e.showFirstLastButtons))},directives:[Ah,Uw,uk,KS,Kx,Ih,pv],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)}\n"],encapsulation:2,changeDetection:0}),t})(),yE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[dE],imports:[[Hh,qw,Qx,pk,Nb]]}),t})();const bE=[[["caption"]],[["colgroup"],["col"]]],vE=["caption","colgroup, col"];function wE(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=dg(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const CE=new vt("CDK_TABLE");let SE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellDef",""]]}),t})(),xE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),kE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class EE{}const TE=wE(EE);let IE=(()=>{class t extends TE{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=dg(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)(xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,SE,!0),Jl(n,xE,!0),Jl(n,kE,!0)),2&t){let t;Kl(t=nc())&&(e.cell=t.first),Kl(t=nc())&&(e.headerCell=t.first),Kl(t=nc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Aa([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();class OE{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let AE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ao]}),t})(),RE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[ao]}),t})();class DE{constructor(){this.tasks=[],this.endTasks=[]}}const PE=new vt("_COALESCED_STYLE_SCHEDULER");let ME=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new S}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 DE,this._getScheduleObservable().pipe(xv(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new DE;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Qu(1))}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),LE=(()=>{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 VE?t.headerCell.template:this instanceof zE?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl))},t.\u0275dir=se({type:t,features:[fi]}),t})();class FE extends LE{}const NE=wE(FE);let VE=(()=>{class t extends NE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ao,fi]}),t})();class jE extends LE{}const BE=wE(jE);let zE=(()=>{class t extends BE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ao,fi]}),t})(),HE=(()=>{class t extends LE{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ao]}),t})(),UE=(()=>{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)(xo(bl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),qE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),$E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),WE=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const YE=["top","bottom","left","right"];class GE{constructor(t,e,n,i,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const s=t[0],r=s.children.length,o=this._getCellWidths(s,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",o=i?"left":"right";for(const c of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";YE.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){t.classList.add(this._stickCellCss),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 i of YE)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let KE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","rowOutlet",""]]}),t})(),ZE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),QE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),XE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),JE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new S,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 xu({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,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=dg(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=dg(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&&this._viewportRuler.change().pipe(xv(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(),zv(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?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)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),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 i=0;i{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 s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=tT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tT(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 i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],zv(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;var e;zv(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof y||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Su(this.dataSource)),this._renderChangeSubscription=t.pipe(xv(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)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))UE.mostRecentCellOutlet&&UE.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 GE(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Su()).pipe(xv(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)(xo(tl),xo(ol),xo(Na),ko("role"),xo(n_,8),xo(sh),xo(Gm),xo(qv,8),xo(PE,8),xo(Wv,8))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,WE,!0),Jl(n,IE,!0),Jl(n,HE,!0),Jl(n,VE,!0),Jl(n,zE,!0)),2&t){let t;Kl(t=nc())&&(e._noDataRow=t.first),Kl(t=nc())&&(e._contentColumnDefs=t),Kl(t=nc())&&(e._contentRowDefs=t),Kl(t=nc())&&(e._contentHeaderRowDefs=t),Kl(t=nc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Zl(KE,!0),Zl(ZE,!0),Zl(QE,!0),Zl(XE,!0)),2&t){let t;Kl(t=nc())&&(e._rowOutlet=t.first),Kl(t=nc())&&(e._headerRowOutlet=t.first),Kl(t=nc())&&(e._footerRowOutlet=t.first),Kl(t=nc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Aa([{provide:CE,useExisting:t},{provide:qv,useClass:Hv},{provide:PE,useClass:ME}])],ngContentSelectors:vE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(bE),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function tT(t,e){return t.concat(Array.from(e))}let eT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gv]]}),t})();const nT=[[["caption"]],[["colgroup"],["col"]]],iT=["caption","colgroup, col"];let sT=(()=>{class t extends JE{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return rT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Aa([{provide:qv,useClass:Hv},{provide:JE,useExisting:t},{provide:CE,useExisting:t},{provide:PE,useClass:ME}]),ao],ngContentSelectors:iT,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(nT),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],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;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const rT=ts(sT);let oT=(()=>{class t extends SE{}return t.\u0275fac=function(e){return aT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matCellDef",""]],features:[Aa([{provide:SE,useExisting:t}]),ao]}),t})();const aT=ts(oT);let lT=(()=>{class t extends xE{}return t.\u0275fac=function(e){return cT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderCellDef",""]],features:[Aa([{provide:xE,useExisting:t}]),ao]}),t})();const cT=ts(lT);let hT=(()=>{class t extends IE{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(e){return uT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Aa([{provide:IE,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();const uT=ts(hT);let dT=(()=>{class t extends AE{}return t.\u0275fac=function(e){return pT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ao]}),t})();const pT=ts(dT);let fT=(()=>{class t extends RE{}return t.\u0275fac=function(e){return mT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ao]}),t})();const mT=ts(fT);let gT=(()=>{class t extends VE{}return t.\u0275fac=function(e){return _T(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Aa([{provide:VE,useExisting:t}]),ao]}),t})();const _T=ts(gT);let yT=(()=>{class t extends HE{}return t.\u0275fac=function(e){return bT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Aa([{provide:HE,useExisting:t}]),ao]}),t})();const bT=ts(yT);let vT=(()=>{class t extends qE{}return t.\u0275fac=function(e){return wT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Aa([{provide:qE,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const wT=ts(vT);let CT=(()=>{class t extends $E{}return t.\u0275fac=function(e){return ST(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Aa([{provide:$E,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const ST=ts(CT);let xT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[eT,Nb],Nb]}),t})();const kT=["mat-sort-header",""];function ET(t,e){if(1&t){const t=Mo();Io(0,"div",3),No("@arrowPosition.start",function(){return Ge(t),Ho()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Ge(t),Ho()._disableViewStateAnimation=!1}),Ao(1,"div",4),Io(2,"div",5),Ao(3,"div",6),Ao(4,"div",7),Ao(5,"div",8),Oo(),Oo()}if(2&t){const t=Ho();Eo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),Gs(2),Eo("@indicator",t._getArrowDirectionState()),Gs(1),Eo("@leftPointer",t._getArrowDirectionState()),Gs(1),Eo("@rightPointer",t._getArrowDirectionState())}}const TT=["*"];class IT{}const OT=Ub(Vb(IT));let AT=(()=>{class t extends OT{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new S,this.start="asc",this._direction="",this.sortChange=new Nl}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return RT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ao,fi]}),t})();const RT=ts(AT),DT=Pb.ENTERING+" "+Db.STANDARD_CURVE,PT={indicator:o_("indicator",[h_("active-asc, asc",c_({transform:"translateY(0px)"})),h_("active-desc, desc",c_({transform:"translateY(10px)"})),d_("active-asc <=> active-desc",a_(DT))]),leftPointer:o_("leftPointer",[h_("active-asc, asc",c_({transform:"rotate(-45deg)"})),h_("active-desc, desc",c_({transform:"rotate(45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),rightPointer:o_("rightPointer",[h_("active-asc, asc",c_({transform:"rotate(45deg)"})),h_("active-desc, desc",c_({transform:"rotate(-45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),arrowOpacity:o_("arrowOpacity",[h_("desc-to-active, asc-to-active, active",c_({opacity:1})),h_("desc-to-hint, asc-to-hint, hint",c_({opacity:.54})),h_("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",c_({opacity:0})),d_("* => asc, * => desc, * => active, * => hint, * => void",a_("0ms")),d_("* <=> *",a_(DT))]),arrowPosition:o_("arrowPosition",[d_("* => desc-to-hint, * => desc-to-active",a_(DT,u_([c_({transform:"translateY(-25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-desc, * => active-to-desc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(25%)"})]))),d_("* => asc-to-hint, * => asc-to-active",a_(DT,u_([c_({transform:"translateY(25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-asc, * => active-to-asc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(-25%)"})]))),h_("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",c_({transform:"translateY(0)"})),h_("hint-to-desc, active-to-desc, desc",c_({transform:"translateY(-25%)"})),h_("hint-to-asc, active-to-asc, asc",c_({transform:"translateY(25%)"}))]),allowChildren:o_("allowChildren",[d_("* <=> *",[f_("@*",p_(),{optional:!0})])])};let MT=(()=>{class t{constructor(){this.changes=new S,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LT={provide:MT,deps:[[new st,new ot,MT]],useFactory:function(t){return t||new MT}};class FT{}const NT=Vb(FT);let VT=(()=>{class t extends NT{constructor(t,e,n,i,s,r){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=W(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(xo(MT),xo(ol),xo(AT,8),xo("MAT_SORT_HEADER_COLUMN_DEF",8),xo(Bg),xo(Na))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(vo("aria-sort",e._getAriaSortAttribute()),ta("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ao],attrs:kT,ngContentSelectors:TT,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(qo(),Io(0,"div",0),Io(1,"div",1),$o(2),Oo(),Co(3,ET,6,6,"div",2),Oo()),2&t&&(ta("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vo("tabindex",e._isDisabled()?null:0),Gs(3),Eo("ngIf",e._renderArrow()))},directives:[Ah],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[PT.indicator,PT.leftPointer,PT.rightPointer,PT.arrowOpacity,PT.arrowPosition,PT.allowChildren]},changeDetection:0}),t})(),jT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[LT],imports:[[Hh,Nb]]}),t})();function BT(t,e){if(1&t&&(Io(0,"li"),ua(1),Oo()),2&t){const t=e.$implicit;Gs(1),da(t)}}function zT(t,e){if(1&t&&(Io(0,"ul"),Co(1,BT,2,1,"li",8),Oo()),2&t){const t=Ho(2);Gs(1),Eo("ngForOf",t.errorMessages)}}function HT(t,e){if(1&t){const t=Mo();Io(0,"div",2),Io(1,"div",3),Io(2,"div"),ua(3),Oo(),Co(4,zT,2,1,"ul",4),Oo(),Io(5,"div",5),Io(6,"button",6),No("click",function(){return Ge(t),Ho().clearErrorMessage()}),Ao(7,"mat-icon",7),Oo(),Oo(),Oo()}if(2&t){const t=Ho();Gs(3),pa(" ",t.errorMessage," "),Gs(1),Eo("ngIf",t.errorMessages&&t.errorMessages.length)}}function UT(t,e){if(1&t&&(Io(0,"mat-header-cell",23),Io(1,"span",24),ua(2),Oo(),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("matTooltip",e.displayedColumnsDict[t].description),Gs(1),pa(" ",e.displayedColumnsDict[t].isSmilesColumn?"mol":t," ")}}function qT(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho().$implicit,e=Ho().$implicit;Gs(1),da("0 (0.0)"==t[e]?"0 (0.01)":t[e])}}function $T(t,e){if(1&t){const t=Mo();Io(0,"a",26),No("click",function(){Ge(t);const e=Ho().$implicit,n=Ho().$implicit;return Ho(2).openStructureImageDialog(e[n])}),Ao(1,"img",27),Oo()}if(2&t){const t=Ho().$implicit,e=Ho().$implicit;Eo("matTooltip",t[e]),Gs(1),Eo("entityId",t[e])}}function WT(t,e){if(1&t&&(Io(0,"mat-cell"),Co(1,qT,2,1,"span",4),Co(2,$T,2,2,"a",25),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("ngIf",!e.displayedColumnsDict[t].isSmilesColumn),Gs(1),Eo("ngIf",e.displayedColumnsDict[t].isSmilesColumn)}}function YT(t,e){1&t&&(Ro(0,20),Co(1,UT,3,2,"mat-header-cell",21),Co(2,WT,3,2,"mat-cell",22),Do()),2&t&&Eo("matColumnDef",e.$implicit)}function GT(t,e){1&t&&Ao(0,"mat-header-row")}function KT(t,e){1&t&&Ao(0,"mat-row",28)}const ZT=function(){return[5,10,25,100]};function QT(t,e){if(1&t){const t=Mo();Io(0,"div",9),Io(1,"h2"),ua(2,"Model predictions"),Oo(),Io(3,"div",10),Io(4,"button",11),No("click",function(){return Ge(t),Ho().downloadCSV()}),ua(5,"Download"),Oo(),Ao(6,"div",12),Io(7,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo(),Io(8,"div",14),Io(9,"mat-table",15,16),No("matSortChange",function(e){return Ge(t),Ho().sortData(e)}),Co(11,YT,3,1,"ng-container",17),Co(12,GT,1,0,"mat-header-row",18),Co(13,KT,1,0,"mat-row",19),Oo(),Oo(),Io(14,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo()}if(2&t){const t=Ho();Gs(7),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(12,ZT)),Gs(2),Eo("dataSource",t.paged),Gs(2),Eo("ngForOf",t.displayedColumns),Gs(1),Eo("matHeaderRowDef",t.displayedColumns),Gs(1),Eo("matRowDefColumns",t.displayedColumns),Gs(1),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(13,ZT))}}let XT=(()=>{class t{constructor(t,e){this.dialog=t,this.gaService=e,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Nl}ngOnInit(){}set predictionsData(t){null!=t?(this.predictions=t,this.displayedColumnsDict=t.mainColumnsDict,this.displayedColumns=Object.keys(this.displayedColumnsDict).sort((t,e)=>this.displayedColumnsDict[t].order-this.displayedColumnsDict[e].order),this.allColumns=t.columns,"replace"===this.dataHandling?(this.data=t.data,this.displayData=this.getNonEmptyPredictions(this.data)):(this.data.push(t.data[0]),this.displayData=this.displayData.concat(this.getNonEmptyPredictions(t.data))),this.pageChange(),t.hasErrors&&(this.errorMessage="The system encountered the following error(s) while processing your request:",this.errorMessages=t.errorMessages)):(this.data=null,this.displayData=null)}pageChange(t){this.clearErrorMessage(),null!=t?(t.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=t.pageIndex,t.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=t.pageSize):this.page=0,this.paged=[];const e=this.page*this.pageSize;for(let n=e;nthis.compare(e[t.active],n[t.active],"asc"===t.direction)),this.pageChange()}compare(t,e,n){return(t!this.displayedColumnsDict[t].isSmilesColumn);return t.filter(t=>{let n=0;return e.forEach(e=>{null!=t[e]&&""!==t[e]||n++}),n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Oo(),Oo(),Io(60,"div",4),Io(61,"div",5),ua(62,"Data for Download:"),Oo(),Io(63,"div",6),ua(64," A subset of the dataset used for developing these models is available for download. Click "),Io(65,"a",12),ua(66,"here"),Oo(),ua(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Io(68,"a",13),ua(69,"AID 1508591"),Oo(),ua(70,". "),Oo(),Oo(),Oo(),Ao(71,"br"),Io(72,"h3"),ua(73," RLM Assay Protocol "),Oo(),Io(74,"p",14),ua(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Io(76,"sub"),ua(77,"1/2"),Oo(),ua(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Oo(),Io(79,"h3"),ua(80," References: "),Oo(),Io(81,"ol"),Io(82,"li"),ua(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Oo(),Io(84,"li"),ua(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Oo(),Oo(),Oo()),2&t){const t=Ho();Gs(65),Eo("href",t.dataDownloadHref,ai)}}function hI(t,e){1&t&&(Io(0,"div",2),Io(1,"h2"),ua(2," CYP450 Models "),Oo(),Io(3,"h3"),ua(4," High-throughput metabolic stability assays: "),Oo(),Io(5,"p"),ua(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Io(7,"sup"),ua(8,"1"),Oo(),ua(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Io(10,"sub"),ua(11,"1/2"),Oo(),ua(12,") determinations were performed as previously described"),Io(13,"sup"),ua(14,"1"),Oo(),ua(15,". "),Oo(),Io(16,"div",15),Io(17,"div",16),ua(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Oo(),Io(19,"div",17),Io(20,"table",18),Io(21,"thead"),Io(22,"tr",19),Io(23,"th",20),ua(24," Matrix "),Oo(),Io(25,"th",20),ua(26," Final Protein Concentration [mg/mL] "),Oo(),Io(27,"th",20),ua(28," Total CYP content [nM] "),Oo(),Io(29,"th",20),ua(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Oo(),Io(31,"th",20),ua(32," Cytochrome b"),Io(33,"sub"),ua(34,"5"),Oo(),ua(35," content [pmol/mg protein] "),Oo(),Io(36,"th",20),ua(37," High clearance controls "),Oo(),Io(38,"th",20),ua(39," Moderate clearance controls "),Oo(),Io(40,"th",20),ua(41," Low clearance controls "),Oo(),Oo(),Oo(),Io(42,"tbody"),Io(43,"tr",21),Io(44,"td",22),ua(45," CYP3A4 "),Oo(),Io(46,"td",23),ua(47," ~0.2 "),Oo(),Io(48,"td",23),ua(49," 30 "),Oo(),Io(50,"td",23),ua(51," 2900 "),Oo(),Io(52,"td",23),ua(53," 1090 "),Oo(),Io(54,"td",23),ua(55," Buspirone, Loperamide "),Oo(),Io(56,"td",23),ua(57," Ketoconazole "),Oo(),Io(58,"td",23),ua(59," Antipyrine, Carbamazepine "),Oo(),Oo(),Io(60,"tr",21),Io(61,"td",22),ua(62," CYP2C9 "),Oo(),Io(63,"td",23),ua(64," ~0.12 "),Oo(),Io(65,"td",23),ua(66," 45 "),Oo(),Io(67,"td",23),ua(68," 985 "),Oo(),Io(69,"td",23),ua(70," 710 "),Oo(),Io(71,"td",23),ua(72," Glyburide, Glimepiride "),Oo(),Io(73,"td",23),ua(74," Tamoxifen "),Oo(),Io(75,"td",23),ua(76," Antipyrine, Meloxicam "),Oo(),Oo(),Io(77,"tr",21),Io(78,"td",22),ua(79," CYP2D6 "),Oo(),Io(80,"td",23),ua(81," ~0.38 "),Oo(),Io(82,"td",23),ua(83," 60 "),Oo(),Io(84,"td",23),ua(85," 3000 "),Oo(),Io(86,"td",23),ua(87," - "),Oo(),Io(88,"td",23),ua(89," Bufuralol, Desipramine, Amitriptyline "),Oo(),Io(90,"td",23),ua(91," Mexiletine "),Oo(),Io(92,"td",23),ua(93," Codeine "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(94,"h3"),ua(95," P450-Glo qHTS: "),Oo(),Io(96,"p"),ua(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Io(98,"sup"),ua(99,"2"),Oo(),ua(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Oo(),Io(101,"div",15),Io(102,"div",16),ua(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Oo(),Io(104,"div",17),Io(105,"table",18),Io(106,"thead"),Io(107,"tr",19),Io(108,"th",20),ua(109," Enzyme "),Oo(),Io(110,"th",20),ua(111," Inhibitor "),Oo(),Io(112,"th",20),ua(113," Dilution Format "),Oo(),Io(114,"th",20),ua(115," Inhibitor Concentration "),Oo(),Io(116,"th",20),ua(117," Incubation conditions "),Oo(),Oo(),Oo(),Io(118,"tbody"),Io(119,"tr",21),Io(120,"td",22),ua(121," CYP3A4 "),Oo(),Io(122,"td",23),ua(123," Ketoconazole "),Oo(),Io(124,"td",24),Io(125,"div"),ua(126,"16 concentrations/"),Oo(),Io(127,"div"),ua(128,"2-fold dilution in"),Oo(),Io(129,"div"),ua(130,"duplicates"),Oo(),Oo(),Io(131,"td",23),ua(132," 57 \xb5M-1.8 nM "),Oo(),Io(133,"td",23),ua(134," 1 h/RT "),Oo(),Oo(),Io(135,"tr",21),Io(136,"td",22),ua(137," CYP2C9 "),Oo(),Io(138,"td",23),ua(139," Sulfaphenazole "),Oo(),Io(140,"td",23),ua(141," 57 \xb5M-1.8 nM "),Oo(),Io(142,"td",23),ua(143," 1 h/ 37\u02daC/ 0.4% BSA "),Oo(),Oo(),Io(144,"tr",21),Io(145,"td",22),ua(146," CYP2D6 "),Oo(),Io(147,"td",23),ua(148," Quinidine "),Oo(),Io(149,"td",23),ua(150," 1.4 \xb5M-0.04 nM "),Oo(),Io(151,"td",23),ua(152," 1 h/RT "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(153,"div",15),Io(154,"div",16),ua(155," Parsing of Substrates and Inhibitors: "),Oo(),Io(156,"div",17),Io(157,"table",25),Io(158,"thead"),Io(159,"tr",19),Io(160,"th",20),ua(161," Category "),Oo(),Io(162,"th",20),Io(163,"div"),ua(164,"Clearance"),Oo(),Io(165,"div"),ua(166,"/"),Oo(),Io(167,"div"),ua(168,"P450-Glo"),Oo(),Oo(),Io(169,"th",20),ua(170," Classification "),Oo(),Io(171,"th",20),ua(172," Parsing Rationale "),Oo(),Oo(),Oo(),Io(173,"tbody"),Io(174,"tr",21),Io(175,"td",23),ua(176," 1 "),Oo(),Io(177,"td",23),ua(178," + / + "),Oo(),Io(179,"td",23),ua(180," Substrate "),Oo(),Io(181,"td",26),ua(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Oo(),Oo(),Io(183,"tr",21),Io(184,"td",23),ua(185," 2 "),Oo(),Io(186,"td",23),ua(187," - / + "),Oo(),Io(188,"td",23),ua(189," Inhibitor "),Oo(),Io(190,"td",26),ua(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Oo(),Oo(),Io(192,"tr",21),Io(193,"td",23),ua(194," 3 "),Oo(),Io(195,"td",23),ua(196," - / - "),Oo(),Io(197,"td",23),ua(198," Non-ligand "),Oo(),Io(199,"td",26),ua(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Oo(),Oo(),Io(201,"tr",21),Io(202,"td",23),ua(203," 4 "),Oo(),Io(204,"td",23),ua(205," + / - "),Oo(),Io(206,"td",23),ua(207," Substrate "),Oo(),Io(208,"td",26),ua(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(210,"h3"),ua(211," References: "),Oo(),Io(212,"ol"),Io(213,"li"),ua(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Oo(),Io(215,"li"),ua(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Oo(),Oo(),Oo())}const uI=[{path:"home",component:$m,data:{pageTitle:"home"}},{path:"predictions",component:(()=>{class t{constructor(t,e,n){this.http=t,this.loadingService=e,this.gaService=n,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}ngOnInit(){this.link=document.createElement("a")}processSketcherInput(t){this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/adme/api/v1/predict",{params:{smiles:t,model:this.models}}).subscribe(t=>{this.sketcherData=t,this.loadingService.setLoadingState(!1)},t=>{this.errorMessage="There was an error processing your structure. Please modify it and try again.",this.loadingService.setLoadingState(!1)})}processFile(t){this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);const e=new FormData;e.append("lineBreak",t.lineBreak),this.lineBreak=t.lineBreak,e.append("columnSeparator",t.columnSeparator),this.columnSeparator=t.columnSeparator,e.append("hasHeaderRow",t.hasHeaderRow.toString()),e.append("indexIdentifierColumn",t.indexIdentifierColumn.toString()),e.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=t.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,e.append("file",t.file),this.http.post("/adme/api/v1/predict-file",e).subscribe(t=>{t.hasErrors?this.errorMessage=t.errorMessages:t&&Object.keys(t).length>0&&(this.fileData=t),this.loadingService.setLoadingState(!1)},t=>{this.fileData=null,this.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",this.loadingService.setLoadingState(!1)})}clearErrorMessage(){this.errorMessage="",this.errorMessages=[]}downloadCSV(t){const e=[...t.allColumns].join(this.columnSeparator),n=[];t.data.forEach(e=>n.push(t.allColumns.map(t=>e[t]).join(this.columnSeparator)));const i=e+this.lineBreak+n.join(this.lineBreak);this.file=new Blob([i],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}downloadFile(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}selectedTabChange(t,e){this.gaService.sendEvent("click:tab",e,t.tab.textLabel)}}return t.\u0275fac=function(e){return new(e||t)(xo(km),xo(Wm),xo(Um))},t.\u0275cmp=Xt({type:t,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"mat-tab-group",2),No("selectedTabChange",function(t){return e.selectedTabChange(t,"predictions:input-type")}),Io(3,"mat-tab",3),Io(4,"div",4),Io(5,"adme-sketcher",5),No("moleculeInput",function(t){return e.processSketcherInput(t)}),Oo(),Oo(),Co(6,eI,8,2,"div",6),Co(7,iI,3,1,"div",7),Oo(),Io(8,"mat-tab",8),Io(9,"div",4),Io(10,"adme-text-file",9),No("fileProcess",function(t){return e.processFile(t)}),Oo(),Oo(),Co(11,oI,8,2,"div",6),Co(12,lI,3,1,"div",7),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.sketcherData),Gs(4),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.fileData))},directives:[Ow,yw,Ww,Ah,xk,Uw,jk,Ih,XT],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),t})(),data:{pageTitle:"predictions"}},{path:"models/:model",component:(()=>{class t{constructor(t,e){this.domSanatizer=t,this.activatedRoute=e,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/adme/client/assets/rlm_public_set.xlsx")}ngOnInit(){this.subscription=this.activatedRoute.params.subscribe(t=>{this.model=t.model})}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(vp))},t.\u0275cmp=Xt({type:t,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(t,e){1&t&&(Io(0,"div",0),Co(1,cI,86,1,"div",1),Co(2,hI,217,0,"div",1),Oo()),2&t&&(Gs(1),Eo("ngIf","rlm"==e.model),Gs(1),Eo("ngIf","cyp450"==e.model))},directives:[Ah,qm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),t})(),data:{pageTitle:"model"}},{path:"contact",component:(()=>{class t{constructor(t){this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/epam_ketcher.png")}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(yu))},t.\u0275cmp=Xt({type:t,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h1"),ua(3," Contact "),Oo(),Io(4,"div",2),Io(5,"div",3),Ao(6,"img",4),Oo(),Io(7,"div",5),Io(8,"div"),ua(9," Vishal Siramshetty "),Oo(),Io(10,"div"),ua(11," Postdoctoral Fellow (Informatics) "),Oo(),Io(12,"div"),ua(13," Email: "),Io(14,"a",6),ua(15,"siramshettyv2@nih.gov"),Oo(),ua(16," (models/predictions related queries) "),Oo(),Oo(),Oo(),Io(17,"div",2),Io(18,"div",3),Ao(19,"img",4),Oo(),Io(20,"div",5),Io(21,"div"),ua(22," Pranav Shah "),Oo(),Io(23,"div"),ua(24," Lead (In Vitro ADME) "),Oo(),Io(25,"div"),ua(26," Email: "),Io(27,"a",7),ua(28,"pranav.shah@nih.gov"),Oo(),ua(29," (assay/data related queries) "),Oo(),Oo(),Oo(),Io(30,"div",2),Io(31,"div",3),Ao(32,"img",4),Oo(),Io(33,"div",5),Io(34,"div"),ua(35," Jorge Neyra "),Oo(),Io(36,"div"),ua(37," Software Developer (Informatics) "),Oo(),Io(38,"div"),ua(39," Email: "),Io(40,"a",8),ua(41,"jorge.neyra@nih.gov"),Oo(),ua(42," (software related queries) "),Oo(),Oo(),Oo(),Io(43,"div",2),Io(44,"div",3),Ao(45,"img",4),Oo(),Io(46,"div",5),Io(47,"div"),ua(48," Jordan Williams "),Oo(),Io(49,"div"),ua(50," Postbaccalaureate Fellow (In Vitro ADME) "),Oo(),Io(51,"div"),ua(52," Email: "),Io(53,"a",9),ua(54,"jordan.williams2@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(55,"div",2),Io(56,"div",3),Ao(57,"img",4),Oo(),Io(58,"div",5),Io(59,"div"),ua(60," Noel Southall "),Oo(),Io(61,"div"),ua(62," Lead (Informatics) "),Oo(),Io(63,"div"),ua(64," Email: "),Io(65,"a",10),ua(66,"southalln@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(67,"div",2),Io(68,"div",3),Ao(69,"img",4),Oo(),Io(70,"div",5),Io(71,"div"),ua(72," Trung Nguyen "),Oo(),Io(73,"div"),ua(74," Staff Scientist (Informatics) "),Oo(),Io(75,"div"),ua(76," Email: "),Io(77,"a",11),ua(78,"nguyenda@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(79,"div",2),Io(80,"div",3),Ao(81,"img",4),Oo(),Io(82,"div",5),Io(83,"div"),ua(84," Xin Xu "),Oo(),Io(85,"div"),ua(86," Lead (ADME Group) "),Oo(),Io(87,"div"),ua(88," Email: "),Io(89,"a",12),ua(90,"xin.xu3@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(91,"div",13),Io(92,"h1"),ua(93," Resources "),Oo(),Io(94,"div",14),Io(95,"div"),Io(96,"a",15),Ao(97,"img",4),Oo(),Oo(),Io(98,"div"),Io(99,"a",16),Ao(100,"img",4),Oo(),Oo(),Oo(),Io(101,"div",14),Io(102,"div"),Io(103,"a",17),Ao(104,"img",4),Oo(),Oo(),Io(105,"div"),Io(106,"a",18),Ao(107,"img",4),Oo(),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("src",e.vishalImgSrc,ai),Gs(13),Eo("src",e.pranavImgSrc,ai),Gs(13),Eo("src",e.jorgeImgSrc,ai),Gs(13),Eo("src",e.jordanImgSrc,ai),Gs(12),Eo("src",e.noelImgSrc,ai),Gs(12),Eo("src",e.trungImgSrc,ai),Gs(12),Eo("src",e.xinImgSrc,ai),Gs(16),Eo("src",e.rdkitImgSrc,ai),Gs(3),Eo("src",e.pythonImgSrc,ai),Gs(4),Eo("src",e.angularImgSrc,ai),Gs(3),Eo("src",e.epamImgSrc,ai))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),t})(),data:{pageTitle:"contact"}},{path:"**",component:$m}];let dI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tm.forRoot(uI,{relativeLinkResolution:"legacy"})],tm]}),t})();function pI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function fI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function mI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function gI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}const _I=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class yI{constructor(t){this._elementRef=t}}const bI=jb(yI,"primary"),vI=new vt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let wI=(()=>{class t extends bI{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=pg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=pg(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,pg(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eg(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(vo("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,pI,1,9,"circle",1),Co(2,fI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),CI=(()=>{class t extends wI{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,mI,1,9,"circle",1),Co(2,gI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t})(),SI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Hh],Nb]}),t})();function xI(t,e){1&t&&(Io(0,"div",1),Ao(1,"mat-spinner"),Oo())}let kI=(()=>{class t{constructor(t){this.lodadingService=t,this.isLoading=!1}ngOnInit(){this.lodadingService.isLoading.subscribe(t=>{this.isLoading=t})}}return t.\u0275fac=function(e){return new(e||t)(xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(t,e){1&t&&Co(0,xI,2,0,"div",0),2&t&&Eo("ngIf",e.isLoading)},directives:[Ah,CI],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),t})();const EI=["*",[["mat-toolbar-row"]]],TI=["*","mat-toolbar-row"];class II{constructor(t){this._elementRef=t}}const OI=jb(II);let AI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),RI=(()=>{class t extends OI{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,AI,!0),2&t){let t;Kl(t=nc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ao],ngContentSelectors:TI,decls:2,vars:0,template:function(t,e){1&t&&(qo(EI),$o(0),$o(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),DI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function PI(t,e=ag){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new MI(i,e))}class MI{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new LI(t,this.delay,this.scheduler))}}class LI extends f{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,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(LI.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new FI(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Bv.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Bv.createComplete()),this.unsubscribe()}}class FI{constructor(t,e){this.time=t,this.notification=e}}const NI=["mat-menu-item",""],VI=["*"];function jI(t,e){if(1&t){const t=Mo();Io(0,"div",0),No("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)})("click",function(){return Ge(t),Ho().closed.emit("click")})("@transformMenu.start",function(e){return Ge(t),Ho()._onAnimationStart(e)})("@transformMenu.done",function(e){return Ge(t),Ho()._onAnimationDone(e)}),Io(1,"div",1),$o(2),Oo(),Oo()}if(2&t){const t=Ho();Eo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),vo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const BI={transformMenu:o_("transformMenu",[h_("void",c_({opacity:0,transform:"scale(0.8)"})),d_("void => enter",a_("120ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:1,transform:"scale(1)"}))),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))]),fadeInItems:o_("fadeInItems",[h_("showing",c_({opacity:1})),d_("void => *",[c_({opacity:0}),a_("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zI=new vt("MatMenuContent"),HI=new vt("MAT_MENU_PANEL");class UI{}const qI=Bb(Vb(UI));let $I=(()=>{class t extends qI{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new S,this._focused=new S,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new jl,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new S,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Nl,this.close=this.closed,this.panelId="mat-menu-panel-"+YI++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=dg(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=dg(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ig(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:ng(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Qu(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ed(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275dir=se({type:t,contentQueries:function(t,e,n){if(1&t&&(Jl(n,zI,!0),Jl(n,$I,!0),Jl(n,$I,!1)),2&t){let t;Kl(t=nc())&&(e.lazyContent=t.first),Kl(t=nc())&&(e._allItems=t),Kl(t=nc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Ql(dl,!0),2&t){let t;Kl(t=nc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),KI=(()=>{class t extends GI{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Aa([{provide:HI,useExisting:t}]),ao],ngContentSelectors:VI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(qo(),Co(0,jI,3,6,"ng-template"))},directives:[Eh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[BI.transformMenu,BI.fadeInItems]},changeDetection:0}),t})();const ZI=new vt("mat-menu-scroll-strategy"),QI={provide:ZI,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},XI=tg({passive:!0});let JI=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Nl,this.onMenuOpen=this.menuOpened,this.menuClosed=new Nl,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof GI?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,XI),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,XI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof GI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof GI?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Mu(t=>"void"===t.toState),Qu(1),xv(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ox({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return W(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Su(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mu(t=>t!==this._menuItemInstance),Mu(()=>this._menuOpen)):Su(),e)}_handleMousedown(t){Ng(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mu(t=>t===this._menuItemInstance&&!t.disabled),PI(0,Mv)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof GI&&this.menu._isAnimating?this.menu._animationDone.pipe(Qu(1),PI(0,Mv),xv(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Yg(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(Na),xo(bl),xo(ZI),xo(HI,8),xo($I,10),xo(n_,8),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&No("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&vo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),tO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[Nb]}),t})(),eO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[[Hh,Nb,tv,Ox,tO],Yv,Nb,tO]}),t})(),nO=(()=>{class t{constructor(t,e,n,i,s){this.router=n,this.gaService=i,this._document=s,t.addSvgIcon("cancel",e.bypassSecurityTrustResourceUrl("/adme/client/assets/icons/cancel-24px.svg"))}ngOnInit(){this._document.getElementById("appFavicon").setAttribute("href","/adme/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(t=>{t instanceof xd&&this.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}ngOnDestroy(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Ak),xo(yu),xo(Bf),xo(Um),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(t,e){if(1&t&&(Ao(0,"adme-loading"),Io(1,"mat-toolbar",0),Io(2,"a",1),ua(3,"ADME @ NCATS"),Oo(),Io(4,"div",2),Io(5,"a",3),ua(6,"Predict"),Oo(),Io(7,"a",4),ua(8,"Models"),Oo(),Io(9,"mat-menu",null,5),Io(11,"button",6),ua(12,"RLM"),Oo(),Io(13,"button",7),ua(14,"CYP450"),Oo(),Oo(),Io(15,"a",8),ua(16,"Contact"),Oo(),Oo(),Ao(17,"span",9),Oo(),Ao(18,"router-outlet")),2&t){const t=So(10);Gs(7),Eo("matMenuTriggerFor",t)}},directives:[kI,RI,Hf,JI,KI,$I,zf,qf],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),t})(),iO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,qw]]}),t})(),sO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb],Nb]}),t})(),rO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})(),oO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[$b,tv,Nb,nv,Hh],$b,Nb,nv,rO]}),t})();function aO(t){return()=>t.load()}let lO=(()=>{class t{}return t.\u0275mod=ne({type:t,bootstrap:[nO]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Hm,{provide:oc,useFactory:aO,deps:[Hm],multi:!0}],imports:[[Cu,dI,Ob,iO,xT,yE,zm,qw,DI,mS,gS,ZS,Qx,Nw,Sk,sO,SI,oO,nE,jT,pk,Bk,eO]]}),t})();(function(){if(Fn)throw new Error("Cannot enable prod mode after platform setup.");Ln=!1})(),vu().bootstrapModule(lO).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/server/client/main-es2015.e043658e91f3fa1d6dea.js b/server/client/main-es2015.e043658e91f3fa1d6dea.js new file mode 100644 index 0000000..57dc38a --- /dev/null +++ b/server/client/main-es2015.e043658e91f3fa1d6dea.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.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}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.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(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(){}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:((e=t)?1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)}:_)(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class E extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const T=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return T(t);if(R(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function P(t,e,n,i,s=new E(t,n,i)){if(!s.closed)return e instanceof y?e.subscribe(s):D(e)(s)}class M extends f{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function V(t,e){return new y(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(R(t))return function(t,e){return new y(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return V(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[O](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(D(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends M{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 U(t){return t}function q(t=Number.POSITIVE_INFINITY){return B(U,t)}function $(t,e){return e?V(t,e):new y(T(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:q(e)($(t,n))}function Y(){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 i=new K(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class K extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const Q=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class X extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function J(){return new S}function tt(){return t=>{return Y()((e=J,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Q);return i.source=t,i.subjectFactory=n,i})(t));var e}}function et(t){return{toString:t}.toString()}function nt(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");function at(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(at).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 lt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ht(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function pt(t){return ft(t,gt)||ft(t,yt)}function ft(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(bt))?t[_t]:null}const gt=ct({\u0275prov:ct}),_t=ct({\u0275inj:ct}),yt=ct({ngInjectableDef:ct}),bt=ct({ngInjectorDef:ct});class vt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const wt=new vt("AnalyzeForEntryComponents");var Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({});const St="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,Tt=St||Et||xt||kt,It=ct({__forward_ref__:ct});function Ot(t){return t.__forward_ref__=Ot,t.toString=function(){return at(this())},t}function At(t){return Rt(t)?t():t}function Rt(t){return"function"==typeof t&&t.hasOwnProperty(It)&&t.__forward_ref__===Ot}const Dt=Function;function Pt(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Mt(t,e):e(t))}function Lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ft(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Nt(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function jt(t,e){const n=Bt(t,e);if(n>=0)return t[1|n]}function Bt(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var zt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Ht={},Ut=[],qt=ct({\u0275cmp:ct}),$t=ct({\u0275dir:ct}),Wt=ct({\u0275pipe:ct}),Yt=ct({\u0275mod:ct}),Gt=ct({\u0275loc:ct}),Kt=ct({\u0275fac:ct}),Zt=ct({__NG_ELEMENT_ID__:ct});let Qt=0;function Xt(t){return et(()=>{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===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||zt.Emulated,id:"c",styles:t.styles||Ut,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Qt++,n.inputs=ie(t.inputs,e),n.outputs=ie(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Jt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(te):null,n})}function Jt(t){return oe(t)||function(t){return t[$t]||null}(t)}function te(t){return function(t){return t[Wt]||null}(t)}const ee={};function ne(t){const e={type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{ee[t.id]=t.type}),e}function ie(t,e){if(null==t)return Ht;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const se=Xt;function re(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function oe(t){return t[qt]||null}function ae(t,e){const n=t[Yt]||null;if(!n&&!0===e)throw new Error(`Type ${at(t)} does not have '\u0275mod' property.`);return n}function le(t){return"string"==typeof t?t:null==t?"":""+t}function ce(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():le(t)}var he=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let ue;function de(t){const e=ue;return ue=t,e}function pe(t,e,n){const i=pt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&he.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${at(t)}]`)}const fe={},me=/\n/gm,ge=ct({provide:String,useValue:ct});let _e=void 0;function ye(t){const e=_e;return _e=t,e}function be(t,e=he.Default){if(void 0===_e)throw new Error("inject() must be called from an injection context");return null===_e?pe(t,void 0,e):_e.get(t,e&he.Optional?null:void 0,e)}function ve(t,e=he.Default){return(ue||be)(At(t),e)}const we=ve;function Ce(t){const e=[];for(let n=0;nvoid 0!==Se?Se:"undefined"!=typeof document?document:void 0};function De(t){for(;Array.isArray(t);)t=t[0];return t}function Pe(t,e){return De(e[t])}function Me(t,e){return De(e[t.index])}function Le(t,e){return t.data[e]}function Fe(t,e){return t[e]}function Ne(t,e){const n=e[t];return xe(n)?n:n[0]}function Ve(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function je(t){return 4==(4&t[2])}function Be(t){return 128==(128&t[2])}function ze(t,e){return null==e?null:t[e]}function He(t){t[18]=0}function Ue(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const qe={lFrame:mn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $e(){return qe.bindingsEnabled}function We(){return qe.lFrame.lView}function Ye(){return qe.lFrame.tView}function Ge(t){qe.lFrame.contextLView=t}function Ke(){let t=Ze();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ze(){return qe.lFrame.currentTNode}function Qe(t,e){const n=qe.lFrame;n.currentTNode=t,n.isParent=e}function Xe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function tn(){return qe.isInCheckNoChangesMode}function en(t){qe.isInCheckNoChangesMode=t}function nn(){const t=qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sn(){return qe.lFrame.bindingIndex++}function rn(t){const e=qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function on(t,e){const n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=t,an(e)}function an(t){qe.lFrame.currentDirectiveIndex=t}function ln(t){const e=qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function cn(){return qe.lFrame.currentQueryIndex}function hn(t){qe.lFrame.currentQueryIndex=t}function un(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function dn(t,e,n){if(n&he.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&he.Host||(i=un(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=qe.lFrame=fn();return i.currentTNode=e,i.lView=t,!0}function pn(t){const e=fn(),n=t[1];qe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function fn(){const t=qe.lFrame,e=null===t?null:t.child;return null===e?mn(t):e}function mn(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 gn(){const t=qe.lFrame;return qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const _n=gn;function yn(){const t=gn();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 bn(){return qe.lFrame.selectedIndex}function vn(t){qe.lFrame.selectedIndex=t}function wn(){const t=qe.lFrame;return Le(t.tView,t.selectedIndex)}function Cn(){qe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){qe.lFrame.currentNamespace=null}let xn;function kn(t){var e;return(null===(e=function(){if(void 0===xn&&(xn=null,Tt.trustedTypes))try{xn=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return xn}())||void 0===e?void 0:e.createHTML(t))||t}class En{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Tn extends En{getTypeName(){return"HTML"}}class In extends En{getTypeName(){return"Style"}}class On extends En{getTypeName(){return"Script"}}class An extends En{getTypeName(){return"URL"}}class Rn extends En{getTypeName(){return"ResourceURL"}}function Dn(t){return t instanceof En?t.changingThisBreaksApplicationSecurity:t}function Pn(t,e){const n=Mn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Mn(t){return t instanceof En&&t.getTypeName()||null}let Ln=!0,Fn=!1;function Nn(){return Fn=!0,Ln}class Vn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(kn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class jn{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=kn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=kn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Hn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ii(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!$n.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ii(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 ei=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ni=/([^\#-~ |!])/g;function ii(t){return t.replace(/&/g,"&").replace(ei,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ni,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let si;function ri(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var oi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ai(t){const e=ci();return e?e.sanitize(oi.URL,t)||"":Pn(t,"URL")?Dn(t):Hn(le(t))}function li(t){const e=ci();if(e)return e.sanitize(oi.RESOURCE_URL,t)||"";if(Pn(t,"ResourceURL"))return Dn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function ci(){const t=We();return t&&t[12]}function hi(t,e){return t.hasOwnProperty(Kt)?t[Kt]:null}class ui extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function di(t,e){const n=e?" in "+e:"";throw new ui("201",`No provider for ${ce(t)} found${n}`)}class pi{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fi(){return mi}function mi(t){return t.type.prototype.ngOnChanges&&(t.setInput=_i),gi}function gi(){const t=yi(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Ht)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _i(t,e,n,i){const s=yi(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ht,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new pi(l&&l.currentValue,e,o===Ht),t[i]=e}function yi(t){return t.__ngSimpleChanges__||null}function bi(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}fi.ngInherit=!0;class ki{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ei(t,e,n){const i=Ae(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Mi=!0;function Li(t){const e=Mi;return Mi=t,e}let Fi=0;function Ni(t,e){const n=ji(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Vi(i.data,t),Vi(e,null),Vi(i.blueprint,null));const s=Bi(t,e),r=t.injectorIndex;if(Ri(s)){const t=Di(s),n=Pi(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Vi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ji(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Bi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function zi(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=Fi++);const s=255&i,r=1<=0?255&e:Wi:e}(n);if("function"==typeof r){if(!dn(e,t,i))return i&he.Host?Hi(s,n,i):Ui(e,n,i,s);try{const t=r();if(null!=t||i&he.Optional)return t;di(n)}finally{_n()}}else if("number"==typeof r){let s=null,o=ji(t,e),a=-1,l=i&he.Host?e[16][6]:null;for((-1===o||i&he.SkipSelf)&&(a=-1===o?Bi(t,e):e[o+8],-1!==a&&Qi(i,!1)?(s=e[1],o=Di(a),e=Pi(a,e)):o=-1);-1!==o;){const t=e[1];if(Zi(r,o,t.data)){const t=Yi(o,e,n,s,i,l);if(t!==$i)return t}a=e[o+8],-1!==a&&Qi(i,e[1].data[o+8]===l)&&Zi(r,o,e)?(s=t,o=Di(a),e=Pi(a,e)):o=-1}}}return Ui(e,n,i,s)}const $i={};function Wi(){return new Xi(Ke(),We())}function Yi(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Gi(a,o,n,null==i?Te(a)&&Mi:i!=o&&0!=(3&a.type),s&he.Host&&r===a);return null!==l?Ki(e,o,l,a):$i}function Gi(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&&Oe(t)&&t.type===n)return l}return null}function Ki(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof ki){const o=s;o.resolving&&function(t,e){throw new ui("200","Circular dependency in DI detected for "+t)}(ce(r[n]));const a=Li(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?de(o.injectImpl):null;dn(t,i,he.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=mi(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&de(l),Li(a),o.resolving=!1,_n()}}return s}function Zi(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const t=Ji(At(e));return t?t():null};let n=hi(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function ts(t){return et(()=>{const e=t.prototype.constructor,n=e[Kt]||Ji(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Kt]||Ji(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function es(t){return t.ngDebugContext}function ns(t){return t.ngOriginalError}function is(t,...e){t.error(...e)}class ss{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||is}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?es(t)?es(t):this._findContext(ns(t)):null}_findOriginalError(t){let e=ns(t);for(;e&&ns(e);)e=ns(e);return e}}function rs(t,e){t.__ngContext__=e}const os=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function as(t){return{name:"body",target:t.ownerDocument.body}}function ls(t){return t instanceof Function?t():t}var cs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function hs(t,e){return(void 0)(t,e)}function us(t){const e=t[3];return ke(e)?e[3]:e}function ds(t){return fs(t[13])}function ps(t){return fs(t[4])}function fs(t){for(;null!==t&&!ke(t);)t=t[4];return t}function ms(t,e,n,i,s){if(null!=i){let r,o=!1;ke(i)?r=i:xe(i)&&(o=!0,i=i[0]);const a=De(i);0===t&&null!==n?null==s?Ss(e,n,a):Cs(e,n,a,s||null,!0):1===t&&null!==n?Cs(e,n,a,s||null,!0):2===t?function(t,e,n){const i=ks(t,e);i&&function(t,e,n,i){Ae(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==De(n)&&ms(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const o=Ft(t,10+e);Ds(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function bs(t,e){if(!(256&e[2])){const n=e[11];Ae(n)&&n.destroyNode&&Ds(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return vs(t[1],t);for(;e;){let n=null;if(xe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)xe(e)&&vs(e[1],e),e=e[3];null===e&&(e=t),xe(e)&&vs(e[1],e),n=e&&e[4]}e=n}}(e)}}function vs(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 i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&Ae(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ke(e[3])){n!==e[3]&&_s(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function ws(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===zt.None||e===zt.Emulated)return null}return Me(i,n)}(t,e.parent,n)}function Cs(t,e,n,i,s){Ae(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function Ss(t,e,n){Ae(t)?t.appendChild(e,n):e.appendChild(n)}function xs(t,e,n,i,s){null!==i?Cs(t,e,n,i,s):Ss(t,e,n)}function ks(t,e){return Ae(t)?t.parentNode(e):e.parentNode}function Es(t,e,n){return Ts(t,e,n)}let Ts=function(t,e,n){return 40&t.type?Me(t,n):null};function Is(t,e,n,i){const s=ws(t,i,e),r=e[11],o=Es(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;ar?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Fs(e,c,0)||2&i&&c!==t){if(zs(i))return!1;o=!0}}}}else{if(!o&&!zs(i)&&!zs(l))return!1;if(o&&zs(l))continue;o=!1,i=l|1&i}}return zs(i)||o}function zs(t){return 0==(1&t)}function Hs(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||zs(o)||(e+=$s(r,s),s=""),i=o,r=r||!zs(i);n++}return""!==s&&(e+=$s(r,s)),e}const Ys={};function Gs(t){Ks(Ye(),We(),bn()+t,tn())}function Ks(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&vi(e,i,n)}else{const i=t.preOrderHooks;null!==i&&wi(e,i,0,n)}vn(n)}function Zs(t,e){return t<<17|e<<2}function Qs(t){return t>>17&32767}function Xs(t){return 2|t}function Js(t){return(131068&t)>>2}function tr(t,e){return-131069&t|e<<2}function er(t){return 1|t}function nr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Ks(t,e,20,tn()),n(i,s)}finally{vn(r)}}function hr(t,e,n){if(Ee(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function vr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function wr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Cr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Ar(n)}}function Ar(t){for(let n=ds(t);null!==n;n=ps(n))for(let t=10;t0&&Ar(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Ar(i)}}function Rr(t,e){const n=Ne(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Vr(t){return t[7]||(t[7]=[])}function jr(t,e,n){return(null===t||Oe(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Br(t,e){const n=t[9],i=n?n.get(ss,null):null;i&&i.handleError(e)}function zr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),Mt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ur,eo(void 0,this));const r=this.records.get($r);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:at(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=fe,n=he.Default){this.assertNotDestroyed();const i=ye(this);try{if(!(n&he.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof vt)&&pt(t);e=n&&this.injectableDefInScope(n)?eo(Jr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&he.Self?Zr():this.parent).get(t,e=n&he.Optional&&e===fe?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(at(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=at(e);if(Array.isArray(e))s=e.map(at).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):at(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(me,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{ye(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(at(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=At(t)))return!1;let i=mt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=mt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{Mt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,eo(i.factory,Wr));const a=i.providers;if(null!=a&&!o){const e=t;Mt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=io(t=At(t))?t:At(t&&t.provide);const s=function(t,e,n){return no(t)?eo(void 0,t.useValue):eo(to(t),Wr)}(t);if(io(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=eo(void 0,Wr,!0),e.factory=()=>Ce(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Wr&&(e.value=Yr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Jr(t){const e=pt(t),n=null!==e?e.factory:hi(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof vt)throw new Error(`Token ${at(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Nt(e,"?");throw new Error(`Can't resolve all parameters for ${at(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[yt]);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 to(t,e,n){let i=void 0;if(io(t)){const e=At(t);return hi(e)||Jr(e)}if(no(t))i=()=>At(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Ce(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ve(At(t.useExisting));else{const e=At(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return hi(e)||Jr(e);i=()=>new e(...Ce(t.deps))}var s;return i}function eo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function no(t){return null!==t&&"object"==typeof t&&ge in t}function io(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,i){const s=Qr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ro=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=fe,t.NULL=new qr,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>ve(Ur)}),t.__NG_ELEMENT_ID__=-1,t})();function oo(t,e){bi(Ve(t)[1],Ke())}function ao(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=lo(t.inputs),e.declaredInputs=lo(t.declaredInputs),e.outputs=lo(t.outputs);const n=s.hostBindings;n&&uo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&co(t,r),o&&ho(t,o),ht(t.inputs,s.inputs),ht(t.declaredInputs,s.declaredInputs),ht(t.outputs,s.outputs),Oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Oi(s.hostAttrs,n=Oi(n,s.hostAttrs))}}(i)}function lo(t){return t===Ht?{}:t===Ut?[]:t}function co(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ho(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function uo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let po=null;function fo(){if(!po){const t=Tt.Symbol;if(t&&t.iterator)po=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(De(t[i.index])).target:i.index;if(Ae(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=zo(i,e,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=zo(i,e,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,qe.lFrame.contextLView))[8]}(t)}function Uo(t,e){let n=null;const i=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 s=0;s=0}const Ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zo(t){return t.substring(Ko.key,Ko.keyEnd)}function Qo(t,e){const n=Ko.textEnd;return n===e?-1:(e=Ko.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ko.key=e,n),Xo(t,e,n))}function Xo(t,e,n){for(;e=0;n=Qo(e,n))Vt(t,Zo(e),!0)}function na(t,e,n,i){const s=We(),r=Ye(),o=rn(2);r.firstUpdatePass&&sa(r,t,o,i),e!==Ys&&bo(s,o,e)&&aa(r,r.data[bn()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=at(Dn(t)))),t}(e,n),i,o)}function ia(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[bn()],o=ia(t,n);ha(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ln(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=oa(n=ra(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ra(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Js(i))return t[Qs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ra(null,t,e,n[1],i),n=oa(n,e.attrs,i),function(t,e,n,i){t[Qs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Qs(t[a+1]);t[i+1]=Zs(e,a),0!==e&&(t[e+1]=tr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Zs(a,0),0!==a&&(t[a+1]=tr(t[a+1],i)),a=i;else t[i+1]=Zs(l,0),0===a?a=i:t[l+1]=tr(t[l+1],i),l=i;h&&(t[i+1]=Xs(t[i+1])),Yo(t,c,i,!0),Yo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Bt(r,e)>=0&&(n[i+1]=er(n[i+1]))}(e,c,t,i,r),o=Zs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function ra(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===Ys&&(h=c?Wo:void 0);let u=c?jt(h,i):l===i?h:void 0;if(r&&!ca(u)&&(u=jt(e,i)),ca(u)&&(a=u,o))return a;const d=t[s+1];s=o?Qs(d):Js(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=jt(t,i))}return a}function ca(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function ua(t,e=""){const n=We(),i=Ye(),s=t+20,r=i.firstCreatePass?sr(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Ae(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Is(i,n,o,r),Qe(r,!1)}function da(t){return pa("",t,""),da}function pa(t,e,n){const i=We(),s=wo(i,t,e,n);return s!==Ys&&function(t,e,n){const i=Pe(e,t);!function(t,e,n){Ae(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,bn(),s),pa}function fa(t,e,n){const i=We();return bo(i,sn(),e)&&_r(Ye(),wn(),i,t,e,i[11],n,!0),fa}function ma(t,e,n){const i=We();if(bo(i,sn(),e)){const s=Ye(),r=wn();_r(s,r,i,t,e,jr(ln(s.data),r,i),n,!0)}return ma}const ga=void 0;var _a=["en",[["a","p"],["AM","PM"],ga],[["AM","PM"],ga,ga],[["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"]],ga,[["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"]],ga,[["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}",ga,"{1} 'at' {0}",ga],[".",",",";","%","+","-","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 ya={};function ba(t){return t in ya||(ya[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),ya[t]}var va=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let wa="en-US";function Ca(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(wa=t.toLowerCase().replace(/_/g,"-"))}function Sa(t,e,n,i,s){if(t=At(t),Array.isArray(t))for(let r=0;r>20;if(io(t)||!t.multi){const i=new ki(l,s,xo),p=Ea(a,e,s?h:h+d,u);-1===p?(zi(Ni(c,o),r,a),xa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ea(a,e,h+d,u),f=Ea(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){zi(Ni(c,o),r,a);const h=function(t,e,n,i,s){const r=new ki(t,n,xo);return r.multi=[],r.index=e,r.componentProviders=0,ka(r,s,i&&!n),r}(s?Ia:Ta,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),xa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else xa(r,t,p>-1?p:f,ka(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function xa(t,e,n,i){const s=io(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ka(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ea(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Ye();if(i.firstCreatePass){const s=Oe(t);Sa(n,i.data,i.blueprint,s,!0),Sa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ra{}class Da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${at(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Pa=(()=>{class t{}return t.NULL=new Da,t})();function Ma(...t){}function La(t,e){return new Na(Me(t,e))}const Fa=function(){return La(Ke(),We())};let Na=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Fa,t})();class Va{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ba(),t})();const Ba=function(){const t=We(),e=Ne(Ke().index,t);return function(t){return t[11]}(xe(e)?e:t)};let za=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class Ha{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ua=new Ha("11.0.2");class qa{constructor(){}supports(t){return go(t)}create(t){return new Wa(t)}}const $a=(t,e)=>e;class Wa{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||$a}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;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,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Ya(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ka),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 Ka),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 Ya{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 Ga{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 Ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ga,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 Za(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ja(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 Ja{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let tl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new qa])}),t})(),el=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}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=ut({token:t,providedIn:"root",factory:()=>new t([new Qa])}),t})();function nl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(De(r)),ke(r))for(let t=10;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}bs(this._lView[1],this._lView)}onDestroy(t){mr(this._lView[1],this._lView,null,t)}markForCheck(){Pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){en(!0);try{Mr(t,e,n)}finally{en(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ds(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class sl extends il{constructor(t){super(t),this._view=t}detectChanges(){Lr(this._view)}checkNoChanges(){!function(t){en(!0);try{Lr(t)}finally{en(!1)}}(this._view)}get context(){return null}}const rl=al;let ol=(()=>{class t{}return t.__NG_ELEMENT_ID__=rl,t.__ChangeDetectorRef__=!0,t})();function al(t=!1){return function(t,e,n){if(!n&&Te(t)){const n=Ne(t.index,e);return new il(n,n)}return 47&t.type?new il(e[16],e):null}(Ke(),We(),t)}const ll=[new Qa],cl=new tl([new qa]),hl=new el(ll),ul=function(){return ml(Ke(),We())};let dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=ul,t})();const pl=dl,fl=class extends pl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ir(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),or(e,n,t),new il(n)}};function ml(t,e){return 4&t.type?new fl(e,t,La(t,e)):null}class gl{}class _l{}const yl=function(){return xl(Ke(),We())};let bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=yl,t})();const vl=bl,wl=class extends vl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new Xi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bi(this._hostTNode,this._hostLView);if(Ri(t)){const e=Pi(t,this._hostLView),n=Di(t);return new Xi(e[1].data[n+8],e)}return new Xi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Cl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(gl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new wl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),ios});class Ol extends Ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Tl(this.componentDef.inputs)}get outputs(){return Tl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,kl,s);return r!==kl||i===kl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Va,Re),o=s.get(za,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ae(t))return t.selectRootElement(e,n===zt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):gs(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:os,clean:Nr,playerHandler:null,flags:0},d=fr(0,null,null,1,0,null,null,null,null,null),p=ir(null,d,u,h,null,null,r,a,o,s);let f,m;pn(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=sr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Hr(a,l,!0),null!==t&&(Ei(s,t,l),null!==a.classes&&Ls(s,t,a.classes),null!==a.styles&&Ms(s,t,a.styles)));const c=i.createRenderer(t,e),h=ir(n,pr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(zi(Ni(a,n),o,e.type),wr(o,a),Sr(a,n.length,1)),Dr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Ei(a,c,["ng-version",Ua.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Ls(a,c,e.join(" "))}if(m=Le(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Ke();e.contentQueries(1,o,t.directiveStart)}const a=Ke();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(vn(a.index),br(n[1],a,0,a.directiveStart,a.directiveEnd,e),vr(e,o)),o}(t,this.componentDef,p,u,[oo]),or(d,p,null)}finally{yn()}return new Al(this.componentType,f,La(m,p),p,m)}}class Al extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new sl(i),this.componentType=t}get injector(){return new Xi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Rl=new Map;class Dl extends gl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new El(this);const n=ae(t),i=t[Gt]||null;i&&Ca(i),this._bootstrapComponents=ls(n.bootstrap),this._r3Injector=Qr(t,e,[{provide:gl,useValue:this},{provide:Pa,useValue:this.componentFactoryResolver}],at(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ro.THROW_IF_NOT_FOUND,n=he.Default){return t===ro||t===gl||t===Ur?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 Pl extends _l{constructor(t){super(),this.moduleType=t,null!==ae(t)&&function(t){const e=new Set;!function t(n){const i=ae(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${at(e)} vs ${at(e.name)}`)}(s,Rl.get(s),n),Rl.set(s,n));const r=ls(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Dl(this.moduleType,t)}}function Ml(t,e,n){const i=nn()+t,s=We();return s[i]===Ys?yo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function Ll(t,e){const n=t[e];return n===Ys?void 0:n}function Fl(t,e,n,i,s,r){const o=e+n;return bo(t,o,s)?yo(t,o+1,r?i.call(r,s):i(s)):Ll(t,o+1)}const Nl=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function Vl(){return this._results[fo()]()}class jl{constructor(){this.dirty=!0,this._results=[],this.changes=new Nl,this.length=0;const t=fo(),e=jl.prototype;e[t]||(e[t]=Vl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=Pt(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Bl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Bl(this.queryList)}setDirty(){this.queryList.setDirty()}}class zl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Ma,this.reject=Ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ve(oc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lc=new vt("AppId"),cc={provide:lc,useFactory:function(){return`${hc()}${hc()}${hc()}`},deps:[]};function hc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uc=new vt("Platform Initializer"),dc=new vt("Platform ID"),pc=new vt("appBootstrapListener");let fc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const mc=new vt("LocaleId"),gc=new vt("DefaultCurrencyCode");class _c{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const yc=function(t){return new Pl(t)},bc=yc,vc=function(t){return Promise.resolve(yc(t))},wc=function(t){const e=yc(t),n=ls(ae(t).declarations).reduce((t,e)=>{const n=oe(e);return n&&t.push(new Ol(n)),t},[]);return new _c(e,n)},Cc=wc,Sc=function(t){return Promise.resolve(wc(t))};let xc=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=vc,this.compileModuleAndAllComponentsSync=Cc,this.compileModuleAndAllComponentsAsync=Sc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kc=(()=>Promise.resolve(0))();function Ec(t){"undefined"==typeof Zone?kc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nl(!1),this.onMicrotaskEmpty=new Nl(!1),this.onStable=new Nl(!1),this.onError=new Nl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Tt.requestAnimationFrame,e=Tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Rc(t),Ac(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Rc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Dc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Pc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Dc(t),e.invoke(i,s,r,o,a)}finally{Pc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Rc(t),Ac(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.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,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Oc,Ic,Ic);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ic(){}const Oc={};function Ac(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 Rc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Dc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Pc(t){t._nesting--,Ac(t)}class Mc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nl,this.onMicrotaskEmpty=new Nl,this.onStable=new Nl,this.onError=new Nl}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,i){return t.apply(e,n)}}let Lc=(()=>{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:()=>{Tc.assertNotInAngularZone(),Ec(()=>{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())Ec(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Fc=(()=>{class t{constructor(){this._applications=new Map,jc.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 jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Nc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Vc,jc=new Nc;const Bc=new vt("AllowMultipleToken");class zc{constructor(t,e){this.name=t,this.token=e}}function Hc(t,e,n=[]){const i="Platform: "+e,s=new vt(i);return(e=[])=>{let r=Uc();if(!r||r.injector.get(Bc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:$r,useValue:"platform"});!function(t){if(Vc&&!Vc.destroyed&&!Vc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vc=t.get(qc);const e=t.get(uc,null);e&&e.forEach(t=>t())}(ro.create({providers:t,name:i}))}return function(t){const e=Uc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Uc(){return Vc&&!Vc.destroyed?Vc:null}let qc=(()=>{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 Mc:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:Nn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Tc,useValue:n}];return n.run(()=>{const e=ro.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(ss,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Yc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Lo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(ac);return t.runInitializers(),t.donePromise.then(()=>(Ca(s.injector.get(mc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=$c({},e);return function(t,e,n){const i=new Pl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${at(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)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function $c(t,e){return Array.isArray(e)?e.reduce($c,t):Object.assign(Object.assign({},t),e)}let Wc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Nn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),Ec(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(tt()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(gl),s=n.create(ro.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Lc,null);return r&&s.injector.get(Fc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Nn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Yc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Yc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(fc),ve(ro),ve(ss),ve(Pa),ve(ac))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Yc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Gc{}class Kc{}const Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Xc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Xc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(ve(xc),ve(Kc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Jc=Hc(null,"core",[{provide:dc,useValue:"unknown"},{provide:qc,deps:[ro]},{provide:Fc,deps:[]},{provide:fc,deps:[]}]),th=[{provide:Wc,useClass:Wc,deps:[Tc,fc,ro,ss,Pa,ac]},{provide:Il,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new st,oc]]},{provide:xc,useClass:xc,deps:[]},cc,{provide:tl,useFactory:function(){return cl},deps:[]},{provide:el,useFactory:function(){return hl},deps:[]},{provide:mc,useFactory:function(t){return Ca(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(mc),new st,new ot]]},{provide:gc,useValue:"USD"}];let eh=(()=>{class t{constructor(t){}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Wc))},providers:th}),t})(),nh=null;function ih(){return nh}const sh=new vt("DocumentToken");let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:oh,token:t,providedIn:"platform"}),t})();function oh(){return ve(lh)}const ah=new vt("Location Initialized");let lh=(()=>{class t extends rh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ih().getLocation(),this._history=ih().getHistory()}getBaseHrefFromDOM(){return ih().getBaseHref(this._doc)}onPopState(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:hh,token:t,providedIn:"platform"}),t})();function ch(){return!!window.history.pushState}function hh(){return new lh(ve(sh))}function uh(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 dh(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 ph(t){return t&&"?"!==t[0]?"?"+t:t}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:mh,token:t,providedIn:"root"}),t})();function mh(t){const e=ve(sh).location;return new _h(ve(rh),e&&e.origin||"")}const gh=new vt("appBaseHref");let _h=(()=>{class t extends fh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return uh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t extends fh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=uh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+ph(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(ve(rh),ve(gh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bh=(()=>{class t{constructor(t,e){this._subject=new Nl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=dh(wh(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+ph(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(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+ph(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(ve(fh),ve(rh))},t.normalizeQueryParams=ph,t.joinWithSlash=uh,t.stripTrailingSlash=dh,t.\u0275prov=ut({factory:vh,token:t,providedIn:"root"}),t})();function vh(){return new bh(ve(fh),ve(rh))}function wh(t){return t.replace(/\/index.html$/,"")}var Ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Sh{}let xh=(()=>{class t extends Sh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ba(e);if(n)return n;const i=e.split("-")[0];if(n=ba(i),n)return n;if("en"===i)return _a;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[va.PluralCase]}(e||this.locale)(t)){case Ch.Zero:return"zero";case Ch.One:return"one";case Ch.Two:return"two";case Ch.Few:return"few";case Ch.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(ve(mc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function kh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let Eh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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&&(go(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 "+at(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)(xo(tl),xo(el),xo(Na),xo(ja))},t.\u0275dir=se({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Th{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 Ih=(()=>{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){Nn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Th(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Oh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Oh(t,s);e.push(r)}});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)(xo(bl),xo(dl),xo(tl))},t.\u0275dir=se({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Oh{constructor(t,e){this.record=t,this.view=e}}let Ah=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Rh,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){Dh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Dh("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)(xo(bl),xo(dl))},t.\u0275dir=se({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Rh{constructor(){this.$implicit=null,this.ngIf=null}}function Dh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${at(e)}'.`)}class Ph{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 Mh=(()=>{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 Ph(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Fh=(()=>{class t{constructor(t,e,n){n._addDefault(new Ph(t,e))}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(dl),xo(Mh,1))},t.\u0275dir=se({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class Nh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Vh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const jh=new Vh,Bh=new Nh;let zh=(()=>{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(Lo(e))return jh;if(Fo(e))return Bh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${at(t)}'`)}_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)(function(t=he.Default){const e=al(!0);if(null!=e||t&he.Optional)return e;di("ChangeDetectorRef")}())},t.\u0275pipe=re({name:"async",type:t,pure:!1}),t})(),Hh=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:Sh,useClass:xh}]}),t})();function Uh(t){return"browser"===t}let qh=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new $h(ve(sh),window,ve(ss))}),t})();class $h{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Wh(this.window.history)||Wh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Wh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Yh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Yh,nh||(nh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Kh||(Kh=document.querySelector("base"),Kh)?Kh.getAttribute("href"):null;return null==e?null:(n=e,Gh||(Gh=document.createElement("a")),Gh.setAttribute("href",n),"/"===Gh.pathname.charAt(0)?Gh.pathname:"/"+Gh.pathname);var n}resetBaseElement(){Kh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return kh(document.cookie,t)}}let Gh,Kh=null;const Zh=new vt("TRANSITION_ID"),Qh=[{provide:oc,useFactory:function(t,e,n){return()=>{n.get(ac).donePromise.then(()=>{const n=ih();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Zh,sh,ro],multi:!0}];class Xh{static init(){var t;t=new Xh,jc=t}addToWindow(t){Tt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Jh=new vt("EventManagerPlugins");let tu=(()=>{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 i=0;i{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=ut({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t extends nu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ih().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const su={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/"},ru=/%COMP%/g;function ou(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let lu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new cu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case zt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new hu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case zt.ShadowDom:return new uu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ou(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)(ve(tu),ve(iu),ve(lc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class cu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(su[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,i){if(i){e=i+":"+e;const s=su[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=su[n];i?t.removeAttributeNS(i,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,i){i&(cs.DashCase|cs.Important)?t.style.setProperty(e,n,i&cs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&cs.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,au(n)):this.eventManager.addEventListener(t,e,au(n))}}class hu extends cu{constructor(t,e,n,i){super(t),this.component=n;const s=ou(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(ru,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ru,i+"-"+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 uu extends cu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ou(i.id,i.styles,[]);for(let r=0;r{class t extends eu{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)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const pu=["alt","control","meta","shift"],fu={"\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"},mu={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"},gu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let _u=(()=>{class t extends eu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ih().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(pu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&mu.hasOwnProperty(e)&&(e=mu[e]))}return fu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),pu.forEach(i=>{i!=n&&(0,gu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return ve(bu)},token:t,providedIn:"root"}),t})(),bu=(()=>{class t extends yu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case oi.NONE:return e;case oi.HTML:return Pn(e,"HTML")?Dn(e):function(t,e){let n=null;try{si=si||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(kn(""),"text/html")}catch(t){return!1}}()?new Vn:new jn(t)}(t);let i=e?String(e):"";n=si.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=si.getInertBodyElement(i)}while(i!==r);const o=new ti,a=o.sanitizeChildren(ri(n)||n);return Nn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=ri(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case oi.STYLE:return Pn(e,"Style")?Dn(e):e;case oi.SCRIPT:if(Pn(e,"Script"))return Dn(e);throw new Error("unsafe value used in a script context");case oi.URL:return Mn(e),Pn(e,"URL")?Dn(e):Hn(String(e));case oi.RESOURCE_URL:if(Pn(e,"ResourceURL"))return Dn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Tn(t)}bypassSecurityTrustStyle(t){return new In(t)}bypassSecurityTrustScript(t){return new On(t)}bypassSecurityTrustUrl(t){return new An(t)}bypassSecurityTrustResourceUrl(t){return new Rn(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh))},t.\u0275prov=ut({factory:function(){return t=ve(Ur),new bu(t.get(sh));var t},token:t,providedIn:"root"}),t})();const vu=Hc(Jc,"browser",[{provide:dc,useValue:"browser"},{provide:uc,useValue:function(){Yh.makeCurrent(),Xh.init()},multi:!0},{provide:sh,useFactory:function(){return function(t){Se=t}(document),document},deps:[]}]),wu=[[],{provide:$r,useValue:"root"},{provide:ss,useFactory:function(){return new ss},deps:[]},{provide:Jh,useClass:du,multi:!0,deps:[sh,Tc,dc]},{provide:Jh,useClass:_u,multi:!0,deps:[sh]},[],{provide:lu,useClass:lu,deps:[tu,iu,lc]},{provide:Va,useExisting:lu},{provide:nu,useExisting:iu},{provide:iu,useClass:iu,deps:[sh]},{provide:Lc,useClass:Lc,deps:[Tc]},{provide:tu,useClass:tu,deps:[Jh,Tc]},[]];let Cu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:lc,useValue:e.appId},{provide:Zh,useExisting:lc},Qh]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(t,12))},providers:wu,imports:[Hh,eh]}),t})();function Su(...t){let e=t[t.length-1];return k(e)?(t.pop(),V(t,e)):$(t)}"undefined"!=typeof window&&window;class xu extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}const ku={};function Eu(...t){let e=null,n=null;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Tu(e))}class Tu{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Iu(t,this.resultSelector))}}class Iu extends M{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(ku),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{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Au=new y(t=>t.complete());function Ru(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Au}function Du(t){return new y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):Ru()).subscribe(e)})}function Pu(){return q(1)}function Mu(t,e){return function(n){return n.lift(new Lu(t,e))}}class Lu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fu(t,this.predicate,this.thisArg))}}class Fu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Nu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Vu(t){return function(e){return 0===t?Ru():e.lift(new ju(t))}}class ju{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Bu(t,this.total))}}class Bu extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new Hu(t))}class Hu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Uu(t,this.errorFactory))}}class Uu extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function qu(){return new Ou}function $u(t=null){return e=>e.lift(new Wu(t))}class Wu{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Yu(t,this.defaultValue))}}class Yu extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Gu(t,e){return"function"==typeof e?n=>n.pipe(Gu((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))))):e=>e.lift(new Ku(t))}class Ku{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zu(t,this.project))}}class Zu extends M{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(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new E(this,e,n),r=this.destination;r.add(s),this.innerSubscription=P(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.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,i,s){this.destination.next(e)}}function Qu(t){return e=>0===t?Ru():e.lift(new Xu(t))}class Xu{constructor(t){if(this.total=t,this.total<0)throw new Nu}call(t,e){return e.subscribe(new Ju(t,this.total))}}class Ju extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function td(...t){return Pu()(Su(...t))}function ed(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>td(t,n,e)):e=>td(t,e)}class nd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new id(t,this.accumulator,this.seed,this.hasSeed))}}class id extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function sd(t){return function(e){const n=new rd(t),i=e.lift(n);return n.caught=i}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends M{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 i=new E(this,void 0,void 0);this.add(i);const s=P(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function ad(t,e){return B(t,e,1)}function ld(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Qu(1),n?$u(e):zu(()=>new Ou))}function cd(t,e,n){return function(i){return i.lift(new hd(t,e,n))}}class hd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ud(t,this.nextOrObserver,this.error,this.complete))}}class ud extends f{constructor(t,e,n,s){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function dd(t){return e=>e.lift(new pd(t))}class pd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new fd(t,this.callback))}}class fd extends f{constructor(t,e){super(t),this.add(new u(e))}}class md{constructor(t,e){this.id=t,this.url=e}}class gd extends md{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _d extends md{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yd extends md{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bd extends md{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cd extends md{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends md{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kd{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ed{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Td{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Id{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Od{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ad{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rd{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}')`}}class Dd{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 Pd(t){return new Dd(t)}function Md(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ld(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function Vd(t){return Array.prototype.concat.apply([],t)}function jd(t){return t.length>0?t[t.length-1]:null}function Bd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zd(t){return Fo(t)?t:Lo(t)?j(Promise.resolve(t)):Su(t)}function Hd(t,e,n){return n?function(t,e){return Fd(t,e)}(t.queryParams,e.queryParams)&&Ud(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Nd(t[n],e[n]))}(t.queryParams,e.queryParams)&&qd(t.root,e.root)}function Ud(t,e){if(!Kd(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Ud(t.children[n],e.children[n]))return!1}return!0}function qd(t,e){return $d(t,e,e.segments)}function $d(t,e,n){if(t.segments.length>n.length)return!!Kd(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Kd(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!qd(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Kd(t.segments,i)&&!!t.children.primary&&$d(t.children.primary,e,s)}}class Wd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return Jd.serialize(this)}}class Yd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Bd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tp(this)}}class Gd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Pd(this.parameters)),this._parameterMap}toString(){return ap(this)}}function Kd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Zd(t,e){let n=[];return Bd(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Bd(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class Qd{}class Xd{parse(t){const e=new dp(t);return new Wd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+ep(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ip(e)}=${ip(t)}`).join("&"):`${ip(e)}=${ip(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Jd=new Xd;function tp(t){return t.segments.map(t=>ap(t)).join("/")}function ep(t,e){if(!t.hasChildren())return tp(t);if(e){const e=t.children.primary?ep(t.children.primary,!1):"",n=[];return Bd(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${ep(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Zd(t,(e,n)=>"primary"===n?[ep(t.children.primary,!1)]:[`${n}:${ep(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${tp(t)}/${e[0]}`:`${tp(t)}/(${e.join("//")})`}}function np(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ip(t){return np(t).replace(/%3B/gi,";")}function sp(t){return np(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rp(t){return decodeURIComponent(t)}function op(t){return rp(t.replace(/\+/g,"%20"))}function ap(t){return`${sp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${sp(t)}=${sp(e[t])}`).join("")}`;var e}const lp=/^[^\/()?;=#]+/;function cp(t){const e=t.match(lp);return e?e[0]:""}const hp=/^[^=?&#]+/,up=/^[^?&#]+/;class dp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yd([],{}):new Yd([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Yd(t,e)),n}parseSegment(){const t=cp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Gd(rp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=cp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=cp(this.remaining);t&&(n=t,this.capture(n))}t[rp(e)]=rp(n)}parseQueryParam(t){const e=function(t){const e=t.match(hp);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(up);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=op(e),s=op(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Yd([],r),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 pp{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=fp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return mp(t,this._root).map(t=>t.value)}}function fp(t,e){if(t===e.value)return e;for(const n of e.children){const e=fp(t,n);if(e)return e}return null}function mp(t,e){if(t===e.value)return[e];for(const n of e.children){const i=mp(t,n);if(i.length)return i.unshift(e),i}return[]}class gp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function _p(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yp extends pp{constructor(t,e){super(t),this.snapshot=e,xp(this,t)}toString(){return this.snapshot.toString()}}function bp(t,e){const n=function(t,e){const n=new Cp([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Sp("",new gp(n,[]))}(t,e),i=new xu([new Gd("",{})]),s=new xu({}),r=new xu({}),o=new xu({}),a=new xu(""),l=new vp(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new yp(new gp(l,[]),n)}class vp{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>Pd(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Pd(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wp(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class Cp{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=Pd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sp extends pp{constructor(t,e){super(e),this.url=t,xp(this,e)}toString(){return kp(this._root)}}function xp(t,e){e.value._routerState=t,e.children.forEach(e=>xp(t,e))}function kp(t){const e=t.children.length>0?` { ${t.children.map(kp).join(", ")} } `:"";return`${t.value}${e}`}function Ep(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Fd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Fd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nFd(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Tp(t.parent,e.parent))}function Ip(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Ip(t,e,i);return Ip(t,e)})}(t,e,n);return new gp(i,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Op(e,t),t}{const n=new vp(new xu((i=e.value).url),new xu(i.params),new xu(i.queryParams),new xu(i.fragment),new xu(i.data),i.outlet,i.component,i),s=e.children.map(e=>Ip(t,e));return new gp(n,s)}}var i}function Op(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{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Wd(n.root===t?e:Pp(n.root,t,e),r,s)}function Pp(t,e,n){const i={};return Bd(t.children,(t,s)=>{i[s]=t===e?n:Pp(t,e,n)}),new Yd(t.segments,i)}class Mp{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ap(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Rp);if(i&&i!==jd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Fp(t,e,n){if(t||(t=new Yd([],{})),0===t.segments.length&&t.hasChildren())return Np(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(Rp(o))break;const a=""+o,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!zp(a,l,e))return r;i+=2}else{if(!zp(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(s[i]=Fp(t.children[i],e,n))}),Bd(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Yd(t.segments,s)}}function Vp(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=Vp(new Yd([],{}),0,t))}),e}function Bp(t){const e={};return Bd(t,(t,n)=>e[n]=""+t),e}function zp(t,e,n){return t==n.path&&Fd(e,n.parameters)}class Hp{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ep(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Bd(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=_p(t),s=t.value.component?n.children:e;Bd(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=_p(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Ad(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Id(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Ep(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Up(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}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Up(t){Ep(t.value),t.children.forEach(Up)}class qp{constructor(t,e){this.routes=t,this.module=e}}function $p(t){return"function"==typeof t}function Wp(t){return t instanceof Wd}const Yp=Symbol("INITIAL_VALUE");function Gp(){return Gu(t=>Eu(...t.map(t=>t.pipe(Qu(1),ed(Yp)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new nd(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Yp)return t;if(i===Yp&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||Wp(i))return i}return t},t)},Yp),Mu(t=>t!==Yp),L(t=>Wp(t)?t:!0===t),Qu(1)))}let Kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ao(0,"router-outlet")},directives:function(){return[qf]},encapsulation:2}),t})();function Zp(t,e=""){for(let n=0;ne.error(new ef(t)))}function rf(t){return new y(e=>e.error(new nf(t)))}function of(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class af{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(gl)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(L(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sd(t=>{if(t instanceof nf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ef)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(L(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sd(t=>{if(t instanceof ef)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Yd([],{primary:t}):t;return new Wd(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new Yd([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Su({});const n=[],i=[],s={};return Bd(t,(t,r)=>{const o=e(r,t).pipe(L(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),Su.apply(null,n.concat(i)).pipe(Pu(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):U,Vu(1),n?$u(e):zu(()=>new Ou))}(),L(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,r){const o=function(t){return t.reduce((t,e)=>{const n=tf(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);o.has(s)||o.set(s,[]);const a=n=>j(n).pipe(ad(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sd(t=>{if(t instanceof ef)return Su(null);throw t}))),ld(t=>null!==t),sd(t=>{if(t instanceof Ou||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return Su(new Yd([],{}));throw new ef(e)}throw t}));return j(Array.from(o.entries()).map(([t,e])=>{const n=a(e);return t===s?n:n.pipe(L(()=>null),sd(()=>Su(null)))})).pipe(t=>t.lift(new Tu(void 0)),ld(),L(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return tf(i)!==r&&""!==i.path?sf(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):sf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rf(s):this.lineralizeSegments(n,s).pipe(B(n=>{const s=new Yd(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=lf(e,i,s);if(!o)return sf(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?rf(h):this.lineralizeSegments(i,h).pipe(B(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new Yd(i,{})))):Su(new Yd(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=lf(e,n,i);if(!s)return sf(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>hf(t,e,n)&&"primary"!==tf(n))}(t,n,i)?{segmentGroup:cf(new Yd(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==tf(i)&&(n[tf(i)]=new Yd([],{}));return n}(i,new Yd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>hf(t,e,n))}(t,n,i)?{segmentGroup:cf(new Yd(t.segments,function(t,e,n,i){const s={};for(const r of n)hf(t,e,r)&&!i[tf(r)]&&(s[tf(r)]=new Yd([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(L(t=>new Yd(r,t))):0===i.length&&0===o.length?Su(new Yd(r,{})):this.expandSegment(n,s,i,o,"primary",!0).pipe(L(t=>new Yd(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Su(new qp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Su(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(Md(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Su(new qp([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Su(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&$p(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!$p(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return zd(r)})).pipe(Gp(),cd(t=>{if(!Wp(t))return;const e=Md(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),L(t=>!0===t)):Su(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Su(n);if(i.numberOfChildren>1||!i.children.primary)return of(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Wd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Bd(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Bd(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Yd(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function lf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Ld)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function cf(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yd(t.segments.concat(e.segments),e.children)}return t}function hf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class uf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class df{constructor(t,e){this.component=t,this.route=e}}function pf(t,e,n){const i=t._root;return mf(i,e?e._root:null,n,[i.value])}function ff(t,e,n){const i=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(i?i.module.injector:n).get(t)}function mf(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=_p(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Kd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kd(t.url,e.url)||!Fd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tp(t,e)||!Fd(t.queryParams,e.queryParams);case"paramsChange":default:return!Tp(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new uf(i)):(r.data=o.data,r._resolvedData=o._resolvedData),mf(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new df(a.outlet.component,o))}else o&&gf(e,a,s),s.canActivateChecks.push(new uf(i)),mf(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Bd(r,(t,e)=>gf(t,n.getContext(e),s)),s}function gf(t,e,n){const i=_p(t),s=t.value;Bd(i,(t,i)=>{gf(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new df(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function _f(t,e){return null!==t&&e&&e(new Od(t)),Su(!0)}function yf(t,e){return null!==t&&e&&e(new Td(t)),Su(!0)}function bf(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Su(i.map(i=>Du(()=>{const s=ff(i,e,n);let r;if(function(t){return t&&$p(t.canActivate)}(s))r=zd(s.canActivate(e,t));else{if(!$p(s))throw new Error("Invalid CanActivate guard");r=zd(s(e,t))}return r.pipe(ld())}))).pipe(Gp()):Su(!0)}function vf(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Du(()=>Su(e.guards.map(s=>{const r=ff(s,e.node,n);let o;if(function(t){return t&&$p(t.canActivateChild)}(r))o=zd(r.canActivateChild(i,t));else{if(!$p(r))throw new Error("Invalid CanActivateChild guard");o=zd(r(i,t))}return o.pipe(ld())})).pipe(Gp())));return Su(s).pipe(Gp())}class wf{}class Cf{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=kf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Cp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new gp(n,e),s=new Sp(this.url,i);return this.inheritParamsAndData(s._root),Su(s)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=wp(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=Zd(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof wf))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new wf}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new wf;if((t.outlet||"primary")!==i)throw new wf;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?jd(n).parameters:{};s=new Cp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+n.length,Of(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new wf;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Ld)(n,t,e);if(!i)throw new wf;const s={};Bd(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new Cp(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,If(t),i,t.component,t,Sf(e),xf(e)+r.length,Of(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=kf(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new gp(s,t)]}if(0===a.length&&0===c.length)return[new gp(s,[])];const h=this.processSegment(a,l,c,"primary");return[new gp(s,h)]}}function Sf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xf(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 kf(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>Ef(t,e,n)&&"primary"!==Tf(n))}(t,n,i)){const s=new Yd(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Tf(r)){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Tf(r)]=n}return s}(t,e,i,new Yd(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ef(t,e,n))}(t,n,i)){const r=new Yd(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ef(t,n,a)&&!s[Tf(a)]){const n=new Yd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Tf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Yd(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ef(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Tf(t){return t.outlet||"primary"}function If(t){return t.data||{}}function Of(t){return t.resolve||{}}function Af(t){return function(e){return e.pipe(Gu(e=>{const n=t(e);return n?j(n).pipe(L(()=>e)):j([e])}))}}class Rf 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 Df=new vt("ROUTES");class Pf{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new qp(Vd(i.injector.get(Df)).map(Jp),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):zd(t()).pipe(B(t=>t instanceof _l?Su(t):j(this.compiler.compileModuleAsync(t))))}}class Mf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Lf,this.attachRef=null}}class Lf{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 Mf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ff{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Nf(t){throw t}function Vf(t,e,n){return e.parse("/")}function jf(t,e){return Su(null)}let Bf=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Nf,this.malformedUriErrorHandler=Vf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:jf,afterPreactivation:jf},this.urlHandlingStrategy=new Ff,this.routeReuseStrategy=new Rf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(gl),this.console=s.get(fc);const l=s.get(Tc);this.isNgZoneEnabled=l instanceof Tc,this.resetConfig(a),this.currentUrlTree=new Wd(new Yd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pf(r,o,t=>this.triggerEvent(new kd(t)),t=>this.triggerEvent(new Ed(t))),this.routerState=bp(this.currentUrlTree,this.rootComponentType),this.transitions=new xu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Mu(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Gu(t=>{let n=!1,i=!1;return Su(t).pipe(cd(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}}),Gu(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Su(t).pipe(Gu(t=>{const n=this.transitions.getValue();return e.next(new gd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Au:[t]}),Gu(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(Gu(t=>function(t,e,n,i,s){return new af(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),cd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(B(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new Cf(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(L(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),cd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),cd(t=>{const n=new vd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new gd(n,this.serializeUrl(i),s,r);e.next(a);const l=bp(i,this.rootComponentType).snapshot;return Su(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Au}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),cd(t=>{const e=new wd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:pf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Su(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Su(r.map(r=>{const o=ff(r,e,s);let a;if(function(t){return t&&$p(t.canDeactivate)}(o))a=zd(o.canDeactivate(t,e,n,i));else{if(!$p(o))throw new Error("Invalid CanDeactivate guard");a=zd(o(t,e,n,i))}return a.pipe(ld())})).pipe(Gp()):Su(!0)}(t.component,t.route,n,e,i)),ld(t=>!0!==t,!0))}(o,i,s,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(ad(e=>j([yf(e.route.parent,i),_f(e.route,i),vf(t,e.path,n),bf(t,e.route,n)]).pipe(Pu(),ld(t=>!0!==t,!0))),ld(t=>!0!==t,!0))}(i,r,t,e):Su(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),cd(t=>{if(Wp(t.guardsResult)){const e=Md(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),cd(t=>{const e=new Cd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mu(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Af(t=>{if(t.guards.canActivateChecks.length)return Su(t).pipe(cd(t=>{const e=new Sd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Gu(t=>{let n=!1;return Su(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Su(t);let r=0;return j(n).pipe(ad(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Su({});const r={};return j(s).pipe(B(s=>function(t,e,n,i){const s=ff(t,e,i);return zd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(cd(t=>{r[s]=t}))),Vu(1),B(()=>Object.keys(r).length===s.length?Su(r):Au))}(t._resolve,t,e,i).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),wp(t,n).resolve),null)))}(t.route,e,i,s)),cd(()=>r++),Vu(1),B(e=>r===n.length?Su(t):Au))}))}),cd({next:()=>n=!0,complete:()=>{if(!n){const n=new yd(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),cd(t=>{const e=new xd(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Af(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),L(t=>{const e=function(t,e,n){const i=Ip(t,e._root,n?n._root:void 0);return new yp(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),cd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),L(t=>(new Hp(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),cd({next(){n=!0},complete(){n=!0}}),dd(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new yd(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),sd(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=Wp(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new yd(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new bd(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return Au}));var s,r,o}))}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:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},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){Zp(t),this.config=t.map(Jp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return Dp(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Mp(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Bd(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Mp(n,e,i)}(n);if(r.toRoot())return Dp(e.root,new Yd([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Lp(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Lp(t,t===e.root,0)}const i=Ap(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Lp(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Np(o.segmentGroup,o.index,r.commands):Fp(o.segmentGroup,o.index,r.commands);return Dp(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Wp(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new _d(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(ve(Dt),ve(Qd),ve(Lf),ve(bh),ve(ro),ve(Gc),ve(xc),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),zf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),ko("tabindex"),xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&No("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})(),Hf=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof _d&&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,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Uf(this.skipLocationChange),replaceUrl:Uf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Uf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Bf),xo(vp),xo(fh))},t.\u0275dir=se({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(fa("href",e.href,ai),vo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[fi]}),t})();function Uf(t){return""===t||!!t}let qf=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Nl,this.deactivateEvents=new Nl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new $f(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(xo(Lf),xo(bl),xo(Pa),ko("name"),xo(ol))},t.\u0275dir=se({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $f{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===vp?this.route:t===Lf?this.childContexts:this.parent.get(t,e)}}class Wf{}class Yf{preload(t,e){return Su(null)}}let Gf=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Pf(e,n,e=>t.triggerEvent(new kd(e)),e=>t.triggerEvent(new Ed(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mu(t=>t instanceof _d),ad(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(gl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe(q(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(ve(Bf),ve(Gc),ve(xc),ve(ro),ve(Wf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Kf=(()=>{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 gd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _d&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Rd&&(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 Rd(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)(ve(Bf),ve(qh),ve(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Zf=new vt("ROUTER_CONFIGURATION"),Qf=new vt("ROUTER_FORROOT_GUARD"),Xf=[bh,{provide:Qd,useClass:Xd},{provide:Bf,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Bf(null,t,e,n,i,s,r,Vd(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.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,h),a.enableTracing){const t=ih();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[Qd,Lf,bh,ro,Gc,xc,Df,Zf,[class{},new st],[class{},new st]]},Lf,{provide:vp,useFactory:function(t){return t.routerState.root},deps:[Bf]},{provide:Gc,useClass:Qc},Gf,Yf,class{preload(t,e){return e().pipe(sd(()=>Su(null)))}},{provide:Zf,useValue:{enableTracing:!1}}];function Jf(){return new zc("Router",Bf)}let tm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Xf,sm(e),{provide:Qf,useFactory:im,deps:[[Bf,new st,new ot]]},{provide:Zf,useValue:n||{}},{provide:fh,useFactory:nm,deps:[rh,[new it(gh),new st],Zf]},{provide:Kf,useFactory:em,deps:[Bf,qh,Zf]},{provide:Wf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Yf},{provide:zc,multi:!0,useFactory:Jf},[rm,{provide:oc,multi:!0,useFactory:om,deps:[rm]},{provide:lm,useFactory:am,deps:[rm]},{provide:pc,multi:!0,useExisting:lm}]]}}static forChild(e){return{ngModule:t,providers:[sm(e)]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Qf,8),ve(Bf,8))}}),t})();function em(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Kf(t,e,n)}function nm(t,e,n={}){return n.useHash?new yh(t,e):new _h(t,e)}function im(t){return"guarded"}function sm(t){return[{provide:wt,multi:!0,useValue:t},{provide:Df,multi:!0,useValue:t}]}let rm=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(ah,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Bf),i=this.injector.get(Zf);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Su(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Zf),n=this.injector.get(Gf),i=this.injector.get(Kf),s=this.injector.get(Bf),r=this.injector.get(Wc);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function om(t){return t.appInitializer.bind(t)}function am(t){return t.bootstrapListener.bind(t)}const lm=new vt("Router Initializer");class cm{}class hm{}class um{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),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 um?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 um;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof um?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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dm{encodeKey(t){return pm(t)}encodeValue(t){return pm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function pm(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class fm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function mm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _m(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ym{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new um),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ym(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var bm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class vm{constructor(t,e=200,n="OK"){this.headers=t.headers||new um,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 wm extends vm{constructor(t={}){super(t),this.type=bm.ResponseHeader}clone(t={}){return new wm({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 Cm extends vm{constructor(t={}){super(t),this.type=bm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cm({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 Sm extends vm{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 xm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let km=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof ym)i=t;else{let s=void 0;s=n.headers instanceof um?n.headers:new um(n.headers);let r=void 0;n.params&&(r=n.params instanceof fm?n.params:new fm({fromObject:n.params})),i=new ym(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Su(i).pipe(ad(t=>this.handler.handle(t)));if(t instanceof ym||"events"===n.observe)return s;const r=s.pipe(Mu(t=>t instanceof Cm));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(L(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(L(t=>t.body))}case"response":return r;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 fm).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,xm(n,e))}post(t,e,n={}){return this.request("POST",t,xm(n,e))}put(t,e,n={}){return this.request("PUT",t,xm(n,e))}}return t.\u0275fac=function(e){return new(e||t)(ve(cm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Em{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Tm=new vt("HTTP_INTERCEPTORS");let Im=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Om=/^\)\]\}',?\n/;class Am{}let Rm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Dm=(()=>{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 y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new um(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new wm({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Om,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Cm({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Sm({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Sm({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:bm.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:bm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:bm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ve(Am))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Pm=new vt("XSRF_COOKIE_NAME"),Mm=new vt("XSRF_HEADER_NAME");class Lm{}let Fm,Nm=(()=>{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=kh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(dc),ve(Pm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Vm=(()=>{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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Lm),ve(Mm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),jm=(()=>{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(Tm,[]);this.chain=t.reduceRight((t,e)=>new Em(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(hm),ve(ro))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Bm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Vm,useClass:Im}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Pm,useValue:e.cookieName}:[],e.headerName?{provide:Mm,useValue:e.headerName}:[]]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Vm,{provide:Tm,useExisting:Vm,multi:!0},{provide:Lm,useClass:Nm},{provide:Pm,useValue:"XSRF-TOKEN"},{provide:Mm,useValue:"X-XSRF-TOKEN"}]}),t})(),zm=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[km,{provide:cm,useClass:jm},Dm,{provide:hm,useExisting:Dm},Rm,{provide:Am,useExisting:Rm}],imports:[[Bm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),Hm=(()=>{class t{constructor(t){this.http=t}load(){return this._configData=null,this.http.get("/client/assets/data/config.json").toPromise().then(t=>{null==t.apiBaseUrl&&(t.apiBaseUrl="/"),this._configData=t}).catch(t=>Promise.resolve())}get configData(){return this._configData}set configData(t){this._configData=t}}return t.\u0275fac=function(e){return new(e||t)(ve(km))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Um=(()=>{class t{constructor(t,e){this.configService=t,this.platformId=e,this.isActive=!1,Uh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}init(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}onGlobalError(t){this.sendException(`message: ${t.message} | filenname: ${t.filename} | lineno: ${t.lineno} | colno: ${t.colno}`)}sendPageView(t,e=location.href){if(this.isActive){const n={page_title:t,page_path:e};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}sendEvent(t,e,n,i){this.isActive&&this.gtag("event",t,{event_category:e,event_label:n,value:i})}sendException(t,e=!1){this.isActive&&this.gtag("event","exception",{description:t,fatal:e})}}return t.\u0275fac=function(e){return new(e||t)(ve(Hm),ve(dc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qm=(()=>{class t{constructor(t){this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}onClick(t){this.evLabel=t.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}return t.\u0275fac=function(e){return new(e||t)(xo(Um))},t.\u0275dir=se({type:t,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(t,e){1&t&&No("click",function(t){return e.onClick(t.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),t})(),$m=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h2"),ua(3," Background "),Oo(),Io(4,"p",2),ua(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Io(6,"a",3),ua(7,"download the self-contained instance of ADME@NCATS"),Oo(),ua(8," that can be run locally. "),Oo(),Io(9,"p",2),ua(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Oo(),Oo(),Oo())},directives:[qm],styles:[""]}),t})(),Wm=(()=>{class t{constructor(){this.loadingStateEmitter=new S}get isLoading(){return this.loadingStateEmitter.asObservable()}setLoadingState(t){this.loadingStateEmitter.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();try{Fm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cO){Fm=!1}let Ym,Gm=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Uh(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&&!Fm)&&"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)(ve(dc))},t.\u0275prov=ut({factory:function(){return new t(ve(dc))},token:t,providedIn:"root"}),t})(),Km=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Zm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qm(){if(Ym)return Ym;if("object"!=typeof document||!document)return Ym=new Set(Zm),Ym;let t=document.createElement("input");return Ym=new Set(Zm.filter(e=>(t.setAttribute("type",e),t.type===e))),Ym}let Xm,Jm;function tg(t){return function(){if(null==Xm&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xm=!0}))}finally{Xm=Xm||!1}return Xm}()?t:!!t.capture}function eg(t){if(function(){if(null==Jm){const t="undefined"!=typeof document?document.head:null;Jm=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Jm}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ng(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class ig extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class sg extends ig{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let rg=(()=>{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 og extends rg{constructor(t,e=rg.now){super(t,()=>og.delegate&&og.delegate!==this?og.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return og.delegate&&og.delegate!==this?og.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 ag=new og(sg);function lg(t,e=ag){return n=>n.lift(new cg(t,e))}class cg{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new hg(t,this.dueTime,this.scheduler))}}class hg extends f{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(ug,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 ug(t){t.debouncedNext()}function dg(t){return null!=t&&""+t!="false"}function pg(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function fg(t){return Array.isArray(t)?t:[t]}function mg(t){return null==t?"":"string"==typeof t?t:t+"px"}function gg(t){return t instanceof Na?t.nativeElement:t}let _g=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),yg=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gg(t);return new y(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 S,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)(ve(_g))},t.\u0275prov=ut({factory:function(){return new t(ve(_g))},token:t,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Nl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=pg(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(lg(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yg),xo(Na),xo(Tc))},t.\u0275dir=se({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),vg=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[_g]}),t})();function wg(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Cg=0;const Sg=new Map;let xg=null,kg=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Sg.set(e,{messageElement:e,referenceCount:0})):Sg.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Sg.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}xg&&0===xg.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Sg.get(e);!function(t,e,n){const i=wg(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=Sg.get(e);n.referenceCount--,function(t,e,n){const i=wg(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=wg(t,"aria-describedby"),i=Sg.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();class Eg{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new S,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new S,this.change=new S,t instanceof jl&&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(cd(t=>this._pressedLetters.push(t)),lg(t),Mu(()=>this._pressedLetters.length>0),L(()=>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||ng(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),i=e[n];this._activeItem=null==i?null:i,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 i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_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 jl?this._items.toArray():this._items}}class Tg extends Eg{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ig extends Eg{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Og=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(cO){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===Rg(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=Rg(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ag(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function Ag(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Rg(t){if(!Ag(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Dg{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Qu(1)).subscribe(t)}}let Pg=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Dg(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(ve(Og),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Og),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Mg=new vt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lg=new vt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Fg=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Ng(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=zg(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=zg(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=gg(t);if(!this._platform.isBrowser||1!==n.nodeType)return Su(null);const i=eg(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new S,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=gg(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 i=gg(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.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._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_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)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=zg(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===zg(t))&&this._originChanged(e,this._getFocusOrigin(t),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,jg),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,jg)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,jg),t.addEventListener("mousedown",this._documentMousedownListener,jg),t.addEventListener("touchstart",this._documentTouchstartListener,jg),e.addEventListener("focus",this._windowFocusListener)})}_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,jg),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jg),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,jg),t.removeEventListener("mousedown",this._documentMousedownListener,jg),t.removeEventListener("touchstart",this._documentTouchstartListener,jg),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8),ve(Vg,8))},token:t,providedIn:"root"}),t})();function zg(t){return t.composedPath?t.composedPath()[0]:t.target}let Hg=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Nl}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),Ug=(()=>{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,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(sh))},token:t,providedIn:"root"}),t})(),qg=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug))},imports:[[Km,vg]]}),t})();class $g{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 Wg extends $g{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Yg extends $g{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 Gg extends $g{constructor(t){super(),this.element=t instanceof Na?t.nativeElement:t}}class Kg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Wg?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yg?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Gg?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Zg extends Kg{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Qg=(()=>{class t extends Kg{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Nl,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ao]}),t})(),Xg=(()=>{class t extends Qg{}return t.\u0275fac=function(e){return Jg(e||t)},t.\u0275dir=se({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Aa([{provide:Qg,useExisting:t}]),ao]}),t})();const Jg=ts(Xg);let t_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const e_=new vt("cdk-dir-doc",{providedIn:"root",factory:function(){return we(sh)}});let n_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Nl,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)(ve(e_,8))},t.\u0275prov=ut({factory:function(){return new t(ve(e_,8))},token:t,providedIn:"root"}),t})(),i_=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const s_=new Ha("11.0.1");class r_{}function o_(t,e){return{type:7,name:t,definitions:e,options:{}}}function a_(t,e=null){return{type:4,styles:e,timings:t}}function l_(t,e=null){return{type:2,steps:t,options:e}}function c_(t){return{type:6,styles:t,offset:null}}function h_(t,e,n){return{type:0,name:t,styles:e,options:n}}function u_(t){return{type:5,steps:t}}function d_(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p_(t=null){return{type:9,options:t}}function f_(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m_(t){Promise.resolve(null).then(t)}class g_{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){m_(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class __{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,i=0;const s=this.players.length;0==s?m_(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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 y_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b_(t){switch(t.length){case 0:return new g_;case 1:return t[0];default:return new __(t)}}function v_(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function w_(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&C_(n,"start",t)));break;case"done":t.onDone(()=>i(n&&C_(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&C_(n,"destroy",t)))}}function C_(t,e,n){const i=n.totalTime,s=S_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function S_(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function x_(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function k_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let E_=(t,e)=>!1,T_=(t,e)=>!1,I_=(t,e,n)=>[];const O_=y_();(O_||"undefined"!=typeof Element)&&(E_=(t,e)=>t.contains(e),T_=(()=>{if(O_||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]):T_}})(),I_=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let A_=null,R_=!1;function D_(t){A_||(A_=("undefined"!=typeof document?document.body:null)||{},R_=!!A_.style&&"WebkitAppearance"in A_.style);let e=!0;return A_.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in A_.style,!e&&R_)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in A_.style),e}const P_=T_,M_=E_,L_=I_;function F_(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let N_=(()=>{class t{validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new g_(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),V_=(()=>{class t{}return t.NOOP=new N_,t})();function j_(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:B_(parseFloat(e[1]),e[2])}function B_(t,e){switch(e){case"s":return 1e3*t;default:return t}}function z_(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";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:""};i=B_(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=B_(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function H_(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function U_(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else H_(t,n);return n}function q_(t,e,n){return n?e+":"+n+";":""}function $_(t){let e="";for(let n=0;n{const s=ty(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),y_()&&$_(t))}function Y_(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=ty(e);t.style[n]=""}),y_()&&$_(t))}function G_(t){return Array.isArray(t)?1==t.length?t[0]:l_(t):t}const K_=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z_(t){let e=[];if("string"==typeof t){let n;for(;n=K_.exec(t);)e.push(n[1]);K_.lastIndex=0}return e}function Q_(t,e,n){const i=t.toString(),s=i.replace(K_,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function X_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const J_=/-+([a-z0-9])/g;function ty(t){return t.replace(J_,(...t)=>t[1].toUpperCase())}function ey(t,e){return 0===t||0===e}function ny(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(ly(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(ly(o,s))}(t,n,e)):n.push(t),n}const oy=new Set(["true","1"]),ay=new Set(["false","0"]);function ly(t,e){const n=oy.has(t)||ay.has(t),i=oy.has(e)||ay.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?oy.has(t):ay.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?oy.has(e):ay.has(e)),o&&a}}const cy=new RegExp("s*:selfs*,?","g");function hy(t,e,n){return new uy(t).build(e,n)}class uy{constructor(t){this._driver=t}build(t,e){const n=new dy(e);return this._resetContextStyleTimingState(n),iy(this,G_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(py(t)){const e=t;Object.keys(e).forEach(t=>{Z_(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=X_(s.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=iy(this,G_(t.animation),e);return{type:1,matchers:ry(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:fy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>iy(this,t,e)),options:fy(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=iy(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:fy(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 my(z_(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=my(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||z_(i,e),my(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:c_({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=c_(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(py(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=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 r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Z_(t);s.length&&s.forEach(t=>{i.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 i=0;const s=[];let r=!1,o=!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(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(py(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:iy(this,G_(t.animation),e),options:fy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(cy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,x_(e.collectedStyles,e.currentQuerySelector,{});const o=iy(this,G_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:fy(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"}:z_(t.timings,e.errors,!0);return{type:12,animation:iy(this,G_(t.animation),e),timings:n,options:null}}}class dy{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 py(t){return!Array.isArray(t)&&"object"==typeof t}function fy(t){var e;return t?(t=H_(t)).params&&(t.params=(e=t.params)?H_(e):null):t={},t}function my(t,e,n){return{duration:t,delay:e,easing:n}}function gy(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class _y{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 yy=new RegExp(":enter","g"),by=new RegExp(":leave","g");function vy(t,e,n,i,s,r={},o={},a,l,c=[]){return(new wy).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class wy{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new _y;const h=new Sy(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),iy(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[gy(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 i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}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 i=e.currentTimeline.currentTime;const s=null!=n.duration?j_(n.duration):null,r=null!=n.delay?j_(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),iy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cy);const t=j_(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>iy(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?j_(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),iy(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return z_(e.params?Q_(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?j_(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Cy);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),iy(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;iy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Cy={};class Sy{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new xy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=j_(n.duration)),null!=n.delay&&(i.delay=j_(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Q_(s[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 i=e||this.element,s=new Sy(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Cy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ky(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(yy,"."+this._enterClassName)).replace(by,"."+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)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class xy{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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 xy(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]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):U_(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Q_(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=U_(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?X_(t.values()):[],r=e.size?X_(e.values()):[];if(n){const t=i[0],e=H_(t);t.offset=0,e.offset=1,i=[t,e]}return gy(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ky extends xy{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=U_(t[0],!1);a.offset=0,s.push(a);const l=U_(t[0],!1);l.offset=Ey(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=U_(t[i],!1);o.offset=Ey((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return gy(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ey(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ty{}class Iy extends Ty{normalizePropertyName(t,e){return ty(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Oy[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Oy=(()=>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 Ay(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Ry={};class Dy{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Ry,d=this.buildStyles(n,o&&o.params||Ry,h),p=a&&a.params||Ry,f=this.buildStyles(i,p,h),m=new Set,g=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:vy(t,e,this.ast.animation,s,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Ay(e,this._triggerName,n,i,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,i=x_(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=x_(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=X_(m.values());return Ay(e,this._triggerName,n,i,y,d,f,v,C,g,_,w)}}class Py{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=H_(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Q_(r,i,e)),n[t]=r})}}),n}}class My{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Py(t.style,t.options&&t.options.params||{})}),Ly(this.states,"true","1"),Ly(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Dy(t,e,this.states))}),this.fallbackTransition=new Dy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ly(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Fy=new _y;class Ny{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=hy(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]=i}_buildPlayer(t,e,n){const i=t.element,s=v_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=vy(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Fy,i),r.forEach(t=>{const e=x_(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=b_(r.map(t=>{const e=o.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,i){const s=S_(e,"","","");return w_(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Vy=[],jy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},By={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class zy{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=H_(t);delete e.value,this.options=e}else this.options={};var i;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 Hy=new zy("void");class Uy{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,Zy(e,this._hostClassName)}listen(t,e,n,i){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("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=x_(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=x_(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),a[e]=Hy),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new $y(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Zy(t,"ng-trigger"),Zy(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new zy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Hy),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{Y_(t,n),W_(t,i)})}return}const c=x_(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Zy(t,"ng-animate-queued"),r.onStart(()=>{Qy(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}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,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)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,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&b_(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Hy,o=new zy("void"),a=new $y(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==jy||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Zy(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=S_(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,w_(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 qy{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 Uy(t,e,this);return e.parentNode?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 i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Zy(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qy(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Wy(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Wy(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 b_(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=jy,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!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?b_(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 _y,i=[],s=new Map,r=[],o=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="ng-enter"+f++;p.set(e,n),t.forEach(t=>Zy(t,n))});const m=[],g=new Set,_=new Set;for(let A=0;Ag.add(t)):_.add(t))}const y=new Map,b=Ky(u,Array.from(g));b.forEach((t,e)=>{const n="ng-leave"+f++;y.set(e,n),t.forEach(t=>Zy(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Qy(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Qy(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=y.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Y_(s,f.fromStyles)),e.onDestroy(()=>W_(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>x_(o,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 i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.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;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{x_(C,e,[]).push(t),t.destroy()})});const x=m.filter(t=>tb(t,a,l)),k=new Map;Gy(k,this.driver,_,l,"*").forEach(t=>{tb(t,a,l)&&x.push(t)});const E=new Map;d.forEach((t,e)=>{Gy(E,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>W_(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=O;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,E,k);if(r.setRealPlayer(n),t===O)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=b_(e)),i.push(r)}}else Y_(e,o.fromStyles),r.onDestroy(()=>W_(e,o.toStyles)),I.push(r),c.has(e)&&i.push(r)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=b_(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A!t.destroyed);i.length?Xy(this,t,i):this.processLeaveNode(t)}return m.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 i=e.__ng_removed;return i&&i.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,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=x_(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Y_(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new g_(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return Jy(t,e),e}((n.get(u)||Vy).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),_=v_(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&h.add(u),p){const e=new $y(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{x_(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Zy(t,"ng-animating"));const d=b_(u);return d.onDestroy(()=>{c.forEach(t=>Qy(t,"ng-animating")),W_(a,e.toStyles)}),h.forEach(t=>{x_(i,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 g_(t.duration,t.delay)}}class $y{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new g_,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=>w_(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){x_(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 Wy(t){return t&&1===t.nodeType}function Yy(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gy(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Yy(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=By,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Yy(t,r[a++])),o}function Ky(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Zy(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Qy(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Xy(t,e,n){b_(n).onDone(()=>t.processLeaveNode(e))}function Jy(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class eb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qy(t,e,n),this._timelineEngine=new Ny(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=hy(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new My(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=k_(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=k_(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function nb(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=sb(e[0]),e.length>1&&(i=sb(e[e.length-1]))):e&&(n=sb(e)),n||i?new ib(t,n,i):null}let ib=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W_(this._element,this._initialStyles),this._endStyles&&(W_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y_(this._element,this._endStyles),this._endStyles=null),W_(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sb(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=db(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),hb(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=db(t,"").split(","),i=cb(n,e);i>=0&&(n.splice(i,1),ub(t,"",n.join(",")))}(this._element,this._name))}}function ab(t,e,n){ub(t,"PlayState",n,lb(t,e))}function lb(t,e){const n=db(t,"");return n.indexOf(",")>0?cb(n.split(","),e):cb([n],e)}function cb(t,e){for(let n=0;n=0)return n;return-1}function hb(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ub(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function db(t,e){return t.style["animation"+e]}class pb{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ob(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]:sy(this.element,n))})}this.currentSnapshot=t}}class fb extends g_{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=F_(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 mb{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>F_(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof pb),l={};ey(n,i)&&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=ny(t,e,l));if(0==n)return new fb(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=nb(t,e),p=new pb(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class gb{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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){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]:sy(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _b{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(yb().toString()),this._cssKeyframesDriver=new mb}validateStyleProperty(t){return D_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return M_(t,e)}query(t,e,n){return L_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof gb);ey(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=nb(t,e=ny(t,e=e.map(t=>U_(t,!1)),l));return new gb(t,e,a,h)}}function yb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let bb=(()=>{class t extends r_{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:zt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?l_(t):t;return Cb(this._renderer,null,e,"register",[n]),new vb(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Va),ve(sh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class vb extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new wb(this._id,t,e||{},this._renderer)}}class wb{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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 Cb(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Cb(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let Sb=(()=>{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 xb("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new kb(this,s,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)(ve(Va),ve(eb),ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class xb{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,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?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 kb extends xb{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?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 i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Eb=(()=>{class t extends eb{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(V_),ve(Ty))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Tb=new vt("AnimationModuleType"),Ib=[{provide:V_,useFactory:function(){return"function"==typeof yb()?new _b:new mb}},{provide:Tb,useValue:"BrowserAnimations"},{provide:r_,useClass:bb},{provide:Ty,useFactory:function(){return new Iy}},{provide:eb,useClass:Eb},{provide:Va,useFactory:function(t,e,n){return new Sb(t,e,n)},deps:[lu,eb,Tc]}];let Ob=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:Ib,imports:[Cu]}),t})();function Ab(t,e){if(1&t&&Ao(0,"mat-pseudo-checkbox",3),2&t){const t=Ho();Eo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Rb=["*"];let Db=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Pb=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Mb=new Ha("11.0.1"),Lb=new vt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Fb,Nb=(()=>{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 Nn()&&!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)&&Mb.full!==s_.full&&console.warn("The Angular Material version ("+Mb.full+") does not match the Angular CDK version ("+s_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(ve(Ug),ve(Lb,8),ve(sh))},imports:[[i_],i_]}),t})();function Vb(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t)}}}function jb(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 Bb(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}}}function zb(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?pg(t):this.defaultTabIndex}}}function Hb(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new S}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 Ub(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(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{Fb="undefined"!=typeof Intl}catch(cO){Fb=!1}let qb=(()=>{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=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),$b=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();class Wb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yb={enterDuration:450,exitDuration:400},Gb=tg({passive:!0}),Kb=["mousedown","touchstart"],Zb=["mouseup","mouseleave","touchend","touchcancel"];class Qb{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=gg(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Yb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Wb(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}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,i=Object.assign(Object.assign({},Yb),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Kb))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Zb),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Ng(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,Gb)})})}_removeTriggerEvents(){this._triggerElement&&(Kb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}),this._pointerUpEventsRegistered&&Zb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Gb)}))}}const Xb=new vt("mat-ripple-global-options");let Jb=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Qb(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(xo(Na),xo(Tc),xo(Gm),xo(Xb,8),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ta("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})(),tv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Km],Nb]}),t})(),ev=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ta("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})(),nv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb]]}),t})();class iv{}const sv=Vb(iv);let rv=0,ov=(()=>{class t extends sv{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rv++}}return t.\u0275fac=function(e){return av(e||t)},t.\u0275dir=se({type:t,inputs:{label:"label"},features:[ao]}),t})();const av=ts(ov),lv=new vt("MatOptgroup");let cv=0;class hv{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const uv=new vt("MAT_OPTION_PARENT_COMPONENT");let dv=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+cv++,this.onSelectionChange=new Nl,this._stateChanges=new S}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=dg(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||ng(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 hv(this,t))}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(void 0),xo(ov))},t.\u0275dir=se({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pv=(()=>{class t extends dv{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(uv,8),xo(lv,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&No("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(fa("id",e.id),vo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ta("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[ao],ngContentSelectors:Rb,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(qo(),Co(0,Ab,1,2,"mat-pseudo-checkbox",0),Io(1,"span",1),$o(2),Oo(),Ao(3,"div",2)),2&t&&(Eo("ngIf",e.multiple),Gs(3),Eo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Ah,Jb,ev],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.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 fv(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Hh,Nb,nv]]}),t})();function gv(t,e,n,s){return i(n)&&(s=n,n=void 0),s?gv(t,e,n).pipe(L(t=>l(t)?s(...t):s(t))):new y(i=>{_v(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function _v(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r=0}function bv(t=0,e,n){let i=-1;return yv(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=ag),new y(e=>{const s=yv(t)?t:+t-n.now();return n.schedule(vv,s,{index:0,period:i,subscriber:e})})}function vv(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wv(t,e){return n=>n.lift(new Cv(t,e))}class Cv{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Sv(t,this.compare,this.keySelector))}}class Sv extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function xv(t){return e=>e.lift(new kv(t))}class kv{constructor(t){this.notifier=t}call(t,e){const n=new Ev(t),i=P(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Ev extends M{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Tv=1;const Iv=(()=>Promise.resolve())(),Ov={};function Av(t){return t in Ov&&(delete Ov[t],!0)}const Rv={setImmediate(t){const e=Tv++;return Ov[e]=!0,Iv.then(()=>Av(e)&&t()),e},clearImmediate(t){Av(t)}};class Dv extends sg{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=Rv.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&&(Rv.clearImmediate(e),t.scheduled=void 0)}}class Pv extends og{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++ibv(t,e),function(t){return t.lift(new Lv(n))};var n}function Vv(t,e){return new y(e?n=>e.schedule(jv,0,{error:t,subscriber:n}):e=>e.error(t))}function jv({error:t,subscriber:e}){e.error(t)}let Bv=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Su(this.value);case"E":return Vv(this.error);case"C":return Ru()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function zv(t){return t&&"function"==typeof t.connect}class Hv{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class Uv{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new S,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 qv=new vt("_ViewRepeater");let $v=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new S,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Nv(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Su()}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(Mu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>gv(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)(ve(Tc),ve(Gm),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Tc),ve(Gm),ve(sh,8))},token:t,providedIn:"root"}),t})(),Wv=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new S,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._updateViewportSize())})}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,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Nv(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)(ve(Gm),ve(Tc),ve(sh,8))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc),ve(sh,8))},token:t,providedIn:"root"}),t})(),Yv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Gv=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[i_,Km,Yv],i_,Yv]}),t})();function Kv(t,e){1&t&&$o(0)}const Zv=["*"];function Qv(t,e){}const Xv=function(t){return{animationDuration:t}},Jv=function(t,e){return{value:t,params:e}},tw=["tabBodyWrapper"],ew=["tabHeader"];function nw(t,e){}function iw(t,e){1&t&&Co(0,nw,0,0,"ng-template",9),2&t&&Eo("cdkPortalOutlet",Ho().$implicit.templateLabel)}function sw(t,e){1&t&&ua(0),2&t&&da(Ho().$implicit.textLabel)}function rw(t,e){if(1&t){const t=Mo();Io(0,"div",6),No("click",function(){Ge(t);const n=e.$implicit,i=e.index,s=Ho(),r=So(1);return s._handleClick(n,r,i)}),Io(1,"div",7),Co(2,iw,1,1,"ng-template",8),Co(3,sw,1,1,"ng-template",8),Oo(),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-label-active",i.selectedIndex==n),Eo("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),vo("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),Gs(2),Eo("ngIf",t.templateLabel),Gs(1),Eo("ngIf",!t.templateLabel)}}function ow(t,e){if(1&t){const t=Mo();Io(0,"mat-tab-body",10),No("_onCentered",function(){return Ge(t),Ho()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Ge(t),Ho()._setTabBodyWrapperHeight(e)}),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();ta("mat-tab-body-active",i.selectedIndex==n),Eo("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),vo("aria-labelledby",i._getTabLabelId(n))}}const aw=["tabListContainer"],lw=["tabList"],cw=["nextPaginator"],hw=["previousPaginator"],uw=new vt("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let dw=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(uw),xo(Tb,8))},t.\u0275dir=se({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const pw=new vt("MatTabContent"),fw=new vt("MatTabLabel");class mw{}const gw=Vb(mw),_w=new vt("MAT_TAB_GROUP");let yw=(()=>{class t extends gw{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new S,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Yg(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(_w))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,fw,!0),tc(n,pw,!0,dl)),2&t){let t;Kl(t=nc())&&(e.templateLabel=t.first),Kl(t=nc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Zl(dl,!0),2&t){let t;Kl(t=nc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[ao,fi],ngContentSelectors:Zv,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Co(0,Kv,1,0,"ng-template"))},encapsulation:2}),t})();const bw={translateTab:o_("translateTab",[h_("center, void, left-origin-center, right-origin-center",c_({transform:"none"})),h_("left",c_({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h_("right",c_({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),d_("* => left, * => right, left => center, right => center",a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),d_("void => left-origin-center",[c_({transform:"translate3d(-100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),d_("void => right-origin-center",[c_({transform:"translate3d(100%, 0, 0)"}),a_("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let vw=(()=>{class t extends Qg{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.EMPTY,this._leavingSub=u.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ed(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Pa),xo(bl),xo(Ot(()=>Cw)),xo(sh))},t.\u0275dir=se({type:t,selectors:[["","matTabBodyHost",""]],features:[ao]}),t})(),ww=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.EMPTY,this._translateTabComplete=new S,this._onCentering=new Nl,this._beforeCentering=new Nl,this._afterLeavingCenter=new Nl,this._onCentered=new Nl(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(wv((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275dir=se({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Cw=(()=>{class t extends ww{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(n_,8),xo(ol))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Ql(Xg,!0),2&t){let t;Kl(t=nc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[ao],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var n,i;1&t&&(Io(0,"div",0,1),No("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Co(2,Qv,0,0,"ng-template",2),Oo()),2&t&&Eo("@translateTab",function(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return function(t,e,n,i){const s=bo(t,e,n);return bo(t,e+1,i)||s}(t,a,s,r)?yo(t,a+2,o?i.call(o,s,r):i(s,r)):Ll(t,a+2)}(We(),nn(),t,e,n,i,s)}(3,Jv,e._position,(1,n=Xv,i=e.animationDuration,Fl(We(),nn(),1,n,i,undefined))))},directives:[vw],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bw.translateTab]}}),t})();const Sw=new vt("MAT_TABS_CONFIG");let xw=0;class kw{}class Ew{constructor(t){this._elementRef=t}}const Tw=jb(Bb(Ew),"primary");let Iw=(()=>{class t extends Tw{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new jl,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.EMPTY,this._tabLabelSubscription=u.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new Nl,this.focusChange=new Nl,this.animationDone=new Nl,this.selectedTabChange=new Nl(!0),this._groupId=xw++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=dg(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=pg(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new kw;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ao]}),t})(),Ow=(()=>{class t extends Iw{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Sw,8),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,yw,!0),2&t){let t;Kl(t=nc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Ql(tw,!0),Ql(ew,!0)),2&t){let t;Kl(t=nc())&&(e._tabBodyWrapper=t.first),Kl(t=nc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Aa([{provide:_w,useExisting:t}]),ao],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Io(0,"mat-tab-header",0,1),No("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Co(2,rw,4,14,"div",2),Oo(),Io(3,"div",3,4),Co(5,ow,1,8,"mat-tab-body",5),Oo()),2&t&&(Eo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),Gs(2),Eo("ngForOf",e._tabs),Gs(1),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(2),Eo("ngForOf",e._tabs))},directives:function(){return[Fw,Ih,Dw,Jb,Hg,Ah,Qg,Cw]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class Aw{}const Rw=Vb(Aw);let Dw=(()=>{class t extends Rw{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(vo("aria-disabled",!!e.disabled),ta("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[ao]}),t})();const Pw=tg({passive:!0});let Mw=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new S,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new S,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Nl,this.indexFocused=new Nl,s.runOutsideAngular(()=>{gv(t.nativeElement,"mouseleave").pipe(xv(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=pg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){gv(this._previousPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),gv(this._nextPaginator.nativeElement,"touchstart",Pw).pipe(xv(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Su(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ig(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),W(t,e,this._items.changes).pipe(xv(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(xv(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ng(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),bv(650,100).pipe(xv(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Lw=(()=>{class t extends Mw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dg(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275dir=se({type:t,inputs:{disableRipple:"disableRipple"},features:[ao]}),t})(),Fw=(()=>{class t extends Lw{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(ol),xo(Wv),xo(n_,8),xo(Tc),xo(Gm),xo(Tb,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,Dw,!1),2&t){let t;Kl(t=nc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Zl(dw,!0),Zl(aw,!0),Zl(lw,!0),Ql(cw,!0),Ql(hw,!0)),2&t){let t;Kl(t=nc())&&(e._inkBar=t.first),Kl(t=nc())&&(e._tabListContainer=t.first),Kl(t=nc())&&(e._tabList=t.first),Kl(t=nc())&&(e._nextPaginator=t.first),Kl(t=nc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ao],ngContentSelectors:Zv,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(qo(),Io(0,"div",0,1),No("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ao(2,"div",2),Oo(),Io(3,"div",3,4),No("keydown",function(t){return e._handleKeydown(t)}),Io(5,"div",5,6),No("cdkObserveContent",function(){return e._onContentChanges()}),Io(7,"div",7),$o(8),Oo(),Ao(9,"mat-ink-bar"),Oo(),Oo(),Io(10,"div",8,9),No("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ao(12,"div",2),Oo()),2&t&&(ta("mat-tab-header-pagination-disabled",e._disableScrollBefore),Eo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Gs(5),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode),Gs(5),ta("mat-tab-header-pagination-disabled",e._disableScrollAfter),Eo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Jb,bg,dw],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),Nw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,t_,tv,vg,qg],Nb]}),t})();const Vw=["mat-button",""],jw=["*"],Bw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class zw{constructor(t){this._elementRef=t}}const Hw=jb(Vb(Bb(zw)));let Uw=(()=>{class t extends Hw{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 i of Bw)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);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="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,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)(xo(Na),xo(Bg),xo(Tb,8))},t.\u0275cmp=Xt({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&&Ql(Jb,!0),2&t){let t;Kl(t=nc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),ta("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ao],attrs:Vw,ngContentSelectors:jw,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&&(qo(),Io(0,"span",0),$o(1),Oo(),Ao(2,"span",1),Ao(3,"span",2)),2&t&&(Gs(2),ta("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Eo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Jb],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:block;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})(),qw=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tv,Nb],Nb]}),t})();const $w=["ketcherFrame"];let Ww=(()=>{class t{constructor(t,e){this.domSanatizer=t,this.loadingService=e,this.moleculeInput=new Nl,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/client/assets/ketcher/ketcher.html")}ngOnInit(){this.ketcherFrame.nativeElement.onload=()=>{this.ketcher=this.ketcherFrame.nativeElement.contentWindow.ketcher,this.loadingService.setLoadingState(!1)}}addMolecule(){const t=this.ketcher.getSmiles();this.moleculeInput.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-sketcher"]],viewQuery:function(t,e){if(1&t&&Zl($w,!0),2&t){let t;Kl(t=nc())&&(e.ketcherFrame=t.first)}},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),Ao(1,"iframe",1,2),Oo(),Io(3,"div",3),Io(4,"button",4),No("click",function(){return e.addMolecule()}),ua(5," Predict "),Oo(),Oo()),2&t&&(Gs(1),Eo("src",e.ketcherSrc,li))},directives:[Uw],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),t})();const Yw={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}};let Gw=(()=>{class t{constructor(t){this.el=t,this.selectedFile=new Nl}ngOnInit(){this.addHiddenFileInput()}ngOnDestroy(){document.body.removeChild(this.fileInputElement)}addHiddenFileInput(){this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=t=>{t.target.files&&t.target.files.length>0&&this.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);const t=this.fileInputElement;this.el.nativeElement.addEventListener("click",()=>{t.click()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),t})();function Kw(...t){if(1===t.length){const e=t[0];if(l(e))return Zw(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Zw(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Zw(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(L(t=>e(...t)))}return Zw(t,null)}function Zw(t,e){return new y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const Qw=new vt("NgValueAccessor"),Xw={provide:Qw,useExisting:Ot(()=>Jw),multi:!0};let Jw=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Aa([Xw])]}),t})();const tC={provide:Qw,useExisting:Ot(()=>nC),multi:!0},eC=new vt("CompositionEventMode");let nC=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ih()?ih().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(eC,8))},t.\u0275dir=se({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&&No("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:[Aa([tC])]}),t})();function iC(t){return null==t||0===t.length}function sC(t){return null!=t&&"number"==typeof t.length}const rC=new vt("NgValidators"),oC=new vt("NgAsyncValidators"),aC=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class lC{static min(t){return e=>{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(iC(e.value)||iC(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return iC(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return iC(t.value)||aC.test(t.value)?null:{email:!0}}static minLength(t){return e=>iC(e.value)||!sC(e.value)?null:e.value.lengthsC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return lC.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(iC(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return uC(dC(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(cC);return 0==e.length?null:function(t){return Kw(dC(t,e).map(hC)).pipe(L(uC))}}}function cC(t){return null!=t}function hC(t){const e=Lo(t)?j(t):t;return Fo(e),e}function uC(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 dC(t,e){return e.map(e=>e(t))}function pC(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function fC(t){return null!=t?lC.compose(pC(t)):null}function mC(t){return null!=t?lC.composeAsync(pC(t)):null}function gC(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function _C(t){return t._rawValidators}function yC(t){return t._rawAsyncValidators}let bC=(()=>{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=fC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mC(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=se({type:t}),t})(),vC=(()=>{class t extends bC{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return wC(e||t)},t.\u0275dir=se({type:t,features:[ao]}),t})();const wC=ts(vC);class CC extends bC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class SC{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let xC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(CC,2))},t.\u0275dir=se({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})(),kC=(()=>{class t extends SC{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,2))},t.\u0275dir=se({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ao]}),t})();const EC={provide:Qw,useExisting:Ot(()=>TC),multi:!0};let TC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&No("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([EC])]}),t})();const IC={provide:Qw,useExisting:Ot(()=>AC),multi:!0};let OC=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),AC=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(CC),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na),xo(OC),xo(ro))},t.\u0275dir=se({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Aa([IC])]}),t})();const RC={provide:Qw,useExisting:Ot(()=>DC),multi:!0};let DC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Aa([RC])]}),t})();const PC={provide:Qw,useExisting:Ot(()=>MC),multi:!0};let MC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(xo(ja),xo(Na))},t.\u0275dir=se({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Aa([PC])]}),t})();const LC={provide:Qw,useExisting:Ot(()=>FC),multi:!0};let FC=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&zC(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&&zC(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 VC(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function jC(t,e,n){const i=_C(t);null!==e.validator?t.setValidators(gC(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=yC(t);if(null!==e.asyncValidator?t.setAsyncValidators(gC(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();VC(e._rawValidators,n),VC(e._rawAsyncValidators,n)}}function BC(t,e,n){if(null!==t){if(null!==e.validator){const n=_C(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=yC(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};VC(e._rawValidators,t),VC(e._rawAsyncValidators,t)}}function zC(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HC(t,e){jC(t,e,!1)}const UC=[Jw,DC,TC,MC,FC,AC];function qC(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function $C(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function WC(t){return(ZC(t)?t.validators:t)||null}function YC(t){return Array.isArray(t)?fC(t):t||null}function GC(t,e){return(ZC(e)?e.asyncValidators:t)||null}function KC(t){return Array.isArray(t)?mC(t):t||null}function ZC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class QC{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=YC(this._rawValidators),this._composedAsyncValidatorFn=KC(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=YC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=KC(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=hC(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)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof JC?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof tS&&i.at(t)||null}),i}(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 Nl,this.statusChanges=new Nl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ZC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class XC extends QC{constructor(t=null,e,n){super(WC(e),GC(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){$C(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$C(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 JC extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{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 XC?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),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 tS extends QC{constructor(t,e,n){super(WC(e),GC(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof XC?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const eS={provide:vC,useExisting:Ot(()=>iS)},nS=(()=>Promise.resolve(null))();let iS=(()=>{class t extends vC{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Nl,this.form=new JC({},fC(t),mC(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){nS.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),NC(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),$C(this._directives,t)})}addFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path),n=new JC({});HC(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){nS.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){nS.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,qC(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)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([eS]),ao]}),t})();const sS={provide:CC,useExisting:Ot(()=>oS)},rS=(()=>Promise.resolve(null))();let oS=(()=>{class t extends CC{constructor(t,e,n,i){super(),this.control=new XC,this._registered=!1,this.update=new Nl,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===nC?n=t:(e=t,UC.some(t=>e.constructor===t)?i=t:s=t)}),s||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){NC(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){rS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;rS.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(xo(vC,9),xo(rC,10),xo(oC,10),xo(Qw,10))},t.\u0275dir=se({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:[Aa([sS]),ao,fi]}),t})(),aS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const lS=new vt("NgModelWithFormControlWarning"),cS={provide:vC,useExisting:Ot(()=>hS)};let hS=(()=>{class t extends vC{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Nl,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return NC(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$C(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);HC(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,qC(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),BC(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&NC(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jC(this.form,this,!1),this._oldForm&&BC(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(xo(rC,10),xo(oC,10))},t.\u0275dir=se({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&No("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Aa([cS]),ao,fi]}),t})();const uS={provide:rC,useExisting:Ot(()=>dS),multi:!0};let dS=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?lC.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&vo("required",e.required?"":null)},inputs:{required:"required"},features:[Aa([uS])]}),t})(),pS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),fS=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new JC(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new XC(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new tS(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof XC||t instanceof JC||t instanceof tS?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),mS=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[OC],imports:[pS]}),t})(),gS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:lS,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[fS,OC],imports:[pS]}),t})();const _S=["underline"],yS=["connectionContainer"],bS=["inputContainer"],vS=["label"];function wS(t,e){1&t&&(Ro(0),Io(1,"div",14),Ao(2,"div",15),Ao(3,"div",16),Ao(4,"div",17),Oo(),Io(5,"div",18),Ao(6,"div",15),Ao(7,"div",16),Ao(8,"div",17),Oo(),Do())}function CS(t,e){1&t&&(Io(0,"div",19),$o(1,1),Oo())}function SS(t,e){if(1&t&&(Ro(0),$o(1,2),Io(2,"span"),ua(3),Oo(),Do()),2&t){const t=Ho(2);Gs(3),da(t._control.placeholder)}}function xS(t,e){1&t&&$o(0,3,["*ngSwitchCase","true"])}function kS(t,e){1&t&&(Io(0,"span",23),ua(1," *"),Oo())}function ES(t,e){if(1&t){const t=Mo();Io(0,"label",20,21),No("cdkObserveContent",function(){return Ge(t),Ho().updateOutlineGap()}),Co(2,SS,4,1,"ng-container",12),Co(3,xS,1,0,"ng-content",12),Co(4,kS,2,0,"span",22),Oo()}if(2&t){const t=Ho();ta("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),Eo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),vo("for",t._control.id)("aria-owns",t._control.id),Gs(2),Eo("ngSwitchCase",!1),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function TS(t,e){1&t&&(Io(0,"div",24),$o(1,4),Oo())}function IS(t,e){if(1&t&&(Io(0,"div",25,26),Ao(2,"span",27),Oo()),2&t){const t=Ho();Gs(2),ta("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function OS(t,e){1&t&&(Io(0,"div"),$o(1,5),Oo()),2&t&&Eo("@transitionMessages",Ho()._subscriptAnimationState)}function AS(t,e){if(1&t&&(Io(0,"div",31),ua(1),Oo()),2&t){const t=Ho(2);Eo("id",t._hintLabelId),Gs(1),da(t.hintLabel)}}function RS(t,e){if(1&t&&(Io(0,"div",28),Co(1,AS,2,2,"div",29),$o(2,6),Ao(3,"div",30),$o(4,7),Oo()),2&t){const t=Ho();Eo("@transitionMessages",t._subscriptAnimationState),Gs(1),Eo("ngIf",t.hintLabel)}}const DS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],PS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],MS=new vt("MatError"),LS={transitionMessages:o_("transitionMessages",[h_("enter",c_({opacity:1,transform:"translateY(0%)"})),d_("void => enter",[c_({opacity:0,transform:"translateY(-100%)"}),a_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let FS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t}),t})(),NS=0;const VS=new vt("MatHint");let jS=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+NS++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(vo("id",e.id)("align",null),ta("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[Aa([{provide:VS,useExisting:t}])]}),t})(),BS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-label"]]}),t})(),zS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-placeholder"]]}),t})();const HS=new vt("MatPrefix"),US=new vt("MatSuffix");let qS=0;class $S{constructor(t){this._elementRef=t}}const WS=jb($S,"primary"),YS=new vt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),GS=new vt("MatFormField");let KS=(()=>{class t extends WS{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new S,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+qS++,this._labelId="mat-form-field-label-"+qS++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.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=dg(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(ed(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(xv(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xv(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ed(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ed(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(xv(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,gv(this._label.nativeElement,"transitionend").pipe(Qu(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())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb,vg],Nb]}),t})();class QS{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new XS(t,this.predicate,this.inclusive))}}class XS extends f{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(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}class JS{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=mg(-this._previousScrollPosition.left),t.style.top=mg(-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,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_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 tx{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,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 ex{enable(){}disable(){}attach(){}}function nx(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function ix(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class sx{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,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();nx(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 rx=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new ex,this.close=t=>new tx(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new JS(this._viewportRuler,this._document),this.reposition=t=>new sx(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(ve($v),ve(Wv),ve(Tc),ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve($v),ve(Wv),ve(Tc),ve(sh))},token:t,providedIn:"root"}),t})();class ox{constructor(t){if(this.scrollStrategy=new ex,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 ax{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class lx{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let cx=(()=>{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),hx=(()=>{class t extends cx{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)(ve(sh))},t.\u0275prov=ut({factory:function(){return new t(ve(sh))},token:t,providedIn:"root"}),t})(),ux=(()=>{class t extends cx{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(ve(sh),ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(sh),ve(Gm))},token:t,providedIn:"root"}),t})();const dx=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let px=(()=>{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(){if(this._platform.isBrowser||dx){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new S,this._outsidePointerEvents=new S,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.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(Qu(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=mg(this._config.width),t.height=mg(this._config.height),t.minWidth=mg(this._config.minWidth),t.minHeight=mg(this._config.minHeight),t.maxWidth=mg(this._config.maxWidth),t.maxHeight=mg(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;fg(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xv(W(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 mx=/([A-Za-z%]+)$/;class gx{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,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 S,this._resizeSubscription=u.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("cdk-overlay-connected-position-bounding-box"),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,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_x(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-s,s+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=yx(this._overlayRef.getConfig().minHeight),o=yx(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&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 i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_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 i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=mg(n.height),i.top=mg(n.top),i.bottom=mg(n.bottom),i.width=mg(n.width),i.left=mg(n.left),i.right=mg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=mg(t)),s&&(i.maxWidth=mg(s))}this._lastBoundingBoxSize=n,_x(this._boundingBox.style,i)}_resetBoundingBoxStyles(){_x(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_x(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();_x(n,this._getExactOverlayY(e,t,i)),_x(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=mg(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=mg(r.maxWidth):s&&(n.maxWidth="")),_x(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=mg(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=mg(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ix(t,n),isOriginOutsideView:nx(t,n),isOverlayClipped:ix(e,n),isOverlayOutsideView:nx(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&&fg(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 Na)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 _x(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function yx(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(mx);return n&&"px"!==n?null:parseFloat(e)}return t||null}class bx{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new gx(n,i,s,r,o).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,i){const s=new ax(t,e,n,i);return this._preferredPositions.push(s),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}}class vx{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("cdk-global-overlay-wrapper"),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:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);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("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let wx=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new vx}connectedTo(t,e,n){return new bx(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new gx(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ve(Wv),ve(sh),ve(Gm),ve(px))},t.\u0275prov=ut({factory:function(){return new t(ve(Wv),ve(sh),ve(Gm),ve(px))},token:t,providedIn:"root"}),t})(),Cx=0,Sx=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new ox(t);return s.direction=s.direction||this._directionality.value,new fx(i,e,n,s,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-"+Cx++,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(Wc)),new Zg(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ve(rx),ve(px),ve(Pa),ve(wx),ve(hx),ve(ro),ve(Tc),ve(sh),ve(n_),ve(bh),ve(ux))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const xx=[{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"}],kx=new vt("cdk-connected-overlay-scroll-strategy");let Ex=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(Na))},t.\u0275dir=se({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Tx=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Nl,this.positionChange=new Nl,this.attach=new Nl,this.detach=new Nl,this.overlayKeydown=new Nl,this.overlayOutsideClick=new Nl,this._templatePortal=new Yg(e,n),this._scrollStrategyFactory=i,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=dg(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=dg(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=dg(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=dg(t)}get push(){return this._push}set push(t){this._push=dg(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=xx);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||ng(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 ox({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 QS(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)(xo(Sx),xo(dl),xo(bl),xo(kx),xo(n_,8))},t.\u0275dir=se({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:[fi]}),t})();const Ix={provide:kx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Ox=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Sx,Ix],imports:[[i_,t_,Gv],Gv]}),t})();const Ax=["trigger"],Rx=["panel"];function Dx(t,e){if(1&t&&(Io(0,"span",8),ua(1),Oo()),2&t){const t=Ho();Gs(1),da(t.placeholder||"\xa0")}}function Px(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.triggerValue||"\xa0")}}function Mx(t,e){1&t&&$o(0,0,["*ngSwitchCase","true"])}function Lx(t,e){1&t&&(Io(0,"span",9),Co(1,Px,2,1,"span",10),Co(2,Mx,1,0,"ng-content",11),Oo()),2&t&&(Eo("ngSwitch",!!Ho().customTrigger),Gs(2),Eo("ngSwitchCase",!0))}function Fx(t,e){if(1&t){const t=Mo();Io(0,"div",12),Io(1,"div",13,14),No("@transformPanel.done",function(e){return Ge(t),Ho()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)}),$o(3,1),Oo(),Oo()}if(2&t){const t=Ho();Eo("@transformPanelWrap",void 0),Gs(1),n="mat-select-panel ",i=t._getPanelTheme(),s="",function(t,e,n,i){const s=Ye(),r=rn(2);s.firstUpdatePass&&sa(s,null,r,!0);const o=We();if(n!==Ys&&bo(o,r,n)){const i=s.data[bn()];if(ha(i,!0)&&!ia(s,r)){let t=i.classesWithoutHost;null!==t&&(n=lt(t,n||"")),To(s,i,o,n,!0)}else!function(t,e,n,i,s,r,o,a){s===Ys&&(s=Wo);let l=0,c=0,h=0 void",f_("@transformPanel",[p_()],{optional:!0}))]),transformPanel:o_("transformPanel",[h_("void",c_({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h_("showing",c_({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h_("showing-multiple",c_({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d_("void => *",a_("120ms cubic-bezier(0, 0, 0.2, 1)")),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))])};let Bx=0;const zx=new vt("mat-select-scroll-strategy"),Hx=new vt("MAT_SELECT_CONFIG"),Ux={provide:zx,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class qx{constructor(t,e){this.source=t,this.value=e}}class $x{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const Wx=Bb(zb(Vb(Hb($x)))),Yx=new vt("MatSelectTrigger");let Gx=(()=>{class t extends Wx{constructor(t,e,n,i,s,r,o,a,l,c,h,u,d,p){var f,m,g,_,y;super(s,i,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Bx++,this._triggerAriaLabelledBy=null,this._destroy=new S,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Bx++,this._panelDoneAnimatingStream=new S,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!==(g=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this._typeaheadDebounceInterval=null!==(y=null===(_=this._defaultOptions)||void 0===_?void 0:_.typeaheadDebounceInterval)&&void 0!==y?y:0,this.optionSelectionChanges=Du(()=>{const t=this.options;return t?t.changes.pipe(ed(t),Gu(()=>W(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Qu(1),Gu(()=>this.optionSelectionChanges))}),this.openedChange=new Nl,this._openedStream=this.openedChange.pipe(Mu(t=>t),L(()=>{})),this._closedStream=this.openedChange.pipe(Mu(t=>!t),L(()=>{})),this.selectionChange=new Nl,this.valueChange=new Nl,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||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=dg(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=dg(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=dg(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.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=pg(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Uv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wv(),xv(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xv(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ed(null),xv(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,i=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&i&&!ng(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||13!==n&&32!==n||!e.activeItem||ng(t))if(!s&&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&&i&&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(Qu(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=>{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 Tg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(xv(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(xv(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=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xv(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(t=>t._stateChanges)).pipe(xv(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(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(xo(Wv),xo(ol),xo(Tc),xo(qb),xo(Na),xo(n_,8),xo(iS,8),xo(hS,8),xo(GS,8),xo(CC,10),ko("tabindex"),xo(zx),xo(Fg),xo(Hx,8))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&(Ql(Ax,!0),Ql(Rx,!0),Ql(Tx,!0)),2&t){let t;Kl(t=nc())&&(e.trigger=t.first),Kl(t=nc())&&(e.panel=t.first),Kl(t=nc())&&(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:[ao,fi]}),t})(),Kx=(()=>{class t extends Gx{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 i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(xv(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(Qu(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=fv(t,this.options,this.optionGroups),n=this._getItemHeight();var i,s,r;this.panel.nativeElement.scrollTop=(s=n,(i=(t+e)*n)<(r=this.panel.nativeElement.scrollTop)?i:i+s>r+256?Math.max(0,i-256+s):r)}_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 qx(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,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 i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,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),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=fv(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_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(e){return Zx(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,Yx,!0),Jl(n,pv,!0),Jl(n,lv,!0)),2&t){let t;Kl(t=nc())&&(e.customTrigger=t.first),Kl(t=nc())&&(e.options=t),Kl(t=nc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&No("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(vo("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()),ta("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:[Aa([{provide:FS,useExisting:t},{provide:uv,useExisting:t}]),ao],ngContentSelectors:Vx,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(qo(Nx),Io(0,"div",0,1),No("click",function(){return e.toggle()}),Io(3,"div",2),Co(4,Dx,2,1,"span",3),Co(5,Lx,3,2,"span",4),Oo(),Io(6,"div",5),Ao(7,"div",6),Oo(),Oo(),Co(8,Fx,4,14,"ng-template",7),No("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=So(1);vo("aria-owns",e.panelOpen?e.id+"-panel":null),Gs(3),Eo("ngSwitch",e.empty),vo("id",e._valueId),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1),Gs(3),Eo("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:[Ex,Mh,Lh,Tx,Fh,Eh],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}\n"],encapsulation:2,data:{animation:[jx.transformPanelWrap,jx.transformPanel]},changeDetection:0}),t})();const Zx=ts(Kx);let Qx=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Ux],imports:[[Hh,Ox,mv,Nb],Yv,ZS,mv,Nb]}),t})();class Xx{constructor(t){this.total=t}call(t,e){return e.subscribe(new Jx(t,this.total))}}class Jx extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const tk=new Set;let ek,nk=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ik}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!tk.has(t))try{ek||(ek=document.createElement("style"),ek.setAttribute("type","text/css"),document.head.appendChild(ek)),ek.sheet&&(ek.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),tk.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm))},token:t,providedIn:"root"}),t})();function ik(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let sk=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new S}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return rk(fg(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Eu(rk(fg(t)).map(t=>this._registerQuery(t).observable));return e=td(e.pipe(Qu(1)),e.pipe(t=>t.lift(new Xx(1)),lg(0))),e.pipe(L(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(ed(e),L(({matches:e})=>({query:t,matches:e})),xv(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(ve(nk),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(nk),ve(Tc))},token:t,providedIn:"root"}),t})();function rk(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const ok={tooltipState:o_("state",[h_("initial, void, hidden",c_({opacity:0,transform:"scale(0)"})),h_("visible",c_({transform:"scale(1)"})),d_("* => visible",a_("200ms cubic-bezier(0, 0, 0.2, 1)",u_([c_({opacity:0,transform:"scale(0)",offset:0}),c_({opacity:.5,transform:"scale(0.99)",offset:.5}),c_({opacity:1,transform:"scale(1)",offset:1})]))),d_("* => hidden",a_("100ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:0})))])},ak=tg({passive:!0}),lk=new vt("mat-tooltip-scroll-strategy"),ck={provide:lk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},hk=new vt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let uk=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ng(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=dg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),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)})}))}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(xv(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,ak)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),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 Wg(dk,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(xv(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(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(xv(this._destroyed)).subscribe(t=>{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:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(xv(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_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:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_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:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Qu(1),xv(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}}_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()]);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,ak)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_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)(xo(Sx),xo(Na),xo($v),xo(bl),xo(Tc),xo(Gm),xo(kg),xo(Bg),xo(lk),xo(n_,8),xo(hk,8))},t.\u0275dir=se({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),dk=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){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()}}return t.\u0275fac=function(e){return new(e||t)(xo(ol),xo(sk))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleBodyInteraction()},!1,as),2&t&&Jo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Io(0,"div",0),No("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),function(t,e){const n=Ye();let i;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const t=e[n];if("async"===t.name)return t}throw new ui("302","The pipe 'async' could not be found!")}(0,n.pipeRegistry),n.data[21]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,i.onDestroy)):i=n.data[21];const s=i.factory||(i.factory=hi(i.type)),r=de(xo);try{const t=Li(!1),e=s();Li(t),function(t,e,n,i){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=i}(n,We(),0,e)}finally{de(r)}}(),ua(2),Oo()),2&t){let t=null;ta("mat-tooltip-handset",null==(t=function(t,e,n){const i=t+20,s=We(),r=Fe(s,i);return function(t,e){return mo.isWrapped(e)&&(e=mo.unwrap(e),t[qe.lFrame.bindingIndex]=Ys),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?Fl(s,nn(),e,r.transform,n,r):r.transform(n))}(1,5,e._isHandset))?null:t.matches),Eo("ngClass",e.tooltipClass)("@state",e._visibility),Gs(2),da(e.message)}},directives:[Eh],pipes:[zh],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:[ok.tooltipState]},changeDetection:0}),t})(),pk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[ck],imports:[[qg,Hh,Ox,Nb],Nb,Yv]}),t})();const fk=tg({passive:!0});let mk=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Au;const e=gg(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new S,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,fk),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,fk)}}),i}stopMonitoring(t){const e=gg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(ve(Gm),ve(Tc))},t.\u0275prov=ut({factory:function(){return new t(ve(Gm),ve(Tc))},token:t,providedIn:"root"}),t})(),gk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Km]]}),t})();const _k=new vt("MAT_INPUT_VALUE_ACCESSOR"),yk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bk=0;class vk{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const wk=Hb(vk);let Ck=(()=>{class t extends wk{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+bk++,this.focused=!1,this.stateChanges=new S,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Qm().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=dg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=dg(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Qm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=dg(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){yk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(CC,10),xo(iS,8),xo(hS,8),xo(qb),xo(_k,10),xo(mk),xo(Tc),xo(GS,8))},t.\u0275dir=se({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&No("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(fa("disabled",e.disabled)("required",e.required),vo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ta("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Aa([{provide:FS,useExisting:t}]),ao,fi]}),t})(),Sk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[qb],imports:[[gk,ZS,Nb],gk,ZS]}),t})(),xk=(()=>{class t{constructor(){this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Nl,this.fileDataAdded=new Nl,this.fileUploadFinished=new Nl,this.fileProcess=new Nl,this.subscriptions=[]}ngOnInit(){const t=localStorage.getItem("fileType");t&&(this.fileType=t);const e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):Yw[this.fileType],this.acceptedFileTypes=Object.keys(Yw)}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}fileSelected(t){if(t){this.selectedFile=t,this.selectedFileName=t.name;const e=this.selectedFileName.split("."),n=e[e.length-1];this.acceptedFileTypes.indexOf(n)>-1&&(this.fileType=n,this.updateType());const i=new FileReader;i.onload=()=>{this.selectedFileContent=i.result},i.readAsText(t)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}updateType(){localStorage.setItem("fileType",this.fileType);const t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):Yw[this.fileType]}updateOptions(){const t=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",t)}processFile(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){if(1&t&&(Io(0,"div",0),Io(1,"div",1),ua(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Io(3,"a",2),ua(4,"these instructions"),Oo(),ua(5," to export it as Text or CSV. "),Oo(),Io(6,"div"),Io(7,"button",3),No("selectedFile",function(t){return e.fileSelected(t)}),ua(8,"Browse"),Oo(),Io(9,"span"),ua(10),Oo(),Oo(),Io(11,"form",4,5),Io(13,"div",6),Io(14,"div",7),Io(15,"mat-form-field"),Io(16,"mat-label"),ua(17,"File type"),Oo(),Io(18,"mat-select",8),No("ngModelChange",function(t){return e.fileType=t})("selectionChange",function(){return e.updateType()}),Io(19,"mat-option",9),ua(20," CSV "),Oo(),Io(21,"mat-option",10),ua(22," Text "),Oo(),Io(23,"mat-option",11),ua(24," SMI "),Oo(),Oo(),Oo(),Oo(),Io(25,"div",12),Io(26,"mat-form-field"),Io(27,"mat-label"),ua(28,"Column separator"),Oo(),Io(29,"mat-select",13),No("ngModelChange",function(t){return e.options.columnSeparator=t})("selectionChange",function(){return e.updateOptions()}),Io(30,"mat-option",14),ua(31," Comma (,) "),Oo(),Io(32,"mat-option",14),ua(33," Tab (\\t) "),Oo(),Oo(),Oo(),Oo(),Io(34,"div",15),Io(35,"mat-form-field"),Io(36,"mat-label"),ua(37,"Has header row"),Oo(),Io(38,"mat-select",16),No("ngModelChange",function(t){return e.options.hasHeaderRow=t})("selectionChange",function(){return e.updateOptions()}),Io(39,"mat-option",14),ua(40," Yes "),Oo(),Io(41,"mat-option",14),ua(42," No "),Oo(),Oo(),Oo(),Oo(),Io(43,"div",17),Io(44,"mat-form-field"),Io(45,"input",18),No("ngModelChange",function(t){return e.options.indexIdentifierColumn=t})("change",function(){return e.updateOptions()}),Oo(),Io(46,"mat-hint"),ua(47,"Zero indicates that the SMILES are in the first column"),Oo(),Oo(),Oo(),Oo(),Io(48,"div",19),Ao(49,"span",20),Io(50,"button",21),No("click",function(){return e.processFile()}),ua(51," Process file "),Oo(),Oo(),Oo(),Oo()),2&t){const t=So(12);Gs(10),pa(" \xa0 ",e.selectedFileName?"Selected file: "+e.selectedFileName:"No file selected"," "),Gs(8),Eo("ngModel",e.fileType),Gs(11),Eo("ngModel",e.options.columnSeparator),Gs(1),Eo("value",","),Gs(2),Eo("value","\t"),Gs(6),Eo("ngModel",e.options.hasHeaderRow),Gs(1),Eo("value",!0),Gs(2),Eo("value",!1),Gs(4),Eo("ngModel",e.options.indexIdentifierColumn),Gs(5),Eo("disabled",t.invalid||!e.selectedFileName||!e.selectedFileContent)}},directives:[Uw,Gw,aS,kC,iS,KS,BS,Kx,dS,xC,oS,pv,uk,TC,Ck,nC,jS],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),t})();const kk=["*"];function Ek(t){return Error(`Unable to find icon with the name "${t}"`)}function Tk(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Ik(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ok{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Ak=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,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,i){return this._addSvgIconConfig(t,e,new Ok(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(oi.HTML,n);if(!s)throw Ik(n);return this._addSvgIconConfig(t,e,new Ok("",s,i))}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 Ok(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(oi.HTML,e);if(!i)throw Ik(e);return this._addSvgIconSetConfig(t,new Ok("",i,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(oi.RESOURCE_URL,t);if(!e)throw Tk(t);const n=this._cachedIconsByUrl.get(e);return n?Su(Rk(n)):this._loadSvgIconFromConfig(new Ok(t,null)).pipe(cd(t=>this._cachedIconsByUrl.set(e,t)),L(t=>Rk(t)))}getNamedSvgIcon(t,e=""){const n=Dk(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Vv(Ek(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Su(Rk(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(L(t=>Rk(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Su(n):Kw(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(sd(e=>{const n=this._sanitizer.sanitize(oi.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Su(null)})))).pipe(L(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Ek(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(cd(e=>t.svgText=e),L(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Su(null):this._fetchIcon(t).pipe(cd(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,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 i=0;ithis._inProgressUrlFetches.delete(r)),tt());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Dk(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}}return t.\u0275fac=function(e){return new(e||t)(ve(km,8),ve(yu),ve(sh,8),ve(ss))},t.\u0275prov=ut({factory:function(){return new t(ve(km,8),ve(yu),ve(sh,8),ve(ss))},token:t,providedIn:"root"}),t})();function Rk(t){return t.cloneNode(!0)}function Dk(t,e){return t+":"+e}class Pk{constructor(t){this._elementRef=t}}const Mk=jb(Pk),Lk=new vt("mat-icon-location",{providedIn:"root",factory:function(){const t=we(sh),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Fk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Nk=Fk.map(t=>`[${t}]`).join(", "),Vk=/^url\(['"]?#(.*?)['"]?\)$/;let jk=(()=>{class t extends Mk{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=dg(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 i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Nk),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(Vk):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[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(Qu(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)(xo(Na),xo(Ak),ko("aria-hidden"),xo(Lk),xo(ss))},t.\u0275cmp=Xt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(vo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ta("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:[ao],ngContentSelectors:kk,decls:1,vars:0,template:function(t,e){1&t&&(qo(),$o(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})(),Bk=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function zk(t,e){}class Hk{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Uk={dialogContainer:o_("dialogContainer",[h_("void, exit",c_({opacity:0,transform:"scale(0.7)"})),h_("enter",c_({transform:"none"})),d_("* => enter",a_("150ms cubic-bezier(0, 0, 0.2, 1)",c_({transform:"none",opacity:1}))),d_("* => void, * => exit",a_("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",c_({opacity:0})))])};let qk=(()=>{class t extends Kg{constructor(t,e,n,i,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=r,this._animationStateChanged=new Nl,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Pg),xo(ol),xo(sh,8),xo(Hk),xo(Bg))},t.\u0275dir=se({type:t,viewQuery:function(t,e){if(1&t&&Zl(Qg,!0),2&t){let t;Kl(t=nc())&&(e._portalOutlet=t.first)}},features:[ao]}),t})(),$k=(()=>{class t extends qk{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return Wk(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Vo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(fa("id",e._id),vo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ma("@dialogContainer",e._state))},features:[ao],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Co(0,zk,0,0,"ng-template",0)},directives:[Qg],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Uk.dialogContainer]}}),t})();const Wk=ts($k);let Yk=0;class Gk{constructor(t,e,n="mat-dialog-"+Yk++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new S,this._afterClosed=new S,this._beforeClosed=new S,this._state=0,e._id=n,e._animationStateChanged.pipe(Mu(t=>"opened"===t.state),Qu(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Mu(t=>"closed"===t.state),Qu(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Mu(t=>27===t.keyCode&&!this.disableClose&&!ng(t))).subscribe(t=>{t.preventDefault(),Kk(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Kk(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Mu(t=>"closing"===t.state),Qu(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Kk(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const Zk=new vt("MatDialogData"),Qk=new vt("mat-dialog-default-options"),Xk=new vt("mat-dialog-scroll-strategy"),Jk={provide:Xk,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.block()}};let tE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new S,this._afterOpenedAtThisLevel=new S,this._ariaHiddenElements=new Map,this.afterAllClosed=Du(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ed(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Hk)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ox({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=ro.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Hk,useValue:e}]}),i=new Wg(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const s=new this._dialogRefConstructor(n,e,i.id);if(t instanceof dl)e.attachTemplatePortal(new Yg(t,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,e),r=e.attachComponentPortal(new Wg(t,i.viewContainerRef,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(n_,null)||s.push({provide:n_,useValue:{value:t.direction,change:Su()}}),ro.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(ro),xo(void 0),xo(void 0),xo(px),xo(void 0),xo(Dt),xo(Dt),xo(vt))},t.\u0275dir=se({type:t}),t})(),eE=(()=>{class t extends tE{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,Gk,$k,Zk)}}return t.\u0275fac=function(e){return new(e||t)(ve(Sx),ve(ro),ve(bh,8),ve(Qk,8),ve(Xk),ve(t,12),ve(px))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),nE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[eE,Jk],imports:[[Ox,t_,Nb],Nb]}),t})(),iE=(()=>{class t{constructor(t,e){this.el=t,this.http=e,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}ngAfterViewInit(){this.isAfterViewInit=!0,this.setImageSrc()}set version(t){t!==this.privateVersion&&(this.privateVersion=t,this.setImageSrc())}set entityId(t){t!==this.privateEntityId&&(this.privateEntityId=t,this.setImageSrc())}set size(t){t!==this.privateSize&&(this.privateSize=t,this.setImageSrc())}set stereo(t){t!==this.privateStereo&&(this.privateStereo=t,this.setImageSrc())}set atomMaps(t){t!==this.privateAtomMaps&&(this.privateAtomMaps=t,this.setImageSrc())}setImageSrc(){if(this.isAfterViewInit){const t="/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=t,this.imageElement.alt="structure image"}}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(km))},t.\u0275dir=se({type:t,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),t})(),sE=(()=>{class t{constructor(t){this.data=t,this.smiles=t.smiles}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Zk))},t.\u0275cmp=Xt({type:t,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(t,e){1&t&&Ao(0,"img",0),2&t&&Eo("entityId",e.smiles)},directives:[iE],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),t})();function rE(t,e){if(1&t&&(Io(0,"mat-option",19),ua(1),Oo()),2&t){const t=e.$implicit;Eo("value",t),Gs(1),pa(" ",t," ")}}function oE(t,e){if(1&t){const t=Mo();Io(0,"mat-form-field",16),Io(1,"mat-select",17),No("selectionChange",function(e){return Ge(t),Ho(2)._changePageSize(e.value)}),Co(2,rE,2,2,"mat-option",18),Oo(),Oo()}if(2&t){const t=Ho(2);Eo("appearance",t._formFieldAppearance)("color",t.color),Gs(1),Eo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),Gs(1),Eo("ngForOf",t._displayedPageSizeOptions)}}function aE(t,e){if(1&t&&(Io(0,"div",20),ua(1),Oo()),2&t){const t=Ho(2);Gs(1),da(t.pageSize)}}function lE(t,e){if(1&t&&(Io(0,"div",12),Io(1,"div",13),ua(2),Oo(),Co(3,oE,3,6,"mat-form-field",14),Co(4,aE,2,1,"div",15),Oo()),2&t){const t=Ho();Gs(2),pa(" ",t._intl.itemsPerPageLabel," "),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length>1),Gs(1),Eo("ngIf",t._displayedPageSizeOptions.length<=1)}}function cE(t,e){if(1&t){const t=Mo();Io(0,"button",21),No("click",function(){return Ge(t),Ho().firstPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",22),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),vo("aria-label",t._intl.firstPageLabel)}}function hE(t,e){if(1&t){const t=Mo();Cn(),Sn(),Io(0,"button",23),No("click",function(){return Ge(t),Ho().lastPage()}),Cn(),Io(1,"svg",7),Ao(2,"path",24),Oo(),Oo()}if(2&t){const t=Ho();Eo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),vo("aria-label",t._intl.lastPageLabel)}}let uE=(()=>{class t{constructor(){this.changes=new S,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 i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const dE={provide:uE,deps:[[new st,new ot,uE]],useFactory:function(t){return t||new uE}},pE=new vt("MAT_PAGINATOR_DEFAULT_OPTIONS");class fE{}const mE=Vb(Ub(fE));let gE=(()=>{class t extends mE{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 Nl,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(pg(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=pg(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(pg(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>pg(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=dg(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=dg(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)(xo(uE),xo(ol),xo(void 0))},t.\u0275dir=se({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ao]}),t})(),_E=(()=>{class t extends gE{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)(xo(uE),xo(ol),xo(pE,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ao],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&&(Io(0,"div",0),Io(1,"div",1),Co(2,lE,5,3,"div",2),Io(3,"div",3),Io(4,"div",4),ua(5),Oo(),Co(6,cE,3,5,"button",5),Io(7,"button",6),No("click",function(){return e.previousPage()}),Cn(),Io(8,"svg",7),Ao(9,"path",8),Oo(),Oo(),Sn(),Io(10,"button",9),No("click",function(){return e.nextPage()}),Cn(),Io(11,"svg",7),Ao(12,"path",10),Oo(),Oo(),Co(13,hE,3,5,"button",11),Oo(),Oo(),Oo()),2&t&&(Gs(2),Eo("ngIf",!e.hidePageSize),Gs(3),pa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),Gs(1),Eo("ngIf",e.showFirstLastButtons),Gs(1),Eo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),vo("aria-label",e._intl.previousPageLabel),Gs(3),Eo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),vo("aria-label",e._intl.nextPageLabel),Gs(3),Eo("ngIf",e.showFirstLastButtons))},directives:[Ah,Uw,uk,KS,Kx,Ih,pv],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)}\n"],encapsulation:2,changeDetection:0}),t})(),yE=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[dE],imports:[[Hh,qw,Qx,pk,Nb]]}),t})();const bE=[[["caption"]],[["colgroup"],["col"]]],vE=["caption","colgroup, col"];function wE(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=dg(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const CE=new vt("CDK_TABLE");let SE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellDef",""]]}),t})(),xE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),kE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class EE{}const TE=wE(EE);let IE=(()=>{class t extends TE{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=dg(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)(xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,SE,!0),Jl(n,xE,!0),Jl(n,kE,!0)),2&t){let t;Kl(t=nc())&&(e.cell=t.first),Kl(t=nc())&&(e.headerCell=t.first),Kl(t=nc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Aa([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();class OE{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let AE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ao]}),t})(),RE=(()=>{class t extends OE{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(xo(IE),xo(Na))},t.\u0275dir=se({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[ao]}),t})();class DE{constructor(){this.tasks=[],this.endTasks=[]}}const PE=new vt("_COALESCED_STYLE_SCHEDULER");let ME=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new S}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 DE,this._getScheduleObservable().pipe(xv(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new DE;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Qu(1))}}return t.\u0275fac=function(e){return new(e||t)(ve(Tc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),LE=(()=>{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 VE?t.headerCell.template:this instanceof zE?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl))},t.\u0275dir=se({type:t,features:[fi]}),t})();class FE extends LE{}const NE=wE(FE);let VE=(()=>{class t extends NE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ao,fi]}),t})();class jE extends LE{}const BE=wE(jE);let zE=(()=>{class t extends BE{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ao,fi]}),t})(),HE=(()=>{class t extends LE{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(xo(dl),xo(tl),xo(CE,8))},t.\u0275dir=se({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ao]}),t})(),UE=(()=>{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)(xo(bl))},t.\u0275dir=se({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),qE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),$E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({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&&Po(0,0)},directives:[UE],encapsulation:2}),t})(),WE=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(xo(dl))},t.\u0275dir=se({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const YE=["top","bottom","left","right"];class GE{constructor(t,e,n,i,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const s=t[0],r=s.children.length,o=this._getCellWidths(s,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",o=i?"left":"right";for(const c of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";YE.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){t.classList.add(this._stickCellCss),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 i of YE)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let KE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","rowOutlet",""]]}),t})(),ZE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),QE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),XE=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(xo(bl),xo(Na))},t.\u0275dir=se({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),JE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new S,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 xu({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,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=dg(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=dg(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&&this._viewportRuler.change().pipe(xv(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(),zv(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?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)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),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 i=0;i{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 s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=tT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tT(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 i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],zv(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;var e;zv(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof y||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Su(this.dataSource)),this._renderChangeSubscription=t.pipe(xv(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)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))UE.mostRecentCellOutlet&&UE.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 GE(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Su()).pipe(xv(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)(xo(tl),xo(ol),xo(Na),ko("role"),xo(n_,8),xo(sh),xo(Gm),xo(qv,8),xo(PE,8),xo(Wv,8))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(Jl(n,WE,!0),Jl(n,IE,!0),Jl(n,HE,!0),Jl(n,VE,!0),Jl(n,zE,!0)),2&t){let t;Kl(t=nc())&&(e._noDataRow=t.first),Kl(t=nc())&&(e._contentColumnDefs=t),Kl(t=nc())&&(e._contentRowDefs=t),Kl(t=nc())&&(e._contentHeaderRowDefs=t),Kl(t=nc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Zl(KE,!0),Zl(ZE,!0),Zl(QE,!0),Zl(XE,!0)),2&t){let t;Kl(t=nc())&&(e._rowOutlet=t.first),Kl(t=nc())&&(e._headerRowOutlet=t.first),Kl(t=nc())&&(e._footerRowOutlet=t.first),Kl(t=nc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Aa([{provide:CE,useExisting:t},{provide:qv,useClass:Hv},{provide:PE,useClass:ME}])],ngContentSelectors:vE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(bE),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function tT(t,e){return t.concat(Array.from(e))}let eT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gv]]}),t})();const nT=[[["caption"]],[["colgroup"],["col"]]],iT=["caption","colgroup, col"];let sT=(()=>{class t extends JE{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return rT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ta("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Aa([{provide:qv,useClass:Hv},{provide:JE,useExisting:t},{provide:CE,useExisting:t},{provide:PE,useClass:ME}]),ao],ngContentSelectors:iT,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(qo(nT),$o(0),$o(1,1),Po(2,0),Po(3,1),Po(4,2),Po(5,3))},directives:[ZE,KE,XE,QE],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;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const rT=ts(sT);let oT=(()=>{class t extends SE{}return t.\u0275fac=function(e){return aT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matCellDef",""]],features:[Aa([{provide:SE,useExisting:t}]),ao]}),t})();const aT=ts(oT);let lT=(()=>{class t extends xE{}return t.\u0275fac=function(e){return cT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderCellDef",""]],features:[Aa([{provide:xE,useExisting:t}]),ao]}),t})();const cT=ts(lT);let hT=(()=>{class t extends IE{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(e){return uT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Aa([{provide:IE,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ao]}),t})();const uT=ts(hT);let dT=(()=>{class t extends AE{}return t.\u0275fac=function(e){return pT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ao]}),t})();const pT=ts(dT);let fT=(()=>{class t extends RE{}return t.\u0275fac=function(e){return mT(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ao]}),t})();const mT=ts(fT);let gT=(()=>{class t extends VE{}return t.\u0275fac=function(e){return _T(e||t)},t.\u0275dir=se({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Aa([{provide:VE,useExisting:t}]),ao]}),t})();const _T=ts(gT);let yT=(()=>{class t extends HE{}return t.\u0275fac=function(e){return bT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Aa([{provide:HE,useExisting:t}]),ao]}),t})();const bT=ts(yT);let vT=(()=>{class t extends qE{}return t.\u0275fac=function(e){return wT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Aa([{provide:qE,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const wT=ts(vT);let CT=(()=>{class t extends $E{}return t.\u0275fac=function(e){return ST(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Aa([{provide:$E,useExisting:t}]),ao],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&Po(0,0)},directives:[UE],encapsulation:2}),t})();const ST=ts(CT);let xT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[eT,Nb],Nb]}),t})();const kT=["mat-sort-header",""];function ET(t,e){if(1&t){const t=Mo();Io(0,"div",3),No("@arrowPosition.start",function(){return Ge(t),Ho()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Ge(t),Ho()._disableViewStateAnimation=!1}),Ao(1,"div",4),Io(2,"div",5),Ao(3,"div",6),Ao(4,"div",7),Ao(5,"div",8),Oo(),Oo()}if(2&t){const t=Ho();Eo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),Gs(2),Eo("@indicator",t._getArrowDirectionState()),Gs(1),Eo("@leftPointer",t._getArrowDirectionState()),Gs(1),Eo("@rightPointer",t._getArrowDirectionState())}}const TT=["*"];class IT{}const OT=Ub(Vb(IT));let AT=(()=>{class t extends OT{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new S,this.start="asc",this._direction="",this.sortChange=new Nl}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return RT(e||t)},t.\u0275dir=se({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ao,fi]}),t})();const RT=ts(AT),DT=Pb.ENTERING+" "+Db.STANDARD_CURVE,PT={indicator:o_("indicator",[h_("active-asc, asc",c_({transform:"translateY(0px)"})),h_("active-desc, desc",c_({transform:"translateY(10px)"})),d_("active-asc <=> active-desc",a_(DT))]),leftPointer:o_("leftPointer",[h_("active-asc, asc",c_({transform:"rotate(-45deg)"})),h_("active-desc, desc",c_({transform:"rotate(45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),rightPointer:o_("rightPointer",[h_("active-asc, asc",c_({transform:"rotate(45deg)"})),h_("active-desc, desc",c_({transform:"rotate(-45deg)"})),d_("active-asc <=> active-desc",a_(DT))]),arrowOpacity:o_("arrowOpacity",[h_("desc-to-active, asc-to-active, active",c_({opacity:1})),h_("desc-to-hint, asc-to-hint, hint",c_({opacity:.54})),h_("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",c_({opacity:0})),d_("* => asc, * => desc, * => active, * => hint, * => void",a_("0ms")),d_("* <=> *",a_(DT))]),arrowPosition:o_("arrowPosition",[d_("* => desc-to-hint, * => desc-to-active",a_(DT,u_([c_({transform:"translateY(-25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-desc, * => active-to-desc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(25%)"})]))),d_("* => asc-to-hint, * => asc-to-active",a_(DT,u_([c_({transform:"translateY(25%)"}),c_({transform:"translateY(0)"})]))),d_("* => hint-to-asc, * => active-to-asc",a_(DT,u_([c_({transform:"translateY(0)"}),c_({transform:"translateY(-25%)"})]))),h_("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",c_({transform:"translateY(0)"})),h_("hint-to-desc, active-to-desc, desc",c_({transform:"translateY(-25%)"})),h_("hint-to-asc, active-to-asc, asc",c_({transform:"translateY(25%)"}))]),allowChildren:o_("allowChildren",[d_("* <=> *",[f_("@*",p_(),{optional:!0})])])};let MT=(()=>{class t{constructor(){this.changes=new S,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LT={provide:MT,deps:[[new st,new ot,MT]],useFactory:function(t){return t||new MT}};class FT{}const NT=Vb(FT);let VT=(()=>{class t extends NT{constructor(t,e,n,i,s,r){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=W(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=dg(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(xo(MT),xo(ol),xo(AT,8),xo("MAT_SORT_HEADER_COLUMN_DEF",8),xo(Bg),xo(Na))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&No("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(vo("aria-sort",e._getAriaSortAttribute()),ta("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ao],attrs:kT,ngContentSelectors:TT,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(qo(),Io(0,"div",0),Io(1,"div",1),$o(2),Oo(),Co(3,ET,6,6,"div",2),Oo()),2&t&&(ta("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vo("tabindex",e._isDisabled()?null:0),Gs(3),Eo("ngIf",e._renderArrow()))},directives:[Ah],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[PT.indicator,PT.leftPointer,PT.rightPointer,PT.arrowOpacity,PT.arrowPosition,PT.allowChildren]},changeDetection:0}),t})(),jT=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[LT],imports:[[Hh,Nb]]}),t})();function BT(t,e){if(1&t&&(Io(0,"li"),ua(1),Oo()),2&t){const t=e.$implicit;Gs(1),da(t)}}function zT(t,e){if(1&t&&(Io(0,"ul"),Co(1,BT,2,1,"li",8),Oo()),2&t){const t=Ho(2);Gs(1),Eo("ngForOf",t.errorMessages)}}function HT(t,e){if(1&t){const t=Mo();Io(0,"div",2),Io(1,"div",3),Io(2,"div"),ua(3),Oo(),Co(4,zT,2,1,"ul",4),Oo(),Io(5,"div",5),Io(6,"button",6),No("click",function(){return Ge(t),Ho().clearErrorMessage()}),Ao(7,"mat-icon",7),Oo(),Oo(),Oo()}if(2&t){const t=Ho();Gs(3),pa(" ",t.errorMessage," "),Gs(1),Eo("ngIf",t.errorMessages&&t.errorMessages.length)}}function UT(t,e){if(1&t&&(Io(0,"mat-header-cell",23),Io(1,"span",24),ua(2),Oo(),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("matTooltip",e.displayedColumnsDict[t].description),Gs(1),pa(" ",e.displayedColumnsDict[t].isSmilesColumn?"mol":t," ")}}function qT(t,e){if(1&t&&(Io(0,"span"),ua(1),Oo()),2&t){const t=Ho().$implicit,e=Ho().$implicit;Gs(1),da("0 (0.0)"==t[e]?"0 (0.01)":t[e])}}function $T(t,e){if(1&t){const t=Mo();Io(0,"a",26),No("click",function(){Ge(t);const e=Ho().$implicit,n=Ho().$implicit;return Ho(2).openStructureImageDialog(e[n])}),Ao(1,"img",27),Oo()}if(2&t){const t=Ho().$implicit,e=Ho().$implicit;Eo("matTooltip",t[e]),Gs(1),Eo("entityId",t[e])}}function WT(t,e){if(1&t&&(Io(0,"mat-cell"),Co(1,qT,2,1,"span",4),Co(2,$T,2,2,"a",25),Oo()),2&t){const t=Ho().$implicit,e=Ho(2);Gs(1),Eo("ngIf",!e.displayedColumnsDict[t].isSmilesColumn),Gs(1),Eo("ngIf",e.displayedColumnsDict[t].isSmilesColumn)}}function YT(t,e){1&t&&(Ro(0,20),Co(1,UT,3,2,"mat-header-cell",21),Co(2,WT,3,2,"mat-cell",22),Do()),2&t&&Eo("matColumnDef",e.$implicit)}function GT(t,e){1&t&&Ao(0,"mat-header-row")}function KT(t,e){1&t&&Ao(0,"mat-row",28)}const ZT=function(){return[5,10,25,100]};function QT(t,e){if(1&t){const t=Mo();Io(0,"div",9),Io(1,"h2"),ua(2,"Model predictions"),Oo(),Io(3,"div",10),Io(4,"button",11),No("click",function(){return Ge(t),Ho().downloadCSV()}),ua(5,"Download"),Oo(),Ao(6,"div",12),Io(7,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo(),Io(8,"div",14),Io(9,"mat-table",15,16),No("matSortChange",function(e){return Ge(t),Ho().sortData(e)}),Co(11,YT,3,1,"ng-container",17),Co(12,GT,1,0,"mat-header-row",18),Co(13,KT,1,0,"mat-row",19),Oo(),Oo(),Io(14,"mat-paginator",13),No("page",function(e){return Ge(t),Ho().pageChange(e)}),Oo(),Oo()}if(2&t){const t=Ho();Gs(7),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(12,ZT)),Gs(2),Eo("dataSource",t.paged),Gs(2),Eo("ngForOf",t.displayedColumns),Gs(1),Eo("matHeaderRowDef",t.displayedColumns),Gs(1),Eo("matRowDefColumns",t.displayedColumns),Gs(1),Eo("length",t.displayData&&t.displayData.length||0)("pageSize",t.pageSize)("pageIndex",t.page)("pageSizeOptions",Ml(13,ZT))}}let XT=(()=>{class t{constructor(t,e){this.dialog=t,this.gaService=e,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Nl}ngOnInit(){}set predictionsData(t){null!=t?(this.predictions=t,this.displayedColumnsDict=t.mainColumnsDict,this.displayedColumns=Object.keys(this.displayedColumnsDict).sort((t,e)=>this.displayedColumnsDict[t].order-this.displayedColumnsDict[e].order),this.allColumns=t.columns,"replace"===this.dataHandling?(this.data=t.data,this.displayData=this.getNonEmptyPredictions(this.data)):(this.data.push(t.data[0]),this.displayData=this.displayData.concat(this.getNonEmptyPredictions(t.data))),this.pageChange(),t.hasErrors&&(this.errorMessage="The system encountered the following error(s) while processing your request:",this.errorMessages=t.errorMessages)):(this.data=null,this.displayData=null)}pageChange(t){this.clearErrorMessage(),null!=t?(t.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=t.pageIndex,t.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=t.pageSize):this.page=0,this.paged=[];const e=this.page*this.pageSize;for(let n=e;nthis.compare(e[t.active],n[t.active],"asc"===t.direction)),this.pageChange()}compare(t,e,n){return(t!this.displayedColumnsDict[t].isSmilesColumn);return t.filter(t=>{let n=0;return e.forEach(e=>{null!=t[e]&&""!==t[e]||n++}),n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Oo(),Oo(),Io(60,"div",4),Io(61,"div",5),ua(62,"Data for Download:"),Oo(),Io(63,"div",6),ua(64," A subset of the dataset used for developing these models is available for download. Click "),Io(65,"a",12),ua(66,"here"),Oo(),ua(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Io(68,"a",13),ua(69,"AID 1508591"),Oo(),ua(70,". "),Oo(),Oo(),Oo(),Ao(71,"br"),Io(72,"h3"),ua(73," RLM Assay Protocol "),Oo(),Io(74,"p",14),ua(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Io(76,"sub"),ua(77,"1/2"),Oo(),ua(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Oo(),Io(79,"h3"),ua(80," References: "),Oo(),Io(81,"ol"),Io(82,"li"),ua(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Oo(),Io(84,"li"),ua(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Oo(),Oo(),Oo()),2&t){const t=Ho();Gs(65),Eo("href",t.dataDownloadHref,ai)}}function hI(t,e){1&t&&(Io(0,"div",2),Io(1,"h2"),ua(2," CYP450 Models "),Oo(),Io(3,"h3"),ua(4," High-throughput metabolic stability assays: "),Oo(),Io(5,"p"),ua(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Io(7,"sup"),ua(8,"1"),Oo(),ua(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Io(10,"sub"),ua(11,"1/2"),Oo(),ua(12,") determinations were performed as previously described"),Io(13,"sup"),ua(14,"1"),Oo(),ua(15,". "),Oo(),Io(16,"div",15),Io(17,"div",16),ua(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Oo(),Io(19,"div",17),Io(20,"table",18),Io(21,"thead"),Io(22,"tr",19),Io(23,"th",20),ua(24," Matrix "),Oo(),Io(25,"th",20),ua(26," Final Protein Concentration [mg/mL] "),Oo(),Io(27,"th",20),ua(28," Total CYP content [nM] "),Oo(),Io(29,"th",20),ua(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Oo(),Io(31,"th",20),ua(32," Cytochrome b"),Io(33,"sub"),ua(34,"5"),Oo(),ua(35," content [pmol/mg protein] "),Oo(),Io(36,"th",20),ua(37," High clearance controls "),Oo(),Io(38,"th",20),ua(39," Moderate clearance controls "),Oo(),Io(40,"th",20),ua(41," Low clearance controls "),Oo(),Oo(),Oo(),Io(42,"tbody"),Io(43,"tr",21),Io(44,"td",22),ua(45," CYP3A4 "),Oo(),Io(46,"td",23),ua(47," ~0.2 "),Oo(),Io(48,"td",23),ua(49," 30 "),Oo(),Io(50,"td",23),ua(51," 2900 "),Oo(),Io(52,"td",23),ua(53," 1090 "),Oo(),Io(54,"td",23),ua(55," Buspirone, Loperamide "),Oo(),Io(56,"td",23),ua(57," Ketoconazole "),Oo(),Io(58,"td",23),ua(59," Antipyrine, Carbamazepine "),Oo(),Oo(),Io(60,"tr",21),Io(61,"td",22),ua(62," CYP2C9 "),Oo(),Io(63,"td",23),ua(64," ~0.12 "),Oo(),Io(65,"td",23),ua(66," 45 "),Oo(),Io(67,"td",23),ua(68," 985 "),Oo(),Io(69,"td",23),ua(70," 710 "),Oo(),Io(71,"td",23),ua(72," Glyburide, Glimepiride "),Oo(),Io(73,"td",23),ua(74," Tamoxifen "),Oo(),Io(75,"td",23),ua(76," Antipyrine, Meloxicam "),Oo(),Oo(),Io(77,"tr",21),Io(78,"td",22),ua(79," CYP2D6 "),Oo(),Io(80,"td",23),ua(81," ~0.38 "),Oo(),Io(82,"td",23),ua(83," 60 "),Oo(),Io(84,"td",23),ua(85," 3000 "),Oo(),Io(86,"td",23),ua(87," - "),Oo(),Io(88,"td",23),ua(89," Bufuralol, Desipramine, Amitriptyline "),Oo(),Io(90,"td",23),ua(91," Mexiletine "),Oo(),Io(92,"td",23),ua(93," Codeine "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(94,"h3"),ua(95," P450-Glo qHTS: "),Oo(),Io(96,"p"),ua(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Io(98,"sup"),ua(99,"2"),Oo(),ua(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Oo(),Io(101,"div",15),Io(102,"div",16),ua(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Oo(),Io(104,"div",17),Io(105,"table",18),Io(106,"thead"),Io(107,"tr",19),Io(108,"th",20),ua(109," Enzyme "),Oo(),Io(110,"th",20),ua(111," Inhibitor "),Oo(),Io(112,"th",20),ua(113," Dilution Format "),Oo(),Io(114,"th",20),ua(115," Inhibitor Concentration "),Oo(),Io(116,"th",20),ua(117," Incubation conditions "),Oo(),Oo(),Oo(),Io(118,"tbody"),Io(119,"tr",21),Io(120,"td",22),ua(121," CYP3A4 "),Oo(),Io(122,"td",23),ua(123," Ketoconazole "),Oo(),Io(124,"td",24),Io(125,"div"),ua(126,"16 concentrations/"),Oo(),Io(127,"div"),ua(128,"2-fold dilution in"),Oo(),Io(129,"div"),ua(130,"duplicates"),Oo(),Oo(),Io(131,"td",23),ua(132," 57 \xb5M-1.8 nM "),Oo(),Io(133,"td",23),ua(134," 1 h/RT "),Oo(),Oo(),Io(135,"tr",21),Io(136,"td",22),ua(137," CYP2C9 "),Oo(),Io(138,"td",23),ua(139," Sulfaphenazole "),Oo(),Io(140,"td",23),ua(141," 57 \xb5M-1.8 nM "),Oo(),Io(142,"td",23),ua(143," 1 h/ 37\u02daC/ 0.4% BSA "),Oo(),Oo(),Io(144,"tr",21),Io(145,"td",22),ua(146," CYP2D6 "),Oo(),Io(147,"td",23),ua(148," Quinidine "),Oo(),Io(149,"td",23),ua(150," 1.4 \xb5M-0.04 nM "),Oo(),Io(151,"td",23),ua(152," 1 h/RT "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(153,"div",15),Io(154,"div",16),ua(155," Parsing of Substrates and Inhibitors: "),Oo(),Io(156,"div",17),Io(157,"table",25),Io(158,"thead"),Io(159,"tr",19),Io(160,"th",20),ua(161," Category "),Oo(),Io(162,"th",20),Io(163,"div"),ua(164,"Clearance"),Oo(),Io(165,"div"),ua(166,"/"),Oo(),Io(167,"div"),ua(168,"P450-Glo"),Oo(),Oo(),Io(169,"th",20),ua(170," Classification "),Oo(),Io(171,"th",20),ua(172," Parsing Rationale "),Oo(),Oo(),Oo(),Io(173,"tbody"),Io(174,"tr",21),Io(175,"td",23),ua(176," 1 "),Oo(),Io(177,"td",23),ua(178," + / + "),Oo(),Io(179,"td",23),ua(180," Substrate "),Oo(),Io(181,"td",26),ua(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Oo(),Oo(),Io(183,"tr",21),Io(184,"td",23),ua(185," 2 "),Oo(),Io(186,"td",23),ua(187," - / + "),Oo(),Io(188,"td",23),ua(189," Inhibitor "),Oo(),Io(190,"td",26),ua(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Oo(),Oo(),Io(192,"tr",21),Io(193,"td",23),ua(194," 3 "),Oo(),Io(195,"td",23),ua(196," - / - "),Oo(),Io(197,"td",23),ua(198," Non-ligand "),Oo(),Io(199,"td",26),ua(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Oo(),Oo(),Io(201,"tr",21),Io(202,"td",23),ua(203," 4 "),Oo(),Io(204,"td",23),ua(205," + / - "),Oo(),Io(206,"td",23),ua(207," Substrate "),Oo(),Io(208,"td",26),ua(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Io(210,"h3"),ua(211," References: "),Oo(),Io(212,"ol"),Io(213,"li"),ua(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Oo(),Io(215,"li"),ua(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Oo(),Oo(),Oo())}const uI=[{path:"home",component:$m,data:{pageTitle:"home"}},{path:"predictions",component:(()=>{class t{constructor(t,e,n){this.http=t,this.loadingService=e,this.gaService=n,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}ngOnInit(){this.link=document.createElement("a")}processSketcherInput(t){this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/api/v1/predict",{params:{smiles:t,model:this.models}}).subscribe(t=>{this.sketcherData=t,this.loadingService.setLoadingState(!1)},t=>{this.errorMessage="There was an error processing your structure. Please modify it and try again.",this.loadingService.setLoadingState(!1)})}processFile(t){this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);const e=new FormData;e.append("lineBreak",t.lineBreak),this.lineBreak=t.lineBreak,e.append("columnSeparator",t.columnSeparator),this.columnSeparator=t.columnSeparator,e.append("hasHeaderRow",t.hasHeaderRow.toString()),e.append("indexIdentifierColumn",t.indexIdentifierColumn.toString()),e.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=t.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,e.append("file",t.file),this.http.post("/api/v1/predict-file",e).subscribe(t=>{t.hasErrors?this.errorMessage=t.errorMessages:t&&Object.keys(t).length>0&&(this.fileData=t),this.loadingService.setLoadingState(!1)},t=>{this.fileData=null,this.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",this.loadingService.setLoadingState(!1)})}clearErrorMessage(){this.errorMessage="",this.errorMessages=[]}downloadCSV(t){const e=[...t.allColumns].join(this.columnSeparator),n=[];t.data.forEach(e=>n.push(t.allColumns.map(t=>e[t]).join(this.columnSeparator)));const i=e+this.lineBreak+n.join(this.lineBreak);this.file=new Blob([i],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}downloadFile(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}selectedTabChange(t,e){this.gaService.sendEvent("click:tab",e,t.tab.textLabel)}}return t.\u0275fac=function(e){return new(e||t)(xo(km),xo(Wm),xo(Um))},t.\u0275cmp=Xt({type:t,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"mat-tab-group",2),No("selectedTabChange",function(t){return e.selectedTabChange(t,"predictions:input-type")}),Io(3,"mat-tab",3),Io(4,"div",4),Io(5,"adme-sketcher",5),No("moleculeInput",function(t){return e.processSketcherInput(t)}),Oo(),Oo(),Co(6,eI,8,2,"div",6),Co(7,iI,3,1,"div",7),Oo(),Io(8,"mat-tab",8),Io(9,"div",4),Io(10,"adme-text-file",9),No("fileProcess",function(t){return e.processFile(t)}),Oo(),Oo(),Co(11,oI,8,2,"div",6),Co(12,lI,3,1,"div",7),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.sketcherData),Gs(4),Eo("ngIf",e.errorMessage),Gs(1),Eo("ngIf",e.fileData))},directives:[Ow,yw,Ww,Ah,xk,Uw,jk,Ih,XT],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),t})(),data:{pageTitle:"predictions"}},{path:"models/:model",component:(()=>{class t{constructor(t,e){this.domSanatizer=t,this.activatedRoute=e,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/client/assets/rlm_public_set.xlsx")}ngOnInit(){this.subscription=this.activatedRoute.params.subscribe(t=>{this.model=t.model})}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(yu),xo(vp))},t.\u0275cmp=Xt({type:t,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(t,e){1&t&&(Io(0,"div",0),Co(1,cI,86,1,"div",1),Co(2,hI,217,0,"div",1),Oo()),2&t&&(Gs(1),Eo("ngIf","rlm"==e.model),Gs(1),Eo("ngIf","cyp450"==e.model))},directives:[Ah,qm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),t})(),data:{pageTitle:"model"}},{path:"contact",component:(()=>{class t{constructor(t){this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/epam_ketcher.png")}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(xo(yu))},t.\u0275cmp=Xt({type:t,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"div",1),Io(2,"h1"),ua(3," Contact "),Oo(),Io(4,"div",2),Io(5,"div",3),Ao(6,"img",4),Oo(),Io(7,"div",5),Io(8,"div"),ua(9," Vishal Siramshetty "),Oo(),Io(10,"div"),ua(11," Postdoctoral Fellow (Informatics) "),Oo(),Io(12,"div"),ua(13," Email: "),Io(14,"a",6),ua(15,"siramshettyv2@nih.gov"),Oo(),ua(16," (models/predictions related queries) "),Oo(),Oo(),Oo(),Io(17,"div",2),Io(18,"div",3),Ao(19,"img",4),Oo(),Io(20,"div",5),Io(21,"div"),ua(22," Pranav Shah "),Oo(),Io(23,"div"),ua(24," Lead (In Vitro ADME) "),Oo(),Io(25,"div"),ua(26," Email: "),Io(27,"a",7),ua(28,"pranav.shah@nih.gov"),Oo(),ua(29," (assay/data related queries) "),Oo(),Oo(),Oo(),Io(30,"div",2),Io(31,"div",3),Ao(32,"img",4),Oo(),Io(33,"div",5),Io(34,"div"),ua(35," Jorge Neyra "),Oo(),Io(36,"div"),ua(37," Software Developer (Informatics) "),Oo(),Io(38,"div"),ua(39," Email: "),Io(40,"a",8),ua(41,"jorge.neyra@nih.gov"),Oo(),ua(42," (software related queries) "),Oo(),Oo(),Oo(),Io(43,"div",2),Io(44,"div",3),Ao(45,"img",4),Oo(),Io(46,"div",5),Io(47,"div"),ua(48," Jordan Williams "),Oo(),Io(49,"div"),ua(50," Postbaccalaureate Fellow (In Vitro ADME) "),Oo(),Io(51,"div"),ua(52," Email: "),Io(53,"a",9),ua(54,"jordan.williams2@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(55,"div",2),Io(56,"div",3),Ao(57,"img",4),Oo(),Io(58,"div",5),Io(59,"div"),ua(60," Noel Southall "),Oo(),Io(61,"div"),ua(62," Lead (Informatics) "),Oo(),Io(63,"div"),ua(64," Email: "),Io(65,"a",10),ua(66,"southalln@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(67,"div",2),Io(68,"div",3),Ao(69,"img",4),Oo(),Io(70,"div",5),Io(71,"div"),ua(72," Trung Nguyen "),Oo(),Io(73,"div"),ua(74," Staff Scientist (Informatics) "),Oo(),Io(75,"div"),ua(76," Email: "),Io(77,"a",11),ua(78,"nguyenda@mail.nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(79,"div",2),Io(80,"div",3),Ao(81,"img",4),Oo(),Io(82,"div",5),Io(83,"div"),ua(84," Xin Xu "),Oo(),Io(85,"div"),ua(86," Lead (ADME Group) "),Oo(),Io(87,"div"),ua(88," Email: "),Io(89,"a",12),ua(90,"xin.xu3@nih.gov"),Oo(),Oo(),Oo(),Oo(),Io(91,"div",13),Io(92,"h1"),ua(93," Resources "),Oo(),Io(94,"div",14),Io(95,"div"),Io(96,"a",15),Ao(97,"img",4),Oo(),Oo(),Io(98,"div"),Io(99,"a",16),Ao(100,"img",4),Oo(),Oo(),Oo(),Io(101,"div",14),Io(102,"div"),Io(103,"a",17),Ao(104,"img",4),Oo(),Oo(),Io(105,"div"),Io(106,"a",18),Ao(107,"img",4),Oo(),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Gs(6),Eo("src",e.vishalImgSrc,ai),Gs(13),Eo("src",e.pranavImgSrc,ai),Gs(13),Eo("src",e.jorgeImgSrc,ai),Gs(13),Eo("src",e.jordanImgSrc,ai),Gs(12),Eo("src",e.noelImgSrc,ai),Gs(12),Eo("src",e.trungImgSrc,ai),Gs(12),Eo("src",e.xinImgSrc,ai),Gs(16),Eo("src",e.rdkitImgSrc,ai),Gs(3),Eo("src",e.pythonImgSrc,ai),Gs(4),Eo("src",e.angularImgSrc,ai),Gs(3),Eo("src",e.epamImgSrc,ai))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),t})(),data:{pageTitle:"contact"}},{path:"**",component:$m}];let dI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[tm.forRoot(uI,{relativeLinkResolution:"legacy"})],tm]}),t})();function pI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function fI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function mI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function gI(t,e){if(1&t&&(Cn(),Ao(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}const _I=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class yI{constructor(t){this._elementRef=t}}const bI=jb(yI,"primary"),vI=new vt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let wI=(()=>{class t extends bI{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=pg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=pg(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,pg(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eg(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(vo("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,pI,1,9,"circle",1),Co(2,fI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),CI=(()=>{class t extends wI{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh,8),xo(Tb,8),xo(vI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[ao],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Cn(),Io(0,"svg",0),Co(1,mI,1,9,"circle",1),Co(2,gI,1,7,"circle",2),Oo()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Eo("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),Gs(1),Eo("ngSwitchCase",!0),Gs(1),Eo("ngSwitchCase",!1))},directives:[Mh,Lh],styles:[_I],encapsulation:2,changeDetection:0}),t})(),SI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb,Hh],Nb]}),t})();function xI(t,e){1&t&&(Io(0,"div",1),Ao(1,"mat-spinner"),Oo())}let kI=(()=>{class t{constructor(t){this.lodadingService=t,this.isLoading=!1}ngOnInit(){this.lodadingService.isLoading.subscribe(t=>{this.isLoading=t})}}return t.\u0275fac=function(e){return new(e||t)(xo(Wm))},t.\u0275cmp=Xt({type:t,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(t,e){1&t&&Co(0,xI,2,0,"div",0),2&t&&Eo("ngIf",e.isLoading)},directives:[Ah,CI],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),t})();const EI=["*",[["mat-toolbar-row"]]],TI=["*","mat-toolbar-row"];class II{constructor(t){this._elementRef=t}}const OI=jb(II);let AI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=se({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),RI=(()=>{class t extends OI{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Gm),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&Jl(n,AI,!0),2&t){let t;Kl(t=nc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ao],ngContentSelectors:TI,decls:2,vars:0,template:function(t,e){1&t&&(qo(EI),$o(0),$o(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),DI=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})();function PI(t,e=ag){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new MI(i,e))}class MI{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new LI(t,this.delay,this.scheduler))}}class LI extends f{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,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(LI.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new FI(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Bv.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Bv.createComplete()),this.unsubscribe()}}class FI{constructor(t,e){this.time=t,this.notification=e}}const NI=["mat-menu-item",""],VI=["*"];function jI(t,e){if(1&t){const t=Mo();Io(0,"div",0),No("keydown",function(e){return Ge(t),Ho()._handleKeydown(e)})("click",function(){return Ge(t),Ho().closed.emit("click")})("@transformMenu.start",function(e){return Ge(t),Ho()._onAnimationStart(e)})("@transformMenu.done",function(e){return Ge(t),Ho()._onAnimationDone(e)}),Io(1,"div",1),$o(2),Oo(),Oo()}if(2&t){const t=Ho();Eo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),vo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const BI={transformMenu:o_("transformMenu",[h_("void",c_({opacity:0,transform:"scale(0.8)"})),d_("void => enter",a_("120ms cubic-bezier(0, 0, 0.2, 1)",c_({opacity:1,transform:"scale(1)"}))),d_("* => void",a_("100ms 25ms linear",c_({opacity:0})))]),fadeInItems:o_("fadeInItems",[h_("showing",c_({opacity:1})),d_("void => *",[c_({opacity:0}),a_("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zI=new vt("MatMenuContent"),HI=new vt("MAT_MENU_PANEL");class UI{}const qI=Bb(Vb(UI));let $I=(()=>{class t extends qI{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new S,this._focused=new S,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new jl,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new S,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Nl,this.close=this.closed,this.panelId="mat-menu-panel-"+YI++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=dg(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=dg(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ig(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ed(this._directDescendantItems),Gu(t=>W(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:ng(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Qu(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ed(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275dir=se({type:t,contentQueries:function(t,e,n){if(1&t&&(Jl(n,zI,!0),Jl(n,$I,!0),Jl(n,$I,!1)),2&t){let t;Kl(t=nc())&&(e.lazyContent=t.first),Kl(t=nc())&&(e._allItems=t),Kl(t=nc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Ql(dl,!0),2&t){let t;Kl(t=nc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),KI=(()=>{class t extends GI{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(xo(Na),xo(Tc),xo(WI))},t.\u0275cmp=Xt({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Aa([{provide:HI,useExisting:t}]),ao],ngContentSelectors:VI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(qo(),Co(0,jI,3,6,"ng-template"))},directives:[Eh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[BI.transformMenu,BI.fadeInItems]},changeDetection:0}),t})();const ZI=new vt("mat-menu-scroll-strategy"),QI={provide:ZI,deps:[Sx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},XI=tg({passive:!0});let JI=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Nl,this.onMenuOpen=this.menuOpened,this.menuClosed=new Nl,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof GI?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,XI),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,XI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof GI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof GI?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Mu(t=>"void"===t.toState),Qu(1),xv(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ox({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return W(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Su(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mu(t=>t!==this._menuItemInstance),Mu(()=>this._menuOpen)):Su(),e)}_handleMousedown(t){Ng(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mu(t=>t===this._menuItemInstance&&!t.disabled),PI(0,Mv)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof GI&&this.menu._isAnimating?this.menu._animationDone.pipe(Qu(1),PI(0,Mv),xv(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Yg(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(xo(Sx),xo(Na),xo(bl),xo(ZI),xo(HI,8),xo($I,10),xo(n_,8),xo(Bg))},t.\u0275dir=se({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&No("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&vo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),tO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[Nb]}),t})(),eO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[QI],imports:[[Hh,Nb,tv,Ox,tO],Yv,Nb,tO]}),t})(),nO=(()=>{class t{constructor(t,e,n,i,s){this.router=n,this.gaService=i,this._document=s,t.addSvgIcon("cancel",e.bypassSecurityTrustResourceUrl("/client/assets/icons/cancel-24px.svg"))}ngOnInit(){this._document.getElementById("appFavicon").setAttribute("href","/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(t=>{t instanceof xd&&this.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}ngOnDestroy(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(Ak),xo(yu),xo(Bf),xo(Um),xo(sh))},t.\u0275cmp=Xt({type:t,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(t,e){if(1&t&&(Ao(0,"adme-loading"),Io(1,"mat-toolbar",0),Io(2,"a",1),ua(3,"ADME @ NCATS"),Oo(),Io(4,"div",2),Io(5,"a",3),ua(6,"Predict"),Oo(),Io(7,"a",4),ua(8,"Models"),Oo(),Io(9,"mat-menu",null,5),Io(11,"button",6),ua(12,"RLM"),Oo(),Io(13,"button",7),ua(14,"CYP450"),Oo(),Oo(),Io(15,"a",8),ua(16,"Contact"),Oo(),Oo(),Ao(17,"span",9),Oo(),Ao(18,"router-outlet")),2&t){const t=So(10);Gs(7),Eo("matMenuTriggerFor",t)}},directives:[kI,RI,Hf,JI,KI,$I,zf,qf],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),t})(),iO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,qw]]}),t})(),sO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Hh,Nb],Nb]}),t})(),rO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Nb],Nb]}),t})(),oO=(()=>{class t{}return t.\u0275mod=ne({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[$b,tv,Nb,nv,Hh],$b,Nb,nv,rO]}),t})();function aO(t){return()=>t.load()}let lO=(()=>{class t{}return t.\u0275mod=ne({type:t,bootstrap:[nO]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Hm,{provide:oc,useFactory:aO,deps:[Hm],multi:!0}],imports:[[Cu,dI,Ob,iO,xT,yE,zm,qw,DI,mS,gS,ZS,Qx,Nw,Sk,sO,SI,oO,nE,jT,pk,Bk,eO]]}),t})();(function(){if(Fn)throw new Error("Cannot enable prod mode after platform setup.");Ln=!1})(),vu().bootstrapModule(lO).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/server/client/main-es5.bf526f6229c9275787d7.js b/server/client/main-es5.bf526f6229c9275787d7.js deleted file mode 100644 index 4e091d1..0000000 --- a/server/client/main-es5.bf526f6229c9275787d7.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,p(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)})(e)}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new H(e,n,i);if(!r.closed)return t instanceof P?t.subscribe(r):G(t)(r)}var Z=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(A);function Q(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new X(e,t))}}var X=function(){function e(t,n){v(this,e),this.project=t,this.thisArg=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||f(o),o}return g(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(A);function J(e,t){return new P(function(n){var i=new x,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ee(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[I]}(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){var r=e[I]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Y(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(W(e))return J(e,t);if(function(e){return e&&"function"==typeof e[q]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(function(n){var i,r=new x;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[q](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof P?e:new P(G(e))}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(te(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ne(e,n))})}var ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=t,this.concurrent=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new ie(e,this.project,this.concurrent))}}]),e}(),ie=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return g(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Z);function re(e){return e}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return te(re,e)}function ae(e,t){return t?J(e,t):new P(U(e))}function se(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof P?t[0]:oe(i)(ae(t,r))}function ue(){return function(e){return e.lift(new ce(e))}}var le,ce=function(){function e(t){v(this,e),this.connectable=t}return g(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new he(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),he=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(A),fe={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(le=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return g(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new x).add(this.source.subscribe(new de(this.getSubject(),this))),e.closed&&(this._connection=null,e=x.EMPTY)),e}},{key:"refCount",value:function(){return ue()(this)}}]),n}(P).prototype)._subscribe},_isComplete:{value:le._isComplete,writable:!0},getSubject:{value:le.getSubject},connect:{value:le.connect},refCount:{value:le.refCount}},de=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_error",value:function(e){this._unsubscribe(),s(p(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),s(p(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(V);function pe(){return new j}function ve(){return function(e){return ue()((t=pe,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,fe);return i.source=e,i.subjectFactory=n,i})(e));var t}}function me(e){return{toString:e}.toString()}function ge(e,t,n){return me(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $e(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function et(e,t){var n=tt(e,t);if(n>=0)return e[1|n]}function tt(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var nt,it=((nt={})[nt.Emulated=0]="Emulated",nt[nt.None=2]="None",nt[nt.ShadowDom=3]="ShadowDom",nt),rt={},ot=[],at=Se({"\u0275cmp":Se}),st=Se({"\u0275dir":Se}),ut=Se({"\u0275pipe":Se}),lt=Se({"\u0275mod":Se}),ct=Se({"\u0275loc":Se}),ht=Se({"\u0275fac":Se}),ft=Se({__NG_ELEMENT_ID__:Se}),dt=0;function pt(e){return me(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ne.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ot,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||ot,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=dt++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(vt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(mt)}:null,n})}function vt(e){return kt(e)||function(e){return e[st]||null}(e)}function mt(e){return function(e){return e[ut]||null}(e)}var gt={};function yt(e){var t={type:e.type,bootstrap:e.bootstrap||ot,declarations:e.declarations||ot,imports:e.imports||ot,exports:e.exports||ot,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me(function(){gt[e.id]=e.type}),t}function _t(e,t){if(null==e)return rt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var bt=pt;function kt(e){return e[at]||null}function wt(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(we(e)," does not have '\u0275mod' property."));return n}function Ct(e){return"string"==typeof e?e:null==e?"":""+e}function St(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ct(e)}var xt,Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Tt(e){var t=xt;return xt=e,t}function At(e,t,n){var i=Ae(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Et.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(we(e),"]"))}var Ot={},It=/\n/gm,Rt=Se({provide:String,useValue:Se}),Dt=void 0;function Pt(e){var t=Dt;return Dt=e,t}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;if(void 0===Dt)throw new Error("inject() must be called from an injection context");return null===Dt?At(e,void 0,t):Dt.get(e,t&Et.Optional?null:void 0,t)}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;return(xt||Mt)(We(e),t)}var Ft=Lt;function Nt(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ci.hasOwnProperty(t)&&!ai.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(yi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function yi(e){return e.replace(/&/g,"&").replace(mi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function _i(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function ki(e){var t=Ci();return t?t.sanitize(bi.URL,e)||"":Gn(e,"URL")?Yn(e):ni(Ct(e))}function wi(e){var t=Ci();if(t)return t.sanitize(bi.RESOURCE_URL,e)||"";if(Gn(e,"ResourceURL"))return Yn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Ci(){var e=un();return e&&e[12]}function Si(e,t){return e.hasOwnProperty(ht)?e[ht]:null}var xi=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(n(Error));function Ei(e,t){var n=t?" in "+t:"";throw new xi("201","No provider for ".concat(St(e)," found").concat(n))}var Ti=function(){function e(t,n,i){v(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return g(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ai(){return Oi}function Oi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),Ii}function Ii(){var e=Di(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ri(e,t,n,i){var r=Di(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ti(u&&u.currentValue,t,a===rt),e[i]=t}function Di(e){return e.__ngSimpleChanges__||null}function Pi(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}Ai.ngInherit=!0;var ji=function e(t,n,i){v(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bi(e,t,n){for(var i=Wt(e),r=0;rt){a=o-1;break}}}for(;o>16,i=t;n>0;)i=i[15],n--;return i}var Ki=!0;function Zi(e){var t=Ki;return Ki=e,t}var Qi=0;function Xi(e,t){var n=Ji(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$i(i.data,e),$i(t,null),$i(i.blueprint,null));var r=er(e,t),o=e.injectorIndex;if(Wi(r))for(var a=Yi(r),s=Gi(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function $i(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ji(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function er(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function tr(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ft)&&(i=n[ft]),null==i&&(i=n[ft]=Qi++);var r=255&i,o=1<3&&void 0!==arguments[3]?arguments[3]:Et.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ft)?e[ft]:void 0;return"number"==typeof t?t>=0?255&t:ar:t}(n);if("function"==typeof o){if(!En(t,e,i))return i&Et.Host?nr(r,n,i):ir(t,n,i,r);try{var a=o();if(null!=a||i&Et.Optional)return a;Ei(n)}finally{Dn()}}else if("number"==typeof o){var s=null,u=Ji(e,t),l=-1,c=i&Et.Host?t[16][6]:null;for((-1===u||i&Et.SkipSelf)&&(-1!==(l=-1===u?er(e,t):t[u+8])&&hr(i,!1)?(s=t[1],u=Yi(l),t=Gi(l,t)):u=-1);-1!==u;){var h=t[1];if(cr(o,u,h.data)){var f=sr(u,t,n,s,i,c);if(f!==or)return f}-1!==(l=t[u+8])&&hr(i,t[1].data[u+8]===c)&&cr(o,u,t)?(s=h,u=Yi(l),t=Gi(l,t)):u=-1}}}return ir(t,n,i,r)}var or={};function ar(){return new fr(hn(),un())}function sr(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ur(s,a,n,null==i?Ht(s)&&Ki:i!=a&&0!=(3&s.type),r&Et.Host&&o===s);return null!==u?lr(t,a,u,s):or}function ur(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&qt(d)&&d.type===n)return u}return null}function lr(e,t,n,i){var r=e[n],o=t.data;if(r instanceof ji){var a=r;a.resolving&&function(e,t){throw new xi("200","Circular dependency in DI detected for "+e)}(St(o[n]));var s=Zi(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Tt(a.injectImpl):null;En(e,i,Et.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Oi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Tt(u),Zi(s),a.resolving=!1,Dn()}}return r}function cr(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var a=Xe(e,10+t);Yr(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Pr(e,t){if(!(256&t[2])){var n=t[11];Wt(n)&&n.destroyNode&&Yr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Mr(e[1],e);for(;t;){var n=null;if(jt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)jt(t)&&Mr(t[1],t),t=t[3];null===t&&(t=e),jt(t)&&Mr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[u]():i[-u].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Wt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Bt(t[3])){n!==t[3]&&Rr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Lr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===it.None||r===it.Emulated)return null}return Zt(i,n)}(e,t.parent,n)}function Fr(e,t,n,i,r){Wt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Nr(e,t,n){Wt(e)?e.appendChild(t,n):t.appendChild(n)}function Vr(e,t,n,i,r){null!==i?Fr(e,t,n,i,r):Nr(e,t,n)}function jr(e,t){return Wt(e)?e.parentNode(t):t.parentNode}function Br(e,t,n){return zr(e,t,n)}var zr=function(e,t,n){return 40&e.type?Zt(e,n):null};function Hr(e,t,n,i){var r=Lr(e,i,t),o=t[11],a=Br(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;so?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==Qr(f,l,0)||2&i&&l!==h){if(to(i))return!1;a=!0}}}}else{if(!a&&!to(i)&&!to(u))return!1;if(a&&to(u))continue;a=!1,i=u|1&i}}return to(i)||a}function to(e){return 0==(1&e)}function no(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||to(a)||(t+=oo(o,r),r=""),i=a,o=o||!to(i);n++}return""!==r&&(t+=oo(o,r)),t}var so={};function uo(e){lo(ln(),un(),Mn()+e,mn())}function lo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Mi(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Li(t,o,0,n)}Ln(n)}function co(e,t){return e<<17|t<<2}function ho(e){return e>>17&32767}function fo(e){return 2|e}function po(e){return(131068&e)>>2}function vo(e,t){return-131069&e|t<<2}function mo(e){return 1|e}function go(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&lo(e,t,20,mn()),n(i,r)}finally{Ln(o)}}function xo(e,t,n){if(zt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Zt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Lo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function No(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&Wo(n)}}function Wo(e){for(var t=Er(e);null!==t;t=Tr(t))for(var n=10;n0&&Wo(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Wo(s)}}function Yo(e,t){var n=$t(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Ot;if(t===Ot){var n=new Error("NullInjectorError: No provider for ".concat(we(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),aa=new Le("Set Injector scope."),sa={},ua={},la=[],ca=void 0;function ha(){return void 0===ca&&(ca=new oa),ca}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new da(e,n,t||ha(),i)}var da=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ze(n,function(e){return r.processProvider(e,t,n)}),Ze([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ra,ma(void 0,this));var s=this.records.get(aa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:we(t))}return g(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;this.assertNotDestroyed();var i,r=Pt(this);try{if(!(n&Et.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Le)&&Ae(e);o=a&&this.injectableDefInScope(a)?ma(pa(e),sa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Et.Self?ha():this.parent).get(e,t=n&Et.Optional&&t===Ot?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(we(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=we(t);if(Array.isArray(t))r=t.map(we).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):we(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(It,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Pt(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(we(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=We(e)))return!1;var r=Ie(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ie(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{Ze(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;Ze(r,function(e){return i.processProvider(e,n,r||la)})},c=0;c0){var n=$e(t,"?");throw new Error("Can't resolve all parameters for ".concat(we(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Re]||e[Pe]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function va(e,n,i){var r,o=void 0;if(ya(e)){var s=We(e);return Si(s)||pa(s)}if(ga(e))o=function(){return We(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,t(Nt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Lt(We(e.useExisting))};else{var u=We(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Si(u)||pa(u);o=function(){return a(u,t(Nt(e.deps)))}}return o}function ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function ga(e){return null!==e&&"object"==typeof e&&Rt in e}function ya(e){return"function"==typeof e}var _a=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=fa(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},ba=function(){var e=function(){function e(){v(this,e)}return g(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?_a(e,t,""):_a(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ot,e.NULL=new oa,e.\u0275prov=Ee({token:e,providedIn:"any",factory:function(){return Lt(ra)}}),e.__NG_ELEMENT_ID__=-1,e}();function ka(e,t){Pi(Jt(e)[1],hn())}function wa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(qt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Ca(e.inputs),o.declaredInputs=Ca(e.declaredInputs),o.outputs=Ca(e.outputs);var a=r.hostBindings;a&&Ea(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Sa(e,s),u&&xa(e,u),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),qt(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ui(r.hostAttrs,n=Ui(n,r.hostAttrs))}}(i)}function Ca(e){return e===rt?{}:e===ot?[]:e}function Sa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function xa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ea(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ta=null;function Aa(){if(!Ta){var e=He.Symbol;if(e&&e.iterator)Ta=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Et.Default,n=un();return null===n?Lt(e,t):rr(hn(),n,We(e),t)}function ja(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=un(),o=ln(),a=hn();return Ja(o,r,r[11],a,e,t,n,i),Xa}function $a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=hn(),o=un(),a=ln();return Ja(a,o,ea(wn(a.data),r,o),r,e,t,n,i),$a}function Ja(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ut(i),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Jo(t),h=!0;if(3&i.type){var f=Zt(i,t),d=s?s(f):rt,p=d.target||f,v=c.length,m=s?function(e){return s(Gt(e[i.index])).target}:i.index;if(Wt(n)){var g=null;if(!s&&u&&(g=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=ts(i,t,o,!1);var y=n.listen(d.name||p,r,o);c.push(o,y),l&&l.push(r,m,v,v+1)}}else o=ts(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),l&&l.push(r,m,v,a)}var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(an.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,an.lFrame.contextLView))[8]}(e)}function is(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=un(),r=ln(),o=_o(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),vn(),64!=(64&o.flags)&&function(e,t,n){Gr(t[11],0,t,n,Lr(e,n,t),Br(n.parent||t[6],n,t))}(r,i,o)}var as=[];function ss(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?ho(o):po(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];us(e[s],t)&&(u=!0,e[s+1]=i?mo(l):fo(l)),s=i?ho(l):po(l)}u&&(e[n+1]=i?fo(o):mo(o))}function us(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&tt(e,t)>=0}var ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cs(e){return e.substring(ls.key,ls.keyEnd)}function hs(e,t){var n=ls.textEnd;return n===t?-1:(t=ls.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,ls.key=t,n),fs(e,t,n))}function fs(e,t,n){for(;t=0;n=hs(t,n))Je(e,cs(t),!0)}function ms(e,t,n,i){var r=un(),o=ln(),a=bn(2);o.firstUpdatePass&&ys(o,e,a,i),t!==so&&Pa(r,a,t)&&ks(o,o.data[Mn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(Yn(e)))),e}(t,n),i,a)}function gs(e,t){return t>=e.expandoStartIndex}function ys(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],a=gs(e,n);Ss(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=wn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=bs(n=_s(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=_s(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==po(i))return e[ho(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[ho(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=bs(s=_s(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=ho(e[s+1]);e[i+1]=co(f,s),0!==f&&(e[f+1]=vo(e[f+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=co(s,0),0!==s&&(e[s+1]=vo(e[s+1],i)),s=i;else e[i+1]=co(u,0),0===s?s=i:e[u+1]=vo(e[u+1],i),u=i;c&&(e[i+1]=fo(e[i+1])),ss(e,l,i,!0),ss(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&tt(o,t)>=0&&(n[i+1]=mo(n[i+1]))}(t,l,e,i,o),a=co(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function _s(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===so&&(f=h?as:void 0);var d=h?et(f,i):c===i?f:void 0;if(l&&!Cs(d)&&(d=et(u,i)),Cs(d)&&(s=d,a))return s;var p=e[r+1];r=a?ho(p):po(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=et(v,i))}return s}function Cs(e){return void 0!==e}function Ss(e,t){return 0!=(e.flags&(t?16:32))}function xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=un(),i=ln(),r=e+20,o=i.firstCreatePass?_o(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Wt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Hr(i,n,a,o),dn(o,!1)}function Es(e){return Ts("",e,""),Es}function Ts(e,t,n){var i=un(),r=La(i,e,t,n);return r!==so&&function(e,t,n){var i=Kt(t,e);!function(e,t,n){Wt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,Mn(),r),Ts}function As(e,t,n){var i=un();return Pa(i,_n(),t)&&Do(ln(),Fn(),i,e,t,i[11],n,!0),As}function Os(e,t,n){var i=un();if(Pa(i,_n(),t)){var r=ln(),o=Fn();Do(r,o,i,e,t,ea(wn(r.data),o,i),n,!0)}return Os}var Is=void 0,Rs=["en",[["a","p"],["AM","PM"],Is],[["AM","PM"],Is,Is],[["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"]],Is,[["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"]],Is,[["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}",Is,"{1} 'at' {0}",Is],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ds={};function Ps(e){return e in Ds||(Ds[e]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[e]),Ds[e]}var Ms=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Ls(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Fs(e,t,n,i,r){if(e=We(e),Array.isArray(e))for(var o=0;o>20;if(ya(e)||!e.multi){var p=new ji(l,r,Va),v=js(u,t,r?h:h+d,f);-1===v?(tr(Xi(c,s),a,u),Ns(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=js(u,t,h+d,f),g=js(u,t,h,h+d),y=m>=0&&n[m],_=g>=0&&n[g];if(r&&!_||!r&&!y){tr(Xi(c,s),a,u);var b=function(e,t,n,i,r){var o=new ji(e,n,Va);return o.multi=[],o.index=t,o.componentProviders=0,Vs(o,r,i&&!n),o}(r?zs:Bs,n.length,r,i,l);!r&&_&&(n[g].providerFactory=b),Ns(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else Ns(a,e,m>-1?m:g,Vs(n[r?g:m],l,!r&&i));!r&&i&&_&&n[g].componentProviders++}}}function Ns(e,t,n,i){var r=ya(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Vs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function js(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ln();if(i.firstCreatePass){var r=qt(e);Fs(n,i.data,i.blueprint,r,!0),Fs(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var qs=function e(){v(this,e)},Ws=function(){function e(){v(this,e)}return g(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(we(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ys=function(){var e=function e(){v(this,e)};return e.NULL=new Ws,e}();function Gs(){}function Ks(e,t){return new Qs(Zt(e,t))}var Zs=function(){return Ks(hn(),un())},Qs=function(){var e=function e(t){v(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Zs,e}(),Xs=function e(){v(this,e)},$s=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return Js()},e}(),Js=function(){var e=un(),t=$t(hn().index,e);return function(e){return e[11]}(jt(t)?t:e)},eu=function(){var e=function e(){v(this,e)};return e.\u0275prov=Ee({token:e,providedIn:"root",factory:function(){return null}}),e}(),tu=function e(t){v(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},nu=new tu("11.0.2"),iu=function(){function e(){v(this,e)}return g(e,[{key:"supports",value:function(e){return Ia(e)}},{key:"create",value:function(e){return new ou(e)}}]),e}(),ru=function(e,t){return t},ou=function(){function e(t){v(this,e),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||ru}return g(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(Gt(a)),Bt(a))for(var s=10;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Pr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Io(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ko(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Zo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){gn(!0);try{Zo(e,t,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Yr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return vu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),gu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._view=e,i}return g(n,[{key:"detectChanges",value:function(){Qo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){gn(!0);try{Qo(e)}finally{gn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(mu),yu=bu,_u=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=yu,e.__ChangeDetectorRef__=!0,e}();function bu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ht(e)){var i=$t(e.index,t);return new mu(i,i)}return 47&e.type?new mu(t[16],t):null}(hn(),un(),e)}var ku=[new cu],wu=new du([new iu]),Cu=new pu(ku),Su=function(){return Tu(hn(),un())},xu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Su,e}(),Eu=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return g(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=yo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ko(t,n,e),new mu(n)}}]),n}(xu);function Tu(e,t){return 4&e.type?new Eu(t,e,Ks(e,t)):null}var Au=function e(){v(this,e)},Ou=function e(){v(this,e)},Iu=function(){return Lu(hn(),un())},Ru=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Iu,e}(),Du=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return g(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Pu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(Bt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Ks(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=er(this._hostTNode,this._hostLView);if(Wi(e)){var t=Gi(e,this._hostLView),n=Yi(e);return new fr(t[1].data[n+8],t)}return new fr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Ru);function Pu(e){return e[8]}function Mu(e){return e[8]||(e[8]=[])}function Lu(e,t){var n,i=t[e.index];if(Bt(i))n=i;else{var r;if(8&e.type)r=Gt(i);else{var o=t[11];r=o.createComment("");var a=Zt(e,t);Fr(o,jr(o,a),r,function(e,t){return Wt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Uo(i,t,r,e),Go(t,n)}return new Du(n,e,t)}var Fu={},Nu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).ngModule=e,i}return g(n,[{key:"resolveComponentFactory",value:function(e){var t=kt(e);return new Bu(t,this.ngModule)}}]),n}(Ys);function Vu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ju=new Le("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return br}}),Bu=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(ao).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return g(n,[{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Fu,r);return o!==Fu||i===Fu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Xs,Yt),u=a.get(eu,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Wt(e))return e.selectRootElement(t,n===it.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):Ir(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:br,clean:$o,playerHandler:null,flags:0},p=Oo(0,null,null,1,0,null,null,null,null,null),v=yo(null,p,d,f,null,null,s,l,u,a);Tn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=_o(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(ia(s,u,!0),null!==e&&(Bi(r,e,u),null!==s.classes&&Zr(r,e,s.classes),null!==s.styles&&Kr(r,e,s.styles)));var l=i.createRenderer(e,t),c=yo(n,Ao(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(tr(Xi(s,n),a,t.type),Fo(a,s),Vo(s,n.length,1)),Go(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Bi(l,h,["ng-version",nu.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i0&&Zr(l,h,_.join(" "))}if(o=Qt(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:ba.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;return e===ba||e===Au||e===ra?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Au),qu=function(e){u(n,e);var t=c(n);function n(e){var r,o,a;return v(this,n),(r=t.call(this)).moduleType=e,null!==wt(e)&&(o=e,a=new Set,function e(t){var n=wt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(we(t)," vs ").concat(we(t.name)))}(r,Hu.get(r),t),Hu.set(r,t));var o,s=i(wr(n.imports));try{for(s.s();!(o=s.n()).done;){var u=o.value;a.has(u)||(a.add(u),e(u))}}catch(l){s.e(l)}finally{s.f()}}(o)),r}return g(n,[{key:"create",value:function(e){return new Uu(this.moduleType,e)}}]),n}(Ou);function Wu(e,t,n){var i=yn()+e,r=un();return r[i]===so?Da(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Yu(e,t){var n=e[t];return n===so?void 0:n}function Gu(e,t,n,i,r,o){var a=t+n;return Pa(e,a,r)?Da(e,a+1,o?i.call(o,r):i(r)):Yu(e,a+1)}var Ku=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,n),(e=t.call(this)).__isAsync=i,e}return g(n,[{key:"emit",value:function(e){s(p(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(a=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var u=s(p(n.prototype),"subscribe",this).call(this,r,o,a);return e instanceof x&&e.add(u),u}}]),n}(j);function Zu(){return this._results[Aa()]()}var Qu=function(){function e(){v(this,e),this.dirty=!0,this._results=[],this.changes=new Ku,this.length=0;var t=Aa(),n=e.prototype;n[t]||(n[t]=Zu)}return g(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=Ke(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Xu=function(){function e(t){v(this,e),this.queryList=t,this.matches=null}return g(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),$u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=r},el=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return g(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(Vl))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Kl=function(){var e=function(){function e(){v(this,e),this._applications=new Map,Zl.addToWindow(this)}return g(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Zl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Zl=new(function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ql=new Le("AllowMultipleToken"),Xl=function e(t,n){v(this,e),this.name=t,this.token=n};function $l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new Le(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Jl();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:aa,useValue:"platform"});!function(e){if(Wl&&!Wl.destroyed&&!Wl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wl=e.get(ec);var t=e.get(wl,null);t&&t.forEach(function(e){return e()})}(ba.create({providers:a,name:i}))}return function(e){var t=Jl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Jl(){return Wl&&!Wl.destroyed?Wl:null}var ec=function(){var e=function(){function e(t){v(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return g(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Yl:("zone.js"===n?void 0:n)||new Vl({enableLongStackTrace:Xn(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Vl,useValue:o}];return o.run(function(){var t=ba.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(yr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return rc(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})}),function(e,t,i){try{var o=((a=n.injector.get(yl)).runInitializers(),a.donePromise.then(function(){return Ls(n.injector.get(El,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Za(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=tc({},n);return function(e,t,n){var i=new qu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(ic);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(we(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(ba))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function tc(e,t){return Array.isArray(t)?t.reduce(tc,e):Object.assign(Object.assign({},e),t)}var nc,ic=((nc=function(){function e(t,n,i,r,o,a){var s=this;v(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new P(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new P(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Vl.assertNotInAngularZone(),Nl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Vl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=se(u,l.pipe(ve()))}return g(e,[{key:"bootstrap",value:function(e,t){var n,i=this;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.");n=e instanceof qs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Au),o=n.create(ba.NULL,[],t||n.selector,r);o.onDestroy(function(){i._unloadComponent(o)});var a=o.injector.get(Gl,null);return a&&o.injector.get(Kl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Xn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=i(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,o=i(this._views);try{for(o.s();!(r=o.n()).done;)r.value.checkNoChanges()}catch(a){o.e(a)}finally{o.f()}}}catch(s){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(s)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;rc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),rc(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||nc)(Lt(Vl),Lt(xl),Lt(ba),Lt(yr),Lt(Ys),Lt(yl))},nc.\u0275prov=Ee({token:nc,factory:nc.\u0275fac}),nc);function rc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oc=function e(){v(this,e)},ac=function e(){v(this,e)},sc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},uc=function(){var t=function(){function t(e,n){v(this,t),this._compiler=e,this._config=n||sc}return g(t,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(t){var n=this,i=e(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),l("zn8P")(r).then(function(e){return e[o]}).then(function(e){return lc(e,r,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(t){var n=e(t.split("#"),2),i=n[0],r=n[1],o="NgFactory";return void 0===r&&(r="default",o=""),l("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return lc(e,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Lt(Ll),Lt(ac,8))},t.\u0275prov=Ee({token:t,factory:t.\u0275fac}),t}();function lc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var cc=$l(null,"core",[{provide:Cl,useValue:"unknown"},{provide:ec,deps:[ba]},{provide:Kl,deps:[]},{provide:xl,deps:[]}]),hc=[{provide:ic,useClass:ic,deps:[Vl,xl,ba,yr,Ys,yl]},{provide:ju,deps:[Vl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:yl,useClass:yl,deps:[[new _e,gl]]},{provide:Ll,useClass:Ll,deps:[]},bl,{provide:du,useFactory:function(){return wu},deps:[]},{provide:pu,useFactory:function(){return Cu},deps:[]},{provide:El,useFactory:function(e){return Ls(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ye(El),new _e,new ke]]},{provide:Tl,useValue:"USD"}],fc=function(){var e=function e(t){v(this,e)};return e.\u0275mod=yt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)(Lt(ic))},providers:hc}),e}(),dc=null;function pc(){return dc}var vc,mc=new Le("DocumentToken"),gc=((vc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vc)},vc.\u0275prov=Ee({factory:yc,token:vc,providedIn:"platform"}),vc);function yc(){return Lt(kc)}var _c,bc=new Le("Location Initialized"),kc=((_c=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i._init(),i}return g(n,[{key:"_init",value:function(){this.location=pc().getLocation(),this._history=pc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return pc().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){wc()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){wc()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(gc)).\u0275fac=function(e){return new(e||_c)(Lt(mc))},_c.\u0275prov=Ee({factory:Cc,token:_c,providedIn:"platform"}),_c);function wc(){return!!window.history.pushState}function Cc(){return new kc(Lt(mc))}function Sc(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function xc(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ec(e){return e&&"?"!==e[0]?"?"+e:e}var Tc,Ac=((Tc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Tc)},Tc.\u0275prov=Ee({factory:Oc,token:Tc,providedIn:"root"}),Tc);function Oc(e){var t=Lt(mc).location;return new Mc(Lt(gc),t&&t.origin||"")}var Ic,Rc,Dc,Pc=new Le("appBaseHref"),Mc=((Dc=function(e){u(n,e);var t=c(n);function n(e,i){var r;if(v(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,h(r)}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Sc(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Ec(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Dc)(Lt(gc),Lt(Pc,8))},Dc.\u0275prov=Ee({token:Dc,factory:Dc.\u0275fac}),Dc),Lc=((Rc=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Sc(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Rc)(Lt(gc),Lt(Pc,8))},Rc.\u0275prov=Ee({token:Rc,factory:Rc.\u0275fac}),Rc),Fc=((Ic=function(){function e(t,n){var i=this;v(this,e),this._subject=new Ku,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=xc(Vc(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return g(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Ec(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Vc(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ic)(Lt(Ac),Lt(gc))},Ic.normalizeQueryParams=Ec,Ic.joinWithSlash=Sc,Ic.stripTrailingSlash=xc,Ic.\u0275prov=Ee({factory:Nc,token:Ic,providedIn:"root"}),Ic);function Nc(){return new Fc(Lt(Ac),Lt(gc))}function Vc(e){return e.replace(/\/index.html$/,"")}var jc,Bc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),zc=function e(){v(this,e)},Hc=((jc=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).locale=e,i}return g(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ps(t);if(n)return n;var i=t.split("-")[0];if(n=Ps(i))return n;if("en"===i)return Rs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ms.PluralCase]}(t||this.locale)(e)){case Bc.Zero:return"zero";case Bc.One:return"one";case Bc.Two:return"two";case Bc.Few:return"few";case Bc.Many:return"many";default:return"other"}}}]),n}(zc)).\u0275fac=function(e){return new(e||jc)(Lt(El))},jc.\u0275prov=Ee({token:jc,factory:jc.\u0275fac}),jc);function Uc(t,n){n=encodeURIComponent(n);var r,o=i(t.split(";"));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.indexOf("="),u=e(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),l=u[0],c=u[1];if(l.trim()===n)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var qc,Wc,Yc,Gc=((qc=function(){function e(t,n,i,r){v(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+we(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ia(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||qc)(Va(du),Va(pu),Va(Qs),Va($s))},qc.\u0275dir=bt({type:qc,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),qc),Kc=function(){function e(t,n,i,r){v(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return g(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Zc=((Wc=function(){function e(t,n,i){v(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Kc(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Qc(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Qc(e,s);n.push(u)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Et.Default,t=bu(!0);if(null!=t||e&Et.Optional)return t;Ei("ChangeDetectorRef")}())},oh.\u0275pipe={type:(rh={name:"async",type:oh,pure:!1}).type,name:rh.name,factory:null,pure:!1!==rh.pure,onDestroy:rh.type.prototype.ngOnDestroy||null},oh),ph=((ih=function e(){v(this,e)}).\u0275mod=yt({type:ih}),ih.\u0275inj=Te({factory:function(e){return new(e||ih)},providers:[{provide:zc,useClass:Hc}]}),ih);function vh(e){return"browser"===e}var mh,gh=((mh=function e(){v(this,e)}).\u0275prov=Ee({token:mh,providedIn:"root",factory:function(){return new yh(Lt(mc),window,Lt(yr))}}),mh),yh=function(){function e(t,n,i){v(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return g(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=_h(this.window.history)||_h(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function _h(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var bh,kh,wh,Ch,Sh=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=xh||(xh=document.querySelector("base"))?xh.getAttribute("href"):null;return null==n?null:(t=n,bh||(bh=document.createElement("a")),bh.setAttribute("href",t),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname)}},{key:"resetBaseElement",value:function(){xh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Uc(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,dc||(dc=e)}}]),n}(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.call(this)}return g(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){v(this,e)}}())),xh=null,Eh=new Le("TRANSITION_ID"),Th=[{provide:gl,useFactory:function(e,t,n){return function(){n.get(yl).donePromise.then(function(){var n=pc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Eh,mc,ba],multi:!0}],Ah=function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){He.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},He.getAllAngularTestabilities=function(){return e.getAllTestabilities()},He.getAllAngularRootElements=function(){return e.getAllRootElements()},He.frameworkStabilizers||(He.frameworkStabilizers=[]),He.frameworkStabilizers.push(function(e){var t=He.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?pc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Zl=t}}]),e}(),Oh=new Le("EventManagerPlugins"),Ih=((kh=function(){function e(t,n){var i=this;v(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return g(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Xh.hasOwnProperty(t)&&(t=Xh[t]))}return Qh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Zh.forEach(function(i){i!=n&&(0,$h[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Rh)).\u0275fac=function(e){return new(e||Hh)(Lt(mc))},Hh.\u0275prov=Ee({token:Hh,factory:Hh.\u0275fac}),Hh),ef=((zh=function e(){v(this,e)}).\u0275fac=function(e){return new(e||zh)},zh.\u0275prov=Ee({factory:function(){return Lt(tf)},token:zh,providedIn:"root"}),zh),tf=((Bh=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i}return g(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case bi.NONE:return t;case bi.HTML:return Gn(t,"HTML")?Yn(t):function(e,t){var n=null;try{oi=oi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString(jn(""),"text/html")}catch(e){return!1}}()?new $n:new Jn(e)}(e);var i=t?String(t):"";n=oi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=oi.getInertBodyElement(i)}while(i!==o);var a=new vi,s=a.sanitizeChildren(_i(n)||n);return Xn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=_i(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t));case bi.STYLE:return Gn(t,"Style")?Yn(t):t;case bi.SCRIPT:if(Gn(t,"Script"))return Yn(t);throw new Error("unsafe value used in a script context");case bi.URL:return Kn(t),Gn(t,"URL")?Yn(t):ni(String(t));case bi.RESOURCE_URL:if(Gn(t,"ResourceURL"))return Yn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new zn(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Hn(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Un(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qn(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Wn(e)}}]),n}(ef)).\u0275fac=function(e){return new(e||Bh)(Lt(mc))},Bh.\u0275prov=Ee({factory:function(){return e=Lt(ra),new tf(e.get(mc));var e},token:Bh,providedIn:"root"}),Bh),nf=$l(cc,"browser",[{provide:Cl,useValue:"browser"},{provide:wl,useValue:function(){Sh.makeCurrent(),Ah.init()},multi:!0},{provide:mc,useFactory:function(){return function(e){Vt=e}(document),document},deps:[]}]),rf=[[],{provide:aa,useValue:"root"},{provide:yr,useFactory:function(){return new yr},deps:[]},{provide:Oh,useClass:Kh,multi:!0,deps:[mc,Vl,Cl]},{provide:Oh,useClass:Jh,multi:!0,deps:[mc]},[],{provide:qh,useClass:qh,deps:[Ih,Ph,_l]},{provide:Xs,useExisting:qh},{provide:Dh,useExisting:Ph},{provide:Ph,useClass:Ph,deps:[mc]},{provide:Gl,useClass:Gl,deps:[Vl]},{provide:Ih,useClass:Ih,deps:[Oh,Vl]},[]],of=((Uh=function(){function e(t){if(v(this,e),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.")}return g(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_l,useValue:t.appId},{provide:Eh,useExisting:_l},Th]}}}]),e}()).\u0275mod=yt({type:Uh}),Uh.\u0275inj=Te({factory:function(e){return new(e||Uh)(Lt(Uh,12))},providers:rf,imports:[ph,fc]}),Uh);function af(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Tf;return function(t){return t.lift(new xf(e))}}var xf=function(){function e(t){v(this,e),this.errorFactory=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ef(e,this.errorFactory))}}]),e}(),Ef=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return g(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(A);function Tf(){return new ff}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Of(e))}}var Of=function(){function e(t){v(this,e),this.defaultValue=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new If(e,this.defaultValue))}}]),e}(),If=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return g(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(A);function Rf(e,t){return"function"==typeof t?function(n){return n.pipe(Rf(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Df(e))}}var Df=function(){function e(t){v(this,e),this.project=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Pf(e,this.project))}}]),e}(),Pf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return g(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new H(this,t,n),o=this.destination;o.add(r),this.innerSubscription=K(this,e,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||s(p(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&s(p(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}}]),n}(Z);function Mf(e){return function(t){return 0===e?pf():t.lift(new Lf(e))}}var Lf=function(){function e(t){if(v(this,e),this.total=t,this.total<0)throw new bf}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ff(e,this.total))}}]),e}(),Ff=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(A);function Nf(){return mf()(af.apply(void 0,arguments))}function Vf(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Bf(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Bf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return g(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(A);function zf(e){return function(t){var n=new Hf(e),i=t.lift(n);return n.caught=i}}var Hf=function(){function e(t){v(this,e),this.selector=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Uf(e,this.selector,this.caught))}}]),e}(),Uf=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return g(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void s(p(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new H(this,void 0,void 0);this.add(i);var r=K(this,t,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}(Z);function qf(e,t){return te(e,t,1)}function Wf(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,Mf(1),n?Af(t):Sf(function(){return new ff}))}}function Yf(e,t,n){return function(i){return i.lift(new Gf(e,t,n))}}var Gf=function(){function e(t,n,i){v(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Kf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Kf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e))._tapNext=R,a._tapError=R,a._tapComplete=R,a._tapError=r||R,a._tapComplete=o||R,d(i)?(a._context=f(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||R,a._tapError=i.error||R,a._tapComplete=i.complete||R),a}return g(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(A);function Zf(e){return function(t){return t.lift(new Qf(e))}}var Qf=function(){function e(t){v(this,e),this.callback=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Xf(e,this.callback))}}]),e}(),Xf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).add(new x(i)),r}return n}(A),$f=function e(t,n){v(this,e),this.id=t,this.url=n},Jf=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return g(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),ed=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return g(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}($f),td=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).reason=r,o}return g(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),nd=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).error=r,o}return g(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}($f),id=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),rd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),od=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return g(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}($f),ad=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),sd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),ud=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ld=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),cd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pd=function(){function e(t,n,i){v(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return g(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),vd=function(){function e(t){v(this,e),this.params=t||{}}return g(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function md(e){return new vd(e)}function gd(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yd(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Cd(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sd(e){return Qa(e)?e:Za(e)?ee(Promise.resolve(e)):af(e)}function xd(e,t,n){return n?function(e,t){return _d(e,t)}(e.queryParams,t.queryParams)&&Ed(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return bd(e[n],t[n])})}(e.queryParams,t.queryParams)&&Td(e.root,t.root)}function Ed(e,t){if(!Dd(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Ed(e.children[n],t.children[n]))return!1}return!0}function Td(e,t){return Ad(e,t,t.segments)}function Ad(e,t,n){if(e.segments.length>n.length)return!!Dd(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Dd(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Td(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!Dd(e.segments,r)&&!!e.children.primary&&Ad(e.children.primary,t,o)}var Od=function(){function e(t,n,i){v(this,e),this.root=t,this.queryParams=n,this.fragment=i}return g(e,[{key:"toString",value:function(){return Fd.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),Id=function(){function e(t,n){var i=this;v(this,e),this.segments=t,this.children=n,this.parent=null,Cd(n,function(e,t){return e.parent=i})}return g(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Nd(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Rd=function(){function e(t,n){v(this,e),this.path=t,this.parameters=n}return g(e,[{key:"toString",value:function(){return qd(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}}]),e}();function Dd(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Pd(e,t){var n=[];return Cd(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Cd(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}var Md=function e(){v(this,e)},Ld=function(){function e(){v(this,e)}return g(e,[{key:"parse",value:function(e){var t=new Zd(e);return new Od(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Vd(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Bd(e),"=").concat(Bd(t))}).join("&"):"".concat(Bd(e),"=").concat(Bd(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Fd=new Ld;function Nd(e){return e.segments.map(function(e){return qd(e)}).join("/")}function Vd(e,t){if(!e.hasChildren())return Nd(e);if(t){var n=e.children.primary?Vd(e.children.primary,!1):"",i=[];return Cd(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Vd(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=Pd(e,function(t,n){return"primary"===n?[Vd(e.children.primary,!1)]:["".concat(n,":").concat(Vd(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Nd(e),"/").concat(r[0]):"".concat(Nd(e),"/(").concat(r.join("//"),")")}function jd(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bd(e){return jd(e).replace(/%3B/gi,";")}function zd(e){return jd(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hd(e){return decodeURIComponent(e)}function Ud(e){return Hd(e.replace(/\+/g,"%20"))}function qd(e){return"".concat(zd(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(zd(e),"=").concat(zd(t[e]))}).join("")));var t}var Wd=/^[^\/()?;=#]+/;function Yd(e){var t=e.match(Wd);return t?t[0]:""}var Gd=/^[^=?&#]+/,Kd=/^[^?&#]+/,Zd=function(){function e(t){v(this,e),this.url=t,this.remaining=t}return g(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Id([],{}):new Id([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Id(e,t)),n}},{key:"parseSegment",value:function(){var e=Yd(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Rd(Hd(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Yd(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Yd(this.remaining);i&&(n=i,this.capture(n))}e[Hd(t)]=Hd(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Gd);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Kd);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Ud(t),o=Ud(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Yd(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Id([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Qd=function(){function e(t){v(this,e),this._root=t}return g(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xd(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xd(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$d(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $d(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function Xd(e,t){if(e===t.value)return t;var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=Xd(e,n.value);if(o)return o}}catch(a){r.e(a)}finally{r.f()}return null}function $d(e,t){if(e===t.value)return[t];var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=$d(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){r.e(a)}finally{r.f()}return[]}var Jd=function(){function e(t,n){v(this,e),this.value=t,this.children=n}return g(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ep(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var tp=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).snapshot=i,sp(f(r),e),r}return g(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Qd);function np(e,t){var n=function(e,t){var n=new op([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ap("",new Jd(n,[]))}(e,t),i=new sf([new Rd("",{})]),r=new sf({}),o=new sf({}),a=new sf({}),s=new sf(""),u=new ip(i,r,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new tp(new Jd(u,[]),n)}var ip=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return g(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q(function(e){return md(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(function(e){return md(e)}))),this._queryParamMap}}]),e}();function rp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var op=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return g(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=md(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),ap=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,i)).url=e,sp(f(r),i),r}return g(n,[{key:"toString",value:function(){return up(this._root)}}]),n}(Qd);function sp(e,t){t.value._routerState=e,t.children.forEach(function(t){return sp(e,t)})}function up(e){var t=e.children.length>0?" { ".concat(e.children.map(up).join(", ")," } "):"";return"".concat(e.value).concat(t)}function lp(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,_d(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),_d(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&dp(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(pp);if(r&&r!==wd(i))throw new Error("{outlets:{}} has to be the last command")}return g(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yp=function e(t,n,i){v(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function _p(e,t,n){if(e||(e=new Id([],{})),0===e.segments.length&&e.hasChildren())return bp(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(pp(s))break;var u=""+s,l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sp(u,l,a))return o;i+=2}else{if(!Sp(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex=2&&(n=!0),function(i){return i.lift(new jf(e,t,n))}}(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==Ip)return e;if(i===Ip&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||Op(i))return i}return e},e)},Ip),gf(function(e){return e!==Ip}),Q(function(e){return Op(e)?e:!0===e}),Mf(1))})}var Dp,Pp=((Dp=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Dp)},Dp.\u0275cmp=pt({type:Dp,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&qa(0,"router-outlet")},directives:function(){return[Pv]},encapsulation:2}),Dp);function Mp(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new Id([],{primary:e}):e;return new Od(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Q(function(e){return new Id([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return af({});var o=[],a=[],s={};return Cd(n,function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(e,t,l,u)).pipe(Q(function(e){return s[r]=e}));"primary"===r?o.push(c):a.push(c)}),af.apply(null,o.concat(a)).pipe(mf(),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,kf(1),n?Af(t):Sf(function(){return new ff}))}}(),Q(function(){return s}))}(n.children)}},{key:"expandSegment",value:function(t,n,i,r,o,a){var s=this,u=function(e){return e.reduce(function(e,t){var n=Vp(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(i);u.has(o)||u.set(o,[]);return ee(Array.from(u.entries()).map(function(i){var u=e(i,2),l=u[0],c=function(e){return ee(e).pipe(qf(function(i){return s.expandSegmentAgainstRoute(t,n,e,i,r,o,a).pipe(zf(function(e){if(e instanceof jp)return af(null);throw e}))}),Wf(function(e){return null!==e}),zf(function(e){if(e instanceof ff||"EmptyError"===e.name){if(s.noLeftoversInUrl(n,r,o))return af(new Id([],{}));throw new jp(n)}throw e}))}(u[1]);return l===o?c:c.pipe(Q(function(){return null}),zf(function(){return af(null)}))})).pipe(function(e){return e.lift(new cf(void 0))},Wf(),Q(function(e){return e.find(function(e){return null!==e})}))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Vp(i)!==o&&""!==i.path?zp(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):zp(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Hp(o):this.lineralizeSegments(n,o).pipe(te(function(n){var o=new Id(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Wp(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return zp(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Hp(f):this.lineralizeSegments(i,f).pipe(te(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Q(function(e){return n._loadedConfig=e,new Id(r,{})})):af(new Id(r,{}));var a=Wp(t,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return zp(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(te(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)&&"primary"!==Vp(n)})}(e,n,r)?{segmentGroup:Yp(new Id(t,function(e,t){var n={};n.primary=t;var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;""===a.path&&"primary"!==Vp(a)&&(n[Vp(a)]=new Id([],{}))}}catch(s){o.e(s)}finally{o.f()}return n}(r,new Id(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)})}(e,n,r)?{segmentGroup:Yp(new Id(e.segments,function(e,t,n,r){var o,a={},s=i(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;Gp(e,t,u)&&!r[Vp(u)]&&(a[Vp(u)]=new Id([],{}))}}catch(l){s.e(l)}finally{s.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,c,r),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(Q(function(e){return new Id(u,e)})):0===r.length&&0===l.length?af(new Id(u,{})):o.expandSegment(n,s,r,l,"primary",!0).pipe(Q(function(e){return new Id(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?af(new Tp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?af(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(te(function(n){return n?i.configLoader.load(e.injector,t).pipe(Q(function(e){return t._loadedConfig=e,e})):function(e){return new P(function(t){return t.error(gd("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):af(new Tp([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?af(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&Ap(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!Ap(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Sd(r)})).pipe(Rp(),Yf(function(e){if(Op(e)){var t=gd('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Q(function(e){return!0===e})):af(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return af(n);if(i.numberOfChildren>1||!i.children.primary)return Up(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Od(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Cd(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Cd(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Id(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=i(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(s){o.e(s)}finally{o.f()}return e}}]),t}();function Wp(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||yd)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Yp(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Id(e.segments.concat(t.segments),t.children)}return e}function Gp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Kp=function e(t){v(this,e),this.path=t,this.route=this.path[this.path.length-1]},Zp=function e(t,n){v(this,e),this.component=t,this.route=n};function Qp(e,t,n){var i=e._root;return $p(i,t?t._root:null,n,[i.value])}function Xp(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function $p(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=ep(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Dd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dd(e.url,t.url)||!_d(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cp(e,t)||!_d(e.queryParams,t.queryParams);case"paramsChange":default:return!cp(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Kp(i)):(o.data=a.data,o._resolvedData=a._resolvedData),$p(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Zp(s.outlet.component,a))}else a&&Jp(t,s,r),r.canActivateChecks.push(new Kp(i)),$p(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Cd(o,function(e,t){return Jp(e,n.getContext(t),r)}),r}function Jp(e,t,n){var i=ep(e),r=e.value;Cd(i,function(e,i){Jp(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Zp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ev(e,t){return null!==e&&t&&t(new fd(e)),af(!0)}function tv(e,t){return null!==e&&t&&t(new cd(e)),af(!0)}function nv(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?af(i.map(function(i){return vf(function(){var r,o=Xp(i,t,n);if(function(e){return e&&Ap(e.canActivate)}(o))r=Sd(o.canActivate(t,e));else{if(!Ap(o))throw new Error("Invalid CanActivate guard");r=Sd(o(t,e))}return r.pipe(Wf())})})).pipe(Rp()):af(!0)}function iv(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return vf(function(){return af(t.guards.map(function(r){var o,a=Xp(r,t.node,n);if(function(e){return e&&Ap(e.canActivateChild)}(a))o=Sd(a.canActivateChild(i,e));else{if(!Ap(a))throw new Error("Invalid CanActivateChild guard");o=Sd(a(i,e))}return o.pipe(Wf())})).pipe(Rp())})});return af(r).pipe(Rp())}var rv=function e(){v(this,e)},ov=function(){function e(t,n,i,r,o,a){v(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return g(e,[{key:"recognize",value:function(){try{var e=uv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new op([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Jd(n,t),r=new ap(this.url,i);return this.inheritParamsAndData(r._root),af(r)}catch(o){return new P(function(e){return e.error(o)})}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=rp(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,i=this,r=Pd(t,function(t,n){return i.processSegmentGroup(e,t,n)});return n={},r.forEach(function(e){var t=n[e.value.outlet];if(t){var i=t.url.map(function(e){return e.toString()}).join("/"),r=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[e.value.outlet]=e.value}),r.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),r}},{key:"processSegment",value:function(e,t,n,r){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(u){if(!(u instanceof rv))throw u}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new rv}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new rv;if((e.outlet||"primary")!==i)throw new rv;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?wd(n).parameters:{};r=new op(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+n.length,fv(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new rv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||yd)(n,e,t);if(!i)throw new rv;var r={};Cd(i.posParams,function(e,t){r[t]=e.path});var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),r=new op(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+o.length,fv(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=uv(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Jd(r,d)]}if(0===l.length&&0===f.length)return[new Jd(r,[])];var p=this.processSegment(l,h,f,"primary");return[new Jd(r,p)]}}]),e}();function av(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function sv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function uv(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return lv(e,t,n)&&"primary"!==cv(n)})}(e,n,r)){var a=new Id(t,function(e,t,n,r){var o={};o.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==cv(u)){var l=new Id([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[cv(u)]=l}}}catch(c){s.e(c)}finally{s.f()}return o}(e,t,r,new Id(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return lv(e,t,n)})}(e,n,r)){var s=new Id(e.segments,function(e,t,n,r,o,a){var s,u={},l=i(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(lv(e,n,c)&&!o[cv(c)]){var h=new Id([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===a?e.segments.length:t.length,u[cv(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),u)}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var u=new Id(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function lv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function cv(e){return e.outlet||"primary"}function hv(e){return e.data||{}}function fv(e){return e.resolve||{}}function dv(e){return function(t){return t.pipe(Rf(function(t){var n=e(t);return n?ee(n).pipe(Q(function(){return t})):ee([t])}))}}var pv=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(function(){function e(){v(this,e)}return g(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vv=new Le("ROUTES"),mv=function(){function e(t,n,i,r){v(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return g(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Q(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Tp(kd(r.injector.get(vv)).map(Np),r)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ee(this.loader.load(e)):Sd(e()).pipe(te(function(e){return e instanceof Ou?af(e):ee(t.compiler.compileModuleAsync(e))}))}}]),e}(),gv=function e(){v(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new yv,this.attachRef=null},yv=function(){function e(){v(this,e),this.contexts=new Map}return g(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new gv,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),_v=function(){function e(){v(this,e)}return g(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bv(e){throw e}function kv(e,t,n){return t.parse("/")}function wv(e,t){return af(null)}var Cv,Sv,xv,Ev=((xv=function(){function e(t,n,i,r,o,a,s,u){var l=this;v(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=bv,this.malformedUriErrorHandler=kv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wv,afterPreactivation:wv},this.urlHandlingStrategy=new _v,this.routeReuseStrategy=new pv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Au),this.console=o.get(xl);var c=o.get(Vl);this.isNgZoneEnabled=c instanceof Vl,this.resetConfig(u),this.currentUrlTree=new Od(new Id([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mv(a,s,function(e){return l.triggerEvent(new ud(e))},function(e){return l.triggerEvent(new ld(e))}),this.routerState=np(this.currentUrlTree,this.rootComponentType),this.transitions=new sf({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return g(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(gf(function(e){return 0!==e.id}),Q(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Rf(function(e){var i,r,o,a=!1,s=!1;return af(e).pipe(Yf(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Rf(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return af(e).pipe(Rf(function(e){var i=t.transitions.getValue();return n.next(new Jf(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?df:[e]}),Rf(function(e){return Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Rf(function(e){return function(e,t,n,i,r){return new qp(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Q(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),Yf(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return function(i){return i.pipe(te(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ov(e,t,n,i,r,o).recognize()}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Q(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Yf(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),Yf(function(e){var i=new id(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Jf(u,t.serializeUrl(l),c,h);n.next(d);var p=np(l,t.rootComponentType).snapshot;return af(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),df}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Yf(function(e){var n=new rd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Q(function(e){return Object.assign(Object.assign({},e),{guards:Qp(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(te(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?af(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ee(e).pipe(te(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?af(o.map(function(o){var a,s=Xp(o,t,r);if(function(e){return e&&Ap(e.canDeactivate)}(s))a=Sd(s.canDeactivate(e,t,n,i));else{if(!Ap(s))throw new Error("Invalid CanDeactivate guard");a=Sd(s(e,t,n,i))}return a.pipe(Wf())})).pipe(Rp()):af(!0)}(e.component,e.route,n,t,i)}),Wf(function(e){return!0!==e},!0))}(s,i,r,e).pipe(te(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ee(t).pipe(qf(function(t){return ee([tv(t.route.parent,i),ev(t.route,i),iv(e,t.path,n),nv(e,t.route,n)]).pipe(mf(),Wf(function(e){return!0!==e},!0))}),Wf(function(e){return!0!==e},!0))}(i,a,e,t):af(n)}),Q(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Yf(function(e){if(Op(e.guardsResult)){var n=gd('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),Yf(function(e){var n=new od(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),gf(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),dv(function(e){if(e.guards.canActivateChecks.length)return af(e).pipe(Yf(function(e){var n=new ad(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Rf(function(e){var i,r,o=!1;return af(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(te(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return af(e);var o=0;return ee(n).pipe(qf(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return af({});var o={};return ee(r).pipe(te(function(r){return function(e,t,n,i){var r=Xp(e,t,i);return Sd(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Yf(function(e){o[r]=e}))}),kf(1),te(function(){return Object.keys(o).length===r.length?af(o):df}))}(e._resolve,e,t,i).pipe(Q(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),rp(e,n).resolve),null}))}(e.route,t,i,r)}),Yf(function(){return o++}),kf(1),te(function(t){return o===n.length?af(e):df}))}))}),Yf({next:function(){return o=!0},complete:function(){if(!o){var i=new td(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Yf(function(e){var n=new sd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Q(function(e){var n=function(e,t,n){var i=hp(e,t._root,n?n._root:void 0);return new tp(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Yf(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Q(function(e){return new xp(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Yf({next:function(){a=!0},complete:function(){a=!0}}),Zf(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),zf(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=Op(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new td(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new nd(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(l){e.reject(l)}}var u;return df}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Mp(e),this.config=e.map(Np),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.relativeTo,r=n.queryParams,o=n.fragment,a=n.queryParamsHandling,s=n.preserveFragment,u=i||this.routerState.root,l=s?this.currentUrlTree.fragment:o,c=null;switch(a){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(e,n,i,r,o){if(0===i.length)return vp(n.root,n.root,n,r,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gp(!0,0,e);var n=0,i=!1,r=e.reduce(function(e,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Cd(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(t(e),[{outlets:a}])}if(r.segmentPath)return[].concat(t(e),[r.segmentPath])}return"string"!=typeof r?[].concat(t(e),[r]):0===o?(r.split("/").forEach(function(t,r){0==r&&"."===t||(0==r&&""===t?i=!0:".."===t?n++:""!=t&&e.push(t))}),e):[].concat(t(e),[r])},[]);return new gp(i,n,r)}(i);if(a.toRoot())return vp(n.root,new Id([],{}),n,r,o);var s=function(e,t,n){if(e.isAbsolute)return new yp(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yp(i,i===t.root,0)}var r=dp(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yp(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,n,e),u=s.processChildren?bp(s.segmentGroup,s.index,a.commands):_p(s.segmentGroup,s.index,a.commands);return vp(s.segmentGroup,u,n,r,o)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Op(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};v(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return g(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Jf?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ed&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof pd&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new pd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Rv)(Lt(Ev),Lt(gh),Lt(void 0))},Rv.\u0275prov=Ee({token:Rv,factory:Rv.\u0275fac}),Rv),jv=new Le("ROUTER_CONFIGURATION"),Bv=new Le("ROUTER_FORROOT_GUARD"),zv=[Fc,{provide:Md,useClass:Ld},{provide:Ev,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Ev(null,e,t,n,i,r,o,kd(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var h=pc();c.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return c},deps:[Md,yv,Fc,ba,oc,Ll,vv,jv,[function(){return function e(){v(this,e)}}(),new _e],[function(){return function e(){v(this,e)}}(),new _e]]},yv,{provide:ip,useFactory:function(e){return e.routerState.root},deps:[Ev]},{provide:oc,useClass:uc},Nv,Fv,function(){function e(){v(this,e)}return g(e,[{key:"preload",value:function(e,t){return t().pipe(zf(function(){return af(null)}))}}]),e}(),{provide:jv,useValue:{enableTracing:!1}}];function Hv(){return new Xl("Router",Ev)}var Uv,qv=((Uv=function(){function e(t,n){v(this,e)}return g(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[zv,Kv(t),{provide:Bv,useFactory:Gv,deps:[[Ev,new _e,new ke]]},{provide:jv,useValue:n||{}},{provide:Ac,useFactory:Yv,deps:[gc,[new ye(Pc),new _e],jv]},{provide:Vv,useFactory:Wv,deps:[Ev,gh,jv]},{provide:Lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fv},{provide:Xl,multi:!0,useFactory:Hv},[Qv,{provide:gl,multi:!0,useFactory:Xv,deps:[Qv]},{provide:Jv,useFactory:$v,deps:[Qv]},{provide:Sl,multi:!0,useExisting:Jv}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Kv(t)]}}}]),e}()).\u0275mod=yt({type:Uv}),Uv.\u0275inj=Te({factory:function(e){return new(e||Uv)(Lt(Bv,8),Lt(Ev,8))}}),Uv);function Wv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Vv(e,t,n)}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Lc(e,t):new Mc(e,t)}function Gv(e){return"guarded"}function Kv(e){return[{provide:Fe,multi:!0,useValue:e},{provide:vv,multi:!0,useValue:e}]}var Zv,Qv=((Zv=function(){function e(t){v(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return g(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(bc,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(Ev),r=e.injector.get(jv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?af(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(jv),n=this.injector.get(Nv),i=this.injector.get(Vv),r=this.injector.get(Ev),o=this.injector.get(ic);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||Zv)(Lt(ba))},Zv.\u0275prov=Ee({token:Zv,factory:Zv.\u0275fac}),Zv);function Xv(e){return e.appInitializer.bind(e)}function $v(e){return e.bootstrapListener.bind(e)}var Jv=new Le("Router Initializer"),em=function e(){v(this,e)},tm=function e(){v(this,e)},nm=function(){function e(t){var n=this;v(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return g(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var n=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,n);var r=("a"===e.op?this.headers.get(n):void 0)||[];r.push.apply(r,t(i)),this.headers.set(n,r);break;case"d":var o=e.value;if(o){var a=this.headers.get(n);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),im=function(){function e(){v(this,e)}return g(e,[{key:"encodeKey",value:function(e){return rm(e)}},{key:"encodeValue",value:function(e){return rm(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function rm(e){return encodeURIComponent(e).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,"/")}var om=function(){function t(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new im,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){var i=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),o=e(-1==r?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,r)),n.decodeValue(t.slice(r+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var t=i.fromObject[e];n.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return g(t,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function am(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function sm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function um(e){return"undefined"!=typeof FormData&&e instanceof FormData}var lm=function(){function e(t,n,i,r){var o;if(v(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new nm),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,i,o,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),cm=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),hm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,e),this.headers=t.headers||new nm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},fm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.ResponseHeader,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),dm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.Response,e.body=void 0!==i.body?i.body:null,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),pm=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(hm);function vm(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var mm,gm,ym,_m,bm,km,wm,Cm,Sm,xm,Em,Tm,Am,Om,Im,Rm=((mm=function(){function e(t){v(this,e),this.handler=t}return g(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof lm)n=e;else{var o=void 0;o=r.headers instanceof nm?r.headers:new nm(r.headers);var a=void 0;r.params&&(a=r.params instanceof om?r.params:new om({fromObject:r.params})),n=new lm(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=af(n).pipe(qf(function(e){return i.handler.handle(e)}));if(e instanceof lm||"events"===r.observe)return s;var u=s.pipe(gf(function(e){return e instanceof dm}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Q(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(Q(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new om).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,vm(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,vm(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,vm(n,t))}}]),e}()).\u0275fac=function(e){return new(e||mm)(Lt(em))},mm.\u0275prov=Ee({token:mm,factory:mm.\u0275fac}),mm),Dm=function(){function e(t,n){v(this,e),this.next=t,this.interceptor=n}return g(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Pm=new Le("HTTP_INTERCEPTORS"),Mm=((gm=function(){function e(){v(this,e)}return g(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||gm)},gm.\u0275prov=Ee({token:gm,factory:gm.\u0275fac}),gm),Lm=/^\)\]\}',?\n/,Fm=function e(){v(this,e)},Nm=((_m=function(){function e(){v(this,e)}return g(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||_m)},_m.\u0275prov=Ee({token:_m,factory:_m.\u0275fac}),_m),Vm=((ym=function(){function e(t){v(this,e),this.xhrFactory=t}return g(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new nm(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new fm({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(Lm,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new dm({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new pm({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new pm({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(u()),h=!0);var r={type:cm.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:cm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),e.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:cm.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||ym)(Lt(Fm))},ym.\u0275prov=Ee({token:ym,factory:ym.\u0275fac}),ym),jm=new Le("XSRF_COOKIE_NAME"),Bm=new Le("XSRF_HEADER_NAME"),zm=function e(){v(this,e)},Hm=((Im=function(){function e(t,n,i){v(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return g(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uc(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Im)(Lt(mc),Lt(Cl),Lt(jm))},Im.\u0275prov=Ee({token:Im,factory:Im.\u0275fac}),Im),Um=((Om=function(){function e(t,n){v(this,e),this.tokenService=t,this.headerName=n}return g(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Om)(Lt(zm),Lt(Bm))},Om.\u0275prov=Ee({token:Om,factory:Om.\u0275fac}),Om),qm=((Am=function(){function e(t,n){v(this,e),this.backend=t,this.injector=n,this.chain=null}return g(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Pm,[]);this.chain=t.reduceRight(function(e,t){return new Dm(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Am)(Lt(tm),Lt(ba))},Am.\u0275prov=Ee({token:Am,factory:Am.\u0275fac}),Am),Wm=((Tm=function(){function e(){v(this,e)}return g(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Um,useClass:Mm}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:jm,useValue:t.cookieName}:[],t.headerName?{provide:Bm,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=yt({type:Tm}),Tm.\u0275inj=Te({factory:function(e){return new(e||Tm)},providers:[Um,{provide:Pm,useExisting:Um,multi:!0},{provide:zm,useClass:Hm},{provide:jm,useValue:"XSRF-TOKEN"},{provide:Bm,useValue:"X-XSRF-TOKEN"}]}),Tm),Ym=((Em=function e(){v(this,e)}).\u0275mod=yt({type:Em}),Em.\u0275inj=Te({factory:function(e){return new(e||Em)},providers:[Rm,{provide:em,useClass:qm},Vm,{provide:tm,useExisting:Vm},Nm,{provide:Fm,useExisting:Nm}],imports:[[Wm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Em),Gm=((xm=function(){function e(t){v(this,e),this.http=t}return g(e,[{key:"load",value:function(){var e=this;return this._configData=null,this.http.get("/adme/client/assets/data/config.json").toPromise().then(function(t){null==t.apiBaseUrl&&(t.apiBaseUrl="/adme/"),e._configData=t}).catch(function(e){return Promise.resolve()})}},{key:"configData",get:function(){return this._configData},set:function(e){this._configData=e}}]),e}()).\u0275fac=function(e){return new(e||xm)(Lt(Rm))},xm.\u0275prov=Ee({token:xm,factory:xm.\u0275fac,providedIn:"root"}),xm),Km=((Sm=function(){function e(t,n){v(this,e),this.configService=t,this.platformId=n,this.isActive=!1,vh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}return g(e,[{key:"init",value:function(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}},{key:"onGlobalError",value:function(e){this.sendException("message: ".concat(e.message," | filenname: ").concat(e.filename," | lineno: ").concat(e.lineno," | colno: ").concat(e.colno))}},{key:"sendPageView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href;if(this.isActive){var n={page_title:e,page_path:t};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}},{key:"sendEvent",value:function(e,t,n,i){this.isActive&&this.gtag("event",e,{event_category:t,event_label:n,value:i})}},{key:"sendException",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isActive&&this.gtag("event","exception",{description:e,fatal:t})}}]),e}()).\u0275fac=function(e){return new(e||Sm)(Lt(Gm),Lt(Cl))},Sm.\u0275prov=Ee({token:Sm,factory:Sm.\u0275fac,providedIn:"root"}),Sm),Zm=((Cm=function(){function e(t){v(this,e),this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}return g(e,[{key:"onClick",value:function(e){this.evLabel=e.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}]),e}()).\u0275fac=function(e){return new(e||Cm)(Va(Km))},Cm.\u0275dir=bt({type:Cm,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(e,t){1&e&&Xa("click",function(e){return t.onClick(e.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),Cm),Qm=((wm=function(){function e(){v(this,e)}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wm)},wm.\u0275cmp=pt({type:wm,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h2"),xs(3," Background "),Ua(),Ha(4,"p",2),xs(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Ha(6,"a",3),xs(7,"download the self-contained instance of ADME@NCATS"),Ua(),xs(8," that can be run locally. "),Ua(),Ha(9,"p",2),xs(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Ua(),Ua(),Ua())},directives:[Zm],styles:[""]}),wm),Xm=((km=function(){function e(){v(this,e),this.loadingStateEmitter=new j}return g(e,[{key:"setLoadingState",value:function(e){this.loadingStateEmitter.next(e)}},{key:"isLoading",get:function(){return this.loadingStateEmitter.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||km)},km.\u0275prov=Ee({token:km,factory:km.\u0275fac,providedIn:"root"}),km);try{bm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cP){bm=!1}var $m,Jm,eg,tg,ng,ig=((eg=function e(t){v(this,e),this._platformId=t,this.isBrowser=this._platformId?vh(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&&!bm)&&"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}).\u0275fac=function(e){return new(e||eg)(Lt(Cl))},eg.\u0275prov=Ee({factory:function(){return new eg(Lt(Cl))},token:eg,providedIn:"root"}),eg),rg=((Jm=function e(){v(this,e)}).\u0275mod=yt({type:Jm}),Jm.\u0275inj=Te({factory:function(e){return new(e||Jm)}}),Jm),og=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ag(){if($m)return $m;if("object"!=typeof document||!document)return $m=new Set(og);var e=document.createElement("input");return $m=new Set(og.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function sg(e){return function(){if(null==tg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return tg=!0}}))}finally{tg=tg||!1}return tg}()?e:!!e.capture}function ug(e){if(function(){if(null==ng){var e="undefined"!=typeof document?document.head:null;ng=!(!e||!e.createShadowRoot&&!e.attachShadow)}return ng}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function lg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){u(n,e);var t=c(n);function n(e,i){return v(this,n),t.call(this)}return g(n,[{key:"schedule",value:function(e){return this}}]),n}(x)),hg=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.SchedulerAction=t,this.now=n}return g(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),fg=function(e){u(n,e);var t=c(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hg.now;return v(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return g(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):s(p(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(hg),dg=new fg(cg);function pg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg;return function(n){return n.lift(new vg(e,t))}}var vg=function(){function e(t,n){v(this,e),this.dueTime=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new mg(e,this.dueTime,this.scheduler))}}]),e}(),mg=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return g(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(A);function gg(e){e.debouncedNext()}function yg(e){return null!=e&&""+e!="false"}function _g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function bg(e){return Array.isArray(e)?e:[e]}function kg(e){return null==e?"":"string"==typeof e?e:e+"px"}function wg(e){return e instanceof Qs?e.nativeElement:e}var Cg,Sg,xg,Eg,Tg=((Eg=function(){function e(){v(this,e)}return g(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||Eg)},Eg.\u0275prov=Ee({factory:function(){return new Eg},token:Eg,providedIn:"root"}),Eg),Ag=((xg=function(){function e(t){v(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return g(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=wg(e);return new P(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new j,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||xg)(Lt(Tg))},xg.\u0275prov=Ee({factory:function(){return new xg(Lt(Tg))},token:xg,providedIn:"root"}),xg),Og=((Sg=function(){function e(t,n,i){v(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Ku,this._disabled=!1,this._currentSubscription=null}return g(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(pg(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=_g(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Sg)(Va(Ag),Va(Qs),Va(Vl))},Sg.\u0275dir=bt({type:Sg,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Sg),Ig=((Cg=function e(){v(this,e)}).\u0275mod=yt({type:Cg}),Cg.\u0275inj=Te({factory:function(e){return new(e||Cg)},providers:[Tg]}),Cg);function Rg(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Dg,Pg,Mg=0,Lg=new Map,Fg=null,Ng=((Dg=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Lg.set(t,{messageElement:t,referenceCount:0})):Lg.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Lg.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Fg&&0===Fg.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return g(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yf(function(t){return e._pressedLetters.push(t)}),pg(t),gf(function(){return e._pressedLetters.length>0}),Q(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||lg(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Qu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),jg=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Vg),Bg=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._origin="program",e}return g(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Vg),zg=((Pg=function(){function e(t){v(this,e),this._platform=t}return g(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(cP){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Ug(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Ug(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Hg(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Pg)(Lt(ig))},Pg.\u0275prov=Ee({factory:function(){return new Pg(Lt(ig))},token:Pg,providedIn:"root"}),Pg);function Hg(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Ug(e){if(!Hg(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var qg,Wg=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return g(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Mf(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),Yg=((qg=function(){function e(t,n,i){v(this,e),this._checker=t,this._ngZone=n,this._document=i}return g(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Wg(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||qg)(Lt(zg),Lt(Vl),Lt(mc))},qg.\u0275prov=Ee({factory:function(){return new qg(Lt(zg),Lt(Vl),Lt(mc))},token:qg,providedIn:"root"}),qg);"undefined"!=typeof Element&∈var Gg,Kg=new Le("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Zg=new Le("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Qg=((Gg=function(){function t(e,n,i,r){v(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return g(t,[{key:"announce",value:function(t){for(var n,i,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1],n=wg(e);if(!this._platform.isBrowser||1!==n.nodeType)return af(null);var i=ug(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new j,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=wg(e);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,t,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=ny(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===ny(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,ey),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ey)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,ey),e.addEventListener("mousedown",t._documentMousedownListener,ey),e.addEventListener("touchstart",t._documentTouchstartListener,ey),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ey),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ey),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,ey),i.removeEventListener("mousedown",this._documentMousedownListener,ey),i.removeEventListener("touchstart",this._documentTouchstartListener,ey),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}}]),e}()).\u0275fac=function(e){return new(e||$g)(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},$g.\u0275prov=Ee({factory:function(){return new $g(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},token:$g,providedIn:"root"}),$g);function ny(e){return e.composedPath?e.composedPath()[0]:e.target}var iy,ry,oy,ay,sy,uy,ly,cy,hy=((oy=function(){function e(t,n){v(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Ku}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||oy)(Va(Qs),Va(ty))},oy.\u0275dir=bt({type:oy,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),oy),fy=((ry=function(){function e(t,n){v(this,e),this._platform=t,this._document=n}return g(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||ry)(Lt(ig),Lt(mc))},ry.\u0275prov=Ee({factory:function(){return new ry(Lt(ig),Lt(mc))},token:ry,providedIn:"root"}),ry),dy=((iy=function e(t){v(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=yt({type:iy}),iy.\u0275inj=Te({factory:function(e){return new(e||iy)(Lt(fy))},imports:[[rg,Ig]]}),iy),py=function(){function e(){v(this,e)}return g(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),vy=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(py),my=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return g(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,s(p(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,s(p(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(py),gy=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).element=e instanceof Qs?e.nativeElement:e,i}return n}(py),yy=function(){function e(){v(this,e),this._isDisposed=!1,this.attachDomPortal=null}return g(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof vy?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof my?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof gy?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),_y=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var u,l;return v(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=o,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),s((u=f(l),p(n.prototype)),"setDisposeFn",u).call(u,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=a,l}return g(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){s(p(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(yy),by=((sy=function(e){u(n,e);var t=c(n);function n(e,i,r){var o,a;return v(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Ku,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(f(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),s((o=f(a),p(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return g(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),s(p(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return s(p(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&s(p(n.prototype),"detach",this).call(this),e&&s(p(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(yy)).\u0275fac=function(e){return new(e||sy)(Va(Ys),Va(Ru),Va(mc))},sy.\u0275dir=bt({type:sy,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[wa]}),sy),ky=((ay=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(by)).\u0275fac=function(e){return wy(e||ay)},ay.\u0275dir=bt({type:ay,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Us([{provide:by,useExisting:ay}]),wa]}),ay),wy=pr(ky),Cy=((uy=function e(){v(this,e)}).\u0275mod=yt({type:uy}),uy.\u0275inj=Te({factory:function(e){return new(e||uy)}}),uy),Sy=new Le("cdk-dir-doc",{providedIn:"root",factory:function(){return Ft(mc)}}),xy=((cy=function(){function e(t){if(v(this,e),this.value="ltr",this.change=new Ku,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return g(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||cy)(Lt(Sy,8))},cy.\u0275prov=Ee({factory:function(){return new cy(Lt(Sy,8))},token:cy,providedIn:"root"}),cy),Ey=((ly=function e(){v(this,e)}).\u0275mod=yt({type:ly}),ly.\u0275inj=Te({factory:function(e){return new(e||ly)}}),ly),Ty=new tu("11.0.1"),Ay=function e(){v(this,e)};function Oy(e,t){return{type:7,name:e,definitions:t,options:{}}}function Iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Ry(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Dy(e){return{type:6,styles:e,offset:null}}function Py(e,t,n){return{type:0,name:e,styles:t,options:n}}function My(e){return{type:5,steps:e}}function Ly(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Fy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Ny(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Vy(e){Promise.resolve(null).then(e)}var jy=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Vy(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),By=function(){function e(t){var n=this;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?Vy(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function zy(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hy(e){switch(e.length){case 0:return new jy;case 1:return e[0];default:return new By(e)}}function Uy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(i.forEach(function(e){var n=e.offset,i=n==u,c=i&&l||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function qy(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Wy(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Wy(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Wy(n,"destroy",e))})}}function Wy(e,t,n){var i=n.totalTime,r=Yy(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Yy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Gy(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Ky(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Zy=function(e,t){return!1},Qy=function(e,t){return!1},Xy=function(e,t,n){return[]},$y=zy();($y||"undefined"!=typeof Element)&&(Zy=function(e,t){return e.contains(t)},Qy=function(){if($y||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Qy}(),Xy=function(e,n,i){var r=[];if(i)r.push.apply(r,t(e.querySelectorAll(n)));else{var o=e.querySelector(n);o&&r.push(o)}return r});var Jy=null,e_=!1;function t_(e){Jy||(Jy=("undefined"!=typeof document?document.body:null)||{},e_=!!Jy.style&&"WebkitAppearance"in Jy.style);var t=!0;return Jy.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Jy.style)&&e_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Jy.style),t}var n_=Qy,i_=Zy,r_=Xy;function o_(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var a_,s_=((a_=function(){function e(){v(this,e)}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new jy(n,i)}}]),e}()).\u0275fac=function(e){return new(e||a_)},a_.\u0275prov=Ee({token:a_,factory:a_.\u0275fac}),a_),u_=function(){var e=function e(){v(this,e)};return e.NOOP=new s_,e}();function l_(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:c_(parseFloat(t[1]),t[2])}function c_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function h_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=c_(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=c_(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=e;if(!n){var l=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function f_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function d_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else f_(e,n);return n}function p_(e,t,n){return n?t+":"+n+";":""}function v_(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(R_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(R_(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:N_(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return T_(n,e,t)}),options:N_(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=T_(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:N_(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return V_(h_(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=V_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return V_((n=n||h_(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Dy({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Dy(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(F_(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[i],d=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),d=!1),o=f.startTime),d&&(h[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,u=t.errors,l=s.params||{},(c=b_(a)).length&&c.forEach(function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:T_(this,y_(e.animation),t),options:N_(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:N_(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:N_(e.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,r=t.options||{};n.queryCount++,n.currentQuery=t;var o=e(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(D_,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(t.selector),2),a=o[0],s=o[1];n.currentQuerySelector=i.length?i+" "+a:a,Gy(n.collectedStyles,n.currentQuerySelector,{});var u=T_(this,y_(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:N_(t.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:h_(e.timings,t.errors,!0);return{type:12,animation:T_(this,y_(e.animation),t),timings:n,options:null}}}]),t}(),L_=function e(t){v(this,e),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 F_(e){return!Array.isArray(e)&&"object"==typeof e}function N_(e){var t;return e?(e=f_(e)).params&&(e.params=(t=e.params)?f_(t):null):e={},e}function V_(e,t,n){return{duration:e,delay:t,easing:n}}function j_(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var B_=function(){function e(){v(this,e),this._map=new Map}return g(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,n){var i,r=this._map.get(e);r||this._map.set(e,r=[]),(i=r).push.apply(i,t(n))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),z_=new RegExp(":enter","g"),H_=new RegExp(":leave","g");function U_(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new q_).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var q_=function(){function e(){v(this,e)}return g(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new B_;var c=new Y_(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),T_(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[j_(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?l_(n.duration):null,o=null!=n.delay?l_(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),T_(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=W_);var a=l_(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return T_(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?l_(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),T_(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return h_(t.params?k_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?l_(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=W_);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),T_(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;T_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),W_={},Y_=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=W_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new G_(this._driver,n,0),s.push(this.currentTimeline)}return g(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=l_(i.duration)),null!=i.delay&&(r.delay=l_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=k_(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=W_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new K_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,n,i,r,o,a){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(z_,"."+this._enterClassName)).replace(H_,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push.apply(s,t(u))}return o||0!=s.length||a.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),G_=function(){function e(t,n,i,r){v(this,e),this._driver=t,this.element=n,this.startTime=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return g(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):d_(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=k_(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=d_(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?w_(t.values()):[],a=n.size?w_(n.values()):[];if(i){var s=r[0],u=f_(s);s.offset=0,u.offset=1,r=[s,u]}return j_(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),K_=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return g(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=d_(e[0],!1);u.offset=0,o.push(u);var l=d_(e[0],!1);l.offset=Z_(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=d_(e[h],!1);f.offset=Z_((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return j_(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(G_);function Z_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Q_=function e(){v(this,e)},X_=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"normalizePropertyName",value:function(e,t){return S_(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if($_[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Q_),$_=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function J_(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var eb={},tb=function(){function e(t,n,i){v(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return g(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||eb,f=this.buildStyles(n,a&&a.params||eb,c),d=s&&s.params||eb,p=this.buildStyles(i,d,c),v=new Set,m=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=l?[]:U_(e,t,this.ast.animation,r,o,f,p,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return J_(t,this._triggerName,n,i,y,f,p,[],[],m,g,k,c);b.forEach(function(e){var n=e.element,i=Gy(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Gy(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=w_(v.values());return J_(t,this._triggerName,n,i,y,f,p,b,w,m,g,k)}}]),e}(),nb=function(){function e(t,n){v(this,e),this.styles=t,this.defaultParams=n}return g(e,[{key:"buildStyles",value:function(e,t){var n={},i=f_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=k_(o,i,t)),n[e]=o})}}),n}}]),e}(),ib=function(){function e(t,n){var i=this;v(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new nb(e.style,e.options&&e.options.params||{})}),rb(this.states,"true","1"),rb(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new tb(t,e,i.states))}),this.fallbackTransition=new tb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return g(e,[{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function rb(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var ob=new B_,ab=function(){function e(t,n,i){v(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return g(e,[{key:"register",value:function(e,t){var n=[],i=P_(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Uy(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=U_(this._driver,t,a,"ng-enter","ng-leave",{},{},r,ob,o)).forEach(function(e){var t=Gy(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var u=Hy(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=Yy(t,"","","");return qy(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),sb=[],ub={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=f_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return g(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}},{key:"params",get:function(){return this.options.params}}]),e}(),hb=new cb("void"),fb=function(){function e(t,n,i){v(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_b(n,this._hostClassName)}return g(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Gy(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=Gy(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),u[t]=hb),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new pb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new cb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=hb),"void"===l.value||u.value!==l.value){var c=Gy(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(_b(e,"ng-animate-queued"),a.onStart(function(){bb(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_b(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bb(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(vb(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return vb(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Hy(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=ub,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(n).forEach(function(e){var t=e.player,n=e.element;if(x.push(t),i.collectedEnterElements.length){var a=n.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!f||!i.driver.containsElement(f,n),d=C.get(n),p=v.get(n),m=i._buildInstruction(e,r,p,d,h);if(m.errors&&m.errors.length)E.push(m);else{if(h)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(n,m.timelines),s.push({instruction:m,player:t,element:n}),m.queriedElements.forEach(function(e){return Gy(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(E.length){var A=[];E.forEach(function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return A.push("- ".concat(e,"\n"))})}),x.forEach(function(e){return e.destroy()}),this.reportError(A)}var O=new Map,I=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(I.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),o.forEach(function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Gy(O,t,[]).push(e),e.destroy()})});var R=g.filter(function(e){return Cb(e,l,c)}),D=new Map;gb(D,this.driver,_,c,"*").forEach(function(e){Cb(e,l,c)&&R.push(e)});var P=new Map;p.forEach(function(e,t){gb(P,i.driver,new Set(e),l,"!")}),R.forEach(function(e){var t=D.get(e),n=P.get(e);D.set(e,Object.assign(Object.assign({},t),n))});var M=[],L=[],F={};s.forEach(function(e){var t=e.element,n=e.player,s=e.instruction;if(r.has(t)){if(h.has(t))return n.onDestroy(function(){return m_(t,s.toStyles)}),n.disabled=!0,n.overrideTotalTime(s.totalTime),void o.push(n);var u=F;if(I.size>1){for(var l=t,c=[];l=l.parentNode;){var f=I.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(e){return I.set(e,u)})}var d=i._buildAnimation(n.namespaceId,s,O,a,P,D);if(n.setRealPlayer(d),u===F)M.push(n);else{var p=i.playersByElement.get(u);p&&p.length&&(n.parentPlayer=Hy(p)),o.push(n)}}else g_(t,s.fromStyles),n.onDestroy(function(){return m_(t,s.toStyles)}),L.push(n),h.has(t)&&o.push(n)}),L.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=Hy(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new jy(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),pb=function(){function e(t,n,i){v(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new jy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return g(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return qy(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Gy(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function vb(e){return e&&1===e.nodeType}function mb(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function gb(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(mb(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=lb,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return mb(e,o[s++])}),a}function yb(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function _b(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function bb(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function kb(e,t,n){Hy(n).onDone(function(){return e.processLeaveNode(t)})}function wb(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function xb(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Tb(t[0]),t.length>1&&(i=Tb(t[t.length-1]))):t&&(n=Tb(t)),n||i?new Eb(e,n,i):null}var Eb=function(){var e=function(){function e(t,n,i){v(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return g(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&m_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(m_(this._element,this._initialStyles),this._endStyles&&(m_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(g_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(g_(this._element,this._endStyles),this._endStyles=null),m_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Tb(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Pb(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Lb(e,"").split(","),(i=Db(n,t))>=0&&(n.splice(i,1),Mb(e,"",n.join(","))))}}]),e}();function Ib(e,t,n){Mb(e,"PlayState",n,Rb(e,t))}function Rb(e,t){var n=Lb(e,"");return n.indexOf(",")>0?Db(n.split(","),t):Db([n],t)}function Db(e,t){for(var n=0;n=0)return n;return-1}function Pb(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Mb(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Lb(e,t){return e.style["animation"+t]}var Fb=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return g(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Ob(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:A_(e.element,i))})}this.currentSnapshot=t}}]),e}(),Nb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=o_(i),r}return g(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),s(p(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),s(p(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,s(p(n.prototype),"destroy",this).call(this))}}]),n}(jy),Vb=function(){function e(){v(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return o_(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter(function(e){return e instanceof Fb}),u={};x_(n,i)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=E_(e,t,u));if(0==n)return new Nb(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=xb(e,t),d=new Fb(e,t,c,n,i,r,l,f);return d.onDestroy(function(){var e;(e=h).parentNode.removeChild(e)}),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),jb=function(){function e(t,n,i,r){v(this,e),this.element=t,this.keyframes=n,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:A_(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Bb=function(){function e(){v(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zb().toString()),this._cssKeyframesDriver=new Vb}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof jb});x_(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=xb(e,t=E_(e,t=t.map(function(e){return d_(e,!1)}),u));return new jb(e,t,s,c)}}]),e}();function zb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Hb,Ub=((Hb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}}),r}return g(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ry(e):e;return Yb(this._renderer,null,t,"register",[n]),new qb(t,this._renderer)}}]),n}(Ay)).\u0275fac=function(e){return new(e||Hb)(Lt(Xs),Lt(mc))},Hb.\u0275prov=Ee({token:Hb,factory:Hb.\u0275fac}),Hb),qb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return g(n,[{key:"create",value:function(e,t){return new Wb(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){v(this,e)}}()),Wb=function(){function e(t,n,i,r){v(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return g(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),$b=function(t){u(i,t);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,t,r,o)).factory=e,a.namespaceId=t,a}return g(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(t,n,i){var r,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t),l=n.substr(1),c="";return"@"!=l.charAt(0)&&(o=(r=l).indexOf("."),l=(s=e([r.substring(0,o),r.substr(o+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,u,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(t,n,i)}}]),i}(Xb),Jb=((Kb=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e.body,i,r)}return n}(Sb)).\u0275fac=function(e){return new(e||Kb)(Lt(mc),Lt(u_),Lt(Q_))},Kb.\u0275prov=Ee({token:Kb,factory:Kb.\u0275fac}),Kb),ek=new Le("AnimationModuleType"),tk=[{provide:u_,useFactory:function(){return"function"==typeof zb()?new Bb:new Vb}},{provide:ek,useValue:"BrowserAnimations"},{provide:Ay,useClass:Ub},{provide:Q_,useFactory:function(){return new X_}},{provide:Sb,useClass:Jb},{provide:Xs,useFactory:function(e,t,n){return new Qb(e,t,n)},deps:[qh,Sb,Vl]}],nk=((Zb=function e(){v(this,e)}).\u0275mod=yt({type:Zb}),Zb.\u0275inj=Te({factory:function(e){return new(e||Zb)},providers:tk,imports:[of]}),Zb);function ik(e,t){if(1&e&&qa(0,"mat-pseudo-checkbox",3),2&e){var n=ns();Ba("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var rk,ok=["*"],ak=function(){var e=function e(){v(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),sk=function(){var e=function e(){v(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),uk=new tu("11.0.1"),lk=new Le("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ck=((rk=function(){function e(t,n,i){v(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return g(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Xn()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){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.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&uk.full!==Ty.full&&console.warn("The Angular Material version ("+uk.full+") does not match the Angular CDK version ("+Ty.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=yt({type:rk}),rk.\u0275inj=Te({factory:function(e){return new(e||rk)(Lt(fy),Lt(lk,8),Lt(mc))},imports:[[Ey],Ey]}),rk);function hk(e){return function(e){u(n,e);var t=c(n);function n(){var e;v(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Ak),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new Tk(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Ak),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=wg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Ik))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Rk),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Xg(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,Ok)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Ik.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}),this._pointerUpEventsRegistered&&Rk.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}))}}]),e}(),Pk=new Le("mat-ripple-global-options"),Mk=((kk=function(){function e(t,n,i,r,o){v(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Dk(this,n,t,i)}return g(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||kk)(Va(Qs),Va(Vl),Va(ig),Va(Pk,8),Va(ek,8))},kk.\u0275dir=bt({type:kk,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&ps("mat-ripple-unbounded",t.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"]}),kk),Lk=((bk=function e(){v(this,e)}).\u0275mod=yt({type:bk}),bk.\u0275inj=Te({factory:function(e){return new(e||bk)},imports:[[ck,rg],ck]}),bk),Fk=((_k=function e(t){v(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||_k)(Va(ek,8))},_k.\u0275cmp=pt({type:_k,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&ps("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),_k),Nk=((yk=function e(){v(this,e)}).\u0275mod=yt({type:yk}),yk.\u0275inj=Te({factory:function(e){return new(e||yk)},imports:[[ck]]}),yk),Vk=hk(function e(){v(this,e)}),jk=0,Bk=((wk=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-"+jk++,e}return n}(Vk)).\u0275fac=function(e){return zk(e||wk)},wk.\u0275dir=bt({type:wk,inputs:{label:"label"},features:[wa]}),wk),zk=pr(Bk),Hk=new Le("MatOptgroup"),Uk=0,qk=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,e),this.source=t,this.isUserInput=n},Wk=new Le("MAT_OPTION_PARENT_COMPONENT"),Yk=((Sk=function(){function e(t,n,i,r){v(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Uk++,this.onSelectionChange=new Ku,this._stateChanges=new j}return g(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||lg(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new qk(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=yg(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||Sk)(Va(Qs),Va(_u),Va(void 0),Va(Bk))},Sk.\u0275dir=bt({type:Sk,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Sk),Gk=((Ck=function(e){u(n,e);var t=c(n);function n(e,i,r,o){return v(this,n),t.call(this,e,i,r,o)}return n}(Yk)).\u0275fac=function(e){return new(e||Ck)(Va(Qs),Va(_u),Va(Wk,8),Va(Hk,8))},Ck.\u0275cmp=pt({type:Ck,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(As("id",t.id),Ma("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),ps("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[wa],ngContentSelectors:ok,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(rs(),Fa(0,ik,1,2,"mat-pseudo-checkbox",0),Ha(1,"span",1),os(2),Ua(),qa(3,"div",2)),2&e&&(Ba("ngIf",t.multiple),uo(3),Ba("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Xc,Mk,Fk],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ck);function Kk(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a1?Array.prototype.slice.call(arguments):e)},t,i)})}function $k(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l=0}function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Jk(t)?i=Number(t)<1?1:Number(t):z(t)&&(n=t),z(n)||(n=dg),new P(function(t){var r=Jk(e)?e:+e-n.now();return n.schedule(tw,r,{index:0,period:i,subscriber:t})})}function tw(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function nw(e,t){return function(n){return n.lift(new iw(e,t))}}var iw=function(){function e(t,n){v(this,e),this.compare=t,this.keySelector=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new rw(e,this.compare,this.keySelector))}}]),e}(),rw=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return g(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(A);function ow(e){return function(t){return t.lift(new aw(e))}}var aw=function(){function e(t){v(this,e),this.notifier=t}return g(e,[{key:"call",value:function(e,t){var n=new sw(e),i=K(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),sw=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e)).seenValue=!1,i}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Z),uw=1,lw=Promise.resolve(),cw={};function hw(e){return e in cw&&(delete cw[e],!0)}var fw=function(e){var t=uw++;return cw[t]=!0,lw.then(function(){return hw(t)&&e()}),t},dw=function(e){hw(e)},pw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return g(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?s(p(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=fw(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return s(p(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(dw(t),e.scheduled=void 0)}}]),n}(cg),vw=new(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i1&&void 0!==arguments[1]?arguments[1]:dg;return t=function(){return ew(e,n)},function(e){return e.lift(new mw(t))}}function _w(e,t){return new P(t?function(n){return t.schedule(bw,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function bw(e){var t=e.error;e.subscriber.error(t)}var kw,ww=((kw=function(){function e(t,n,i){v(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return g(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return af(this.value);case"E":return _w(this.error);case"C":return pf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new kw("C"),kw.undefinedValueNotification=new kw("N",void 0),kw);function Cw(e){return e&&"function"==typeof e.connect}var Sw,xw,Ew,Tw,Aw=function(){function e(){v(this,e)}return g(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var u=n(e,i,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),Ow=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return g(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new P(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(yw(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):af()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(gf(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Xk(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Tw)(Lt(Vl),Lt(ig),Lt(mc,8))},Tw.\u0275prov=Ee({factory:function(){return new Tw(Lt(Vl),Lt(ig),Lt(mc,8))},token:Tw,providedIn:"root"}),Tw),Dw=((Ew=function(){function e(t,n,i){var r=this;v(this,e),this._platform=t,this._change=new j,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return g(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(yw(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||Ew)(Lt(ig),Lt(Vl),Lt(mc,8))},Ew.\u0275prov=Ee({factory:function(){return new Ew(Lt(ig),Lt(Vl),Lt(mc,8))},token:Ew,providedIn:"root"}),Ew),Pw=((xw=function e(){v(this,e)}).\u0275mod=yt({type:xw}),xw.\u0275inj=Te({factory:function(e){return new(e||xw)}}),xw),Mw=((Sw=function e(){v(this,e)}).\u0275mod=yt({type:Sw}),Sw.\u0275inj=Te({factory:function(e){return new(e||Sw)},imports:[[Ey,rg,Pw],Ey,Pw]}),Sw);function Lw(e,t){1&e&&os(0)}var Fw=["*"];function Nw(e,t){}var Vw=function(e){return{animationDuration:e}},jw=function(e,t){return{value:e,params:t}},Bw=["tabBodyWrapper"],zw=["tabHeader"];function Hw(e,t){}function Uw(e,t){1&e&&Fa(0,Hw,0,0,"ng-template",9),2&e&&Ba("cdkPortalOutlet",ns().$implicit.templateLabel)}function qw(e,t){1&e&&xs(0),2&e&&Es(ns().$implicit.textLabel)}function Ww(e,t){if(1&e){var n=Ka();Ha(0,"div",6),Xa("click",function(){cn(n);var e=t.$implicit,i=t.index,r=ns(),o=Na(1);return r._handleClick(e,o,i)}),Ha(1,"div",7),Fa(2,Uw,1,1,"ng-template",8),Fa(3,qw,1,1,"ng-template",8),Ua(),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-label-active",o.selectedIndex==r),Ba("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Ma("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),uo(2),Ba("ngIf",i.templateLabel),uo(1),Ba("ngIf",!i.templateLabel)}}function Yw(e,t){if(1&e){var n=Ka();Ha(0,"mat-tab-body",10),Xa("_onCentered",function(){return cn(n),ns()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return cn(n),ns()._setTabBodyWrapperHeight(e)}),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-body-active",o.selectedIndex==r),Ba("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Ma("aria-labelledby",o._getTabLabelId(r))}}var Gw,Kw,Zw,Qw,Xw,$w,Jw,eC,tC,nC,iC,rC,oC,aC,sC,uC,lC=["tabListContainer"],cC=["tabList"],hC=["nextPaginator"],fC=["previousPaginator"],dC=new Le("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),pC=((Gw=function(){function e(t,n,i,r){v(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return g(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||Gw)(Va(Qs),Va(Vl),Va(dC),Va(ek,8))},Gw.\u0275dir=bt({type:Gw,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&ps("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),Gw),vC=new Le("MatTabContent"),mC=new Le("MatTabLabel"),gC=hk(function e(){v(this,e)}),yC=new Le("MAT_TAB_GROUP"),_C=((Kw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new j,r.position=null,r.origin=null,r.isActive=!1,r}return g(n,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new my(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}}]),n}(gC)).\u0275fac=function(e){return new(e||Kw)(Va(Ru),Va(yC))},Kw.\u0275cmp=pt({type:Kw,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,mC,!0),hl(n,vC,!0,xu)),2&e&&(al(i=dl())&&(t.templateLabel=i.first),al(i=dl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&sl(xu,!0),2&e&&al(n=dl())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[wa,Ai],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,t){1&e&&(rs(),Fa(0,Lw,1,0,"ng-template"))},encapsulation:2}),Kw),bC={translateTab:Oy("translateTab",[Py("center, void, left-origin-center, right-origin-center",Dy({transform:"none"})),Py("left",Dy({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Py("right",Dy({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ly("* => left, * => right, left => center, right => center",Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ly("void => left-origin-center",[Dy({transform:"translate3d(-100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ly("void => right-origin-center",[Dy({transform:"translate3d(100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},kC=((Xw=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i,o))._host=r,a._centeringSub=x.EMPTY,a._leavingSub=x.EMPTY,a}return g(n,[{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(by)).\u0275fac=function(e){return new(e||Xw)(Va(Ys),Va(Ru),Va(qe(function(){return CC})),Va(mc))},Xw.\u0275dir=bt({type:Xw,selectors:[["","matTabBodyHost",""]],features:[wa]}),Xw),wC=((Qw=function(){function e(t,n,i){var r=this;v(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=x.EMPTY,this._translateTabComplete=new j,this._onCentering=new Ku,this._beforeCentering=new Ku,this._afterLeavingCenter=new Ku,this._onCentered=new Ku(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(nw(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return g(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||Qw)(Va(Qs),Va(xy,8),Va(_u))},Qw.\u0275dir=bt({type:Qw,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Qw),CC=((Zw=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(wC)).\u0275fac=function(e){return new(e||Zw)(Va(Qs),Va(xy,8),Va(_u))},Zw.\u0275cmp=pt({type:Zw,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&ul(ky,!0),2&e&&al(n=dl())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[wa],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){var n,i;1&e&&(Ha(0,"div",0,1),Xa("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),Fa(2,Nw,0,0,"ng-template",2),Ua()),2&e&&Ba("@translateTab",function(e,t,n,i,r){return function(e,t,n,i,r,o,a){var s=t+3;return function(e,t,n,i){var r=Pa(e,t,n);return Pa(e,t+1,i)||r}(e,s,r,o)?Da(e,s+2,i(r,o)):Yu(e,s+2)}(un(),yn(),0,t,n,i)}(0,jw,t._position,(n=Vw,i=t.animationDuration,Gu(un(),yn(),1,n,i,void 0))))},directives:[kC],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bC.translateTab]}}),Zw),SC=new Le("MAT_TABS_CONFIG"),xC=0,EC=function e(){v(this,e)},TC=fk(dk(function e(t){v(this,e),this._elementRef=t}),"primary"),AC=((Jw=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,e))._changeDetectorRef=t,a._animationMode=o,a._tabs=new Qu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=x.EMPTY,a._tabLabelSubscription=x.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Ku,a.focusChange=new Ku,a.animationDone=new Ku,a.selectedTabChange=new Ku(!0),a._groupId=xC++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return g(i,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),$w),IC=hk(function e(){v(this,e)}),RC=((eC=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).elementRef=e,i}return g(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(IC)).\u0275fac=function(e){return new(e||eC)(Va(Qs))},eC.\u0275dir=bt({type:eC,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Ma("aria-disabled",!!t.disabled),ps("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[wa]}),eC),DC=sg({passive:!0}),PC=((rC=function(){function e(t,n,i,r,o,a,s){var u=this;v(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new j,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new j,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ku,this.indexFocused=new Ku,o.runOutsideAngular(function(){Xk(t.nativeElement,"mouseleave").pipe(ow(u._destroyed)).subscribe(function(){u._stopInterval()})})}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this;Xk(this._previousPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),Xk(this._nextPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:af(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Bg(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),se(t,n,this._items.changes).pipe(ow(this._destroyed)).subscribe(function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(ow(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!lg(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),ew(650,100).pipe(ow(se(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=_g(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||rC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},rC.\u0275dir=bt({type:rC,inputs:{disablePagination:"disablePagination"}}),rC),MC=((iC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){var l;return v(this,n),(l=t.call(this,e,i,r,o,a,s,u))._disableRipple=!1,l}return g(n,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=yg(e)}}]),n}(PC)).\u0275fac=function(e){return new(e||iC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},iC.\u0275dir=bt({type:iC,inputs:{disableRipple:"disableRipple"},features:[wa]}),iC),LC=((nC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,r,o,a,s,u)}return n}(MC)).\u0275fac=function(e){return new(e||nC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},nC.\u0275cmp=pt({type:nC,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,RC,!1),2&e&&al(i=dl())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(sl(pC,!0),sl(lC,!0),sl(cC,!0),ul(hC,!0),ul(fC,!0)),2&e&&(al(n=dl())&&(t._inkBar=n.first),al(n=dl())&&(t._tabListContainer=n.first),al(n=dl())&&(t._tabList=n.first),al(n=dl())&&(t._nextPaginator=n.first),al(n=dl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[wa],ngContentSelectors:Fw,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0,1),Xa("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),qa(2,"div",2),Ua(),Ha(3,"div",3,4),Xa("keydown",function(e){return t._handleKeydown(e)}),Ha(5,"div",5,6),Xa("cdkObserveContent",function(){return t._onContentChanges()}),Ha(7,"div",7),os(8),Ua(),qa(9,"mat-ink-bar"),Ua(),Ua(),Ha(10,"div",8,9),Xa("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),qa(12,"div",2),Ua()),2&e&&(ps("mat-tab-header-pagination-disabled",t._disableScrollBefore),Ba("matRippleDisabled",t._disableScrollBefore||t.disableRipple),uo(5),ps("_mat-animation-noopable","NoopAnimations"===t._animationMode),uo(5),ps("mat-tab-header-pagination-disabled",t._disableScrollAfter),Ba("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Mk,Og,pC],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),nC),FC=((tC=function e(){v(this,e)}).\u0275mod=yt({type:tC}),tC.\u0275inj=Te({factory:function(e){return new(e||tC)},imports:[[ph,ck,Cy,Lk,Ig,dy],ck]}),tC),NC=["mat-button",""],VC=["*"],jC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],BC=fk(hk(dk(function e(t){v(this,e),this._elementRef=t}))),zC=((aC=function(e){u(n,e);var t=c(n);function n(e,r,o){var a;v(this,n),(a=t.call(this,e))._focusMonitor=r,a._animationMode=o,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=i(jC);try{for(u.s();!(s=u.n()).done;){var l=s.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(c){u.e(c)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return g(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.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:block;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}),aC),HC=((oC=function e(){v(this,e)}).\u0275mod=yt({type:oC}),oC.\u0275inj=Te({factory:function(e){return new(e||oC)},imports:[[Lk,ck],ck]}),oC),UC=["ketcherFrame"],qC=((sC=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.loadingService=n,this.moleculeInput=new Ku,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/ketcher/ketcher.html")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.ketcherFrame.nativeElement.onload=function(){e.ketcher=e.ketcherFrame.nativeElement.contentWindow.ketcher,e.loadingService.setLoadingState(!1)}}},{key:"addMolecule",value:function(){var e=this.ketcher.getSmiles();this.moleculeInput.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||sC)(Va(ef),Va(Xm))},sC.\u0275cmp=pt({type:sC,selectors:[["adme-sketcher"]],viewQuery:function(e,t){var n;1&e&&sl(UC,!0),2&e&&al(n=dl())&&(t.ketcherFrame=n.first)},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(Ha(0,"div",0),qa(1,"iframe",1,2),Ua(),Ha(3,"div",3),Ha(4,"button",4),Xa("click",function(){return t.addMolecule()}),xs(5," Predict "),Ua(),Ua()),2&e&&(uo(1),Ba("src",t.ketcherSrc,wi))},directives:[zC],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),sC),WC={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}},YC=((uC=function(){function e(t){v(this,e),this.el=t,this.selectedFile=new Ku}return g(e,[{key:"ngOnInit",value:function(){this.addHiddenFileInput()}},{key:"ngOnDestroy",value:function(){document.body.removeChild(this.fileInputElement)}},{key:"addHiddenFileInput",value:function(){var e=this;this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=function(t){t.target.files&&t.target.files.length>0&&e.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);var t=this.fileInputElement;this.el.nativeElement.addEventListener("click",function(){t.click()})}}]),e}()).\u0275fac=function(e){return new(e||uC)(Va(Qs))},uC.\u0275dir=bt({type:uC,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),uC);function GC(){for(var e=arguments.length,n=new Array(e),i=0;ie?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return iS(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return iS(e.value)||sS.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return iS(t.value)||!rS(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(iS(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return hS(fS(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return GC(fS(e,t).map(cS)).pipe(Q(hS))}}}]),e}();function lS(e){return null!=e}function cS(e){var t=Za(e)?ee(e):e;return Qa(t),t}function hS(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fS(e,t){return t.map(function(t){return t(e)})}function dS(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function pS(e){return null!=e?uS.compose(dS(e)):null}function vS(e){return null!=e?uS.composeAsync(dS(e)):null}function mS(e,n){return null===e?[n]:Array.isArray(e)?[].concat(t(e),[n]):[e,n]}function gS(e){return e._rawValidators}function yS(e){return e._rawAsyncValidators}var _S,bS,kS,wS,CS,SS,xS,ES,TS,AS,OS=((bS=function(){function e(){v(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return g(e,[{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=pS(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=vS(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}()).\u0275fac=function(e){return new(e||bS)},bS.\u0275dir=bt({type:bS}),bS),IS=((_S=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(OS)).\u0275fac=function(e){return RS(e||_S)},_S.\u0275dir=bt({type:_S,features:[wa]}),_S),RS=pr(IS),DS=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(OS),PS=function(){function e(t){v(this,e),this._cd=t}return g(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),MS=((wS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||wS)(Va(DS,2))},wS.\u0275dir=bt({type:wS,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),wS),LS=((kS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||kS)(Va(IS,2))},kS.\u0275dir=bt({type:kS,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),kS),FS={provide:XC,useExisting:qe(function(){return NS}),multi:!0},NS=((CS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||CS)(Va($s),Va(Qs))},CS.\u0275dir=bt({type:CS,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([FS])]}),CS),VS={provide:XC,useExisting:qe(function(){return BS}),multi:!0},jS=((xS=function(){function e(){v(this,e),this._accessors=[]}return g(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||xS)},xS.\u0275prov=Ee({token:xS,factory:xS.\u0275fac}),xS),BS=((SS=function(){function e(t,n,i,r){v(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return g(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(DS),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}()).\u0275fac=function(e){return new(e||SS)(Va($s),Va(Qs),Va(jS),Va(ba))},SS.\u0275dir=bt({type:SS,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Us([VS])]}),SS),zS={provide:XC,useExisting:qe(function(){return HS}),multi:!0},HS=((ES=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||ES)(Va($s),Va(Qs))},ES.\u0275dir=bt({type:ES,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([zS])]}),ES),US={provide:XC,useExisting:qe(function(){return qS}),multi:!0},qS=((TS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return g(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o0&&e.setValidators(i.filter(function(e){return e!==t.validator}))}if(null!==t.asyncValidator){var r=yS(e);Array.isArray(r)&&r.length>0&&e.setAsyncValidators(r.filter(function(e){return e!==t.asyncValidator}))}}if(n){var o=function(){};KS(t._rawValidators,o),KS(t._rawAsyncValidators,o)}}function XS(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $S(e,t){ZS(e,t,!1)}var JS=[JC,HS,NS,qS,YS,BS];function ex(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function tx(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function nx(e){return(ax(e)?e.validators:e)||null}function ix(e){return Array.isArray(e)?pS(e):e||null}function rx(e,t){return(ax(t)?t.asyncValidators:e)||null}function ox(e){return Array.isArray(e)?vS(e):e||null}function ax(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var sx,ux,lx,cx,hx,fx,dx,px,vx,mx=function(){function e(t,n){v(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ix(this._rawValidators),this._composedAsyncValidatorFn=ox(this._rawAsyncValidators)}return g(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ix(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ox(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=cS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof yx?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof _x&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Ku,this.statusChanges=new Ku}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ax(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),gx=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,n),(e=t.call(this,nx(r),rx(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return g(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){tx(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){tx(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(mx),yx=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof gx?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(mx),_x=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof gx?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=i(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(mx),bx={provide:IS,useExisting:qe(function(){return wx})},kx=Promise.resolve(null),wx=((sx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ku,r.form=new yx({},pS(e),vS(i)),r}return g(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),GS(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),tx(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path),i=new yx({});$S(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;kx.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(IS)).\u0275fac=function(e){return new(e||sx)(Va(oS,10),Va(aS,10))},sx.\u0275dir=bt({type:sx,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([bx]),wa]}),sx),Cx={provide:DS,useExisting:qe(function(){return xx})},Sx=Promise.resolve(null),xx=((lx=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this)).control=new gx,a._registered=!1,a.update=new Ku,a._parent=e,a._setValidators(t),a._setAsyncValidators(r),a.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){var t;e.constructor===nS?n=e:(t=e,JS.some(function(e){return t.constructor===e})?i=e:r=e)}),r||i||n||null}(0,o),a}return g(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){GS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Sx.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Sx.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?[].concat(t(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),i}(DS)).\u0275fac=function(e){return new(e||lx)(Va(IS,9),Va(oS,10),Va(aS,10),Va(XC,10))},lx.\u0275dir=bt({type:lx,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Us([Cx]),wa,Ai]}),lx),Ex=((ux=function e(){v(this,e)}).\u0275fac=function(e){return new(e||ux)},ux.\u0275dir=bt({type:ux,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ux),Tx=new Le("NgModelWithFormControlWarning"),Ax={provide:IS,useExisting:qe(function(){return Ox})},Ox=((cx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ku,r._setValidators(e),r._setAsyncValidators(i),r}return g(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return GS(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){tx(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),QS(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}(t.control||null,t),n&&GS(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ZS(this.form,this,!1),this._oldForm&&QS(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(IS)).\u0275fac=function(e){return new(e||cx)(Va(oS,10),Va(aS,10))},cx.\u0275dir=bt({type:cx,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([Ax]),wa,Ai]}),cx),Ix={provide:oS,useExisting:qe(function(){return Rx}),multi:!0},Rx=((vx=function(){function e(){v(this,e),this._required=!1}return g(e,[{key:"validate",value:function(e){return this.required?uS.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||vx)},vx.\u0275dir=bt({type:vx,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ma("required",t.required?"":null)},inputs:{required:"required"},features:[Us([Ix])]}),vx),Dx=((px=function e(){v(this,e)}).\u0275mod=yt({type:px}),px.\u0275inj=Te({factory:function(e){return new(e||px)}}),px),Px=((dx=function(){function e(){v(this,e)}return g(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new yx(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new gx(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new _x(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof gx||e instanceof yx||e instanceof _x?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||dx)},dx.\u0275prov=Ee({token:dx,factory:dx.\u0275fac}),dx),Mx=((fx=function e(){v(this,e)}).\u0275mod=yt({type:fx}),fx.\u0275inj=Te({factory:function(e){return new(e||fx)},providers:[jS],imports:[Dx]}),fx),Lx=((hx=function(){function e(){v(this,e)}return g(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Tx,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=yt({type:hx}),hx.\u0275inj=Te({factory:function(e){return new(e||hx)},providers:[Px,jS],imports:[Dx]}),hx),Fx=["underline"],Nx=["connectionContainer"],Vx=["inputContainer"],jx=["label"];function Bx(e,t){1&e&&(Wa(0),Ha(1,"div",14),qa(2,"div",15),qa(3,"div",16),qa(4,"div",17),Ua(),Ha(5,"div",18),qa(6,"div",15),qa(7,"div",16),qa(8,"div",17),Ua(),Ya())}function zx(e,t){1&e&&(Ha(0,"div",19),os(1,1),Ua())}function Hx(e,t){if(1&e&&(Wa(0),os(1,2),Ha(2,"span"),xs(3),Ua(),Ya()),2&e){var n=ns(2);uo(3),Es(n._control.placeholder)}}function Ux(e,t){1&e&&os(0,3,["*ngSwitchCase","true"])}function qx(e,t){1&e&&(Ha(0,"span",23),xs(1," *"),Ua())}function Wx(e,t){if(1&e){var n=Ka();Ha(0,"label",20,21),Xa("cdkObserveContent",function(){return cn(n),ns().updateOutlineGap()}),Fa(2,Hx,4,1,"ng-container",12),Fa(3,Ux,1,0,"ng-content",12),Fa(4,qx,2,0,"span",22),Ua()}if(2&e){var i=ns();ps("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ba("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ma("for",i._control.id)("aria-owns",i._control.id),uo(2),Ba("ngSwitchCase",!1),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Yx(e,t){1&e&&(Ha(0,"div",24),os(1,4),Ua())}function Gx(e,t){if(1&e&&(Ha(0,"div",25,26),qa(2,"span",27),Ua()),2&e){var n=ns();uo(2),ps("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Kx(e,t){1&e&&(Ha(0,"div"),os(1,5),Ua()),2&e&&Ba("@transitionMessages",ns()._subscriptAnimationState)}function Zx(e,t){if(1&e&&(Ha(0,"div",31),xs(1),Ua()),2&e){var n=ns(2);Ba("id",n._hintLabelId),uo(1),Es(n.hintLabel)}}function Qx(e,t){if(1&e&&(Ha(0,"div",28),Fa(1,Zx,2,2,"div",29),os(2,6),qa(3,"div",30),os(4,7),Ua()),2&e){var n=ns();Ba("@transitionMessages",n._subscriptAnimationState),uo(1),Ba("ngIf",n.hintLabel)}}var Xx,$x,Jx,eE,tE,nE,iE=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],rE=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],oE=new Le("MatError"),aE={transitionMessages:Oy("transitionMessages",[Py("enter",Dy({opacity:1,transform:"translateY(0%)"})),Ly("void => enter",[Dy({opacity:0,transform:"translateY(-100%)"}),Iy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sE=((Xx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Xx)},Xx.\u0275dir=bt({type:Xx}),Xx),uE=0,lE=new Le("MatHint"),cE=((eE=function e(){v(this,e),this.align="start",this.id="mat-hint-"+uE++}).\u0275fac=function(e){return new(e||eE)},eE.\u0275dir=bt({type:eE,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Ma("id",t.id)("align",null),ps("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[Us([{provide:lE,useExisting:eE}])]}),eE),hE=((Jx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Jx)},Jx.\u0275dir=bt({type:Jx,selectors:[["mat-label"]]}),Jx),fE=(($x=function e(){v(this,e)}).\u0275fac=function(e){return new(e||$x)},$x.\u0275dir=bt({type:$x,selectors:[["mat-placeholder"]]}),$x),dE=new Le("MatPrefix"),pE=new Le("MatSuffix"),vE=0,mE=fk(function e(t){v(this,e),this._elementRef=t},"primary"),gE=new Le("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yE=new Le("MatFormField"),_E=((nE=function(e){u(i,e);var n=c(i);function i(e,t,r,o,a,s,u,l){var c;return v(this,i),(c=n.call(this,e))._elementRef=e,c._changeDetectorRef=t,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new j,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+vE++,c._labelId="mat-form-field-label-"+vE++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return g(i,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Vf(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ow(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(ow(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ow(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xk(this._label.nativeElement,"transitionend").pipe(Mf(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,t(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var n=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,i=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push.apply(e,t(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;ft.height||e.scrollWidth>t.width}}]),e}(),SE=function(){function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),xE=function(){function e(){v(this,e)}return g(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function EE(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function TE(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var AE,OE,IE,RE,DE,PE=function(){function e(t,n,i,r){v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;EE(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ME=((AE=function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new xE},this.close=function(e){return new SE(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new CE(o._viewportRuler,o._document)},this.reposition=function(e){return new PE(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||AE)(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},AE.\u0275prov=Ee({factory:function(){return new AE(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},token:AE,providedIn:"root"}),AE),LE=function e(t){if(v(this,e),this.scrollStrategy=new xE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||RE)(Lt(mc))},RE.\u0275prov=Ee({factory:function(){return new RE(Lt(mc))},token:RE,providedIn:"root"}),RE),jE=((IE=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||IE)(Lt(mc))},IE.\u0275prov=Ee({factory:function(){return new IE(Lt(mc))},token:IE,providedIn:"root"}),IE),BE=((OE=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||OE)(Lt(mc),Lt(ig))},OE.\u0275prov=Ee({factory:function(){return new OE(Lt(mc),Lt(ig))},token:OE,providedIn:"root"}),OE),zE=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),HE=((DE=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||zE)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=g,d=m)}}catch(y){v.e(y)}finally{v.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&YE(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+t.height-n.height,c=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,u,l),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:t.width*t.height===f,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=GE(this._overlayRef.getConfig().minHeight),a=GE(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return i=t.width<=o.width?l||-a:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=kg(n.height),i.top=kg(n.top),i.bottom=kg(n.bottom),i.width=kg(n.width),i.left=kg(n.left),i.right=kg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=kg(r)),o&&(i.maxWidth=kg(o))}this._lastBoundingBoxSize=n,YE(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){YE(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){YE(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();YE(n,this._getExactOverlayY(t,e,a)),YE(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=kg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=kg(o.maxWidth):r&&(n.maxWidth="")),YE(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=kg(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=kg(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:TE(e,n),isOriginOutsideView:EE(e,n),isOverlayClipped:TE(t,n),isOverlayOutsideView:EE(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),tT=((ZE=function(){function e(t,n,i,r){v(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return g(e,[{key:"global",value:function(){return new eT}},{key:"connectedTo",value:function(e,t,n){return new JE(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new WE(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||ZE)(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},ZE.\u0275prov=Ee({factory:function(){return new ZE(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},token:ZE,providedIn:"root"}),ZE),nT=0,iT=((KE=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return g(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new LE(e);return r.direction=r.direction||this._directionality.value,new UE(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+nT++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(ic)),new _y(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||KE)(Lt(ME),Lt(HE),Lt(Ys),Lt(tT),Lt(jE),Lt(ba),Lt(Vl),Lt(mc),Lt(xy),Lt(Fc),Lt(BE))},KE.\u0275prov=Ee({token:KE,factory:KE.\u0275fac}),KE),rT=[{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"}],oT=new Le("cdk-connected-overlay-scroll-strategy"),aT=((XE=function e(t){v(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||XE)(Va(Qs))},XE.\u0275dir=bt({type:XE,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),XE),sT=((QE=function(){function e(t,n,i,r,o){v(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=x.EMPTY,this._attachSubscription=x.EMPTY,this._detachSubscription=x.EMPTY,this._positionSubscription=x.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 my(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return g(e,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=rT);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||lg(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new LE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new kE(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=yg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=yg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=yg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=yg(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||QE)(Va(iT),Va(xu),Va(Ru),Va(oT),Va(xy,8))},QE.\u0275dir=bt({type:QE,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:[Ai]}),QE),uT={provide:oT,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},lT=(($E=function e(){v(this,e)}).\u0275mod=yt({type:$E}),$E.\u0275inj=Te({factory:function(e){return new(e||$E)},providers:[iT,uT],imports:[[Ey,Cy,Mw],Mw]}),$E),cT=["trigger"],hT=["panel"];function fT(e,t){if(1&e&&(Ha(0,"span",8),xs(1),Ua()),2&e){var n=ns();uo(1),Es(n.placeholder||"\xa0")}}function dT(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.triggerValue||"\xa0")}}function pT(e,t){1&e&&os(0,0,["*ngSwitchCase","true"])}function vT(e,t){1&e&&(Ha(0,"span",9),Fa(1,dT,2,1,"span",10),Fa(2,pT,1,0,"ng-content",11),Ua()),2&e&&(Ba("ngSwitch",!!ns().customTrigger),uo(2),Ba("ngSwitchCase",!0))}function mT(e,t){if(1&e){var n=Ka();Ha(0,"div",12),Ha(1,"div",13,14),Xa("@transformPanel.done",function(e){return cn(n),ns()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return cn(n),ns()._handleKeydown(e)}),os(3,1),Ua(),Ua()}if(2&e){var i=ns();Ba("@transformPanelWrap",void 0),uo(1),"mat-select-panel ",r=i._getPanelTheme(),"",function(e,t,n,i){var r=ln(),o=bn(2);r.firstUpdatePass&&ys(r,null,o,!0);var a=un();if(n!==so&&Pa(a,o,n)){var s=r.data[Mn()];if(Ss(s,!0)&&!gs(r,o)){var u=s.classesWithoutHost;null!==u&&(n=Ce(u,n||"")),za(r,s,a,n,!0)}else!function(e,t,n,i,r,o,a,s){r===so&&(r=as);for(var u=0,l=0,c=0 void",Ny("@transformPanel",[Fy()],{optional:!0}))]),transformPanel:Oy("transformPanel",[Py("void",Dy({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Py("showing",Dy({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Py("showing-multiple",Dy({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ly("void => *",Iy("120ms cubic-bezier(0, 0, 0.2, 1)")),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))])},xT=0,ET=new Le("mat-select-scroll-strategy"),TT=new Le("MAT_SELECT_CONFIG"),AT={provide:ET,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},OT=function e(t,n){v(this,e),this.source=t,this.value=n},IT=dk(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){u(i,e);var n=c(i);function i(){var e;v(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=yg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=yg(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=_g(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(IT)).\u0275fac=function(e){return new(e||yT)(Va(Dw),Va(_u),Va(Vl),Va(xk),Va(Qs),Va(xy,8),Va(wx,8),Va(Ox,8),Va(yE,8),Va(DS,10),ja("tabindex"),Va(ET),Va(Qg),Va(TT,8))},yT.\u0275dir=bt({type:yT,viewQuery:function(e,t){var n;1&e&&(ul(cT,!0),ul(hT,!0),ul(sT,!0)),2&e&&(al(n=dl())&&(t.trigger=n.first),al(n=dl())&&(t.panel=n.first),al(n=dl())&&(t.overlayDir=n.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:[wa,Ai]}),yT),PT=((gT=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return g(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(ow(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;s(p(n.prototype),"_canOpen",this).call(this)&&(s(p(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=Kk(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),s(p(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new OT(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=Kk(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(DT)).\u0275fac=function(e){return MT(e||gT)},gT.\u0275cmp=pt({type:gT,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,RT,!0),cl(n,Gk,!0),cl(n,Hk,!0)),2&e&&(al(i=dl())&&(t.customTrigger=i.first),al(i=dl())&&(t.options=i),al(i=dl())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xa("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ma("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),ps("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Us([{provide:sE,useExisting:gT},{provide:Wk,useExisting:gT}]),wa],ngContentSelectors:CT,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(rs(wT),Ha(0,"div",0,1),Xa("click",function(){return t.toggle()}),Ha(3,"div",2),Fa(4,fT,2,1,"span",3),Fa(5,vT,3,2,"span",4),Ua(),Ha(6,"div",5),qa(7,"div",6),Ua(),Ua(),Fa(8,mT,4,14,"ng-template",7),Xa("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Na(1);Ma("aria-owns",t.panelOpen?t.id+"-panel":null),uo(3),Ba("ngSwitch",t.empty),Ma("id",t._valueId),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1),uo(3),Ba("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[aT,sh,uh,sT,lh,Gc],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}\n"],encapsulation:2,data:{animation:[ST.transformPanelWrap,ST.transformPanel]},changeDetection:0}),gT),MT=pr(PT),LT=((_T=function e(){v(this,e)}).\u0275mod=yt({type:_T}),_T.\u0275inj=Te({factory:function(e){return new(e||_T)},providers:[AT],imports:[[ph,lT,Qk,ck],Pw,bE,Qk,ck]}),_T),FT=function(){function e(t){v(this,e),this.total=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new NT(e,this.total))}}]),e}(),NT=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(A),VT=new Set,jT=((kT=function(){function e(t){v(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BT}return g(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!VT.has(e))try{bT||((bT=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(bT)),bT.sheet&&(bT.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),VT.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||kT)(Lt(ig))},kT.\u0275prov=Ee({factory:function(){return new kT(Lt(ig))},token:kT,providedIn:"root"}),kT);function BT(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var zT,HT=((zT=function(){function e(t,n){v(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new j}return g(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return UT(bg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=lf(UT(bg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Nf(n.pipe(Mf(1)),n.pipe(function(e){return e.lift(new FT(1))},pg(0)))).pipe(Q(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new P(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),Q(function(t){var n=t.matches;return{query:e,matches:n}}),ow(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||zT)(Lt(jT),Lt(Vl))},zT.\u0275prov=Ee({factory:function(){return new zT(Lt(jT),Lt(Vl))},token:zT,providedIn:"root"}),zT);function UT(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var qT,WT,YT,GT,KT,ZT,QT,XT,$T={tooltipState:Oy("state",[Py("initial, void, hidden",Dy({opacity:0,transform:"scale(0)"})),Py("visible",Dy({transform:"scale(1)"})),Ly("* => visible",Iy("200ms cubic-bezier(0, 0, 0.2, 1)",My([Dy({opacity:0,transform:"scale(0)",offset:0}),Dy({opacity:.5,transform:"scale(0.99)",offset:.5}),Dy({opacity:1,transform:"scale(1)",offset:1})]))),Ly("* => hidden",Iy("100ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:0})))])},JT=sg({passive:!0}),eA=new Le("mat-tooltip-scroll-strategy"),tA={provide:eA,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},nA=new Le("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iA=((YT=function(){function t(e,n,i,r,o,a,s,u,l,c,h){var f=this;v(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!lg(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return g(t,[{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ow(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(n){var i=e(n,2),r=i[0],o=i[1];t.removeEventListener(r,o,JT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new vy(rA,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(ow(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Mf(1),ow(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(t){var n=this;t.forEach(function(t){var i=e(t,2),r=i[0],o=i[1];n._elementRef.nativeElement.addEventListener(r,o,JT)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(e){return new(e||YT)(Va(iT),Va(Qs),Va(Rw),Va(Ru),Va(Vl),Va(ig),Va(Ng),Va(ty),Va(eA),Va(xy,8),Va(nA,8))},YT.\u0275dir=bt({type:YT,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),YT),rA=((WT=function(){function e(t,n){v(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return g(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||WT)(Va(_u),Va(HT))},WT.\u0275cmp=pt({type:WT,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleBodyInteraction()},!1,kr),2&e&&ds("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Xa("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),function(e,t){var n,i=ln();i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if("async"===i.name)return i}throw new xi("302","The pipe 'async' could not be found!")}(0,i.pipeRegistry),i.data[21]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(21,n.onDestroy)):n=i.data[21];var r=n.factory||(n.factory=Si(n.type)),o=Tt(Va);try{var a=Zi(!1),s=r();Zi(a),function(e,t,n,i){21>=e.data.length&&(e.data[21]=null,e.blueprint[21]=null),t[21]=i}(i,un(),0,s)}finally{Tt(o)}}(),xs(2),Ua()),2&e){var n=null;ps("mat-tooltip-handset",null==(i=t._isHandset,r=un(),o=Xt(r,21),n=function(e,t){return Oa.isWrapped(t)&&(t=Oa.unwrap(t),e[an.lFrame.bindingIndex]=so),t}(r,function(e,t){return e[1].data[21].pure}(r)?Gu(r,yn(),5,o.transform,i,o):o.transform(i)))?null:n.matches),Ba("ngClass",t.tooltipClass)("@state",t._visibility),uo(2),Es(t.message)}var i,r,o},directives:[Gc],pipes:[dh],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:[$T.tooltipState]},changeDetection:0}),WT),oA=((qT=function e(){v(this,e)}).\u0275mod=yt({type:qT}),qT.\u0275inj=Te({factory:function(e){return new(e||qT)},providers:[tA],imports:[[dy,ph,lT,ck],ck,Pw]}),qT),aA=sg({passive:!0}),sA=((KT=function(){function e(t,n){v(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return g(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return df;var n=wg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new j,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,aA),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,aA)}}),r}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||KT)(Lt(ig),Lt(Vl))},KT.\u0275prov=Ee({factory:function(){return new KT(Lt(ig),Lt(Vl))},token:KT,providedIn:"root"}),KT),uA=((GT=function e(){v(this,e)}).\u0275mod=yt({type:GT}),GT.\u0275inj=Te({factory:function(e){return new(e||GT)},imports:[[rg]]}),GT),lA=new Le("MAT_INPUT_VALUE_ACCESSOR"),cA=["button","checkbox","file","hidden","image","radio","range","reset","submit"],hA=0,fA=pk(function e(t,n,i,r){v(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),dA=((XT=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u,l,c,h){var f;v(this,n),(f=t.call(this,s,o,a,r))._elementRef=e,f._platform=i,f.ngControl=r,f._autofillMonitor=l,f._formField=h,f._uid="mat-input-"+hA++,f.focused=!1,f.stateChanges=new j,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ag().has(e)});var d=f._elementRef.nativeElement,p=d.nodeName.toLowerCase();return f._inputValueAccessor=u||d,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&c.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===p,f._isTextarea="textarea"===p,f._isNativeSelect&&(f.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),f}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){cA.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=yg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ag().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=yg(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(fA)).\u0275fac=function(e){return new(e||XT)(Va(Qs),Va(ig),Va(DS,10),Va(wx,8),Va(Ox,8),Va(xk),Va(lA,10),Va(sA),Va(Vl),Va(yE,8))},XT.\u0275dir=bt({type:XT,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Xa("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(As("disabled",t.disabled)("required",t.required),Ma("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),ps("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Us([{provide:sE,useExisting:XT}]),wa,Ai]}),XT),pA=((QT=function e(){v(this,e)}).\u0275mod=yt({type:QT}),QT.\u0275inj=Te({factory:function(e){return new(e||QT)},providers:[xk],imports:[[uA,bE,ck],uA,bE]}),QT),vA=((ZT=function(){function e(){v(this,e),this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Ku,this.fileDataAdded=new Ku,this.fileUploadFinished=new Ku,this.fileProcess=new Ku,this.subscriptions=[]}return g(e,[{key:"ngOnInit",value:function(){var e=localStorage.getItem("fileType");e&&(this.fileType=e);var t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):WC[this.fileType],this.acceptedFileTypes=Object.keys(WC)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"fileSelected",value:function(e){var t=this;if(e){this.selectedFile=e,this.selectedFileName=e.name;var n=this.selectedFileName.split("."),i=n[n.length-1];this.acceptedFileTypes.indexOf(i)>-1&&(this.fileType=i,this.updateType());var r=new FileReader;r.onload=function(){t.selectedFileContent=r.result},r.readAsText(e)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}},{key:"updateType",value:function(){localStorage.setItem("fileType",this.fileType);var e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):WC[this.fileType]}},{key:"updateOptions",value:function(){var e=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",e)}},{key:"processFile",value:function(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}]),e}()).\u0275fac=function(e){return new(e||ZT)},ZT.\u0275cmp=pt({type:ZT,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Ha(1,"div",1),xs(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Ha(3,"a",2),xs(4,"these instructions"),Ua(),xs(5," to export it as Text or CSV. "),Ua(),Ha(6,"div"),Ha(7,"button",3),Xa("selectedFile",function(e){return t.fileSelected(e)}),xs(8,"Browse"),Ua(),Ha(9,"span"),xs(10),Ua(),Ua(),Ha(11,"form",4,5),Ha(13,"div",6),Ha(14,"div",7),Ha(15,"mat-form-field"),Ha(16,"mat-label"),xs(17,"File type"),Ua(),Ha(18,"mat-select",8),Xa("ngModelChange",function(e){return t.fileType=e})("selectionChange",function(){return t.updateType()}),Ha(19,"mat-option",9),xs(20," CSV "),Ua(),Ha(21,"mat-option",10),xs(22," Text "),Ua(),Ha(23,"mat-option",11),xs(24," SMI "),Ua(),Ua(),Ua(),Ua(),Ha(25,"div",12),Ha(26,"mat-form-field"),Ha(27,"mat-label"),xs(28,"Column separator"),Ua(),Ha(29,"mat-select",13),Xa("ngModelChange",function(e){return t.options.columnSeparator=e})("selectionChange",function(){return t.updateOptions()}),Ha(30,"mat-option",14),xs(31," Comma (,) "),Ua(),Ha(32,"mat-option",14),xs(33," Tab (\\t) "),Ua(),Ua(),Ua(),Ua(),Ha(34,"div",15),Ha(35,"mat-form-field"),Ha(36,"mat-label"),xs(37,"Has header row"),Ua(),Ha(38,"mat-select",16),Xa("ngModelChange",function(e){return t.options.hasHeaderRow=e})("selectionChange",function(){return t.updateOptions()}),Ha(39,"mat-option",14),xs(40," Yes "),Ua(),Ha(41,"mat-option",14),xs(42," No "),Ua(),Ua(),Ua(),Ua(),Ha(43,"div",17),Ha(44,"mat-form-field"),Ha(45,"input",18),Xa("ngModelChange",function(e){return t.options.indexIdentifierColumn=e})("change",function(){return t.updateOptions()}),Ua(),Ha(46,"mat-hint"),xs(47,"Zero indicates that the SMILES are in the first column"),Ua(),Ua(),Ua(),Ua(),Ha(48,"div",19),qa(49,"span",20),Ha(50,"button",21),Xa("click",function(){return t.processFile()}),xs(51," Process file "),Ua(),Ua(),Ua(),Ua()),2&e){var n=Na(12);uo(10),Ts(" \xa0 ",t.selectedFileName?"Selected file: "+t.selectedFileName:"No file selected"," "),uo(8),Ba("ngModel",t.fileType),uo(11),Ba("ngModel",t.options.columnSeparator),uo(1),Ba("value",","),uo(2),Ba("value","\t"),uo(6),Ba("ngModel",t.options.hasHeaderRow),uo(1),Ba("value",!0),uo(2),Ba("value",!1),uo(4),Ba("ngModel",t.options.indexIdentifierColumn),uo(5),Ba("disabled",n.invalid||!t.selectedFileName||!t.selectedFileContent)}},directives:[zC,YC,Ex,LS,wx,_E,hE,PT,Rx,MS,xx,Gk,iA,NS,dA,nS,cE],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),ZT),mA=["*"];function gA(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function yA(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function _A(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var bA,kA=function e(t,n,i){v(this,e),this.url=t,this.svgText=n,this.options=i},wA=((bA=function(){function e(t,n,i,r){v(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return g(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new kA(n,null,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(bi.HTML,n);if(!r)throw _A(n);return this._addSvgIconConfig(e,t,new kA("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new kA(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(bi.HTML,t);if(!i)throw _A(t);return this._addSvgIconSetConfig(e,new kA("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(bi.RESOURCE_URL,e);if(!n)throw yA(e);var i=this._cachedIconsByUrl.get(n);return i?af(CA(i)):this._loadSvgIconFromConfig(new kA(e,null)).pipe(Yf(function(e){return t._cachedIconsByUrl.set(n,e)}),Q(function(e){return CA(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=SA(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):_w(gA(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?af(CA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Q(function(e){return CA(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?af(i):GC(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(zf(function(t){var i=n._sanitizer.sanitize(bi.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),af(null)}))})).pipe(Q(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw gA(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}),Q(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?af(null):this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i enter",Iy("150ms cubic-bezier(0, 0, 0.2, 1)",Dy({transform:"none",opacity:1}))),Ly("* => void, * => exit",Iy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Dy({opacity:0})))])},jA=((FA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new Ku,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return g(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(yy)).\u0275fac=function(e){return new(e||FA)(Va(Qs),Va(Yg),Va(_u),Va(mc,8),Va(NA),Va(ty))},FA.\u0275dir=bt({type:FA,viewQuery:function(e,t){var n;1&e&&sl(by,!0),2&e&&al(n=dl())&&(t._portalOutlet=n.first)},features:[wa]}),FA),BA=((LA=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._state="enter",e}return g(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(jA)).\u0275fac=function(e){return zA(e||LA)},LA.\u0275cmp=pt({type:LA,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&$a("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(As("id",t._id),Ma("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Os("@dialogContainer",t._state))},features:[wa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fa(0,MA,0,0,"ng-template",0)},directives:[by],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VA.dialogContainer]}}),LA),zA=pr(BA),HA=0,UA=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+HA++;v(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,n._id=r,n._animationStateChanged.pipe(gf(function(e){return"opened"===e.state}),Mf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(gf(function(e){return"closed"===e.state}),Mf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(gf(function(e){return 27===e.keyCode&&!i.disableClose&&!lg(e)})).subscribe(function(e){e.preventDefault(),qA(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():qA(i,"mouse")})}return g(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(gf(function(e){return"closing"===e.state}),Mf(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function qA(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var WA,YA,GA,KA,ZA,QA=new Le("MatDialogData"),XA=new Le("mat-dialog-default-options"),$A=new Le("mat-dialog-scroll-strategy"),JA={provide:$A,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},eO=((ZA=function(){function e(t,n,i,r,o,a,s,u,l){var c=this;v(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=vf(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return g(e,[{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new NA)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new LE({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=ba.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:NA,useValue:t}]}),i=new vy(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof xu)t.attachTemplatePortal(new my(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new vy(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(xy,null)||r.push({provide:xy,useValue:{value:e.direction,change:af()}}),ba.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||ZA)(Va(iT),Va(ba),Va(void 0),Va(void 0),Va(HE),Va(void 0),Va(Ge),Va(Ge),Va(Le))},ZA.\u0275dir=bt({type:ZA}),ZA),tO=((KA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,o,s,u,a,UA,BA,QA)}return n}(eO)).\u0275fac=function(e){return new(e||KA)(Lt(iT),Lt(ba),Lt(Fc,8),Lt(XA,8),Lt($A),Lt(KA,12),Lt(HE))},KA.\u0275prov=Ee({token:KA,factory:KA.\u0275fac}),KA),nO=((GA=function e(){v(this,e)}).\u0275mod=yt({type:GA}),GA.\u0275inj=Te({factory:function(e){return new(e||GA)},providers:[tO,JA],imports:[[lT,Cy,ck],ck]}),GA),iO=((YA=function(){function e(t,n){v(this,e),this.el=t,this.http=n,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}return g(e,[{key:"ngAfterViewInit",value:function(){this.isAfterViewInit=!0,this.setImageSrc()}},{key:"setImageSrc",value:function(){if(this.isAfterViewInit){var e="/adme/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=e,this.imageElement.alt="structure image"}}},{key:"version",set:function(e){e!==this.privateVersion&&(this.privateVersion=e,this.setImageSrc())}},{key:"entityId",set:function(e){e!==this.privateEntityId&&(this.privateEntityId=e,this.setImageSrc())}},{key:"size",set:function(e){e!==this.privateSize&&(this.privateSize=e,this.setImageSrc())}},{key:"stereo",set:function(e){e!==this.privateStereo&&(this.privateStereo=e,this.setImageSrc())}},{key:"atomMaps",set:function(e){e!==this.privateAtomMaps&&(this.privateAtomMaps=e,this.setImageSrc())}}]),e}()).\u0275fac=function(e){return new(e||YA)(Va(Qs),Va(Rm))},YA.\u0275dir=bt({type:YA,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),YA),rO=((WA=function(){function e(t){v(this,e),this.data=t,this.smiles=t.smiles}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||WA)(Va(QA))},WA.\u0275cmp=pt({type:WA,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(e,t){1&e&&qa(0,"img",0),2&e&&Ba("entityId",t.smiles)},directives:[iO],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),WA);function oO(e,t){if(1&e&&(Ha(0,"mat-option",19),xs(1),Ua()),2&e){var n=t.$implicit;Ba("value",n),uo(1),Ts(" ",n," ")}}function aO(e,t){if(1&e){var n=Ka();Ha(0,"mat-form-field",16),Ha(1,"mat-select",17),Xa("selectionChange",function(e){return cn(n),ns(2)._changePageSize(e.value)}),Fa(2,oO,2,2,"mat-option",18),Ua(),Ua()}if(2&e){var i=ns(2);Ba("appearance",i._formFieldAppearance)("color",i.color),uo(1),Ba("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),uo(1),Ba("ngForOf",i._displayedPageSizeOptions)}}function sO(e,t){if(1&e&&(Ha(0,"div",20),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.pageSize)}}function uO(e,t){if(1&e&&(Ha(0,"div",12),Ha(1,"div",13),xs(2),Ua(),Fa(3,aO,3,6,"mat-form-field",14),Fa(4,sO,2,1,"div",15),Ua()),2&e){var n=ns();uo(2),Ts(" ",n._intl.itemsPerPageLabel," "),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length>1),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length<=1)}}function lO(e,t){if(1&e){var n=Ka();Ha(0,"button",21),Xa("click",function(){return cn(n),ns().firstPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",22),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ma("aria-label",i._intl.firstPageLabel)}}function cO(e,t){if(1&e){var n=Ka();Nn(),Vn(),Ha(0,"button",23),Xa("click",function(){return cn(n),ns().lastPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",24),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ma("aria-label",i._intl.lastPageLabel)}}var hO,fO,dO,pO,vO=((hO=function e(){v(this,e),this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||hO)},hO.\u0275prov=Ee({factory:function(){return new hO},token:hO,providedIn:"root"}),hO),mO={provide:vO,deps:[[new _e,new ke,vO]],useFactory:function(e){return e||new vO}},gO=new Le("MAT_PAGINATOR_DEFAULT_OPTIONS"),yO=hk(vk(function e(){v(this,e)})),_O=((pO=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;if(v(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Ku,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return h(o)}return g(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];v(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._cachedCellWidths=[]}return g(e,[{key:"clearStickyPositioning",value:function(e,t){var n,r=this,o=[],a=i(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(var u=0;u3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],s=a.children.length,u=this._getCellWidths(a,o),l=this._getStickyStartColumnPositions(u,t),c=this._getStickyEndColumnPositions(u,n);this._scheduleStyleChanges(function(){var o,a="rtl"===r.direction,u=a?"right":"left",h=a?"left":"right",f=i(e);try{for(f.s();!(o=f.n()).done;)for(var d=o.value,p=0;p1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),vI=((qO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||qO)(Va(Ru),Va(Qs))},qO.\u0275dir=bt({type:qO,selectors:[["","rowOutlet",""]]}),qO),mI=((UO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||UO)(Va(Ru),Va(Qs))},UO.\u0275dir=bt({type:UO,selectors:[["","headerRowOutlet",""]]}),UO),gI=((HO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||HO)(Va(Ru),Va(Qs))},HO.\u0275dir=bt({type:HO,selectors:[["","footerRowOutlet",""]]}),HO),yI=((zO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||zO)(Va(Ru),Va(Qs))},zO.\u0275dir=bt({type:zO,selectors:[["","noDataRowOutlet",""]]}),zO),_I=((BO=function(){function e(t,n,i,r,o,a,s,u,l,c){v(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new j,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 sf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(ow(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,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()}},{key:"ngOnDestroy",value:function(){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(),Cw(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,r,{$implicit:o.data})}else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(t(n),t(i),t(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,r=i(this._getCellTemplates(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;lI.mostRecentCellOutlet&&lI.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t)}}catch(a){r.e(a)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t=r.length&&(o=0),r[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(cR)).\u0275fac=function(e){return fR(e||oR)},oR.\u0275dir=bt({type:oR,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[wa,Ai]}),oR),fR=pr(hR),dR=sk.ENTERING+" "+ak.STANDARD_CURVE,pR={indicator:Oy("indicator",[Py("active-asc, asc",Dy({transform:"translateY(0px)"})),Py("active-desc, desc",Dy({transform:"translateY(10px)"})),Ly("active-asc <=> active-desc",Iy(dR))]),leftPointer:Oy("leftPointer",[Py("active-asc, asc",Dy({transform:"rotate(-45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),rightPointer:Oy("rightPointer",[Py("active-asc, asc",Dy({transform:"rotate(45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(-45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),arrowOpacity:Oy("arrowOpacity",[Py("desc-to-active, asc-to-active, active",Dy({opacity:1})),Py("desc-to-hint, asc-to-hint, hint",Dy({opacity:.54})),Py("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Dy({opacity:0})),Ly("* => asc, * => desc, * => active, * => hint, * => void",Iy("0ms")),Ly("* <=> *",Iy(dR))]),arrowPosition:Oy("arrowPosition",[Ly("* => desc-to-hint, * => desc-to-active",Iy(dR,My([Dy({transform:"translateY(-25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-desc, * => active-to-desc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(25%)"})]))),Ly("* => asc-to-hint, * => asc-to-active",Iy(dR,My([Dy({transform:"translateY(25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-asc, * => active-to-asc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(-25%)"})]))),Py("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Dy({transform:"translateY(0)"})),Py("hint-to-desc, active-to-desc, desc",Dy({transform:"translateY(-25%)"})),Py("hint-to-asc, active-to-asc, asc",Dy({transform:"translateY(25%)"}))]),allowChildren:Oy("allowChildren",[Ly("* <=> *",[Ny("@*",Fy(),{optional:!0})])])},vR=((aR=function e(){v(this,e),this.changes=new j,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||aR)},aR.\u0275prov=Ee({factory:function(){return new aR},token:aR,providedIn:"root"}),aR),mR={provide:vR,deps:[[new _e,new ke,vR]],useFactory:function(e){return e||new vR}},gR=hk(function e(){v(this,e)}),yR=((uR=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._intl=e,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._rerenderSubscription=se(r.sortChange,r._stateChanges,e.changes).subscribe(function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),i.markForCheck()}),u}return g(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){return e._setIndicatorHintVisible(!!t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(gR)).\u0275fac=function(e){return new(e||uR)(Va(vR),Va(_u),Va(hR,8),Va("MAT_SORT_HEADER_COLUMN_DEF",8),Va(ty),Va(Qs))},uR.\u0275cmp=pt({type:uR,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ma("aria-sort",t._getAriaSortAttribute()),ps("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[wa],attrs:iR,ngContentSelectors:lR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0),Ha(1,"div",1),os(2),Ua(),Fa(3,rR,6,6,"div",2),Ua()),2&e&&(ps("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ma("tabindex",t._isDisabled()?null:0),uo(3),Ba("ngIf",t._renderArrow()))},directives:[Xc],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pR.indicator,pR.leftPointer,pR.rightPointer,pR.arrowOpacity,pR.arrowPosition,pR.allowChildren]},changeDetection:0}),uR),_R=((sR=function e(){v(this,e)}).\u0275mod=yt({type:sR}),sR.\u0275inj=Te({factory:function(e){return new(e||sR)},providers:[mR],imports:[[ph,ck]]}),sR);function bR(e,t){if(1&e&&(Ha(0,"li"),xs(1),Ua()),2&e){var n=t.$implicit;uo(1),Es(n)}}function kR(e,t){if(1&e&&(Ha(0,"ul"),Fa(1,bR,2,1,"li",8),Ua()),2&e){var n=ns(2);uo(1),Ba("ngForOf",n.errorMessages)}}function wR(e,t){if(1&e){var n=Ka();Ha(0,"div",2),Ha(1,"div",3),Ha(2,"div"),xs(3),Ua(),Fa(4,kR,2,1,"ul",4),Ua(),Ha(5,"div",5),Ha(6,"button",6),Xa("click",function(){return cn(n),ns().clearErrorMessage()}),qa(7,"mat-icon",7),Ua(),Ua(),Ua()}if(2&e){var i=ns();uo(3),Ts(" ",i.errorMessage," "),uo(1),Ba("ngIf",i.errorMessages&&i.errorMessages.length)}}function CR(e,t){if(1&e&&(Ha(0,"mat-header-cell",23),Ha(1,"span",24),xs(2),Ua(),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("matTooltip",i.displayedColumnsDict[n].description),uo(1),Ts(" ",i.displayedColumnsDict[n].isSmilesColumn?"mol":n," ")}}function SR(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns().$implicit,i=ns().$implicit;uo(1),Es("0 (0.0)"==n[i]?"0 (0.01)":n[i])}}function xR(e,t){if(1&e){var n=Ka();Ha(0,"a",26),Xa("click",function(){cn(n);var e=ns().$implicit,t=ns().$implicit;return ns(2).openStructureImageDialog(e[t])}),qa(1,"img",27),Ua()}if(2&e){var i=ns().$implicit,r=ns().$implicit;Ba("matTooltip",i[r]),uo(1),Ba("entityId",i[r])}}function ER(e,t){if(1&e&&(Ha(0,"mat-cell"),Fa(1,SR,2,1,"span",4),Fa(2,xR,2,2,"a",25),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("ngIf",!i.displayedColumnsDict[n].isSmilesColumn),uo(1),Ba("ngIf",i.displayedColumnsDict[n].isSmilesColumn)}}function TR(e,t){1&e&&(Wa(0,20),Fa(1,CR,3,2,"mat-header-cell",21),Fa(2,ER,3,2,"mat-cell",22),Ya()),2&e&&Ba("matColumnDef",t.$implicit)}function AR(e,t){1&e&&qa(0,"mat-header-row")}function OR(e,t){1&e&&qa(0,"mat-row",28)}var IR=function(){return[5,10,25,100]};function RR(e,t){if(1&e){var n=Ka();Ha(0,"div",9),Ha(1,"h2"),xs(2,"Model predictions"),Ua(),Ha(3,"div",10),Ha(4,"button",11),Xa("click",function(){return cn(n),ns().downloadCSV()}),xs(5,"Download"),Ua(),qa(6,"div",12),Ha(7,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua(),Ha(8,"div",14),Ha(9,"mat-table",15,16),Xa("matSortChange",function(e){return cn(n),ns().sortData(e)}),Fa(11,TR,3,1,"ng-container",17),Fa(12,AR,1,0,"mat-header-row",18),Fa(13,OR,1,0,"mat-row",19),Ua(),Ua(),Ha(14,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua()}if(2&e){var i=ns();uo(7),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(12,IR)),uo(2),Ba("dataSource",i.paged),uo(2),Ba("ngForOf",i.displayedColumns),uo(1),Ba("matHeaderRowDef",i.displayedColumns),uo(1),Ba("matRowDefColumns",i.displayedColumns),uo(1),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(13,IR))}}var DR,PR=((DR=function(){function e(t,n){v(this,e),this.dialog=t,this.gaService=n,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Ku}return g(e,[{key:"ngOnInit",value:function(){}},{key:"pageChange",value:function(e){this.clearErrorMessage(),null!=e?(e.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=e.pageIndex,e.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=e.pageSize):this.page=0,this.paged=[];for(var t=this.page*this.pageSize,n=t;n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Ua(),Ua(),Ha(60,"div",4),Ha(61,"div",5),xs(62,"Data for Download:"),Ua(),Ha(63,"div",6),xs(64," A subset of the dataset used for developing these models is available for download. Click "),Ha(65,"a",12),xs(66,"here"),Ua(),xs(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Ha(68,"a",13),xs(69,"AID 1508591"),Ua(),xs(70,". "),Ua(),Ua(),Ua(),qa(71,"br"),Ha(72,"h3"),xs(73," RLM Assay Protocol "),Ua(),Ha(74,"p",14),xs(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Ha(76,"sub"),xs(77,"1/2"),Ua(),xs(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Ua(),Ha(79,"h3"),xs(80," References: "),Ua(),Ha(81,"ol"),Ha(82,"li"),xs(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Ua(),Ha(84,"li"),xs(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Ua(),Ua(),Ua()),2&e){var n=ns();uo(65),Ba("href",n.dataDownloadHref,ki)}}function WR(e,t){1&e&&(Ha(0,"div",2),Ha(1,"h2"),xs(2," CYP450 Models "),Ua(),Ha(3,"h3"),xs(4," High-throughput metabolic stability assays: "),Ua(),Ha(5,"p"),xs(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Ha(7,"sup"),xs(8,"1"),Ua(),xs(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Ha(10,"sub"),xs(11,"1/2"),Ua(),xs(12,") determinations were performed as previously described"),Ha(13,"sup"),xs(14,"1"),Ua(),xs(15,". "),Ua(),Ha(16,"div",15),Ha(17,"div",16),xs(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Ua(),Ha(19,"div",17),Ha(20,"table",18),Ha(21,"thead"),Ha(22,"tr",19),Ha(23,"th",20),xs(24," Matrix "),Ua(),Ha(25,"th",20),xs(26," Final Protein Concentration [mg/mL] "),Ua(),Ha(27,"th",20),xs(28," Total CYP content [nM] "),Ua(),Ha(29,"th",20),xs(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Ua(),Ha(31,"th",20),xs(32," Cytochrome b"),Ha(33,"sub"),xs(34,"5"),Ua(),xs(35," content [pmol/mg protein] "),Ua(),Ha(36,"th",20),xs(37," High clearance controls "),Ua(),Ha(38,"th",20),xs(39," Moderate clearance controls "),Ua(),Ha(40,"th",20),xs(41," Low clearance controls "),Ua(),Ua(),Ua(),Ha(42,"tbody"),Ha(43,"tr",21),Ha(44,"td",22),xs(45," CYP3A4 "),Ua(),Ha(46,"td",23),xs(47," ~0.2 "),Ua(),Ha(48,"td",23),xs(49," 30 "),Ua(),Ha(50,"td",23),xs(51," 2900 "),Ua(),Ha(52,"td",23),xs(53," 1090 "),Ua(),Ha(54,"td",23),xs(55," Buspirone, Loperamide "),Ua(),Ha(56,"td",23),xs(57," Ketoconazole "),Ua(),Ha(58,"td",23),xs(59," Antipyrine, Carbamazepine "),Ua(),Ua(),Ha(60,"tr",21),Ha(61,"td",22),xs(62," CYP2C9 "),Ua(),Ha(63,"td",23),xs(64," ~0.12 "),Ua(),Ha(65,"td",23),xs(66," 45 "),Ua(),Ha(67,"td",23),xs(68," 985 "),Ua(),Ha(69,"td",23),xs(70," 710 "),Ua(),Ha(71,"td",23),xs(72," Glyburide, Glimepiride "),Ua(),Ha(73,"td",23),xs(74," Tamoxifen "),Ua(),Ha(75,"td",23),xs(76," Antipyrine, Meloxicam "),Ua(),Ua(),Ha(77,"tr",21),Ha(78,"td",22),xs(79," CYP2D6 "),Ua(),Ha(80,"td",23),xs(81," ~0.38 "),Ua(),Ha(82,"td",23),xs(83," 60 "),Ua(),Ha(84,"td",23),xs(85," 3000 "),Ua(),Ha(86,"td",23),xs(87," - "),Ua(),Ha(88,"td",23),xs(89," Bufuralol, Desipramine, Amitriptyline "),Ua(),Ha(90,"td",23),xs(91," Mexiletine "),Ua(),Ha(92,"td",23),xs(93," Codeine "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(94,"h3"),xs(95," P450-Glo qHTS: "),Ua(),Ha(96,"p"),xs(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Ha(98,"sup"),xs(99,"2"),Ua(),xs(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Ua(),Ha(101,"div",15),Ha(102,"div",16),xs(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Ua(),Ha(104,"div",17),Ha(105,"table",18),Ha(106,"thead"),Ha(107,"tr",19),Ha(108,"th",20),xs(109," Enzyme "),Ua(),Ha(110,"th",20),xs(111," Inhibitor "),Ua(),Ha(112,"th",20),xs(113," Dilution Format "),Ua(),Ha(114,"th",20),xs(115," Inhibitor Concentration "),Ua(),Ha(116,"th",20),xs(117," Incubation conditions "),Ua(),Ua(),Ua(),Ha(118,"tbody"),Ha(119,"tr",21),Ha(120,"td",22),xs(121," CYP3A4 "),Ua(),Ha(122,"td",23),xs(123," Ketoconazole "),Ua(),Ha(124,"td",24),Ha(125,"div"),xs(126,"16 concentrations/"),Ua(),Ha(127,"div"),xs(128,"2-fold dilution in"),Ua(),Ha(129,"div"),xs(130,"duplicates"),Ua(),Ua(),Ha(131,"td",23),xs(132," 57 \xb5M-1.8 nM "),Ua(),Ha(133,"td",23),xs(134," 1 h/RT "),Ua(),Ua(),Ha(135,"tr",21),Ha(136,"td",22),xs(137," CYP2C9 "),Ua(),Ha(138,"td",23),xs(139," Sulfaphenazole "),Ua(),Ha(140,"td",23),xs(141," 57 \xb5M-1.8 nM "),Ua(),Ha(142,"td",23),xs(143," 1 h/ 37\u02daC/ 0.4% BSA "),Ua(),Ua(),Ha(144,"tr",21),Ha(145,"td",22),xs(146," CYP2D6 "),Ua(),Ha(147,"td",23),xs(148," Quinidine "),Ua(),Ha(149,"td",23),xs(150," 1.4 \xb5M-0.04 nM "),Ua(),Ha(151,"td",23),xs(152," 1 h/RT "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(153,"div",15),Ha(154,"div",16),xs(155," Parsing of Substrates and Inhibitors: "),Ua(),Ha(156,"div",17),Ha(157,"table",25),Ha(158,"thead"),Ha(159,"tr",19),Ha(160,"th",20),xs(161," Category "),Ua(),Ha(162,"th",20),Ha(163,"div"),xs(164,"Clearance"),Ua(),Ha(165,"div"),xs(166,"/"),Ua(),Ha(167,"div"),xs(168,"P450-Glo"),Ua(),Ua(),Ha(169,"th",20),xs(170," Classification "),Ua(),Ha(171,"th",20),xs(172," Parsing Rationale "),Ua(),Ua(),Ua(),Ha(173,"tbody"),Ha(174,"tr",21),Ha(175,"td",23),xs(176," 1 "),Ua(),Ha(177,"td",23),xs(178," + / + "),Ua(),Ha(179,"td",23),xs(180," Substrate "),Ua(),Ha(181,"td",26),xs(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Ua(),Ua(),Ha(183,"tr",21),Ha(184,"td",23),xs(185," 2 "),Ua(),Ha(186,"td",23),xs(187," - / + "),Ua(),Ha(188,"td",23),xs(189," Inhibitor "),Ua(),Ha(190,"td",26),xs(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Ua(),Ua(),Ha(192,"tr",21),Ha(193,"td",23),xs(194," 3 "),Ua(),Ha(195,"td",23),xs(196," - / - "),Ua(),Ha(197,"td",23),xs(198," Non-ligand "),Ua(),Ha(199,"td",26),xs(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Ua(),Ua(),Ha(201,"tr",21),Ha(202,"td",23),xs(203," 4 "),Ua(),Ha(204,"td",23),xs(205," + / - "),Ua(),Ha(206,"td",23),xs(207," Substrate "),Ua(),Ha(208,"td",26),xs(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(210,"h3"),xs(211," References: "),Ua(),Ha(212,"ol"),Ha(213,"li"),xs(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Ua(),Ha(215,"li"),xs(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Ua(),Ua(),Ua())}var YR,GR,KR,ZR,QR=[{path:"home",component:Qm,data:{pageTitle:"home"}},{path:"predictions",component:(KR=function(){function e(t,n,i){v(this,e),this.http=t,this.loadingService=n,this.gaService=i,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}return g(e,[{key:"ngOnInit",value:function(){this.link=document.createElement("a")}},{key:"processSketcherInput",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/adme/api/v1/predict",{params:{smiles:e,model:this.models}}).subscribe(function(e){t.sketcherData=e,t.loadingService.setLoadingState(!1)},function(e){t.errorMessage="There was an error processing your structure. Please modify it and try again.",t.loadingService.setLoadingState(!1)})}},{key:"processFile",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);var n=new FormData;n.append("lineBreak",e.lineBreak),this.lineBreak=e.lineBreak,n.append("columnSeparator",e.columnSeparator),this.columnSeparator=e.columnSeparator,n.append("hasHeaderRow",e.hasHeaderRow.toString()),n.append("indexIdentifierColumn",e.indexIdentifierColumn.toString()),n.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=e.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,n.append("file",e.file),this.http.post("/adme/api/v1/predict-file",n).subscribe(function(e){e.hasErrors?t.errorMessage=e.errorMessages:e&&Object.keys(e).length>0&&(t.fileData=e),t.loadingService.setLoadingState(!1)},function(e){t.fileData=null,t.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",t.loadingService.setLoadingState(!1)})}},{key:"clearErrorMessage",value:function(){this.errorMessage="",this.errorMessages=[]}},{key:"downloadCSV",value:function(e){var n=this,i=t(e.allColumns).join(this.columnSeparator),r=[];e.data.forEach(function(t){return r.push(e.allColumns.map(function(e){return t[e]}).join(n.columnSeparator))});var o=i+this.lineBreak+r.join(this.lineBreak);this.file=new Blob([o],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}},{key:"downloadFile",value:function(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}},{key:"selectedTabChange",value:function(e,t){this.gaService.sendEvent("click:tab",t,e.tab.textLabel)}}]),e}(),KR.\u0275fac=function(e){return new(e||KR)(Va(Rm),Va(Xm),Va(Km))},KR.\u0275cmp=pt({type:KR,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"mat-tab-group",2),Xa("selectedTabChange",function(e){return t.selectedTabChange(e,"predictions:input-type")}),Ha(3,"mat-tab",3),Ha(4,"div",4),Ha(5,"adme-sketcher",5),Xa("moleculeInput",function(e){return t.processSketcherInput(e)}),Ua(),Ua(),Fa(6,FR,8,2,"div",6),Fa(7,VR,3,1,"div",7),Ua(),Ha(8,"mat-tab",8),Ha(9,"div",4),Ha(10,"adme-text-file",9),Xa("fileProcess",function(e){return t.processFile(e)}),Ua(),Ua(),Fa(11,zR,8,2,"div",6),Fa(12,UR,3,1,"div",7),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.sketcherData),uo(4),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.fileData))},directives:[OC,_C,qC,Xc,vA,zC,DA,Zc,PR],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),KR),data:{pageTitle:"predictions"}},{path:"models/:model",component:(GR=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.activatedRoute=n,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/adme/client/assets/rlm_public_set.xlsx")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.activatedRoute.params.subscribe(function(t){e.model=t.model})}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),e}(),GR.\u0275fac=function(e){return new(e||GR)(Va(ef),Va(ip))},GR.\u0275cmp=pt({type:GR,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(e,t){1&e&&(Ha(0,"div",0),Fa(1,qR,86,1,"div",1),Fa(2,WR,217,0,"div",1),Ua()),2&e&&(uo(1),Ba("ngIf","rlm"==t.model),uo(1),Ba("ngIf","cyp450"==t.model))},directives:[Xc,Zm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),GR),data:{pageTitle:"model"}},{path:"contact",component:(YR=function(){function e(t){v(this,e),this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/adme/client/assets/images/epam_ketcher.png")}return g(e,[{key:"ngOnInit",value:function(){}}]),e}(),YR.\u0275fac=function(e){return new(e||YR)(Va(ef))},YR.\u0275cmp=pt({type:YR,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h1"),xs(3," Contact "),Ua(),Ha(4,"div",2),Ha(5,"div",3),qa(6,"img",4),Ua(),Ha(7,"div",5),Ha(8,"div"),xs(9," Vishal Siramshetty "),Ua(),Ha(10,"div"),xs(11," Postdoctoral Fellow (Informatics) "),Ua(),Ha(12,"div"),xs(13," Email: "),Ha(14,"a",6),xs(15,"siramshettyv2@nih.gov"),Ua(),xs(16," (models/predictions related queries) "),Ua(),Ua(),Ua(),Ha(17,"div",2),Ha(18,"div",3),qa(19,"img",4),Ua(),Ha(20,"div",5),Ha(21,"div"),xs(22," Pranav Shah "),Ua(),Ha(23,"div"),xs(24," Lead (In Vitro ADME) "),Ua(),Ha(25,"div"),xs(26," Email: "),Ha(27,"a",7),xs(28,"pranav.shah@nih.gov"),Ua(),xs(29," (assay/data related queries) "),Ua(),Ua(),Ua(),Ha(30,"div",2),Ha(31,"div",3),qa(32,"img",4),Ua(),Ha(33,"div",5),Ha(34,"div"),xs(35," Jorge Neyra "),Ua(),Ha(36,"div"),xs(37," Software Developer (Informatics) "),Ua(),Ha(38,"div"),xs(39," Email: "),Ha(40,"a",8),xs(41,"jorge.neyra@nih.gov"),Ua(),xs(42," (software related queries) "),Ua(),Ua(),Ua(),Ha(43,"div",2),Ha(44,"div",3),qa(45,"img",4),Ua(),Ha(46,"div",5),Ha(47,"div"),xs(48," Jordan Williams "),Ua(),Ha(49,"div"),xs(50," Postbaccalaureate Fellow (In Vitro ADME) "),Ua(),Ha(51,"div"),xs(52," Email: "),Ha(53,"a",9),xs(54,"jordan.williams2@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(55,"div",2),Ha(56,"div",3),qa(57,"img",4),Ua(),Ha(58,"div",5),Ha(59,"div"),xs(60," Noel Southall "),Ua(),Ha(61,"div"),xs(62," Lead (Informatics) "),Ua(),Ha(63,"div"),xs(64," Email: "),Ha(65,"a",10),xs(66,"southalln@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(67,"div",2),Ha(68,"div",3),qa(69,"img",4),Ua(),Ha(70,"div",5),Ha(71,"div"),xs(72," Trung Nguyen "),Ua(),Ha(73,"div"),xs(74," Staff Scientist (Informatics) "),Ua(),Ha(75,"div"),xs(76," Email: "),Ha(77,"a",11),xs(78,"nguyenda@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(79,"div",2),Ha(80,"div",3),qa(81,"img",4),Ua(),Ha(82,"div",5),Ha(83,"div"),xs(84," Xin Xu "),Ua(),Ha(85,"div"),xs(86," Lead (ADME Group) "),Ua(),Ha(87,"div"),xs(88," Email: "),Ha(89,"a",12),xs(90,"xin.xu3@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(91,"div",13),Ha(92,"h1"),xs(93," Resources "),Ua(),Ha(94,"div",14),Ha(95,"div"),Ha(96,"a",15),qa(97,"img",4),Ua(),Ua(),Ha(98,"div"),Ha(99,"a",16),qa(100,"img",4),Ua(),Ua(),Ua(),Ha(101,"div",14),Ha(102,"div"),Ha(103,"a",17),qa(104,"img",4),Ua(),Ua(),Ha(105,"div"),Ha(106,"a",18),qa(107,"img",4),Ua(),Ua(),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("src",t.vishalImgSrc,ki),uo(13),Ba("src",t.pranavImgSrc,ki),uo(13),Ba("src",t.jorgeImgSrc,ki),uo(13),Ba("src",t.jordanImgSrc,ki),uo(12),Ba("src",t.noelImgSrc,ki),uo(12),Ba("src",t.trungImgSrc,ki),uo(12),Ba("src",t.xinImgSrc,ki),uo(16),Ba("src",t.rdkitImgSrc,ki),uo(3),Ba("src",t.pythonImgSrc,ki),uo(4),Ba("src",t.angularImgSrc,ki),uo(3),Ba("src",t.epamImgSrc,ki))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),YR),data:{pageTitle:"contact"}},{path:"**",component:Qm}],XR=((ZR=function e(){v(this,e)}).\u0275mod=yt({type:ZR}),ZR.\u0275inj=Te({factory:function(e){return new(e||ZR)},imports:[[qv.forRoot(QR,{relativeLinkResolution:"legacy"})],qv]}),ZR);function $R(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function JR(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function eD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function tD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}var nD,iD,rD,oD=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",aD=fk(function e(t){v(this,e),this._elementRef=t},"primary"),sD=new Le("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),uD=((rD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;v(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return g(n,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ug(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=_g(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=_g(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,_g(e)))}}]),n}(aD)).\u0275fac=function(e){return new(e||rD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},rD.\u0275cmp=pt({type:rD,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(Ma("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,$R,1,9,"circle",1),Fa(2,JR,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),rD._diameters=new WeakMap,rD),lD=((iD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i,r,o,a)).mode="indeterminate",s}return n}(uD)).\u0275fac=function(e){return new(e||iD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},iD.\u0275cmp=pt({type:iD,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,eD,1,9,"circle",1),Fa(2,tD,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),iD),cD=((nD=function e(){v(this,e)}).\u0275mod=yt({type:nD}),nD.\u0275inj=Te({factory:function(e){return new(e||nD)},imports:[[ck,ph],ck]}),nD);function hD(e,t){1&e&&(Ha(0,"div",1),qa(1,"mat-spinner"),Ua())}var fD,dD,pD,vD,mD=((fD=function(){function e(t){v(this,e),this.lodadingService=t,this.isLoading=!1}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.lodadingService.isLoading.subscribe(function(t){e.isLoading=t})}}]),e}()).\u0275fac=function(e){return new(e||fD)(Va(Xm))},fD.\u0275cmp=pt({type:fD,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(e,t){1&e&&Fa(0,hD,2,0,"div",0),2&e&&Ba("ngIf",t.isLoading)},directives:[Xc,lD],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),fD),gD=["*",[["mat-toolbar-row"]]],yD=["*","mat-toolbar-row"],_D=fk(function e(t){v(this,e),this._elementRef=t}),bD=((vD=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vD)},vD.\u0275dir=bt({type:vD,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),vD),kD=((pD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(_D)).\u0275fac=function(e){return new(e||pD)(Va(Qs),Va(ig),Va(mc))},pD.\u0275cmp=pt({type:pD,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,bD,!0),2&e&&al(i=dl())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[wa],ngContentSelectors:yD,decls:2,vars:0,template:function(e,t){1&e&&(rs(gD),os(0),os(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),pD),wD=((dD=function e(){v(this,e)}).\u0275mod=yt({type:dD}),dD.\u0275inj=Te({factory:function(e){return new(e||dD)},imports:[[ck],ck]}),dD);function CD(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new SD(i,n))}}var SD=function(){function e(t,n){v(this,e),this.delay=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new xD(e,this.delay,this.scheduler))}}]),e}(),xD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return g(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new ED(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(ww.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(ww.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(A),ED=function e(t,n){v(this,e),this.time=t,this.notification=n},TD=["mat-menu-item",""],AD=["*"];function OD(e,t){if(1&e){var n=Ka();Ha(0,"div",0),Xa("keydown",function(e){return cn(n),ns()._handleKeydown(e)})("click",function(){return cn(n),ns().closed.emit("click")})("@transformMenu.start",function(e){return cn(n),ns()._onAnimationStart(e)})("@transformMenu.done",function(e){return cn(n),ns()._onAnimationDone(e)}),Ha(1,"div",1),os(2),Ua(),Ua()}if(2&e){var i=ns();Ba("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ma("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var ID,RD,DD,PD,MD,LD,FD,ND,VD,jD,BD,zD={transformMenu:Oy("transformMenu",[Py("void",Dy({opacity:0,transform:"scale(0.8)"})),Ly("void => enter",Iy("120ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:1,transform:"scale(1)"}))),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))]),fadeInItems:Oy("fadeInItems",[Py("showing",Dy({opacity:1})),Ly("void => *",[Dy({opacity:0}),Iy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HD=new Le("MatMenuContent"),UD=new Le("MAT_MENU_PANEL"),qD=dk(hk(function e(){v(this,e)})),WD=((ID=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new j,a._focused=new j,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(f(a)),a}return g(n,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=yg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||DD)(Va(Qs),Va(Vl),Va(YD))},DD.\u0275dir=bt({type:DD,contentQueries:function(e,t,n){var i;1&e&&(cl(n,HD,!0),cl(n,WD,!0),cl(n,WD,!1)),2&e&&(al(i=dl())&&(t.lazyContent=i.first),al(i=dl())&&(t._allItems=i),al(i=dl())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&ul(xu,!0),2&e&&al(n=dl())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),DD),ZD=((RD=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(KD)).\u0275fac=function(e){return new(e||RD)(Va(Qs),Va(Vl),Va(YD))},RD.\u0275cmp=pt({type:RD,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Us([{provide:UD,useExisting:RD}]),wa],ngContentSelectors:AD,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(rs(),Fa(0,OD,3,6,"ng-template"))},directives:[Gc],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[zD.transformMenu,zD.fadeInItems]},changeDetection:0}),RD),QD=new Le("mat-menu-scroll-strategy"),XD={provide:QD,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},$D=sg({passive:!0}),JD=((BD=function(){function t(e,n,i,r,o,a,s,u){var l=this;v(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=x.EMPTY,this._hoverSubscription=x.EMPTY,this._menuCloseSubscription=x.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Ku,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ku,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof KD?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,$D),a&&(a._triggersSubmenu=this.triggersSubmenu())}return g(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$D),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof KD&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof KD?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(gf(function(e){return"void"===e.toState}),Mf(1),ow(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new LE({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var n=e("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=n[0],r=n[1],o=e("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,l=s,c=i,h=r,f=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",f="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",l="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:f},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:f},{originX:i,originY:l,overlayX:c,overlayY:s,offsetY:-f},{originX:r,originY:l,overlayX:h,overlayY:s,offsetY:-f}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return se(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:af(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(gf(function(t){return t!==e._menuItemInstance}),gf(function(){return e._menuOpen})):af(),n)}},{key:"_handleMousedown",value:function(e){Xg(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(gf(function(t){return t===e._menuItemInstance&&!t.disabled}),CD(0,vw)).subscribe(function(){e._openedBy="mouse",e.menu instanceof KD&&e.menu._isAnimating?e.menu._animationDone.pipe(Mf(1),CD(0,vw),ow(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new my(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(e){return new(e||BD)(Va(iT),Va(Qs),Va(Ru),Va(QD),Va(UD,8),Va(WD,10),Va(xy,8),Va(ty))},BD.\u0275dir=bt({type:BD,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ma("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),BD),eP=((jD=function e(){v(this,e)}).\u0275mod=yt({type:jD}),jD.\u0275inj=Te({factory:function(e){return new(e||jD)},providers:[XD],imports:[ck]}),jD),tP=((VD=function e(){v(this,e)}).\u0275mod=yt({type:VD}),VD.\u0275inj=Te({factory:function(e){return new(e||VD)},providers:[XD],imports:[[ph,ck,Lk,lT,eP],Pw,ck,eP]}),VD),nP=((ND=function(){function e(t,n,i,r,o){v(this,e),this.router=i,this.gaService=r,this._document=o,t.addSvgIcon("cancel",n.bypassSecurityTrustResourceUrl("/adme/client/assets/icons/cancel-24px.svg"))}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._document.getElementById("appFavicon").setAttribute("href","/adme/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(function(t){t instanceof sd&&e.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}},{key:"ngOnDestroy",value:function(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ND)(Va(wA),Va(ef),Va(Ev),Va(Km),Va(mc))},ND.\u0275cmp=pt({type:ND,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(e,t){if(1&e&&(qa(0,"adme-loading"),Ha(1,"mat-toolbar",0),Ha(2,"a",1),xs(3,"ADME @ NCATS"),Ua(),Ha(4,"div",2),Ha(5,"a",3),xs(6,"Predict"),Ua(),Ha(7,"a",4),xs(8,"Models"),Ua(),Ha(9,"mat-menu",null,5),Ha(11,"button",6),xs(12,"RLM"),Ua(),Ha(13,"button",7),xs(14,"CYP450"),Ua(),Ua(),Ha(15,"a",8),xs(16,"Contact"),Ua(),Ua(),qa(17,"span",9),Ua(),qa(18,"router-outlet")),2&e){var n=Na(10);uo(7),Ba("matMenuTriggerFor",n)}},directives:[mD,kD,Av,JD,ZD,WD,Tv,Pv],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),ND),iP=((FD=function e(){v(this,e)}).\u0275mod=yt({type:FD}),FD.\u0275inj=Te({factory:function(e){return new(e||FD)},imports:[[ph,HC]]}),FD),rP=((LD=function e(){v(this,e)}).\u0275mod=yt({type:LD}),LD.\u0275inj=Te({factory:function(e){return new(e||LD)},imports:[[ph,ck],ck]}),LD),oP=((MD=function e(){v(this,e)}).\u0275mod=yt({type:MD}),MD.\u0275inj=Te({factory:function(e){return new(e||MD)},imports:[[ck],ck]}),MD),aP=((PD=function e(){v(this,e)}).\u0275mod=yt({type:PD}),PD.\u0275inj=Te({factory:function(e){return new(e||PD)},imports:[[Ek,Lk,ck,Nk,ph],Ek,ck,Nk,oP]}),PD);function sP(e){return function(){return e.load()}}var uP,lP=((uP=function e(){v(this,e)}).\u0275mod=yt({type:uP,bootstrap:[nP]}),uP.\u0275inj=Te({factory:function(e){return new(e||uP)},providers:[Gm,{provide:gl,useFactory:sP,deps:[Gm],multi:!0}],imports:[[of,XR,nk,iP,nR,kO,Ym,HC,wD,Mx,Lx,bE,LT,FC,pA,rP,cD,aP,nO,_R,oA,PA,tP]]}),uP);(function(){if(Qn)throw new Error("Cannot enable prod mode after platform setup.");Zn=!1})(),nf().bootstrapModule(lP).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file diff --git a/server/client/main-es5.e043658e91f3fa1d6dea.js b/server/client/main-es5.e043658e91f3fa1d6dea.js new file mode 100644 index 0000000..771982d --- /dev/null +++ b/server/client/main-es5.e043658e91f3fa1d6dea.js @@ -0,0 +1 @@ +!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,p(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)})(e)}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new H(e,n,i);if(!r.closed)return t instanceof P?t.subscribe(r):G(t)(r)}var Z=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(A);function Q(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new X(e,t))}}var X=function(){function e(t,n){v(this,e),this.project=t,this.thisArg=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||f(o),o}return g(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(A);function J(e,t){return new P(function(n){var i=new x,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ee(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[I]}(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){var r=e[I]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Y(e))return function(e,t){return new P(function(n){var i=new x;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(W(e))return J(e,t);if(function(e){return e&&"function"==typeof e[q]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(function(n){var i,r=new x;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[q](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof P?e:new P(G(e))}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(te(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ne(e,n))})}var ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=t,this.concurrent=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new ie(e,this.project,this.concurrent))}}]),e}(),ie=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return g(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Z);function re(e){return e}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return te(re,e)}function ae(e,t){return t?J(e,t):new P(U(e))}function se(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof P?t[0]:oe(i)(ae(t,r))}function ue(){return function(e){return e.lift(new ce(e))}}var le,ce=function(){function e(t){v(this,e),this.connectable=t}return g(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new he(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),he=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(A),fe={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(le=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return g(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new x).add(this.source.subscribe(new de(this.getSubject(),this))),e.closed&&(this._connection=null,e=x.EMPTY)),e}},{key:"refCount",value:function(){return ue()(this)}}]),n}(P).prototype)._subscribe},_isComplete:{value:le._isComplete,writable:!0},getSubject:{value:le.getSubject},connect:{value:le.connect},refCount:{value:le.refCount}},de=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).connectable=i,r}return g(n,[{key:"_error",value:function(e){this._unsubscribe(),s(p(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),s(p(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(V);function pe(){return new j}function ve(){return function(e){return ue()((t=pe,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,fe);return i.source=e,i.subjectFactory=n,i})(e));var t}}function me(e){return{toString:e}.toString()}function ge(e,t,n){return me(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $e(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function et(e,t){var n=tt(e,t);if(n>=0)return e[1|n]}function tt(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var nt,it=((nt={})[nt.Emulated=0]="Emulated",nt[nt.None=2]="None",nt[nt.ShadowDom=3]="ShadowDom",nt),rt={},ot=[],at=Se({"\u0275cmp":Se}),st=Se({"\u0275dir":Se}),ut=Se({"\u0275pipe":Se}),lt=Se({"\u0275mod":Se}),ct=Se({"\u0275loc":Se}),ht=Se({"\u0275fac":Se}),ft=Se({__NG_ELEMENT_ID__:Se}),dt=0;function pt(e){return me(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ne.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ot,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||ot,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=dt++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(vt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(mt)}:null,n})}function vt(e){return kt(e)||function(e){return e[st]||null}(e)}function mt(e){return function(e){return e[ut]||null}(e)}var gt={};function yt(e){var t={type:e.type,bootstrap:e.bootstrap||ot,declarations:e.declarations||ot,imports:e.imports||ot,exports:e.exports||ot,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&me(function(){gt[e.id]=e.type}),t}function _t(e,t){if(null==e)return rt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var bt=pt;function kt(e){return e[at]||null}function wt(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(we(e)," does not have '\u0275mod' property."));return n}function Ct(e){return"string"==typeof e?e:null==e?"":""+e}function St(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ct(e)}var xt,Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Tt(e){var t=xt;return xt=e,t}function At(e,t,n){var i=Ae(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Et.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(we(e),"]"))}var Ot={},It=/\n/gm,Rt=Se({provide:String,useValue:Se}),Dt=void 0;function Pt(e){var t=Dt;return Dt=e,t}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;if(void 0===Dt)throw new Error("inject() must be called from an injection context");return null===Dt?At(e,void 0,t):Dt.get(e,t&Et.Optional?null:void 0,t)}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;return(xt||Mt)(We(e),t)}var Ft=Lt;function Nt(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ci.hasOwnProperty(t)&&!ai.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(yi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function yi(e){return e.replace(/&/g,"&").replace(mi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function _i(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function ki(e){var t=Ci();return t?t.sanitize(bi.URL,e)||"":Gn(e,"URL")?Yn(e):ni(Ct(e))}function wi(e){var t=Ci();if(t)return t.sanitize(bi.RESOURCE_URL,e)||"";if(Gn(e,"ResourceURL"))return Yn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Ci(){var e=un();return e&&e[12]}function Si(e,t){return e.hasOwnProperty(ht)?e[ht]:null}var xi=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(n(Error));function Ei(e,t){var n=t?" in "+t:"";throw new xi("201","No provider for ".concat(St(e)," found").concat(n))}var Ti=function(){function e(t,n,i){v(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return g(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ai(){return Oi}function Oi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),Ii}function Ii(){var e=Di(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ri(e,t,n,i){var r=Di(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ti(u&&u.currentValue,t,a===rt),e[i]=t}function Di(e){return e.__ngSimpleChanges__||null}function Pi(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}Ai.ngInherit=!0;var ji=function e(t,n,i){v(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bi(e,t,n){for(var i=Wt(e),r=0;rt){a=o-1;break}}}for(;o>16,i=t;n>0;)i=i[15],n--;return i}var Ki=!0;function Zi(e){var t=Ki;return Ki=e,t}var Qi=0;function Xi(e,t){var n=Ji(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$i(i.data,e),$i(t,null),$i(i.blueprint,null));var r=er(e,t),o=e.injectorIndex;if(Wi(r))for(var a=Yi(r),s=Gi(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function $i(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ji(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function er(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function tr(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ft)&&(i=n[ft]),null==i&&(i=n[ft]=Qi++);var r=255&i,o=1<3&&void 0!==arguments[3]?arguments[3]:Et.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ft)?e[ft]:void 0;return"number"==typeof t?t>=0?255&t:ar:t}(n);if("function"==typeof o){if(!En(t,e,i))return i&Et.Host?nr(r,n,i):ir(t,n,i,r);try{var a=o();if(null!=a||i&Et.Optional)return a;Ei(n)}finally{Dn()}}else if("number"==typeof o){var s=null,u=Ji(e,t),l=-1,c=i&Et.Host?t[16][6]:null;for((-1===u||i&Et.SkipSelf)&&(-1!==(l=-1===u?er(e,t):t[u+8])&&hr(i,!1)?(s=t[1],u=Yi(l),t=Gi(l,t)):u=-1);-1!==u;){var h=t[1];if(cr(o,u,h.data)){var f=sr(u,t,n,s,i,c);if(f!==or)return f}-1!==(l=t[u+8])&&hr(i,t[1].data[u+8]===c)&&cr(o,u,t)?(s=h,u=Yi(l),t=Gi(l,t)):u=-1}}}return ir(t,n,i,r)}var or={};function ar(){return new fr(hn(),un())}function sr(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ur(s,a,n,null==i?Ht(s)&&Ki:i!=a&&0!=(3&s.type),r&Et.Host&&o===s);return null!==u?lr(t,a,u,s):or}function ur(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&qt(d)&&d.type===n)return u}return null}function lr(e,t,n,i){var r=e[n],o=t.data;if(r instanceof ji){var a=r;a.resolving&&function(e,t){throw new xi("200","Circular dependency in DI detected for "+e)}(St(o[n]));var s=Zi(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Tt(a.injectImpl):null;En(e,i,Et.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=Oi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Tt(u),Zi(s),a.resolving=!1,Dn()}}return r}function cr(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var a=Xe(e,10+t);Yr(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Pr(e,t){if(!(256&t[2])){var n=t[11];Wt(n)&&n.destroyNode&&Yr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Mr(e[1],e);for(;t;){var n=null;if(jt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)jt(t)&&Mr(t[1],t),t=t[3];null===t&&(t=e),jt(t)&&Mr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[u]():i[-u].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Wt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Bt(t[3])){n!==t[3]&&Rr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Lr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===it.None||r===it.Emulated)return null}return Zt(i,n)}(e,t.parent,n)}function Fr(e,t,n,i,r){Wt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Nr(e,t,n){Wt(e)?e.appendChild(t,n):t.appendChild(n)}function Vr(e,t,n,i,r){null!==i?Fr(e,t,n,i,r):Nr(e,t,n)}function jr(e,t){return Wt(e)?e.parentNode(t):t.parentNode}function Br(e,t,n){return zr(e,t,n)}var zr=function(e,t,n){return 40&e.type?Zt(e,n):null};function Hr(e,t,n,i){var r=Lr(e,i,t),o=t[11],a=Br(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;so?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==Qr(f,l,0)||2&i&&l!==h){if(to(i))return!1;a=!0}}}}else{if(!a&&!to(i)&&!to(u))return!1;if(a&&to(u))continue;a=!1,i=u|1&i}}return to(i)||a}function to(e){return 0==(1&e)}function no(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||to(a)||(t+=oo(o,r),r=""),i=a,o=o||!to(i);n++}return""!==r&&(t+=oo(o,r)),t}var so={};function uo(e){lo(ln(),un(),Mn()+e,mn())}function lo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Mi(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Li(t,o,0,n)}Ln(n)}function co(e,t){return e<<17|t<<2}function ho(e){return e>>17&32767}function fo(e){return 2|e}function po(e){return(131068&e)>>2}function vo(e,t){return-131069&e|t<<2}function mo(e){return 1|e}function go(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&lo(e,t,20,mn()),n(i,r)}finally{Ln(o)}}function xo(e,t,n){if(zt(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Zt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Lo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function No(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&Wo(n)}}function Wo(e){for(var t=Er(e);null!==t;t=Tr(t))for(var n=10;n0&&Wo(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Wo(s)}}function Yo(e,t){var n=$t(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Ot;if(t===Ot){var n=new Error("NullInjectorError: No provider for ".concat(we(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),aa=new Le("Set Injector scope."),sa={},ua={},la=[],ca=void 0;function ha(){return void 0===ca&&(ca=new oa),ca}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new da(e,n,t||ha(),i)}var da=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ze(n,function(e){return r.processProvider(e,t,n)}),Ze([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ra,ma(void 0,this));var s=this.records.get(aa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:we(t))}return g(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;this.assertNotDestroyed();var i,r=Pt(this);try{if(!(n&Et.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Le)&&Ae(e);o=a&&this.injectableDefInScope(a)?ma(pa(e),sa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Et.Self?ha():this.parent).get(e,t=n&Et.Optional&&t===Ot?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(we(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=we(t);if(Array.isArray(t))r=t.map(we).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):we(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(It,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Pt(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(we(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=We(e)))return!1;var r=Ie(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ie(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{Ze(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;Ze(r,function(e){return i.processProvider(e,n,r||la)})},c=0;c0){var n=$e(t,"?");throw new Error("Can't resolve all parameters for ".concat(we(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Re]||e[Pe]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function va(e,n,i){var r,o=void 0;if(ya(e)){var s=We(e);return Si(s)||pa(s)}if(ga(e))o=function(){return We(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,t(Nt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Lt(We(e.useExisting))};else{var u=We(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Si(u)||pa(u);o=function(){return a(u,t(Nt(e.deps)))}}return o}function ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function ga(e){return null!==e&&"object"==typeof e&&Rt in e}function ya(e){return"function"==typeof e}var _a=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=fa(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},ba=function(){var e=function(){function e(){v(this,e)}return g(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?_a(e,t,""):_a(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ot,e.NULL=new oa,e.\u0275prov=Ee({token:e,providedIn:"any",factory:function(){return Lt(ra)}}),e.__NG_ELEMENT_ID__=-1,e}();function ka(e,t){Pi(Jt(e)[1],hn())}function wa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(qt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Ca(e.inputs),o.declaredInputs=Ca(e.declaredInputs),o.outputs=Ca(e.outputs);var a=r.hostBindings;a&&Ea(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Sa(e,s),u&&xa(e,u),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),qt(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ui(r.hostAttrs,n=Ui(n,r.hostAttrs))}}(i)}function Ca(e){return e===rt?{}:e===ot?[]:e}function Sa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function xa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ea(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ta=null;function Aa(){if(!Ta){var e=He.Symbol;if(e&&e.iterator)Ta=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Et.Default,n=un();return null===n?Lt(e,t):rr(hn(),n,We(e),t)}function ja(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=un(),o=ln(),a=hn();return Ja(o,r,r[11],a,e,t,n,i),Xa}function $a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=hn(),o=un(),a=ln();return Ja(a,o,ea(wn(a.data),r,o),r,e,t,n,i),$a}function Ja(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ut(i),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Jo(t),h=!0;if(3&i.type){var f=Zt(i,t),d=s?s(f):rt,p=d.target||f,v=c.length,m=s?function(e){return s(Gt(e[i.index])).target}:i.index;if(Wt(n)){var g=null;if(!s&&u&&(g=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=ts(i,t,o,!1);var y=n.listen(d.name||p,r,o);c.push(o,y),l&&l.push(r,m,v,v+1)}}else o=ts(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),l&&l.push(r,m,v,a)}var _,b=i.outputs;if(h&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(an.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,an.lFrame.contextLView))[8]}(e)}function is(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=un(),r=ln(),o=_o(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),vn(),64!=(64&o.flags)&&function(e,t,n){Gr(t[11],0,t,n,Lr(e,n,t),Br(n.parent||t[6],n,t))}(r,i,o)}var as=[];function ss(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?ho(o):po(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];us(e[s],t)&&(u=!0,e[s+1]=i?mo(l):fo(l)),s=i?ho(l):po(l)}u&&(e[n+1]=i?fo(o):mo(o))}function us(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&tt(e,t)>=0}var ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cs(e){return e.substring(ls.key,ls.keyEnd)}function hs(e,t){var n=ls.textEnd;return n===t?-1:(t=ls.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,ls.key=t,n),fs(e,t,n))}function fs(e,t,n){for(;t=0;n=hs(t,n))Je(e,cs(t),!0)}function ms(e,t,n,i){var r=un(),o=ln(),a=bn(2);o.firstUpdatePass&&ys(o,e,a,i),t!==so&&Pa(r,a,t)&&ks(o,o.data[Mn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(Yn(e)))),e}(t,n),i,a)}function gs(e,t){return t>=e.expandoStartIndex}function ys(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Mn()],a=gs(e,n);Ss(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=wn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=bs(n=_s(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=_s(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==po(i))return e[ho(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[ho(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=bs(s=_s(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=ho(e[s+1]);e[i+1]=co(f,s),0!==f&&(e[f+1]=vo(e[f+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=co(s,0),0!==s&&(e[s+1]=vo(e[s+1],i)),s=i;else e[i+1]=co(u,0),0===s?s=i:e[u+1]=vo(e[u+1],i),u=i;c&&(e[i+1]=fo(e[i+1])),ss(e,l,i,!0),ss(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&tt(o,t)>=0&&(n[i+1]=mo(n[i+1]))}(t,l,e,i,o),a=co(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function _s(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===so&&(f=h?as:void 0);var d=h?et(f,i):c===i?f:void 0;if(l&&!Cs(d)&&(d=et(u,i)),Cs(d)&&(s=d,a))return s;var p=e[r+1];r=a?ho(p):po(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=et(v,i))}return s}function Cs(e){return void 0!==e}function Ss(e,t){return 0!=(e.flags&(t?16:32))}function xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=un(),i=ln(),r=e+20,o=i.firstCreatePass?_o(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Wt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Hr(i,n,a,o),dn(o,!1)}function Es(e){return Ts("",e,""),Es}function Ts(e,t,n){var i=un(),r=La(i,e,t,n);return r!==so&&function(e,t,n){var i=Kt(t,e);!function(e,t,n){Wt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,Mn(),r),Ts}function As(e,t,n){var i=un();return Pa(i,_n(),t)&&Do(ln(),Fn(),i,e,t,i[11],n,!0),As}function Os(e,t,n){var i=un();if(Pa(i,_n(),t)){var r=ln(),o=Fn();Do(r,o,i,e,t,ea(wn(r.data),o,i),n,!0)}return Os}var Is=void 0,Rs=["en",[["a","p"],["AM","PM"],Is],[["AM","PM"],Is,Is],[["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"]],Is,[["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"]],Is,[["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}",Is,"{1} 'at' {0}",Is],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ds={};function Ps(e){return e in Ds||(Ds[e]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[e]),Ds[e]}var Ms=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Ls(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Fs(e,t,n,i,r){if(e=We(e),Array.isArray(e))for(var o=0;o>20;if(ya(e)||!e.multi){var p=new ji(l,r,Va),v=js(u,t,r?h:h+d,f);-1===v?(tr(Xi(c,s),a,u),Ns(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=js(u,t,h+d,f),g=js(u,t,h,h+d),y=m>=0&&n[m],_=g>=0&&n[g];if(r&&!_||!r&&!y){tr(Xi(c,s),a,u);var b=function(e,t,n,i,r){var o=new ji(e,n,Va);return o.multi=[],o.index=t,o.componentProviders=0,Vs(o,r,i&&!n),o}(r?zs:Bs,n.length,r,i,l);!r&&_&&(n[g].providerFactory=b),Ns(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else Ns(a,e,m>-1?m:g,Vs(n[r?g:m],l,!r&&i));!r&&i&&_&&n[g].componentProviders++}}}function Ns(e,t,n,i){var r=ya(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Vs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function js(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ln();if(i.firstCreatePass){var r=qt(e);Fs(n,i.data,i.blueprint,r,!0),Fs(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var qs=function e(){v(this,e)},Ws=function(){function e(){v(this,e)}return g(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(we(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ys=function(){var e=function e(){v(this,e)};return e.NULL=new Ws,e}();function Gs(){}function Ks(e,t){return new Qs(Zt(e,t))}var Zs=function(){return Ks(hn(),un())},Qs=function(){var e=function e(t){v(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Zs,e}(),Xs=function e(){v(this,e)},$s=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return Js()},e}(),Js=function(){var e=un(),t=$t(hn().index,e);return function(e){return e[11]}(jt(t)?t:e)},eu=function(){var e=function e(){v(this,e)};return e.\u0275prov=Ee({token:e,providedIn:"root",factory:function(){return null}}),e}(),tu=function e(t){v(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},nu=new tu("11.0.2"),iu=function(){function e(){v(this,e)}return g(e,[{key:"supports",value:function(e){return Ia(e)}},{key:"create",value:function(e){return new ou(e)}}]),e}(),ru=function(e,t){return t},ou=function(){function e(t){v(this,e),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||ru}return g(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(Gt(a)),Bt(a))for(var s=10;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Pr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Io(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ko(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Zo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){gn(!0);try{Zo(e,t,n)}finally{gn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Yr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return vu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),gu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._view=e,i}return g(n,[{key:"detectChanges",value:function(){Qo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){gn(!0);try{Qo(e)}finally{gn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(mu),yu=bu,_u=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=yu,e.__ChangeDetectorRef__=!0,e}();function bu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ht(e)){var i=$t(e.index,t);return new mu(i,i)}return 47&e.type?new mu(t[16],t):null}(hn(),un(),e)}var ku=[new cu],wu=new du([new iu]),Cu=new pu(ku),Su=function(){return Tu(hn(),un())},xu=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Su,e}(),Eu=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return g(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=yo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ko(t,n,e),new mu(n)}}]),n}(xu);function Tu(e,t){return 4&e.type?new Eu(t,e,Ks(e,t)):null}var Au=function e(){v(this,e)},Ou=function e(){v(this,e)},Iu=function(){return Lu(hn(),un())},Ru=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=Iu,e}(),Du=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return g(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Pu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(Bt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Ks(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=er(this._hostTNode,this._hostLView);if(Wi(e)){var t=Gi(e,this._hostLView),n=Yi(e);return new fr(t[1].data[n+8],t)}return new fr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Ru);function Pu(e){return e[8]}function Mu(e){return e[8]||(e[8]=[])}function Lu(e,t){var n,i=t[e.index];if(Bt(i))n=i;else{var r;if(8&e.type)r=Gt(i);else{var o=t[11];r=o.createComment("");var a=Zt(e,t);Fr(o,jr(o,a),r,function(e,t){return Wt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Uo(i,t,r,e),Go(t,n)}return new Du(n,e,t)}var Fu={},Nu=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).ngModule=e,i}return g(n,[{key:"resolveComponentFactory",value:function(e){var t=kt(e);return new Bu(t,this.ngModule)}}]),n}(Ys);function Vu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ju=new Le("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return br}}),Bu=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(ao).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return g(n,[{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Fu,r);return o!==Fu||i===Fu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Xs,Yt),u=a.get(eu,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Wt(e))return e.selectRootElement(t,n===it.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):Ir(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:br,clean:$o,playerHandler:null,flags:0},p=Oo(0,null,null,1,0,null,null,null,null,null),v=yo(null,p,d,f,null,null,s,l,u,a);Tn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=_o(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(ia(s,u,!0),null!==e&&(Bi(r,e,u),null!==s.classes&&Zr(r,e,s.classes),null!==s.styles&&Kr(r,e,s.styles)));var l=i.createRenderer(e,t),c=yo(n,Ao(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(tr(Xi(s,n),a,t.type),Fo(a,s),Vo(s,n.length,1)),Go(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Bi(l,h,["ng-version",nu.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i0&&Zr(l,h,_.join(" "))}if(o=Qt(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:ba.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;return e===ba||e===Au||e===ra?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Au),qu=function(e){u(n,e);var t=c(n);function n(e){var r,o,a;return v(this,n),(r=t.call(this)).moduleType=e,null!==wt(e)&&(o=e,a=new Set,function e(t){var n=wt(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(we(t)," vs ").concat(we(t.name)))}(r,Hu.get(r),t),Hu.set(r,t));var o,s=i(wr(n.imports));try{for(s.s();!(o=s.n()).done;){var u=o.value;a.has(u)||(a.add(u),e(u))}}catch(l){s.e(l)}finally{s.f()}}(o)),r}return g(n,[{key:"create",value:function(e){return new Uu(this.moduleType,e)}}]),n}(Ou);function Wu(e,t,n){var i=yn()+e,r=un();return r[i]===so?Da(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Yu(e,t){var n=e[t];return n===so?void 0:n}function Gu(e,t,n,i,r,o){var a=t+n;return Pa(e,a,r)?Da(e,a+1,o?i.call(o,r):i(r)):Yu(e,a+1)}var Ku=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,n),(e=t.call(this)).__isAsync=i,e}return g(n,[{key:"emit",value:function(e){s(p(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(a=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var u=s(p(n.prototype),"subscribe",this).call(this,r,o,a);return e instanceof x&&e.add(u),u}}]),n}(j);function Zu(){return this._results[Aa()]()}var Qu=function(){function e(){v(this,e),this.dirty=!0,this._results=[],this.changes=new Ku,this.length=0;var t=Aa(),n=e.prototype;n[t]||(n[t]=Zu)}return g(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=Ke(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Xu=function(){function e(t){v(this,e),this.queryList=t,this.matches=null}return g(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),$u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=r},el=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=t}return g(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return g(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(Vl))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Kl=function(){var e=function(){function e(){v(this,e),this._applications=new Map,Zl.addToWindow(this)}return g(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Zl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}(),Zl=new(function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ql=new Le("AllowMultipleToken"),Xl=function e(t,n){v(this,e),this.name=t,this.token=n};function $l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new Le(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Jl();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:aa,useValue:"platform"});!function(e){if(Wl&&!Wl.destroyed&&!Wl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Wl=e.get(ec);var t=e.get(wl,null);t&&t.forEach(function(e){return e()})}(ba.create({providers:a,name:i}))}return function(e){var t=Jl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Jl(){return Wl&&!Wl.destroyed?Wl:null}var ec=function(){var e=function(){function e(t){v(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return g(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Yl:("zone.js"===n?void 0:n)||new Vl({enableLongStackTrace:Xn(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Vl,useValue:o}];return o.run(function(){var t=ba.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(yr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return rc(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})}),function(e,t,i){try{var o=((a=n.injector.get(yl)).runInitializers(),a.donePromise.then(function(){return Ls(n.injector.get(El,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Za(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=tc({},n);return function(e,t,n){var i=new qu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(ic);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(we(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Lt(ba))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e}();function tc(e,t){return Array.isArray(t)?t.reduce(tc,e):Object.assign(Object.assign({},e),t)}var nc,ic=((nc=function(){function e(t,n,i,r,o,a){var s=this;v(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new P(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new P(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Vl.assertNotInAngularZone(),Nl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Vl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=se(u,l.pipe(ve()))}return g(e,[{key:"bootstrap",value:function(e,t){var n,i=this;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.");n=e instanceof qs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Au),o=n.create(ba.NULL,[],t||n.selector,r);o.onDestroy(function(){i._unloadComponent(o)});var a=o.injector.get(Gl,null);return a&&o.injector.get(Kl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Xn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=i(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,o=i(this._views);try{for(o.s();!(r=o.n()).done;)r.value.checkNoChanges()}catch(a){o.e(a)}finally{o.f()}}}catch(s){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(s)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;rc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),rc(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||nc)(Lt(Vl),Lt(xl),Lt(ba),Lt(yr),Lt(Ys),Lt(yl))},nc.\u0275prov=Ee({token:nc,factory:nc.\u0275fac}),nc);function rc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oc=function e(){v(this,e)},ac=function e(){v(this,e)},sc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},uc=function(){var t=function(){function t(e,n){v(this,t),this._compiler=e,this._config=n||sc}return g(t,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(t){var n=this,i=e(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),l("zn8P")(r).then(function(e){return e[o]}).then(function(e){return lc(e,r,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(t){var n=e(t.split("#"),2),i=n[0],r=n[1],o="NgFactory";return void 0===r&&(r="default",o=""),l("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return lc(e,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Lt(Ll),Lt(ac,8))},t.\u0275prov=Ee({token:t,factory:t.\u0275fac}),t}();function lc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var cc=$l(null,"core",[{provide:Cl,useValue:"unknown"},{provide:ec,deps:[ba]},{provide:Kl,deps:[]},{provide:xl,deps:[]}]),hc=[{provide:ic,useClass:ic,deps:[Vl,xl,ba,yr,Ys,yl]},{provide:ju,deps:[Vl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:yl,useClass:yl,deps:[[new _e,gl]]},{provide:Ll,useClass:Ll,deps:[]},bl,{provide:du,useFactory:function(){return wu},deps:[]},{provide:pu,useFactory:function(){return Cu},deps:[]},{provide:El,useFactory:function(e){return Ls(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ye(El),new _e,new ke]]},{provide:Tl,useValue:"USD"}],fc=function(){var e=function e(t){v(this,e)};return e.\u0275mod=yt({type:e}),e.\u0275inj=Te({factory:function(t){return new(t||e)(Lt(ic))},providers:hc}),e}(),dc=null;function pc(){return dc}var vc,mc=new Le("DocumentToken"),gc=((vc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vc)},vc.\u0275prov=Ee({factory:yc,token:vc,providedIn:"platform"}),vc);function yc(){return Lt(kc)}var _c,bc=new Le("Location Initialized"),kc=((_c=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i._init(),i}return g(n,[{key:"_init",value:function(){this.location=pc().getLocation(),this._history=pc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return pc().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){pc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){wc()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){wc()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(gc)).\u0275fac=function(e){return new(e||_c)(Lt(mc))},_c.\u0275prov=Ee({factory:Cc,token:_c,providedIn:"platform"}),_c);function wc(){return!!window.history.pushState}function Cc(){return new kc(Lt(mc))}function Sc(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function xc(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ec(e){return e&&"?"!==e[0]?"?"+e:e}var Tc,Ac=((Tc=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Tc)},Tc.\u0275prov=Ee({factory:Oc,token:Tc,providedIn:"root"}),Tc);function Oc(e){var t=Lt(mc).location;return new Mc(Lt(gc),t&&t.origin||"")}var Ic,Rc,Dc,Pc=new Le("appBaseHref"),Mc=((Dc=function(e){u(n,e);var t=c(n);function n(e,i){var r;if(v(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,h(r)}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Sc(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Ec(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Dc)(Lt(gc),Lt(Pc,8))},Dc.\u0275prov=Ee({token:Dc,factory:Dc.\u0275fac}),Dc),Lc=((Rc=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return g(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Sc(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ac)).\u0275fac=function(e){return new(e||Rc)(Lt(gc),Lt(Pc,8))},Rc.\u0275prov=Ee({token:Rc,factory:Rc.\u0275fac}),Rc),Fc=((Ic=function(){function e(t,n){var i=this;v(this,e),this._subject=new Ku,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=xc(Vc(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return g(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Ec(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Vc(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ec(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ic)(Lt(Ac),Lt(gc))},Ic.normalizeQueryParams=Ec,Ic.joinWithSlash=Sc,Ic.stripTrailingSlash=xc,Ic.\u0275prov=Ee({factory:Nc,token:Ic,providedIn:"root"}),Ic);function Nc(){return new Fc(Lt(Ac),Lt(gc))}function Vc(e){return e.replace(/\/index.html$/,"")}var jc,Bc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),zc=function e(){v(this,e)},Hc=((jc=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).locale=e,i}return g(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ps(t);if(n)return n;var i=t.split("-")[0];if(n=Ps(i))return n;if("en"===i)return Rs;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ms.PluralCase]}(t||this.locale)(e)){case Bc.Zero:return"zero";case Bc.One:return"one";case Bc.Two:return"two";case Bc.Few:return"few";case Bc.Many:return"many";default:return"other"}}}]),n}(zc)).\u0275fac=function(e){return new(e||jc)(Lt(El))},jc.\u0275prov=Ee({token:jc,factory:jc.\u0275fac}),jc);function Uc(t,n){n=encodeURIComponent(n);var r,o=i(t.split(";"));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.indexOf("="),u=e(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),l=u[0],c=u[1];if(l.trim()===n)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var qc,Wc,Yc,Gc=((qc=function(){function e(t,n,i,r){v(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+we(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ia(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||qc)(Va(du),Va(pu),Va(Qs),Va($s))},qc.\u0275dir=bt({type:qc,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),qc),Kc=function(){function e(t,n,i,r){v(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return g(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Zc=((Wc=function(){function e(t,n,i){v(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return g(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Kc(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new Qc(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new Qc(e,s);n.push(u)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Et.Default,t=bu(!0);if(null!=t||e&Et.Optional)return t;Ei("ChangeDetectorRef")}())},oh.\u0275pipe={type:(rh={name:"async",type:oh,pure:!1}).type,name:rh.name,factory:null,pure:!1!==rh.pure,onDestroy:rh.type.prototype.ngOnDestroy||null},oh),ph=((ih=function e(){v(this,e)}).\u0275mod=yt({type:ih}),ih.\u0275inj=Te({factory:function(e){return new(e||ih)},providers:[{provide:zc,useClass:Hc}]}),ih);function vh(e){return"browser"===e}var mh,gh=((mh=function e(){v(this,e)}).\u0275prov=Ee({token:mh,providedIn:"root",factory:function(){return new yh(Lt(mc),window,Lt(yr))}}),mh),yh=function(){function e(t,n,i){v(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return g(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=_h(this.window.history)||_h(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function _h(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var bh,kh,wh,Ch,Sh=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=xh||(xh=document.querySelector("base"))?xh.getAttribute("href"):null;return null==n?null:(t=n,bh||(bh=document.createElement("a")),bh.setAttribute("href",t),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname)}},{key:"resetBaseElement",value:function(){xh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Uc(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,dc||(dc=e)}}]),n}(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.call(this)}return g(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){v(this,e)}}())),xh=null,Eh=new Le("TRANSITION_ID"),Th=[{provide:gl,useFactory:function(e,t,n){return function(){n.get(yl).donePromise.then(function(){var n=pc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Eh,mc,ba],multi:!0}],Ah=function(){function e(){v(this,e)}return g(e,[{key:"addToWindow",value:function(e){He.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},He.getAllAngularTestabilities=function(){return e.getAllTestabilities()},He.getAllAngularRootElements=function(){return e.getAllRootElements()},He.frameworkStabilizers||(He.frameworkStabilizers=[]),He.frameworkStabilizers.push(function(e){var t=He.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?pc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Zl=t}}]),e}(),Oh=new Le("EventManagerPlugins"),Ih=((kh=function(){function e(t,n){var i=this;v(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return g(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Xh.hasOwnProperty(t)&&(t=Xh[t]))}return Qh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Zh.forEach(function(i){i!=n&&(0,$h[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Rh)).\u0275fac=function(e){return new(e||Hh)(Lt(mc))},Hh.\u0275prov=Ee({token:Hh,factory:Hh.\u0275fac}),Hh),ef=((zh=function e(){v(this,e)}).\u0275fac=function(e){return new(e||zh)},zh.\u0275prov=Ee({factory:function(){return Lt(tf)},token:zh,providedIn:"root"}),zh),tf=((Bh=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this))._doc=e,i}return g(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case bi.NONE:return t;case bi.HTML:return Gn(t,"HTML")?Yn(t):function(e,t){var n=null;try{oi=oi||function(e){return function(){try{return!!(new window.DOMParser).parseFromString(jn(""),"text/html")}catch(e){return!1}}()?new $n:new Jn(e)}(e);var i=t?String(t):"";n=oi.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=oi.getInertBodyElement(i)}while(i!==o);var a=new vi,s=a.sanitizeChildren(_i(n)||n);return Xn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=_i(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t));case bi.STYLE:return Gn(t,"Style")?Yn(t):t;case bi.SCRIPT:if(Gn(t,"Script"))return Yn(t);throw new Error("unsafe value used in a script context");case bi.URL:return Kn(t),Gn(t,"URL")?Yn(t):ni(String(t));case bi.RESOURCE_URL:if(Gn(t,"ResourceURL"))return Yn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new zn(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Hn(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Un(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new qn(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Wn(e)}}]),n}(ef)).\u0275fac=function(e){return new(e||Bh)(Lt(mc))},Bh.\u0275prov=Ee({factory:function(){return e=Lt(ra),new tf(e.get(mc));var e},token:Bh,providedIn:"root"}),Bh),nf=$l(cc,"browser",[{provide:Cl,useValue:"browser"},{provide:wl,useValue:function(){Sh.makeCurrent(),Ah.init()},multi:!0},{provide:mc,useFactory:function(){return function(e){Vt=e}(document),document},deps:[]}]),rf=[[],{provide:aa,useValue:"root"},{provide:yr,useFactory:function(){return new yr},deps:[]},{provide:Oh,useClass:Kh,multi:!0,deps:[mc,Vl,Cl]},{provide:Oh,useClass:Jh,multi:!0,deps:[mc]},[],{provide:qh,useClass:qh,deps:[Ih,Ph,_l]},{provide:Xs,useExisting:qh},{provide:Dh,useExisting:Ph},{provide:Ph,useClass:Ph,deps:[mc]},{provide:Gl,useClass:Gl,deps:[Vl]},{provide:Ih,useClass:Ih,deps:[Oh,Vl]},[]],of=((Uh=function(){function e(t){if(v(this,e),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.")}return g(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_l,useValue:t.appId},{provide:Eh,useExisting:_l},Th]}}}]),e}()).\u0275mod=yt({type:Uh}),Uh.\u0275inj=Te({factory:function(e){return new(e||Uh)(Lt(Uh,12))},providers:rf,imports:[ph,fc]}),Uh);function af(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Tf;return function(t){return t.lift(new xf(e))}}var xf=function(){function e(t){v(this,e),this.errorFactory=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ef(e,this.errorFactory))}}]),e}(),Ef=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return g(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(A);function Tf(){return new ff}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Of(e))}}var Of=function(){function e(t){v(this,e),this.defaultValue=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new If(e,this.defaultValue))}}]),e}(),If=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return g(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(A);function Rf(e,t){return"function"==typeof t?function(n){return n.pipe(Rf(function(n,i){return ee(e(n,i)).pipe(Q(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Df(e))}}var Df=function(){function e(t){v(this,e),this.project=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Pf(e,this.project))}}]),e}(),Pf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return g(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new H(this,t,n),o=this.destination;o.add(r),this.innerSubscription=K(this,e,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||s(p(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&s(p(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}}]),n}(Z);function Mf(e){return function(t){return 0===e?pf():t.lift(new Lf(e))}}var Lf=function(){function e(t){if(v(this,e),this.total=t,this.total<0)throw new bf}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Ff(e,this.total))}}]),e}(),Ff=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(A);function Nf(){return mf()(af.apply(void 0,arguments))}function Vf(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];v(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Bf(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Bf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return g(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(A);function zf(e){return function(t){var n=new Hf(e),i=t.lift(n);return n.caught=i}}var Hf=function(){function e(t){v(this,e),this.selector=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Uf(e,this.selector,this.caught))}}]),e}(),Uf=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return g(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void s(p(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new H(this,void 0,void 0);this.add(i);var r=K(this,t,void 0,void 0,i);r!==i&&this.add(r)}}}]),n}(Z);function qf(e,t){return te(e,t,1)}function Wf(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,Mf(1),n?Af(t):Sf(function(){return new ff}))}}function Yf(e,t,n){return function(i){return i.lift(new Gf(e,t,n))}}var Gf=function(){function e(t,n,i){v(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Kf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Kf=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e))._tapNext=R,a._tapError=R,a._tapComplete=R,a._tapError=r||R,a._tapComplete=o||R,d(i)?(a._context=f(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||R,a._tapError=i.error||R,a._tapComplete=i.complete||R),a}return g(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(A);function Zf(e){return function(t){return t.lift(new Qf(e))}}var Qf=function(){function e(t){v(this,e),this.callback=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new Xf(e,this.callback))}}]),e}(),Xf=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).add(new x(i)),r}return n}(A),$f=function e(t,n){v(this,e),this.id=t,this.url=n},Jf=function(e){u(n,e);var t=c(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return g(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),ed=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return g(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}($f),td=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).reason=r,o}return g(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}($f),nd=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e,i)).error=r,o}return g(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}($f),id=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),rd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),od=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return g(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}($f),ad=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),sd=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return g(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}($f),ud=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ld=function(){function e(t){v(this,e),this.route=t}return g(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),cd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),hd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),dd=function(){function e(t){v(this,e),this.snapshot=t}return g(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),pd=function(){function e(t,n,i){v(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return g(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),vd=function(){function e(t){v(this,e),this.params=t||{}}return g(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function md(e){return new vd(e)}function gd(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yd(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Cd(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sd(e){return Qa(e)?e:Za(e)?ee(Promise.resolve(e)):af(e)}function xd(e,t,n){return n?function(e,t){return _d(e,t)}(e.queryParams,t.queryParams)&&Ed(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return bd(e[n],t[n])})}(e.queryParams,t.queryParams)&&Td(e.root,t.root)}function Ed(e,t){if(!Dd(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Ed(e.children[n],t.children[n]))return!1}return!0}function Td(e,t){return Ad(e,t,t.segments)}function Ad(e,t,n){if(e.segments.length>n.length)return!!Dd(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Dd(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!Td(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!Dd(e.segments,r)&&!!e.children.primary&&Ad(e.children.primary,t,o)}var Od=function(){function e(t,n,i){v(this,e),this.root=t,this.queryParams=n,this.fragment=i}return g(e,[{key:"toString",value:function(){return Fd.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),Id=function(){function e(t,n){var i=this;v(this,e),this.segments=t,this.children=n,this.parent=null,Cd(n,function(e,t){return e.parent=i})}return g(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Nd(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Rd=function(){function e(t,n){v(this,e),this.path=t,this.parameters=n}return g(e,[{key:"toString",value:function(){return qd(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}}]),e}();function Dd(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Pd(e,t){var n=[];return Cd(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Cd(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}var Md=function e(){v(this,e)},Ld=function(){function e(){v(this,e)}return g(e,[{key:"parse",value:function(e){var t=new Zd(e);return new Od(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Vd(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Bd(e),"=").concat(Bd(t))}).join("&"):"".concat(Bd(e),"=").concat(Bd(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Fd=new Ld;function Nd(e){return e.segments.map(function(e){return qd(e)}).join("/")}function Vd(e,t){if(!e.hasChildren())return Nd(e);if(t){var n=e.children.primary?Vd(e.children.primary,!1):"",i=[];return Cd(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Vd(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=Pd(e,function(t,n){return"primary"===n?[Vd(e.children.primary,!1)]:["".concat(n,":").concat(Vd(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Nd(e),"/").concat(r[0]):"".concat(Nd(e),"/(").concat(r.join("//"),")")}function jd(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bd(e){return jd(e).replace(/%3B/gi,";")}function zd(e){return jd(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hd(e){return decodeURIComponent(e)}function Ud(e){return Hd(e.replace(/\+/g,"%20"))}function qd(e){return"".concat(zd(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(zd(e),"=").concat(zd(t[e]))}).join("")));var t}var Wd=/^[^\/()?;=#]+/;function Yd(e){var t=e.match(Wd);return t?t[0]:""}var Gd=/^[^=?&#]+/,Kd=/^[^?&#]+/,Zd=function(){function e(t){v(this,e),this.url=t,this.remaining=t}return g(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Id([],{}):new Id([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Id(e,t)),n}},{key:"parseSegment",value:function(){var e=Yd(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Rd(Hd(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Yd(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Yd(this.remaining);i&&(n=i,this.capture(n))}e[Hd(t)]=Hd(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Gd);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Kd);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Ud(t),o=Ud(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Yd(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Id([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Qd=function(){function e(t){v(this,e),this._root=t}return g(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xd(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xd(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$d(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $d(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function Xd(e,t){if(e===t.value)return t;var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=Xd(e,n.value);if(o)return o}}catch(a){r.e(a)}finally{r.f()}return null}function $d(e,t){if(e===t.value)return[t];var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=$d(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){r.e(a)}finally{r.f()}return[]}var Jd=function(){function e(t,n){v(this,e),this.value=t,this.children=n}return g(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ep(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var tp=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).snapshot=i,sp(f(r),e),r}return g(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Qd);function np(e,t){var n=function(e,t){var n=new op([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ap("",new Jd(n,[]))}(e,t),i=new sf([new Rd("",{})]),r=new sf({}),o=new sf({}),a=new sf({}),s=new sf(""),u=new ip(i,r,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new tp(new Jd(u,[]),n)}var ip=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return g(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q(function(e){return md(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(function(e){return md(e)}))),this._queryParamMap}}]),e}();function rp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var op=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return g(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=md(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}}]),e}(),ap=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,i)).url=e,sp(f(r),i),r}return g(n,[{key:"toString",value:function(){return up(this._root)}}]),n}(Qd);function sp(e,t){t.value._routerState=e,t.children.forEach(function(t){return sp(e,t)})}function up(e){var t=e.children.length>0?" { ".concat(e.children.map(up).join(", ")," } "):"";return"".concat(e.value).concat(t)}function lp(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,_d(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),_d(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&dp(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(pp);if(r&&r!==wd(i))throw new Error("{outlets:{}} has to be the last command")}return g(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yp=function e(t,n,i){v(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function _p(e,t,n){if(e||(e=new Id([],{})),0===e.segments.length&&e.hasChildren())return bp(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(pp(s))break;var u=""+s,l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sp(u,l,a))return o;i+=2}else{if(!Sp(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex=2&&(n=!0),function(i){return i.lift(new jf(e,t,n))}}(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==Ip)return e;if(i===Ip&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||Op(i))return i}return e},e)},Ip),gf(function(e){return e!==Ip}),Q(function(e){return Op(e)?e:!0===e}),Mf(1))})}var Dp,Pp=((Dp=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Dp)},Dp.\u0275cmp=pt({type:Dp,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&qa(0,"router-outlet")},directives:function(){return[Pv]},encapsulation:2}),Dp);function Mp(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new Id([],{primary:e}):e;return new Od(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Q(function(e){return new Id([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return af({});var o=[],a=[],s={};return Cd(n,function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(e,t,l,u)).pipe(Q(function(e){return s[r]=e}));"primary"===r?o.push(c):a.push(c)}),af.apply(null,o.concat(a)).pipe(mf(),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?gf(function(t,n){return e(t,n,i)}):re,kf(1),n?Af(t):Sf(function(){return new ff}))}}(),Q(function(){return s}))}(n.children)}},{key:"expandSegment",value:function(t,n,i,r,o,a){var s=this,u=function(e){return e.reduce(function(e,t){var n=Vp(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(i);u.has(o)||u.set(o,[]);return ee(Array.from(u.entries()).map(function(i){var u=e(i,2),l=u[0],c=function(e){return ee(e).pipe(qf(function(i){return s.expandSegmentAgainstRoute(t,n,e,i,r,o,a).pipe(zf(function(e){if(e instanceof jp)return af(null);throw e}))}),Wf(function(e){return null!==e}),zf(function(e){if(e instanceof ff||"EmptyError"===e.name){if(s.noLeftoversInUrl(n,r,o))return af(new Id([],{}));throw new jp(n)}throw e}))}(u[1]);return l===o?c:c.pipe(Q(function(){return null}),zf(function(){return af(null)}))})).pipe(function(e){return e.lift(new cf(void 0))},Wf(),Q(function(e){return e.find(function(e){return null!==e})}))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Vp(i)!==o&&""!==i.path?zp(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):zp(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Hp(o):this.lineralizeSegments(n,o).pipe(te(function(n){var o=new Id(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Wp(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return zp(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Hp(f):this.lineralizeSegments(i,f).pipe(te(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Q(function(e){return n._loadedConfig=e,new Id(r,{})})):af(new Id(r,{}));var a=Wp(t,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return zp(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(te(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)&&"primary"!==Vp(n)})}(e,n,r)?{segmentGroup:Yp(new Id(t,function(e,t){var n={};n.primary=t;var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;""===a.path&&"primary"!==Vp(a)&&(n[Vp(a)]=new Id([],{}))}}catch(s){o.e(s)}finally{o.f()}return n}(r,new Id(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(function(n){return Gp(e,t,n)})}(e,n,r)?{segmentGroup:Yp(new Id(e.segments,function(e,t,n,r){var o,a={},s=i(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;Gp(e,t,u)&&!r[Vp(u)]&&(a[Vp(u)]=new Id([],{}))}}catch(l){s.e(l)}finally{s.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,c,r),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(Q(function(e){return new Id(u,e)})):0===r.length&&0===l.length?af(new Id(u,{})):o.expandSegment(n,s,r,l,"primary",!0).pipe(Q(function(e){return new Id(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?af(new Tp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?af(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(te(function(n){return n?i.configLoader.load(e.injector,t).pipe(Q(function(e){return t._loadedConfig=e,e})):function(e){return new P(function(t){return t.error(gd("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):af(new Tp([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?af(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&Ap(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!Ap(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return Sd(r)})).pipe(Rp(),Yf(function(e){if(Op(e)){var t=gd('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Q(function(e){return!0===e})):af(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return af(n);if(i.numberOfChildren>1||!i.children.primary)return Up(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Od(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Cd(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return Cd(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Id(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=i(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(s){o.e(s)}finally{o.f()}return e}}]),t}();function Wp(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||yd)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Yp(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Id(e.segments.concat(t.segments),t.children)}return e}function Gp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Kp=function e(t){v(this,e),this.path=t,this.route=this.path[this.path.length-1]},Zp=function e(t,n){v(this,e),this.component=t,this.route=n};function Qp(e,t,n){var i=e._root;return $p(i,t?t._root:null,n,[i.value])}function Xp(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function $p(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=ep(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Dd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dd(e.url,t.url)||!_d(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cp(e,t)||!_d(e.queryParams,t.queryParams);case"paramsChange":default:return!cp(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Kp(i)):(o.data=a.data,o._resolvedData=a._resolvedData),$p(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Zp(s.outlet.component,a))}else a&&Jp(t,s,r),r.canActivateChecks.push(new Kp(i)),$p(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),Cd(o,function(e,t){return Jp(e,n.getContext(t),r)}),r}function Jp(e,t,n){var i=ep(e),r=e.value;Cd(i,function(e,i){Jp(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Zp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ev(e,t){return null!==e&&t&&t(new fd(e)),af(!0)}function tv(e,t){return null!==e&&t&&t(new cd(e)),af(!0)}function nv(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?af(i.map(function(i){return vf(function(){var r,o=Xp(i,t,n);if(function(e){return e&&Ap(e.canActivate)}(o))r=Sd(o.canActivate(t,e));else{if(!Ap(o))throw new Error("Invalid CanActivate guard");r=Sd(o(t,e))}return r.pipe(Wf())})})).pipe(Rp()):af(!0)}function iv(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return vf(function(){return af(t.guards.map(function(r){var o,a=Xp(r,t.node,n);if(function(e){return e&&Ap(e.canActivateChild)}(a))o=Sd(a.canActivateChild(i,e));else{if(!Ap(a))throw new Error("Invalid CanActivateChild guard");o=Sd(a(i,e))}return o.pipe(Wf())})).pipe(Rp())})});return af(r).pipe(Rp())}var rv=function e(){v(this,e)},ov=function(){function e(t,n,i,r,o,a){v(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return g(e,[{key:"recognize",value:function(){try{var e=uv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new op([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Jd(n,t),r=new ap(this.url,i);return this.inheritParamsAndData(r._root),af(r)}catch(o){return new P(function(e){return e.error(o)})}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=rp(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,i=this,r=Pd(t,function(t,n){return i.processSegmentGroup(e,t,n)});return n={},r.forEach(function(e){var t=n[e.value.outlet];if(t){var i=t.url.map(function(e){return e.toString()}).join("/"),r=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[e.value.outlet]=e.value}),r.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),r}},{key:"processSegment",value:function(e,t,n,r){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(u){if(!(u instanceof rv))throw u}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new rv}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new rv;if((e.outlet||"primary")!==i)throw new rv;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?wd(n).parameters:{};r=new op(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+n.length,fv(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new rv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||yd)(n,e,t);if(!i)throw new rv;var r={};Cd(i.posParams,function(e,t){r[t]=e.path});var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),r=new op(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hv(e),i,e.component,e,av(t),sv(t)+o.length,fv(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=uv(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Jd(r,d)]}if(0===l.length&&0===f.length)return[new Jd(r,[])];var p=this.processSegment(l,h,f,"primary");return[new Jd(r,p)]}}]),e}();function av(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function sv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function uv(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return lv(e,t,n)&&"primary"!==cv(n)})}(e,n,r)){var a=new Id(t,function(e,t,n,r){var o={};o.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==cv(u)){var l=new Id([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[cv(u)]=l}}}catch(c){s.e(c)}finally{s.f()}return o}(e,t,r,new Id(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return lv(e,t,n)})}(e,n,r)){var s=new Id(e.segments,function(e,t,n,r,o,a){var s,u={},l=i(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(lv(e,n,c)&&!o[cv(c)]){var h=new Id([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===a?e.segments.length:t.length,u[cv(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),u)}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var u=new Id(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function lv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function cv(e){return e.outlet||"primary"}function hv(e){return e.data||{}}function fv(e){return e.resolve||{}}function dv(e){return function(t){return t.pipe(Rf(function(t){var n=e(t);return n?ee(n).pipe(Q(function(){return t})):ee([t])}))}}var pv=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(function(){function e(){v(this,e)}return g(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vv=new Le("ROUTES"),mv=function(){function e(t,n,i,r){v(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return g(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Q(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Tp(kd(r.injector.get(vv)).map(Np),r)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ee(this.loader.load(e)):Sd(e()).pipe(te(function(e){return e instanceof Ou?af(e):ee(t.compiler.compileModuleAsync(e))}))}}]),e}(),gv=function e(){v(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new yv,this.attachRef=null},yv=function(){function e(){v(this,e),this.contexts=new Map}return g(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new gv,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),_v=function(){function e(){v(this,e)}return g(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function bv(e){throw e}function kv(e,t,n){return t.parse("/")}function wv(e,t){return af(null)}var Cv,Sv,xv,Ev=((xv=function(){function e(t,n,i,r,o,a,s,u){var l=this;v(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=bv,this.malformedUriErrorHandler=kv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wv,afterPreactivation:wv},this.urlHandlingStrategy=new _v,this.routeReuseStrategy=new pv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Au),this.console=o.get(xl);var c=o.get(Vl);this.isNgZoneEnabled=c instanceof Vl,this.resetConfig(u),this.currentUrlTree=new Od(new Id([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mv(a,s,function(e){return l.triggerEvent(new ud(e))},function(e){return l.triggerEvent(new ld(e))}),this.routerState=np(this.currentUrlTree,this.rootComponentType),this.transitions=new sf({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return g(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(gf(function(e){return 0!==e.id}),Q(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Rf(function(e){var i,r,o,a=!1,s=!1;return af(e).pipe(Yf(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Rf(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return af(e).pipe(Rf(function(e){var i=t.transitions.getValue();return n.next(new Jf(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?df:[e]}),Rf(function(e){return Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Rf(function(e){return function(e,t,n,i,r){return new qp(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Q(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),Yf(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return function(i){return i.pipe(te(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ov(e,t,n,i,r,o).recognize()}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(Q(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Yf(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),Yf(function(e){var i=new id(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Jf(u,t.serializeUrl(l),c,h);n.next(d);var p=np(l,t.rootComponentType).snapshot;return af(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),df}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Yf(function(e){var n=new rd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Q(function(e){return Object.assign(Object.assign({},e),{guards:Qp(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(te(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?af(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ee(e).pipe(te(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?af(o.map(function(o){var a,s=Xp(o,t,r);if(function(e){return e&&Ap(e.canDeactivate)}(s))a=Sd(s.canDeactivate(e,t,n,i));else{if(!Ap(s))throw new Error("Invalid CanDeactivate guard");a=Sd(s(e,t,n,i))}return a.pipe(Wf())})).pipe(Rp()):af(!0)}(e.component,e.route,n,t,i)}),Wf(function(e){return!0!==e},!0))}(s,i,r,e).pipe(te(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ee(t).pipe(qf(function(t){return ee([tv(t.route.parent,i),ev(t.route,i),iv(e,t.path,n),nv(e,t.route,n)]).pipe(mf(),Wf(function(e){return!0!==e},!0))}),Wf(function(e){return!0!==e},!0))}(i,a,e,t):af(n)}),Q(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Yf(function(e){if(Op(e.guardsResult)){var n=gd('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),Yf(function(e){var n=new od(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),gf(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),dv(function(e){if(e.guards.canActivateChecks.length)return af(e).pipe(Yf(function(e){var n=new ad(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Rf(function(e){var i,r,o=!1;return af(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(te(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return af(e);var o=0;return ee(n).pipe(qf(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return af({});var o={};return ee(r).pipe(te(function(r){return function(e,t,n,i){var r=Xp(e,t,i);return Sd(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Yf(function(e){o[r]=e}))}),kf(1),te(function(){return Object.keys(o).length===r.length?af(o):df}))}(e._resolve,e,t,i).pipe(Q(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),rp(e,n).resolve),null}))}(e.route,t,i,r)}),Yf(function(){return o++}),kf(1),te(function(t){return o===n.length?af(e):df}))}))}),Yf({next:function(){return o=!0},complete:function(){if(!o){var i=new td(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Yf(function(e){var n=new sd(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),dv(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Q(function(e){var n=function(e,t,n){var i=hp(e,t._root,n?n._root:void 0);return new tp(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Yf(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Q(function(e){return new xp(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Yf({next:function(){a=!0},complete:function(){a=!0}}),Zf(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new td(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),zf(function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=Op(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new td(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new nd(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(l){e.reject(l)}}var u;return df}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Mp(e),this.config=e.map(Np),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.relativeTo,r=n.queryParams,o=n.fragment,a=n.queryParamsHandling,s=n.preserveFragment,u=i||this.routerState.root,l=s?this.currentUrlTree.fragment:o,c=null;switch(a){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(e,n,i,r,o){if(0===i.length)return vp(n.root,n.root,n,r,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gp(!0,0,e);var n=0,i=!1,r=e.reduce(function(e,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Cd(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(t(e),[{outlets:a}])}if(r.segmentPath)return[].concat(t(e),[r.segmentPath])}return"string"!=typeof r?[].concat(t(e),[r]):0===o?(r.split("/").forEach(function(t,r){0==r&&"."===t||(0==r&&""===t?i=!0:".."===t?n++:""!=t&&e.push(t))}),e):[].concat(t(e),[r])},[]);return new gp(i,n,r)}(i);if(a.toRoot())return vp(n.root,new Id([],{}),n,r,o);var s=function(e,t,n){if(e.isAbsolute)return new yp(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yp(i,i===t.root,0)}var r=dp(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yp(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,n,e),u=s.processChildren?bp(s.segmentGroup,s.index,a.commands):_p(s.segmentGroup,s.index,a.commands);return vp(s.segmentGroup,u,n,r,o)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Op(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};v(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return g(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Jf?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ed&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof pd&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new pd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Rv)(Lt(Ev),Lt(gh),Lt(void 0))},Rv.\u0275prov=Ee({token:Rv,factory:Rv.\u0275fac}),Rv),jv=new Le("ROUTER_CONFIGURATION"),Bv=new Le("ROUTER_FORROOT_GUARD"),zv=[Fc,{provide:Md,useClass:Ld},{provide:Ev,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Ev(null,e,t,n,i,r,o,kd(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var h=pc();c.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return c},deps:[Md,yv,Fc,ba,oc,Ll,vv,jv,[function(){return function e(){v(this,e)}}(),new _e],[function(){return function e(){v(this,e)}}(),new _e]]},yv,{provide:ip,useFactory:function(e){return e.routerState.root},deps:[Ev]},{provide:oc,useClass:uc},Nv,Fv,function(){function e(){v(this,e)}return g(e,[{key:"preload",value:function(e,t){return t().pipe(zf(function(){return af(null)}))}}]),e}(),{provide:jv,useValue:{enableTracing:!1}}];function Hv(){return new Xl("Router",Ev)}var Uv,qv=((Uv=function(){function e(t,n){v(this,e)}return g(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[zv,Kv(t),{provide:Bv,useFactory:Gv,deps:[[Ev,new _e,new ke]]},{provide:jv,useValue:n||{}},{provide:Ac,useFactory:Yv,deps:[gc,[new ye(Pc),new _e],jv]},{provide:Vv,useFactory:Wv,deps:[Ev,gh,jv]},{provide:Lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fv},{provide:Xl,multi:!0,useFactory:Hv},[Qv,{provide:gl,multi:!0,useFactory:Xv,deps:[Qv]},{provide:Jv,useFactory:$v,deps:[Qv]},{provide:Sl,multi:!0,useExisting:Jv}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Kv(t)]}}}]),e}()).\u0275mod=yt({type:Uv}),Uv.\u0275inj=Te({factory:function(e){return new(e||Uv)(Lt(Bv,8),Lt(Ev,8))}}),Uv);function Wv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Vv(e,t,n)}function Yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Lc(e,t):new Mc(e,t)}function Gv(e){return"guarded"}function Kv(e){return[{provide:Fe,multi:!0,useValue:e},{provide:vv,multi:!0,useValue:e}]}var Zv,Qv=((Zv=function(){function e(t){v(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return g(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(bc,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(Ev),r=e.injector.get(jv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?af(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(jv),n=this.injector.get(Nv),i=this.injector.get(Vv),r=this.injector.get(Ev),o=this.injector.get(ic);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||Zv)(Lt(ba))},Zv.\u0275prov=Ee({token:Zv,factory:Zv.\u0275fac}),Zv);function Xv(e){return e.appInitializer.bind(e)}function $v(e){return e.bootstrapListener.bind(e)}var Jv=new Le("Router Initializer"),em=function e(){v(this,e)},tm=function e(){v(this,e)},nm=function(){function e(t){var n=this;v(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return g(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var n=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,n);var r=("a"===e.op?this.headers.get(n):void 0)||[];r.push.apply(r,t(i)),this.headers.set(n,r);break;case"d":var o=e.value;if(o){var a=this.headers.get(n);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),im=function(){function e(){v(this,e)}return g(e,[{key:"encodeKey",value:function(e){return rm(e)}},{key:"encodeValue",value:function(e){return rm(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function rm(e){return encodeURIComponent(e).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,"/")}var om=function(){function t(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,t),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new im,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){var i=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),o=e(-1==r?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,r)),n.decodeValue(t.slice(r+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var t=i.fromObject[e];n.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return g(t,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function am(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function sm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function um(e){return"undefined"!=typeof FormData&&e instanceof FormData}var lm=function(){function e(t,n,i,r){var o;if(v(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new nm),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,i,o,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),cm=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),hm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,e),this.headers=t.headers||new nm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},fm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.ResponseHeader,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),dm=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,n),(e=t.call(this,i)).type=cm.Response,e.body=void 0!==i.body?i.body:null,e}return g(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(hm),pm=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(hm);function vm(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var mm,gm,ym,_m,bm,km,wm,Cm,Sm,xm,Em,Tm,Am,Om,Im,Rm=((mm=function(){function e(t){v(this,e),this.handler=t}return g(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof lm)n=e;else{var o=void 0;o=r.headers instanceof nm?r.headers:new nm(r.headers);var a=void 0;r.params&&(a=r.params instanceof om?r.params:new om({fromObject:r.params})),n=new lm(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=af(n).pipe(qf(function(e){return i.handler.handle(e)}));if(e instanceof lm||"events"===r.observe)return s;var u=s.pipe(gf(function(e){return e instanceof dm}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Q(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Q(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(Q(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new om).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,vm(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,vm(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,vm(n,t))}}]),e}()).\u0275fac=function(e){return new(e||mm)(Lt(em))},mm.\u0275prov=Ee({token:mm,factory:mm.\u0275fac}),mm),Dm=function(){function e(t,n){v(this,e),this.next=t,this.interceptor=n}return g(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Pm=new Le("HTTP_INTERCEPTORS"),Mm=((gm=function(){function e(){v(this,e)}return g(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||gm)},gm.\u0275prov=Ee({token:gm,factory:gm.\u0275fac}),gm),Lm=/^\)\]\}',?\n/,Fm=function e(){v(this,e)},Nm=((_m=function(){function e(){v(this,e)}return g(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||_m)},_m.\u0275prov=Ee({token:_m,factory:_m.\u0275fac}),_m),Vm=((ym=function(){function e(t){v(this,e),this.xhrFactory=t}return g(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new nm(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new fm({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(Lm,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new dm({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new pm({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new pm({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(u()),h=!0);var r={type:cm.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:cm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),e.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:cm.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||ym)(Lt(Fm))},ym.\u0275prov=Ee({token:ym,factory:ym.\u0275fac}),ym),jm=new Le("XSRF_COOKIE_NAME"),Bm=new Le("XSRF_HEADER_NAME"),zm=function e(){v(this,e)},Hm=((Im=function(){function e(t,n,i){v(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return g(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uc(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Im)(Lt(mc),Lt(Cl),Lt(jm))},Im.\u0275prov=Ee({token:Im,factory:Im.\u0275fac}),Im),Um=((Om=function(){function e(t,n){v(this,e),this.tokenService=t,this.headerName=n}return g(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Om)(Lt(zm),Lt(Bm))},Om.\u0275prov=Ee({token:Om,factory:Om.\u0275fac}),Om),qm=((Am=function(){function e(t,n){v(this,e),this.backend=t,this.injector=n,this.chain=null}return g(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Pm,[]);this.chain=t.reduceRight(function(e,t){return new Dm(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Am)(Lt(tm),Lt(ba))},Am.\u0275prov=Ee({token:Am,factory:Am.\u0275fac}),Am),Wm=((Tm=function(){function e(){v(this,e)}return g(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Um,useClass:Mm}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:jm,useValue:t.cookieName}:[],t.headerName?{provide:Bm,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=yt({type:Tm}),Tm.\u0275inj=Te({factory:function(e){return new(e||Tm)},providers:[Um,{provide:Pm,useExisting:Um,multi:!0},{provide:zm,useClass:Hm},{provide:jm,useValue:"XSRF-TOKEN"},{provide:Bm,useValue:"X-XSRF-TOKEN"}]}),Tm),Ym=((Em=function e(){v(this,e)}).\u0275mod=yt({type:Em}),Em.\u0275inj=Te({factory:function(e){return new(e||Em)},providers:[Rm,{provide:em,useClass:qm},Vm,{provide:tm,useExisting:Vm},Nm,{provide:Fm,useExisting:Nm}],imports:[[Wm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Em),Gm=((xm=function(){function e(t){v(this,e),this.http=t}return g(e,[{key:"load",value:function(){var e=this;return this._configData=null,this.http.get("/client/assets/data/config.json").toPromise().then(function(t){null==t.apiBaseUrl&&(t.apiBaseUrl="/"),e._configData=t}).catch(function(e){return Promise.resolve()})}},{key:"configData",get:function(){return this._configData},set:function(e){this._configData=e}}]),e}()).\u0275fac=function(e){return new(e||xm)(Lt(Rm))},xm.\u0275prov=Ee({token:xm,factory:xm.\u0275fac,providedIn:"root"}),xm),Km=((Sm=function(){function e(t,n){v(this,e),this.configService=t,this.platformId=n,this.isActive=!1,vh(this.platformId)&&t.configData&&t.configData.googleAnalyticsId&&(this.googleAnanlyticsId=t.configData.googleAnalyticsId,this.init())}return g(e,[{key:"init",value:function(){this.gtag=window.gtag,this.gtag("config","G-RM2JHGHYEK",{send_page_view:!1}),this.isActive=!0}},{key:"onGlobalError",value:function(e){this.sendException("message: ".concat(e.message," | filenname: ").concat(e.filename," | lineno: ").concat(e.lineno," | colno: ").concat(e.colno))}},{key:"sendPageView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href;if(this.isActive){var n={page_title:e,page_path:t};console.log(this.gtag),this.gtag("config",this.googleAnanlyticsId,n)}}},{key:"sendEvent",value:function(e,t,n,i){this.isActive&&this.gtag("event",e,{event_category:t,event_label:n,value:i})}},{key:"sendException",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isActive&&this.gtag("event","exception",{description:e,fatal:t})}}]),e}()).\u0275fac=function(e){return new(e||Sm)(Lt(Gm),Lt(Cl))},Sm.\u0275prov=Ee({token:Sm,factory:Sm.\u0275fac,providedIn:"root"}),Sm),Zm=((Cm=function(){function e(t){v(this,e),this.gaService=t,this.evCategory="Undefined",this.evAction="click-link"}return g(e,[{key:"onClick",value:function(e){this.evLabel=e.href,this.gaService.sendEvent(this.evAction,this.evCategory,this.evLabel,this.evValue)}}]),e}()).\u0275fac=function(e){return new(e||Cm)(Va(Km))},Cm.\u0275dir=bt({type:Cm,selectors:[["","admeTrackLinkEvent",""]],hostBindings:function(e,t){1&e&&Xa("click",function(e){return t.onClick(e.target)})},inputs:{evCategory:"evCategory",evAction:"evAction",evLabel:"evLabel",evValue:"evValue"}}),Cm),Qm=((wm=function(){function e(){v(this,e)}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wm)},wm.\u0275cmp=pt({type:wm,selectors:[["adme-home"]],decls:11,vars:0,consts:[[1,"container"],[1,"inner-container"],[2,"text-align","justify"],["href","https://github.com/ncats/ncats-adme/","target","_blank","admeTrackLinkEvent","","evLabel","github"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h2"),xs(3," Background "),Ua(),Ha(4,"p",2),xs(5," ADME@NCATS is a resource developed for the scientific community by NCATS to host in silico prediction models for different ADME endpoints. The resource allows prediction of different pharmacokinetic properties of small molecules which is potentially useful for structure optimization in early drug discovery. Users can provide input as a CSV/Text file containing SMILES. Alternatively, the users can sketch a molecule using the editor provided. For each compound, the predictions from the models are provided as output along with the confidence scores. Those users who cannot upload their data are encouraged to "),Ha(6,"a",3),xs(7,"download the self-contained instance of ADME@NCATS"),Ua(),xs(8," that can be run locally. "),Ua(),Ha(9,"p",2),xs(10," A subset of data that were used for developing the models are provided for download. The users are encouraged to use these data for development and validation of future QSAR models. "),Ua(),Ua(),Ua())},directives:[Zm],styles:[""]}),wm),Xm=((km=function(){function e(){v(this,e),this.loadingStateEmitter=new j}return g(e,[{key:"setLoadingState",value:function(e){this.loadingStateEmitter.next(e)}},{key:"isLoading",get:function(){return this.loadingStateEmitter.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||km)},km.\u0275prov=Ee({token:km,factory:km.\u0275fac,providedIn:"root"}),km);try{bm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(cP){bm=!1}var $m,Jm,eg,tg,ng,ig=((eg=function e(t){v(this,e),this._platformId=t,this.isBrowser=this._platformId?vh(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&&!bm)&&"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}).\u0275fac=function(e){return new(e||eg)(Lt(Cl))},eg.\u0275prov=Ee({factory:function(){return new eg(Lt(Cl))},token:eg,providedIn:"root"}),eg),rg=((Jm=function e(){v(this,e)}).\u0275mod=yt({type:Jm}),Jm.\u0275inj=Te({factory:function(e){return new(e||Jm)}}),Jm),og=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ag(){if($m)return $m;if("object"!=typeof document||!document)return $m=new Set(og);var e=document.createElement("input");return $m=new Set(og.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function sg(e){return function(){if(null==tg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return tg=!0}}))}finally{tg=tg||!1}return tg}()?e:!!e.capture}function ug(e){if(function(){if(null==ng){var e="undefined"!=typeof document?document.head:null;ng=!(!e||!e.createShadowRoot&&!e.attachShadow)}return ng}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function lg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){u(n,e);var t=c(n);function n(e,i){return v(this,n),t.call(this)}return g(n,[{key:"schedule",value:function(e){return this}}]),n}(x)),hg=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.SchedulerAction=t,this.now=n}return g(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),fg=function(e){u(n,e);var t=c(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hg.now;return v(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return g(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):s(p(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(hg),dg=new fg(cg);function pg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg;return function(n){return n.lift(new vg(e,t))}}var vg=function(){function e(t,n){v(this,e),this.dueTime=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new mg(e,this.dueTime,this.scheduler))}}]),e}(),mg=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return g(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(A);function gg(e){e.debouncedNext()}function yg(e){return null!=e&&""+e!="false"}function _g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function bg(e){return Array.isArray(e)?e:[e]}function kg(e){return null==e?"":"string"==typeof e?e:e+"px"}function wg(e){return e instanceof Qs?e.nativeElement:e}var Cg,Sg,xg,Eg,Tg=((Eg=function(){function e(){v(this,e)}return g(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||Eg)},Eg.\u0275prov=Ee({factory:function(){return new Eg},token:Eg,providedIn:"root"}),Eg),Ag=((xg=function(){function e(t){v(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return g(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=wg(e);return new P(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new j,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||xg)(Lt(Tg))},xg.\u0275prov=Ee({factory:function(){return new xg(Lt(Tg))},token:xg,providedIn:"root"}),xg),Og=((Sg=function(){function e(t,n,i){v(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Ku,this._disabled=!1,this._currentSubscription=null}return g(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(pg(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=_g(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Sg)(Va(Ag),Va(Qs),Va(Vl))},Sg.\u0275dir=bt({type:Sg,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Sg),Ig=((Cg=function e(){v(this,e)}).\u0275mod=yt({type:Cg}),Cg.\u0275inj=Te({factory:function(e){return new(e||Cg)},providers:[Tg]}),Cg);function Rg(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Dg,Pg,Mg=0,Lg=new Map,Fg=null,Ng=((Dg=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Lg.set(t,{messageElement:t,referenceCount:0})):Lg.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Lg.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Fg&&0===Fg.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return g(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Yf(function(t){return e._pressedLetters.push(t)}),pg(t),gf(function(){return e._pressedLetters.length>0}),Q(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||lg(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Qu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),jg=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Vg),Bg=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._origin="program",e}return g(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){s(p(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Vg),zg=((Pg=function(){function e(t){v(this,e),this._platform=t}return g(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(cP){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Ug(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Ug(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Hg(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Pg)(Lt(ig))},Pg.\u0275prov=Ee({factory:function(){return new Pg(Lt(ig))},token:Pg,providedIn:"root"}),Pg);function Hg(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Ug(e){if(!Hg(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var qg,Wg=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return g(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Mf(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),Yg=((qg=function(){function e(t,n,i){v(this,e),this._checker=t,this._ngZone=n,this._document=i}return g(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Wg(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||qg)(Lt(zg),Lt(Vl),Lt(mc))},qg.\u0275prov=Ee({factory:function(){return new qg(Lt(zg),Lt(Vl),Lt(mc))},token:qg,providedIn:"root"}),qg);"undefined"!=typeof Element&∈var Gg,Kg=new Le("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Zg=new Le("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Qg=((Gg=function(){function t(e,n,i,r){v(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return g(t,[{key:"announce",value:function(t){for(var n,i,r,o=this,a=this._defaultOptions,s=arguments.length,u=new Array(s>1?s-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1],n=wg(e);if(!this._platform.isBrowser||1!==n.nodeType)return af(null);var i=ug(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new j,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=wg(e);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,t,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=ny(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===ny(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,ey),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ey)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,ey),e.addEventListener("mousedown",t._documentMousedownListener,ey),e.addEventListener("touchstart",t._documentTouchstartListener,ey),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ey),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ey),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,ey),i.removeEventListener("mousedown",this._documentMousedownListener,ey),i.removeEventListener("touchstart",this._documentTouchstartListener,ey),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}}]),e}()).\u0275fac=function(e){return new(e||$g)(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},$g.\u0275prov=Ee({factory:function(){return new $g(Lt(Vl),Lt(ig),Lt(mc,8),Lt(Jg,8))},token:$g,providedIn:"root"}),$g);function ny(e){return e.composedPath?e.composedPath()[0]:e.target}var iy,ry,oy,ay,sy,uy,ly,cy,hy=((oy=function(){function e(t,n){v(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Ku}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||oy)(Va(Qs),Va(ty))},oy.\u0275dir=bt({type:oy,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),oy),fy=((ry=function(){function e(t,n){v(this,e),this._platform=t,this._document=n}return g(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||ry)(Lt(ig),Lt(mc))},ry.\u0275prov=Ee({factory:function(){return new ry(Lt(ig),Lt(mc))},token:ry,providedIn:"root"}),ry),dy=((iy=function e(t){v(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=yt({type:iy}),iy.\u0275inj=Te({factory:function(e){return new(e||iy)(Lt(fy))},imports:[[rg,Ig]]}),iy),py=function(){function e(){v(this,e)}return g(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),vy=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(py),my=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return g(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,s(p(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,s(p(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(py),gy=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).element=e instanceof Qs?e.nativeElement:e,i}return n}(py),yy=function(){function e(){v(this,e),this._isDisposed=!1,this.attachDomPortal=null}return g(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof vy?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof my?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof gy?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),_y=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var u,l;return v(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=o,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),s((u=f(l),p(n.prototype)),"setDisposeFn",u).call(u,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=a,l}return g(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){s(p(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(yy),by=((sy=function(e){u(n,e);var t=c(n);function n(e,i,r){var o,a;return v(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Ku,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(f(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),s((o=f(a),p(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return g(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),s(p(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return s(p(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&s(p(n.prototype),"detach",this).call(this),e&&s(p(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(yy)).\u0275fac=function(e){return new(e||sy)(Va(Ys),Va(Ru),Va(mc))},sy.\u0275dir=bt({type:sy,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[wa]}),sy),ky=((ay=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return n}(by)).\u0275fac=function(e){return wy(e||ay)},ay.\u0275dir=bt({type:ay,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[Us([{provide:by,useExisting:ay}]),wa]}),ay),wy=pr(ky),Cy=((uy=function e(){v(this,e)}).\u0275mod=yt({type:uy}),uy.\u0275inj=Te({factory:function(e){return new(e||uy)}}),uy),Sy=new Le("cdk-dir-doc",{providedIn:"root",factory:function(){return Ft(mc)}}),xy=((cy=function(){function e(t){if(v(this,e),this.value="ltr",this.change=new Ku,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return g(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||cy)(Lt(Sy,8))},cy.\u0275prov=Ee({factory:function(){return new cy(Lt(Sy,8))},token:cy,providedIn:"root"}),cy),Ey=((ly=function e(){v(this,e)}).\u0275mod=yt({type:ly}),ly.\u0275inj=Te({factory:function(e){return new(e||ly)}}),ly),Ty=new tu("11.0.1"),Ay=function e(){v(this,e)};function Oy(e,t){return{type:7,name:e,definitions:t,options:{}}}function Iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Ry(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Dy(e){return{type:6,styles:e,offset:null}}function Py(e,t,n){return{type:0,name:e,styles:t,options:n}}function My(e){return{type:5,steps:e}}function Ly(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Fy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Ny(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Vy(e){Promise.resolve(null).then(e)}var jy=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Vy(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),By=function(){function e(t){var n=this;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?Vy(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function zy(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hy(e){switch(e.length){case 0:return new jy;case 1:return e[0];default:return new By(e)}}function Uy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(i.forEach(function(e){var n=e.offset,i=n==u,c=i&&l||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function qy(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Wy(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Wy(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Wy(n,"destroy",e))})}}function Wy(e,t,n){var i=n.totalTime,r=Yy(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Yy(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Gy(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Ky(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Zy=function(e,t){return!1},Qy=function(e,t){return!1},Xy=function(e,t,n){return[]},$y=zy();($y||"undefined"!=typeof Element)&&(Zy=function(e,t){return e.contains(t)},Qy=function(){if($y||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Qy}(),Xy=function(e,n,i){var r=[];if(i)r.push.apply(r,t(e.querySelectorAll(n)));else{var o=e.querySelector(n);o&&r.push(o)}return r});var Jy=null,e_=!1;function t_(e){Jy||(Jy=("undefined"!=typeof document?document.body:null)||{},e_=!!Jy.style&&"WebkitAppearance"in Jy.style);var t=!0;return Jy.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Jy.style)&&e_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Jy.style),t}var n_=Qy,i_=Zy,r_=Xy;function o_(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var a_,s_=((a_=function(){function e(){v(this,e)}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new jy(n,i)}}]),e}()).\u0275fac=function(e){return new(e||a_)},a_.\u0275prov=Ee({token:a_,factory:a_.\u0275fac}),a_),u_=function(){var e=function e(){v(this,e)};return e.NOOP=new s_,e}();function l_(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:c_(parseFloat(t[1]),t[2])}function c_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function h_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=c_(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=c_(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=e;if(!n){var l=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function f_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function d_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else f_(e,n);return n}function p_(e,t,n){return n?t+":"+n+";":""}function v_(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(R_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(R_(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:N_(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return T_(n,e,t)}),options:N_(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=T_(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:N_(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return V_(h_(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=V_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return V_((n=n||h_(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Dy({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Dy(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(F_(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[i],d=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),d=!1),o=f.startTime),d&&(h[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,u=t.errors,l=s.params||{},(c=b_(a)).length&&c.forEach(function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(F_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:T_(this,y_(e.animation),t),options:N_(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:N_(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:N_(e.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,r=t.options||{};n.queryCount++,n.currentQuery=t;var o=e(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(D_,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(t.selector),2),a=o[0],s=o[1];n.currentQuerySelector=i.length?i+" "+a:a,Gy(n.collectedStyles,n.currentQuerySelector,{});var u=T_(this,y_(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:N_(t.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:h_(e.timings,t.errors,!0);return{type:12,animation:T_(this,y_(e.animation),t),timings:n,options:null}}}]),t}(),L_=function e(t){v(this,e),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 F_(e){return!Array.isArray(e)&&"object"==typeof e}function N_(e){var t;return e?(e=f_(e)).params&&(e.params=(t=e.params)?f_(t):null):e={},e}function V_(e,t,n){return{duration:e,delay:t,easing:n}}function j_(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var B_=function(){function e(){v(this,e),this._map=new Map}return g(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,n){var i,r=this._map.get(e);r||this._map.set(e,r=[]),(i=r).push.apply(i,t(n))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),z_=new RegExp(":enter","g"),H_=new RegExp(":leave","g");function U_(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new q_).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var q_=function(){function e(){v(this,e)}return g(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new B_;var c=new Y_(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),T_(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[j_(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?l_(n.duration):null,o=null!=n.delay?l_(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),T_(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=W_);var a=l_(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return T_(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?l_(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),T_(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return h_(t.params?k_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?l_(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=W_);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),T_(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;T_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),W_={},Y_=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=W_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new G_(this._driver,n,0),s.push(this.currentTimeline)}return g(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=l_(i.duration)),null!=i.delay&&(r.delay=l_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=k_(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=W_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new K_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,n,i,r,o,a){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(z_,"."+this._enterClassName)).replace(H_,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push.apply(s,t(u))}return o||0!=s.length||a.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),G_=function(){function e(t,n,i,r){v(this,e),this._driver=t,this.element=n,this.startTime=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return g(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):d_(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=k_(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=d_(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?w_(t.values()):[],a=n.size?w_(n.values()):[];if(i){var s=r[0],u=f_(s);s.offset=0,u.offset=1,r=[s,u]}return j_(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),K_=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return g(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=d_(e[0],!1);u.offset=0,o.push(u);var l=d_(e[0],!1);l.offset=Z_(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=d_(e[h],!1);f.offset=Z_((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return j_(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(G_);function Z_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Q_=function e(){v(this,e)},X_=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"normalizePropertyName",value:function(e,t){return S_(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if($_[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(Q_),$_=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function J_(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var eb={},tb=function(){function e(t,n,i){v(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return g(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||eb,f=this.buildStyles(n,a&&a.params||eb,c),d=s&&s.params||eb,p=this.buildStyles(i,d,c),v=new Set,m=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=l?[]:U_(e,t,this.ast.animation,r,o,f,p,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return J_(t,this._triggerName,n,i,y,f,p,[],[],m,g,k,c);b.forEach(function(e){var n=e.element,i=Gy(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Gy(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=w_(v.values());return J_(t,this._triggerName,n,i,y,f,p,b,w,m,g,k)}}]),e}(),nb=function(){function e(t,n){v(this,e),this.styles=t,this.defaultParams=n}return g(e,[{key:"buildStyles",value:function(e,t){var n={},i=f_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=k_(o,i,t)),n[e]=o})}}),n}}]),e}(),ib=function(){function e(t,n){var i=this;v(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new nb(e.style,e.options&&e.options.params||{})}),rb(this.states,"true","1"),rb(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new tb(t,e,i.states))}),this.fallbackTransition=new tb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return g(e,[{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function rb(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var ob=new B_,ab=function(){function e(t,n,i){v(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return g(e,[{key:"register",value:function(e,t){var n=[],i=P_(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Uy(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=U_(this._driver,t,a,"ng-enter","ng-leave",{},{},r,ob,o)).forEach(function(e){var t=Gy(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var u=Hy(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=Yy(t,"","","");return qy(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),sb=[],ub={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=f_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return g(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}},{key:"params",get:function(){return this.options.params}}]),e}(),hb=new cb("void"),fb=function(){function e(t,n,i){v(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_b(n,this._hostClassName)}return g(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Gy(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=Gy(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),u[t]=hb),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new pb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(_b(e,"ng-trigger"),_b(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new cb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=hb),"void"===l.value||u.value!==l.value){var c=Gy(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(_b(e,"ng-animate-queued"),a.onStart(function(){bb(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_b(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bb(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(vb(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return vb(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Hy(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=ub,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(n).forEach(function(e){var t=e.player,n=e.element;if(x.push(t),i.collectedEnterElements.length){var a=n.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!f||!i.driver.containsElement(f,n),d=C.get(n),p=v.get(n),m=i._buildInstruction(e,r,p,d,h);if(m.errors&&m.errors.length)E.push(m);else{if(h)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return g_(n,m.fromStyles)}),t.onDestroy(function(){return m_(n,m.toStyles)}),void o.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(n,m.timelines),s.push({instruction:m,player:t,element:n}),m.queriedElements.forEach(function(e){return Gy(u,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(E.length){var A=[];E.forEach(function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return A.push("- ".concat(e,"\n"))})}),x.forEach(function(e){return e.destroy()}),this.reportError(A)}var O=new Map,I=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(I.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),o.forEach(function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Gy(O,t,[]).push(e),e.destroy()})});var R=g.filter(function(e){return Cb(e,l,c)}),D=new Map;gb(D,this.driver,_,c,"*").forEach(function(e){Cb(e,l,c)&&R.push(e)});var P=new Map;p.forEach(function(e,t){gb(P,i.driver,new Set(e),l,"!")}),R.forEach(function(e){var t=D.get(e),n=P.get(e);D.set(e,Object.assign(Object.assign({},t),n))});var M=[],L=[],F={};s.forEach(function(e){var t=e.element,n=e.player,s=e.instruction;if(r.has(t)){if(h.has(t))return n.onDestroy(function(){return m_(t,s.toStyles)}),n.disabled=!0,n.overrideTotalTime(s.totalTime),void o.push(n);var u=F;if(I.size>1){for(var l=t,c=[];l=l.parentNode;){var f=I.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(e){return I.set(e,u)})}var d=i._buildAnimation(n.namespaceId,s,O,a,P,D);if(n.setRealPlayer(d),u===F)M.push(n);else{var p=i.playersByElement.get(u);p&&p.length&&(n.parentPlayer=Hy(p)),o.push(n)}}else g_(t,s.fromStyles),n.onDestroy(function(){return m_(t,s.toStyles)}),L.push(n),h.has(t)&&o.push(n)}),L.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=Hy(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new jy(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),pb=function(){function e(t,n,i){v(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new jy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return g(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return qy(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Gy(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function vb(e){return e&&1===e.nodeType}function mb(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function gb(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(mb(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=lb,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return mb(e,o[s++])}),a}function yb(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function _b(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function bb(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function kb(e,t,n){Hy(n).onDone(function(){return e.processLeaveNode(t)})}function wb(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function xb(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Tb(t[0]),t.length>1&&(i=Tb(t[t.length-1]))):t&&(n=Tb(t)),n||i?new Eb(e,n,i):null}var Eb=function(){var e=function(){function e(t,n,i){v(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return g(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&m_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(m_(this._element,this._initialStyles),this._endStyles&&(m_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(g_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(g_(this._element,this._endStyles),this._endStyles=null),m_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Tb(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Pb(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Lb(e,"").split(","),(i=Db(n,t))>=0&&(n.splice(i,1),Mb(e,"",n.join(","))))}}]),e}();function Ib(e,t,n){Mb(e,"PlayState",n,Rb(e,t))}function Rb(e,t){var n=Lb(e,"");return n.indexOf(",")>0?Db(n.split(","),t):Db([n],t)}function Db(e,t){for(var n=0;n=0)return n;return-1}function Pb(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Mb(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Lb(e,t){return e.style["animation"+t]}var Fb=function(){function e(t,n,i,r,o,a,s,u){v(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return g(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Ob(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:A_(e.element,i))})}this.currentSnapshot=t}}]),e}(),Nb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=o_(i),r}return g(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),s(p(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),s(p(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,s(p(n.prototype),"destroy",this).call(this))}}]),n}(jy),Vb=function(){function e(){v(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return o_(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter(function(e){return e instanceof Fb}),u={};x_(n,i)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=E_(e,t,u));if(0==n)return new Nb(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=xb(e,t),d=new Fb(e,t,c,n,i,r,l,f);return d.onDestroy(function(){var e;(e=h).parentNode.removeChild(e)}),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),jb=function(){function e(t,n,i,r){v(this,e),this.element=t,this.keyframes=n,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return g(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:A_(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Bb=function(){function e(){v(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zb().toString()),this._cssKeyframesDriver=new Vb}return g(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return i_(e,t)}},{key:"query",value:function(e,t,n){return r_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof jb});x_(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=xb(e,t=E_(e,t=t.map(function(e){return d_(e,!1)}),u));return new jb(e,t,s,c)}}]),e}();function zb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Hb,Ub=((Hb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}}),r}return g(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ry(e):e;return Yb(this._renderer,null,t,"register",[n]),new qb(t,this._renderer)}}]),n}(Ay)).\u0275fac=function(e){return new(e||Hb)(Lt(Xs),Lt(mc))},Hb.\u0275prov=Ee({token:Hb,factory:Hb.\u0275fac}),Hb),qb=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return g(n,[{key:"create",value:function(e,t){return new Wb(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){v(this,e)}}()),Wb=function(){function e(t,n,i,r){v(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return g(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),$b=function(t){u(i,t);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,t,r,o)).factory=e,a.namespaceId=t,a}return g(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(t,n,i){var r,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t),l=n.substr(1),c="";return"@"!=l.charAt(0)&&(o=(r=l).indexOf("."),l=(s=e([r.substring(0,o),r.substr(o+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,u,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(t,n,i)}}]),i}(Xb),Jb=((Kb=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e.body,i,r)}return n}(Sb)).\u0275fac=function(e){return new(e||Kb)(Lt(mc),Lt(u_),Lt(Q_))},Kb.\u0275prov=Ee({token:Kb,factory:Kb.\u0275fac}),Kb),ek=new Le("AnimationModuleType"),tk=[{provide:u_,useFactory:function(){return"function"==typeof zb()?new Bb:new Vb}},{provide:ek,useValue:"BrowserAnimations"},{provide:Ay,useClass:Ub},{provide:Q_,useFactory:function(){return new X_}},{provide:Sb,useClass:Jb},{provide:Xs,useFactory:function(e,t,n){return new Qb(e,t,n)},deps:[qh,Sb,Vl]}],nk=((Zb=function e(){v(this,e)}).\u0275mod=yt({type:Zb}),Zb.\u0275inj=Te({factory:function(e){return new(e||Zb)},providers:tk,imports:[of]}),Zb);function ik(e,t){if(1&e&&qa(0,"mat-pseudo-checkbox",3),2&e){var n=ns();Ba("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var rk,ok=["*"],ak=function(){var e=function e(){v(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),sk=function(){var e=function e(){v(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),uk=new tu("11.0.1"),lk=new Le("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ck=((rk=function(){function e(t,n,i){v(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return g(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Xn()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){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.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&uk.full!==Ty.full&&console.warn("The Angular Material version ("+uk.full+") does not match the Angular CDK version ("+Ty.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=yt({type:rk}),rk.\u0275inj=Te({factory:function(e){return new(e||rk)(Lt(fy),Lt(lk,8),Lt(mc))},imports:[[Ey],Ey]}),rk);function hk(e){return function(e){u(n,e);var t=c(n);function n(){var e;v(this,n);for(var i=arguments.length,r=new Array(i),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Ak),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new Tk(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Ak),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=wg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Ik))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Rk),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Xg(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,Ok)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Ik.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}),this._pointerUpEventsRegistered&&Rk.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ok)}))}}]),e}(),Pk=new Le("mat-ripple-global-options"),Mk=((kk=function(){function e(t,n,i,r,o){v(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Dk(this,n,t,i)}return g(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||kk)(Va(Qs),Va(Vl),Va(ig),Va(Pk,8),Va(ek,8))},kk.\u0275dir=bt({type:kk,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&ps("mat-ripple-unbounded",t.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"]}),kk),Lk=((bk=function e(){v(this,e)}).\u0275mod=yt({type:bk}),bk.\u0275inj=Te({factory:function(e){return new(e||bk)},imports:[[ck,rg],ck]}),bk),Fk=((_k=function e(t){v(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||_k)(Va(ek,8))},_k.\u0275cmp=pt({type:_k,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&ps("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),_k),Nk=((yk=function e(){v(this,e)}).\u0275mod=yt({type:yk}),yk.\u0275inj=Te({factory:function(e){return new(e||yk)},imports:[[ck]]}),yk),Vk=hk(function e(){v(this,e)}),jk=0,Bk=((wk=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-"+jk++,e}return n}(Vk)).\u0275fac=function(e){return zk(e||wk)},wk.\u0275dir=bt({type:wk,inputs:{label:"label"},features:[wa]}),wk),zk=pr(Bk),Hk=new Le("MatOptgroup"),Uk=0,qk=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,e),this.source=t,this.isUserInput=n},Wk=new Le("MAT_OPTION_PARENT_COMPONENT"),Yk=((Sk=function(){function e(t,n,i,r){v(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Uk++,this.onSelectionChange=new Ku,this._stateChanges=new j}return g(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||lg(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new qk(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=yg(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||Sk)(Va(Qs),Va(_u),Va(void 0),Va(Bk))},Sk.\u0275dir=bt({type:Sk,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Sk),Gk=((Ck=function(e){u(n,e);var t=c(n);function n(e,i,r,o){return v(this,n),t.call(this,e,i,r,o)}return n}(Yk)).\u0275fac=function(e){return new(e||Ck)(Va(Qs),Va(_u),Va(Wk,8),Va(Hk,8))},Ck.\u0275cmp=pt({type:Ck,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(As("id",t.id),Ma("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),ps("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[wa],ngContentSelectors:ok,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(rs(),Fa(0,ik,1,2,"mat-pseudo-checkbox",0),Ha(1,"span",1),os(2),Ua(),qa(3,"div",2)),2&e&&(Ba("ngIf",t.multiple),uo(3),Ba("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Xc,Mk,Fk],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ck);function Kk(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a1?Array.prototype.slice.call(arguments):e)},t,i)})}function $k(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,n),o=function(){return u.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l=0}function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Jk(t)?i=Number(t)<1?1:Number(t):z(t)&&(n=t),z(n)||(n=dg),new P(function(t){var r=Jk(e)?e:+e-n.now();return n.schedule(tw,r,{index:0,period:i,subscriber:t})})}function tw(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function nw(e,t){return function(n){return n.lift(new iw(e,t))}}var iw=function(){function e(t,n){v(this,e),this.compare=t,this.keySelector=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new rw(e,this.compare,this.keySelector))}}]),e}(),rw=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return g(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(A);function ow(e){return function(t){return t.lift(new aw(e))}}var aw=function(){function e(t){v(this,e),this.notifier=t}return g(e,[{key:"call",value:function(e,t){var n=new sw(e),i=K(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),sw=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e)).seenValue=!1,i}return g(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Z),uw=1,lw=Promise.resolve(),cw={};function hw(e){return e in cw&&(delete cw[e],!0)}var fw=function(e){var t=uw++;return cw[t]=!0,lw.then(function(){return hw(t)&&e()}),t},dw=function(e){hw(e)},pw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return g(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?s(p(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=fw(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return s(p(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(dw(t),e.scheduled=void 0)}}]),n}(cg),vw=new(function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i1&&void 0!==arguments[1]?arguments[1]:dg;return t=function(){return ew(e,n)},function(e){return e.lift(new mw(t))}}function _w(e,t){return new P(t?function(n){return t.schedule(bw,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function bw(e){var t=e.error;e.subscriber.error(t)}var kw,ww=((kw=function(){function e(t,n,i){v(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return g(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return af(this.value);case"E":return _w(this.error);case"C":return pf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new kw("C"),kw.undefinedValueNotification=new kw("N",void 0),kw);function Cw(e){return e&&"function"==typeof e.connect}var Sw,xw,Ew,Tw,Aw=function(){function e(){v(this,e)}return g(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,o){var a,s;if(null==e.previousIndex){var u=n(e,i,o);a=t.createEmbeddedView(u.templateRef,u.context,u.index),s=1}else null==o?(t.remove(i),s=3):(a=t.get(i),t.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),Ow=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return g(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new P(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(yw(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):af()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(gf(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Xk(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Tw)(Lt(Vl),Lt(ig),Lt(mc,8))},Tw.\u0275prov=Ee({factory:function(){return new Tw(Lt(Vl),Lt(ig),Lt(mc,8))},token:Tw,providedIn:"root"}),Tw),Dw=((Ew=function(){function e(t,n,i){var r=this;v(this,e),this._platform=t,this._change=new j,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return g(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(yw(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||Ew)(Lt(ig),Lt(Vl),Lt(mc,8))},Ew.\u0275prov=Ee({factory:function(){return new Ew(Lt(ig),Lt(Vl),Lt(mc,8))},token:Ew,providedIn:"root"}),Ew),Pw=((xw=function e(){v(this,e)}).\u0275mod=yt({type:xw}),xw.\u0275inj=Te({factory:function(e){return new(e||xw)}}),xw),Mw=((Sw=function e(){v(this,e)}).\u0275mod=yt({type:Sw}),Sw.\u0275inj=Te({factory:function(e){return new(e||Sw)},imports:[[Ey,rg,Pw],Ey,Pw]}),Sw);function Lw(e,t){1&e&&os(0)}var Fw=["*"];function Nw(e,t){}var Vw=function(e){return{animationDuration:e}},jw=function(e,t){return{value:e,params:t}},Bw=["tabBodyWrapper"],zw=["tabHeader"];function Hw(e,t){}function Uw(e,t){1&e&&Fa(0,Hw,0,0,"ng-template",9),2&e&&Ba("cdkPortalOutlet",ns().$implicit.templateLabel)}function qw(e,t){1&e&&xs(0),2&e&&Es(ns().$implicit.textLabel)}function Ww(e,t){if(1&e){var n=Ka();Ha(0,"div",6),Xa("click",function(){cn(n);var e=t.$implicit,i=t.index,r=ns(),o=Na(1);return r._handleClick(e,o,i)}),Ha(1,"div",7),Fa(2,Uw,1,1,"ng-template",8),Fa(3,qw,1,1,"ng-template",8),Ua(),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-label-active",o.selectedIndex==r),Ba("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Ma("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),uo(2),Ba("ngIf",i.templateLabel),uo(1),Ba("ngIf",!i.templateLabel)}}function Yw(e,t){if(1&e){var n=Ka();Ha(0,"mat-tab-body",10),Xa("_onCentered",function(){return cn(n),ns()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return cn(n),ns()._setTabBodyWrapperHeight(e)}),Ua()}if(2&e){var i=t.$implicit,r=t.index,o=ns();ps("mat-tab-body-active",o.selectedIndex==r),Ba("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Ma("aria-labelledby",o._getTabLabelId(r))}}var Gw,Kw,Zw,Qw,Xw,$w,Jw,eC,tC,nC,iC,rC,oC,aC,sC,uC,lC=["tabListContainer"],cC=["tabList"],hC=["nextPaginator"],fC=["previousPaginator"],dC=new Le("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),pC=((Gw=function(){function e(t,n,i,r){v(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return g(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||Gw)(Va(Qs),Va(Vl),Va(dC),Va(ek,8))},Gw.\u0275dir=bt({type:Gw,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&ps("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),Gw),vC=new Le("MatTabContent"),mC=new Le("MatTabLabel"),gC=hk(function e(){v(this,e)}),yC=new Le("MAT_TAB_GROUP"),_C=((Kw=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new j,r.position=null,r.origin=null,r.isActive=!1,r}return g(n,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new my(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}}]),n}(gC)).\u0275fac=function(e){return new(e||Kw)(Va(Ru),Va(yC))},Kw.\u0275cmp=pt({type:Kw,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,mC,!0),hl(n,vC,!0,xu)),2&e&&(al(i=dl())&&(t.templateLabel=i.first),al(i=dl())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&sl(xu,!0),2&e&&al(n=dl())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[wa,Ai],ngContentSelectors:Fw,decls:1,vars:0,template:function(e,t){1&e&&(rs(),Fa(0,Lw,1,0,"ng-template"))},encapsulation:2}),Kw),bC={translateTab:Oy("translateTab",[Py("center, void, left-origin-center, right-origin-center",Dy({transform:"none"})),Py("left",Dy({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Py("right",Dy({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ly("* => left, * => right, left => center, right => center",Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ly("void => left-origin-center",[Dy({transform:"translate3d(-100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ly("void => right-origin-center",[Dy({transform:"translate3d(100%, 0, 0)"}),Iy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},kC=((Xw=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this,e,i,o))._host=r,a._centeringSub=x.EMPTY,a._leavingSub=x.EMPTY,a}return g(n,[{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){s(p(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(by)).\u0275fac=function(e){return new(e||Xw)(Va(Ys),Va(Ru),Va(qe(function(){return CC})),Va(mc))},Xw.\u0275dir=bt({type:Xw,selectors:[["","matTabBodyHost",""]],features:[wa]}),Xw),wC=((Qw=function(){function e(t,n,i){var r=this;v(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=x.EMPTY,this._translateTabComplete=new j,this._onCentering=new Ku,this._beforeCentering=new Ku,this._afterLeavingCenter=new Ku,this._onCentered=new Ku(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(nw(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return g(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||Qw)(Va(Qs),Va(xy,8),Va(_u))},Qw.\u0275dir=bt({type:Qw,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Qw),CC=((Zw=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(wC)).\u0275fac=function(e){return new(e||Zw)(Va(Qs),Va(xy,8),Va(_u))},Zw.\u0275cmp=pt({type:Zw,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&ul(ky,!0),2&e&&al(n=dl())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[wa],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){var n,i;1&e&&(Ha(0,"div",0,1),Xa("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),Fa(2,Nw,0,0,"ng-template",2),Ua()),2&e&&Ba("@translateTab",function(e,t,n,i,r){return function(e,t,n,i,r,o,a){var s=t+3;return function(e,t,n,i){var r=Pa(e,t,n);return Pa(e,t+1,i)||r}(e,s,r,o)?Da(e,s+2,i(r,o)):Yu(e,s+2)}(un(),yn(),0,t,n,i)}(0,jw,t._position,(n=Vw,i=t.animationDuration,Gu(un(),yn(),1,n,i,void 0))))},directives:[kC],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[bC.translateTab]}}),Zw),SC=new Le("MAT_TABS_CONFIG"),xC=0,EC=function e(){v(this,e)},TC=fk(dk(function e(t){v(this,e),this._elementRef=t}),"primary"),AC=((Jw=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this,e))._changeDetectorRef=t,a._animationMode=o,a._tabs=new Qu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=x.EMPTY,a._tabLabelSubscription=x.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Ku,a.focusChange=new Ku,a.animationDone=new Ku,a.selectedTabChange=new Ku(!0),a._groupId=xC++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return g(i,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),$w),IC=hk(function e(){v(this,e)}),RC=((eC=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this)).elementRef=e,i}return g(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(IC)).\u0275fac=function(e){return new(e||eC)(Va(Qs))},eC.\u0275dir=bt({type:eC,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Ma("aria-disabled",!!t.disabled),ps("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[wa]}),eC),DC=sg({passive:!0}),PC=((rC=function(){function e(t,n,i,r,o,a,s){var u=this;v(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new j,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new j,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ku,this.indexFocused=new Ku,o.runOutsideAngular(function(){Xk(t.nativeElement,"mouseleave").pipe(ow(u._destroyed)).subscribe(function(){u._stopInterval()})})}return g(e,[{key:"ngAfterViewInit",value:function(){var e=this;Xk(this._previousPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),Xk(this._nextPaginator.nativeElement,"touchstart",DC).pipe(ow(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:af(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Bg(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),se(t,n,this._items.changes).pipe(ow(this._destroyed)).subscribe(function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(ow(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!lg(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=t.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),ew(650,100).pipe(ow(se(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=_g(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||rC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},rC.\u0275dir=bt({type:rC,inputs:{disablePagination:"disablePagination"}}),rC),MC=((iC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){var l;return v(this,n),(l=t.call(this,e,i,r,o,a,s,u))._disableRipple=!1,l}return g(n,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=yg(e)}}]),n}(PC)).\u0275fac=function(e){return new(e||iC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},iC.\u0275dir=bt({type:iC,inputs:{disableRipple:"disableRipple"},features:[wa]}),iC),LC=((nC=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,r,o,a,s,u)}return n}(MC)).\u0275fac=function(e){return new(e||nC)(Va(Qs),Va(_u),Va(Dw),Va(xy,8),Va(Vl),Va(ig),Va(ek,8))},nC.\u0275cmp=pt({type:nC,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,RC,!1),2&e&&al(i=dl())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(sl(pC,!0),sl(lC,!0),sl(cC,!0),ul(hC,!0),ul(fC,!0)),2&e&&(al(n=dl())&&(t._inkBar=n.first),al(n=dl())&&(t._tabListContainer=n.first),al(n=dl())&&(t._tabList=n.first),al(n=dl())&&(t._nextPaginator=n.first),al(n=dl())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[wa],ngContentSelectors:Fw,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0,1),Xa("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),qa(2,"div",2),Ua(),Ha(3,"div",3,4),Xa("keydown",function(e){return t._handleKeydown(e)}),Ha(5,"div",5,6),Xa("cdkObserveContent",function(){return t._onContentChanges()}),Ha(7,"div",7),os(8),Ua(),qa(9,"mat-ink-bar"),Ua(),Ua(),Ha(10,"div",8,9),Xa("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),qa(12,"div",2),Ua()),2&e&&(ps("mat-tab-header-pagination-disabled",t._disableScrollBefore),Ba("matRippleDisabled",t._disableScrollBefore||t.disableRipple),uo(5),ps("_mat-animation-noopable","NoopAnimations"===t._animationMode),uo(5),ps("mat-tab-header-pagination-disabled",t._disableScrollAfter),Ba("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Mk,Og,pC],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),nC),FC=((tC=function e(){v(this,e)}).\u0275mod=yt({type:tC}),tC.\u0275inj=Te({factory:function(e){return new(e||tC)},imports:[[ph,ck,Cy,Lk,Ig,dy],ck]}),tC),NC=["mat-button",""],VC=["*"],jC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],BC=fk(hk(dk(function e(t){v(this,e),this._elementRef=t}))),zC=((aC=function(e){u(n,e);var t=c(n);function n(e,r,o){var a;v(this,n),(a=t.call(this,e))._focusMonitor=r,a._animationMode=o,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=i(jC);try{for(u.s();!(s=u.n()).done;){var l=s.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(c){u.e(c)}finally{u.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return g(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.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:block;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}),aC),HC=((oC=function e(){v(this,e)}).\u0275mod=yt({type:oC}),oC.\u0275inj=Te({factory:function(e){return new(e||oC)},imports:[[Lk,ck],ck]}),oC),UC=["ketcherFrame"],qC=((sC=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.loadingService=n,this.moleculeInput=new Ku,this.ketcherSrc=t.bypassSecurityTrustResourceUrl("/client/assets/ketcher/ketcher.html")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.ketcherFrame.nativeElement.onload=function(){e.ketcher=e.ketcherFrame.nativeElement.contentWindow.ketcher,e.loadingService.setLoadingState(!1)}}},{key:"addMolecule",value:function(){var e=this.ketcher.getSmiles();this.moleculeInput.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||sC)(Va(ef),Va(Xm))},sC.\u0275cmp=pt({type:sC,selectors:[["adme-sketcher"]],viewQuery:function(e,t){var n;1&e&&sl(UC,!0),2&e&&al(n=dl())&&(t.ketcherFrame=n.first)},outputs:{moleculeInput:"moleculeInput"},decls:6,vars:1,consts:[[1,"sketcher-container"],["id","ketcherFrame","id","ketcher-frame","scrolling","no",3,"src"],["ketcherFrame",""],[1,"actions"],["mat-raised-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(Ha(0,"div",0),qa(1,"iframe",1,2),Ua(),Ha(3,"div",3),Ha(4,"button",4),Xa("click",function(){return t.addMolecule()}),xs(5," Predict "),Ua(),Ua()),2&e&&(uo(1),Ba("src",t.ketcherSrc,wi))},directives:[zC],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.actions[_ngcontent-%COMP%]{padding-top:15px}iframe[_ngcontent-%COMP%]{width:100%;min-width:640px;border:none;min-height:430px}.sketcher-container[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:auto}"]}),sC),WC={csv:{lineBreak:"\n",columnSeparator:",",hasHeaderRow:!0,indexIdentifierColumn:0},text:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},smi:{lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!1,indexIdentifierColumn:0}},YC=((uC=function(){function e(t){v(this,e),this.el=t,this.selectedFile=new Ku}return g(e,[{key:"ngOnInit",value:function(){this.addHiddenFileInput()}},{key:"ngOnDestroy",value:function(){document.body.removeChild(this.fileInputElement)}},{key:"addHiddenFileInput",value:function(){var e=this;this.fileInputElement=document.createElement("INPUT"),this.fileInputElement.setAttribute("type","file"),this.fileInputElement.style.width="0",this.fileInputElement.style.height="0",this.fileInputElement.style.overflow="hidden",this.accept&&this.fileInputElement.setAttribute("accept",this.accept),this.fileInputElement.onchange=function(t){t.target.files&&t.target.files.length>0&&e.selectedFile.emit(t.target.files[t.target.files.length-1]),t.preventDefault()},document.body.appendChild(this.fileInputElement);var t=this.fileInputElement;this.el.nativeElement.addEventListener("click",function(){t.click()})}}]),e}()).\u0275fac=function(e){return new(e||uC)(Va(Qs))},uC.\u0275dir=bt({type:uC,selectors:[["","admeFileSelect",""]],inputs:{accept:"accept"},outputs:{selectedFile:"selectedFile"}}),uC);function GC(){for(var e=arguments.length,n=new Array(e),i=0;ie?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return iS(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return iS(e.value)||sS.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return iS(t.value)||!rS(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(iS(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return hS(fS(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(lS);return 0==t.length?null:function(e){return GC(fS(e,t).map(cS)).pipe(Q(hS))}}}]),e}();function lS(e){return null!=e}function cS(e){var t=Za(e)?ee(e):e;return Qa(t),t}function hS(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fS(e,t){return t.map(function(t){return t(e)})}function dS(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function pS(e){return null!=e?uS.compose(dS(e)):null}function vS(e){return null!=e?uS.composeAsync(dS(e)):null}function mS(e,n){return null===e?[n]:Array.isArray(e)?[].concat(t(e),[n]):[e,n]}function gS(e){return e._rawValidators}function yS(e){return e._rawAsyncValidators}var _S,bS,kS,wS,CS,SS,xS,ES,TS,AS,OS=((bS=function(){function e(){v(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return g(e,[{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=pS(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=vS(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}()).\u0275fac=function(e){return new(e||bS)},bS.\u0275dir=bt({type:bS}),bS),IS=((_S=function(e){u(n,e);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return g(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(OS)).\u0275fac=function(e){return RS(e||_S)},_S.\u0275dir=bt({type:_S,features:[wa]}),_S),RS=pr(IS),DS=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(OS),PS=function(){function e(t){v(this,e),this._cd=t}return g(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),MS=((wS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||wS)(Va(DS,2))},wS.\u0275dir=bt({type:wS,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),wS),LS=((kS=function(e){u(n,e);var t=c(n);function n(e){return v(this,n),t.call(this,e)}return n}(PS)).\u0275fac=function(e){return new(e||kS)(Va(IS,2))},kS.\u0275dir=bt({type:kS,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ps("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[wa]}),kS),FS={provide:XC,useExisting:qe(function(){return NS}),multi:!0},NS=((CS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||CS)(Va($s),Va(Qs))},CS.\u0275dir=bt({type:CS,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([FS])]}),CS),VS={provide:XC,useExisting:qe(function(){return BS}),multi:!0},jS=((xS=function(){function e(){v(this,e),this._accessors=[]}return g(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||xS)},xS.\u0275prov=Ee({token:xS,factory:xS.\u0275fac}),xS),BS=((SS=function(){function e(t,n,i,r){v(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return g(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(DS),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}()).\u0275fac=function(e){return new(e||SS)(Va($s),Va(Qs),Va(jS),Va(ba))},SS.\u0275dir=bt({type:SS,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Us([VS])]}),SS),zS={provide:XC,useExisting:qe(function(){return HS}),multi:!0},HS=((ES=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return g(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||ES)(Va($s),Va(Qs))},ES.\u0275dir=bt({type:ES,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Xa("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Us([zS])]}),ES),US={provide:XC,useExisting:qe(function(){return qS}),multi:!0},qS=((TS=function(){function e(t,n){v(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return g(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o0&&e.setValidators(i.filter(function(e){return e!==t.validator}))}if(null!==t.asyncValidator){var r=yS(e);Array.isArray(r)&&r.length>0&&e.setAsyncValidators(r.filter(function(e){return e!==t.asyncValidator}))}}if(n){var o=function(){};KS(t._rawValidators,o),KS(t._rawAsyncValidators,o)}}function XS(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $S(e,t){ZS(e,t,!1)}var JS=[JC,HS,NS,qS,YS,BS];function ex(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function tx(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function nx(e){return(ax(e)?e.validators:e)||null}function ix(e){return Array.isArray(e)?pS(e):e||null}function rx(e,t){return(ax(t)?t.asyncValidators:e)||null}function ox(e){return Array.isArray(e)?vS(e):e||null}function ax(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var sx,ux,lx,cx,hx,fx,dx,px,vx,mx=function(){function e(t,n){v(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ix(this._rawValidators),this._composedAsyncValidatorFn=ox(this._rawAsyncValidators)}return g(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ix(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ox(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=cS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof yx?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof _x&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Ku,this.statusChanges=new Ku}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ax(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),gx=function(e){u(n,e);var t=c(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,n),(e=t.call(this,nx(r),rx(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return g(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){tx(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){tx(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(mx),yx=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof gx?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(mx),_x=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,nx(i),rx(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return g(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof gx?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=i(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(mx),bx={provide:IS,useExisting:qe(function(){return wx})},kx=Promise.resolve(null),wx=((sx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ku,r.form=new yx({},pS(e),vS(i)),r}return g(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),GS(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),tx(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path),i=new yx({});$S(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;kx.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;kx.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(IS)).\u0275fac=function(e){return new(e||sx)(Va(oS,10),Va(aS,10))},sx.\u0275dir=bt({type:sx,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([bx]),wa]}),sx),Cx={provide:DS,useExisting:qe(function(){return xx})},Sx=Promise.resolve(null),xx=((lx=function(e){u(i,e);var n=c(i);function i(e,t,r,o){var a;return v(this,i),(a=n.call(this)).control=new gx,a._registered=!1,a.update=new Ku,a._parent=e,a._setValidators(t),a._setAsyncValidators(r),a.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){var t;e.constructor===nS?n=e:(t=e,JS.some(function(e){return t.constructor===e})?i=e:r=e)}),r||i||n||null}(0,o),a}return g(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){GS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Sx.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Sx.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?[].concat(t(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),i}(DS)).\u0275fac=function(e){return new(e||lx)(Va(IS,9),Va(oS,10),Va(aS,10),Va(XC,10))},lx.\u0275dir=bt({type:lx,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Us([Cx]),wa,Ai]}),lx),Ex=((ux=function e(){v(this,e)}).\u0275fac=function(e){return new(e||ux)},ux.\u0275dir=bt({type:ux,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ux),Tx=new Le("NgModelWithFormControlWarning"),Ax={provide:IS,useExisting:qe(function(){return Ox})},Ox=((cx=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ku,r._setValidators(e),r._setAsyncValidators(i),r}return g(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return GS(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){tx(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);$S(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ex(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),QS(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}(t.control||null,t),n&&GS(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ZS(this.form,this,!1),this._oldForm&&QS(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(IS)).\u0275fac=function(e){return new(e||cx)(Va(oS,10),Va(aS,10))},cx.\u0275dir=bt({type:cx,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xa("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([Ax]),wa,Ai]}),cx),Ix={provide:oS,useExisting:qe(function(){return Rx}),multi:!0},Rx=((vx=function(){function e(){v(this,e),this._required=!1}return g(e,[{key:"validate",value:function(e){return this.required?uS.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||vx)},vx.\u0275dir=bt({type:vx,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ma("required",t.required?"":null)},inputs:{required:"required"},features:[Us([Ix])]}),vx),Dx=((px=function e(){v(this,e)}).\u0275mod=yt({type:px}),px.\u0275inj=Te({factory:function(e){return new(e||px)}}),px),Px=((dx=function(){function e(){v(this,e)}return g(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new yx(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new gx(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new _x(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof gx||e instanceof yx||e instanceof _x?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||dx)},dx.\u0275prov=Ee({token:dx,factory:dx.\u0275fac}),dx),Mx=((fx=function e(){v(this,e)}).\u0275mod=yt({type:fx}),fx.\u0275inj=Te({factory:function(e){return new(e||fx)},providers:[jS],imports:[Dx]}),fx),Lx=((hx=function(){function e(){v(this,e)}return g(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Tx,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=yt({type:hx}),hx.\u0275inj=Te({factory:function(e){return new(e||hx)},providers:[Px,jS],imports:[Dx]}),hx),Fx=["underline"],Nx=["connectionContainer"],Vx=["inputContainer"],jx=["label"];function Bx(e,t){1&e&&(Wa(0),Ha(1,"div",14),qa(2,"div",15),qa(3,"div",16),qa(4,"div",17),Ua(),Ha(5,"div",18),qa(6,"div",15),qa(7,"div",16),qa(8,"div",17),Ua(),Ya())}function zx(e,t){1&e&&(Ha(0,"div",19),os(1,1),Ua())}function Hx(e,t){if(1&e&&(Wa(0),os(1,2),Ha(2,"span"),xs(3),Ua(),Ya()),2&e){var n=ns(2);uo(3),Es(n._control.placeholder)}}function Ux(e,t){1&e&&os(0,3,["*ngSwitchCase","true"])}function qx(e,t){1&e&&(Ha(0,"span",23),xs(1," *"),Ua())}function Wx(e,t){if(1&e){var n=Ka();Ha(0,"label",20,21),Xa("cdkObserveContent",function(){return cn(n),ns().updateOutlineGap()}),Fa(2,Hx,4,1,"ng-container",12),Fa(3,Ux,1,0,"ng-content",12),Fa(4,qx,2,0,"span",22),Ua()}if(2&e){var i=ns();ps("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ba("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Ma("for",i._control.id)("aria-owns",i._control.id),uo(2),Ba("ngSwitchCase",!1),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Yx(e,t){1&e&&(Ha(0,"div",24),os(1,4),Ua())}function Gx(e,t){if(1&e&&(Ha(0,"div",25,26),qa(2,"span",27),Ua()),2&e){var n=ns();uo(2),ps("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Kx(e,t){1&e&&(Ha(0,"div"),os(1,5),Ua()),2&e&&Ba("@transitionMessages",ns()._subscriptAnimationState)}function Zx(e,t){if(1&e&&(Ha(0,"div",31),xs(1),Ua()),2&e){var n=ns(2);Ba("id",n._hintLabelId),uo(1),Es(n.hintLabel)}}function Qx(e,t){if(1&e&&(Ha(0,"div",28),Fa(1,Zx,2,2,"div",29),os(2,6),qa(3,"div",30),os(4,7),Ua()),2&e){var n=ns();Ba("@transitionMessages",n._subscriptAnimationState),uo(1),Ba("ngIf",n.hintLabel)}}var Xx,$x,Jx,eE,tE,nE,iE=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],rE=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],oE=new Le("MatError"),aE={transitionMessages:Oy("transitionMessages",[Py("enter",Dy({opacity:1,transform:"translateY(0%)"})),Ly("void => enter",[Dy({opacity:0,transform:"translateY(-100%)"}),Iy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sE=((Xx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Xx)},Xx.\u0275dir=bt({type:Xx}),Xx),uE=0,lE=new Le("MatHint"),cE=((eE=function e(){v(this,e),this.align="start",this.id="mat-hint-"+uE++}).\u0275fac=function(e){return new(e||eE)},eE.\u0275dir=bt({type:eE,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Ma("id",t.id)("align",null),ps("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[Us([{provide:lE,useExisting:eE}])]}),eE),hE=((Jx=function e(){v(this,e)}).\u0275fac=function(e){return new(e||Jx)},Jx.\u0275dir=bt({type:Jx,selectors:[["mat-label"]]}),Jx),fE=(($x=function e(){v(this,e)}).\u0275fac=function(e){return new(e||$x)},$x.\u0275dir=bt({type:$x,selectors:[["mat-placeholder"]]}),$x),dE=new Le("MatPrefix"),pE=new Le("MatSuffix"),vE=0,mE=fk(function e(t){v(this,e),this._elementRef=t},"primary"),gE=new Le("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yE=new Le("MatFormField"),_E=((nE=function(e){u(i,e);var n=c(i);function i(e,t,r,o,a,s,u,l){var c;return v(this,i),(c=n.call(this,e))._elementRef=e,c._changeDetectorRef=t,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new j,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+vE++,c._labelId="mat-form-field-label-"+vE++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return g(i,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Vf(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ow(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(ow(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ow(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Xk(this._label.nativeElement,"transitionend").pipe(Mf(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,t(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var n=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,i=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push.apply(e,t(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;ft.height||e.scrollWidth>t.width}}]),e}(),SE=function(){function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),xE=function(){function e(){v(this,e)}return g(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function EE(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function TE(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var AE,OE,IE,RE,DE,PE=function(){function e(t,n,i,r){v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return g(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;EE(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ME=((AE=function e(t,n,i,r){var o=this;v(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new xE},this.close=function(e){return new SE(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new CE(o._viewportRuler,o._document)},this.reposition=function(e){return new PE(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||AE)(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},AE.\u0275prov=Ee({factory:function(){return new AE(Lt(Rw),Lt(Dw),Lt(Vl),Lt(mc))},token:AE,providedIn:"root"}),AE),LE=function e(t){if(v(this,e),this.scrollStrategy=new xE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||RE)(Lt(mc))},RE.\u0275prov=Ee({factory:function(){return new RE(Lt(mc))},token:RE,providedIn:"root"}),RE),jE=((IE=function(e){u(n,e);var t=c(n);function n(e){var i;return v(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||IE)(Lt(mc))},IE.\u0275prov=Ee({factory:function(){return new IE(Lt(mc))},token:IE,providedIn:"root"}),IE),BE=((OE=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return g(n,[{key:"add",value:function(e){s(p(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(VE)).\u0275fac=function(e){return new(e||OE)(Lt(mc),Lt(ig))},OE.\u0275prov=Ee({factory:function(){return new OE(Lt(mc),Lt(ig))},token:OE,providedIn:"root"}),OE),zE=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),HE=((DE=function(){function e(t,n){v(this,e),this._platform=n,this._document=t}return g(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||zE)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=g,d=m)}}catch(y){v.e(y)}finally{v.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&YE(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+t.height-n.height,c=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,u,l),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:t.width*t.height===f,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=GE(this._overlayRef.getConfig().minHeight),a=GE(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return i=t.width<=o.width?l||-a:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=kg(n.height),i.top=kg(n.top),i.bottom=kg(n.bottom),i.width=kg(n.width),i.left=kg(n.left),i.right=kg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=kg(r)),o&&(i.maxWidth=kg(o))}this._lastBoundingBoxSize=n,YE(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){YE(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){YE(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();YE(n,this._getExactOverlayY(t,e,a)),YE(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),l=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=kg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=kg(o.maxWidth):r&&(n.maxWidth="")),YE(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=kg(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=kg(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:TE(e,n),isOriginOutsideView:EE(e,n),isOverlayClipped:TE(t,n),isOverlayOutsideView:EE(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),tT=((ZE=function(){function e(t,n,i,r){v(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return g(e,[{key:"global",value:function(){return new eT}},{key:"connectedTo",value:function(e,t,n){return new JE(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new WE(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||ZE)(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},ZE.\u0275prov=Ee({factory:function(){return new ZE(Lt(Dw),Lt(mc),Lt(ig),Lt(HE))},token:ZE,providedIn:"root"}),ZE),nT=0,iT=((KE=function(){function e(t,n,i,r,o,a,s,u,l,c,h){v(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return g(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new LE(e);return r.direction=r.direction||this._directionality.value,new UE(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+nT++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(ic)),new _y(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||KE)(Lt(ME),Lt(HE),Lt(Ys),Lt(tT),Lt(jE),Lt(ba),Lt(Vl),Lt(mc),Lt(xy),Lt(Fc),Lt(BE))},KE.\u0275prov=Ee({token:KE,factory:KE.\u0275fac}),KE),rT=[{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"}],oT=new Le("cdk-connected-overlay-scroll-strategy"),aT=((XE=function e(t){v(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||XE)(Va(Qs))},XE.\u0275dir=bt({type:XE,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),XE),sT=((QE=function(){function e(t,n,i,r,o){v(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=x.EMPTY,this._attachSubscription=x.EMPTY,this._detachSubscription=x.EMPTY,this._positionSubscription=x.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 my(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return g(e,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=rT);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||lg(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new LE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new kE(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=yg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=yg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=yg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=yg(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||QE)(Va(iT),Va(xu),Va(Ru),Va(oT),Va(xy,8))},QE.\u0275dir=bt({type:QE,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:[Ai]}),QE),uT={provide:oT,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},lT=(($E=function e(){v(this,e)}).\u0275mod=yt({type:$E}),$E.\u0275inj=Te({factory:function(e){return new(e||$E)},providers:[iT,uT],imports:[[Ey,Cy,Mw],Mw]}),$E),cT=["trigger"],hT=["panel"];function fT(e,t){if(1&e&&(Ha(0,"span",8),xs(1),Ua()),2&e){var n=ns();uo(1),Es(n.placeholder||"\xa0")}}function dT(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.triggerValue||"\xa0")}}function pT(e,t){1&e&&os(0,0,["*ngSwitchCase","true"])}function vT(e,t){1&e&&(Ha(0,"span",9),Fa(1,dT,2,1,"span",10),Fa(2,pT,1,0,"ng-content",11),Ua()),2&e&&(Ba("ngSwitch",!!ns().customTrigger),uo(2),Ba("ngSwitchCase",!0))}function mT(e,t){if(1&e){var n=Ka();Ha(0,"div",12),Ha(1,"div",13,14),Xa("@transformPanel.done",function(e){return cn(n),ns()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return cn(n),ns()._handleKeydown(e)}),os(3,1),Ua(),Ua()}if(2&e){var i=ns();Ba("@transformPanelWrap",void 0),uo(1),"mat-select-panel ",r=i._getPanelTheme(),"",function(e,t,n,i){var r=ln(),o=bn(2);r.firstUpdatePass&&ys(r,null,o,!0);var a=un();if(n!==so&&Pa(a,o,n)){var s=r.data[Mn()];if(Ss(s,!0)&&!gs(r,o)){var u=s.classesWithoutHost;null!==u&&(n=Ce(u,n||"")),za(r,s,a,n,!0)}else!function(e,t,n,i,r,o,a,s){r===so&&(r=as);for(var u=0,l=0,c=0 void",Ny("@transformPanel",[Fy()],{optional:!0}))]),transformPanel:Oy("transformPanel",[Py("void",Dy({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Py("showing",Dy({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Py("showing-multiple",Dy({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ly("void => *",Iy("120ms cubic-bezier(0, 0, 0.2, 1)")),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))])},xT=0,ET=new Le("mat-select-scroll-strategy"),TT=new Le("MAT_SELECT_CONFIG"),AT={provide:ET,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},OT=function e(t,n){v(this,e),this.source=t,this.value=n},IT=dk(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){u(i,e);var n=c(i);function i(){var e;v(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=yg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=yg(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=_g(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(IT)).\u0275fac=function(e){return new(e||yT)(Va(Dw),Va(_u),Va(Vl),Va(xk),Va(Qs),Va(xy,8),Va(wx,8),Va(Ox,8),Va(yE,8),Va(DS,10),ja("tabindex"),Va(ET),Va(Qg),Va(TT,8))},yT.\u0275dir=bt({type:yT,viewQuery:function(e,t){var n;1&e&&(ul(cT,!0),ul(hT,!0),ul(sT,!0)),2&e&&(al(n=dl())&&(t.trigger=n.first),al(n=dl())&&(t.panel=n.first),al(n=dl())&&(t.overlayDir=n.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:[wa,Ai]}),yT),PT=((gT=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return g(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;s(p(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(ow(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;s(p(n.prototype),"_canOpen",this).call(this)&&(s(p(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=Kk(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),s(p(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new OT(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=Kk(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(DT)).\u0275fac=function(e){return MT(e||gT)},gT.\u0275cmp=pt({type:gT,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(cl(n,RT,!0),cl(n,Gk,!0),cl(n,Hk,!0)),2&e&&(al(i=dl())&&(t.customTrigger=i.first),al(i=dl())&&(t.options=i),al(i=dl())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xa("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Ma("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),ps("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Us([{provide:sE,useExisting:gT},{provide:Wk,useExisting:gT}]),wa],ngContentSelectors:CT,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",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"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(rs(wT),Ha(0,"div",0,1),Xa("click",function(){return t.toggle()}),Ha(3,"div",2),Fa(4,fT,2,1,"span",3),Fa(5,vT,3,2,"span",4),Ua(),Ha(6,"div",5),qa(7,"div",6),Ua(),Ua(),Fa(8,mT,4,14,"ng-template",7),Xa("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Na(1);Ma("aria-owns",t.panelOpen?t.id+"-panel":null),uo(3),Ba("ngSwitch",t.empty),Ma("id",t._valueId),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1),uo(3),Ba("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[aT,sh,uh,sT,lh,Gc],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}\n"],encapsulation:2,data:{animation:[ST.transformPanelWrap,ST.transformPanel]},changeDetection:0}),gT),MT=pr(PT),LT=((_T=function e(){v(this,e)}).\u0275mod=yt({type:_T}),_T.\u0275inj=Te({factory:function(e){return new(e||_T)},providers:[AT],imports:[[ph,lT,Qk,ck],Pw,bE,Qk,ck]}),_T),FT=function(){function e(t){v(this,e),this.total=t}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new NT(e,this.total))}}]),e}(),NT=function(e){u(n,e);var t=c(n);function n(e,i){var r;return v(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return g(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(A),VT=new Set,jT=((kT=function(){function e(t){v(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BT}return g(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!VT.has(e))try{bT||((bT=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(bT)),bT.sheet&&(bT.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),VT.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||kT)(Lt(ig))},kT.\u0275prov=Ee({factory:function(){return new kT(Lt(ig))},token:kT,providedIn:"root"}),kT);function BT(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var zT,HT=((zT=function(){function e(t,n){v(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new j}return g(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return UT(bg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=lf(UT(bg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Nf(n.pipe(Mf(1)),n.pipe(function(e){return e.lift(new FT(1))},pg(0)))).pipe(Q(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new P(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),Q(function(t){var n=t.matches;return{query:e,matches:n}}),ow(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||zT)(Lt(jT),Lt(Vl))},zT.\u0275prov=Ee({factory:function(){return new zT(Lt(jT),Lt(Vl))},token:zT,providedIn:"root"}),zT);function UT(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var qT,WT,YT,GT,KT,ZT,QT,XT,$T={tooltipState:Oy("state",[Py("initial, void, hidden",Dy({opacity:0,transform:"scale(0)"})),Py("visible",Dy({transform:"scale(1)"})),Ly("* => visible",Iy("200ms cubic-bezier(0, 0, 0.2, 1)",My([Dy({opacity:0,transform:"scale(0)",offset:0}),Dy({opacity:.5,transform:"scale(0.99)",offset:.5}),Dy({opacity:1,transform:"scale(1)",offset:1})]))),Ly("* => hidden",Iy("100ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:0})))])},JT=sg({passive:!0}),eA=new Le("mat-tooltip-scroll-strategy"),tA={provide:eA,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},nA=new Le("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),iA=((YT=function(){function t(e,n,i,r,o,a,s,u,l,c,h){var f=this;v(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!lg(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return g(t,[{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ow(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(n){var i=e(n,2),r=i[0],o=i[1];t.removeEventListener(r,o,JT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new vy(rA,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(ow(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ow(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Mf(1),ow(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(t){var n=this;t.forEach(function(t){var i=e(t,2),r=i[0],o=i[1];n._elementRef.nativeElement.addEventListener(r,o,JT)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=yg(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(e){return new(e||YT)(Va(iT),Va(Qs),Va(Rw),Va(Ru),Va(Vl),Va(ig),Va(Ng),Va(ty),Va(eA),Va(xy,8),Va(nA,8))},YT.\u0275dir=bt({type:YT,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),YT),rA=((WT=function(){function e(t,n){v(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return g(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||WT)(Va(_u),Va(HT))},WT.\u0275cmp=pt({type:WT,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleBodyInteraction()},!1,kr),2&e&&ds("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Xa("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),function(e,t){var n,i=ln();i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if("async"===i.name)return i}throw new xi("302","The pipe 'async' could not be found!")}(0,i.pipeRegistry),i.data[21]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(21,n.onDestroy)):n=i.data[21];var r=n.factory||(n.factory=Si(n.type)),o=Tt(Va);try{var a=Zi(!1),s=r();Zi(a),function(e,t,n,i){21>=e.data.length&&(e.data[21]=null,e.blueprint[21]=null),t[21]=i}(i,un(),0,s)}finally{Tt(o)}}(),xs(2),Ua()),2&e){var n=null;ps("mat-tooltip-handset",null==(i=t._isHandset,r=un(),o=Xt(r,21),n=function(e,t){return Oa.isWrapped(t)&&(t=Oa.unwrap(t),e[an.lFrame.bindingIndex]=so),t}(r,function(e,t){return e[1].data[21].pure}(r)?Gu(r,yn(),5,o.transform,i,o):o.transform(i)))?null:n.matches),Ba("ngClass",t.tooltipClass)("@state",t._visibility),uo(2),Es(t.message)}var i,r,o},directives:[Gc],pipes:[dh],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:[$T.tooltipState]},changeDetection:0}),WT),oA=((qT=function e(){v(this,e)}).\u0275mod=yt({type:qT}),qT.\u0275inj=Te({factory:function(e){return new(e||qT)},providers:[tA],imports:[[dy,ph,lT,ck],ck,Pw]}),qT),aA=sg({passive:!0}),sA=((KT=function(){function e(t,n){v(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return g(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return df;var n=wg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new j,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,aA),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,aA)}}),r}},{key:"stopMonitoring",value:function(e){var t=wg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||KT)(Lt(ig),Lt(Vl))},KT.\u0275prov=Ee({factory:function(){return new KT(Lt(ig),Lt(Vl))},token:KT,providedIn:"root"}),KT),uA=((GT=function e(){v(this,e)}).\u0275mod=yt({type:GT}),GT.\u0275inj=Te({factory:function(e){return new(e||GT)},imports:[[rg]]}),GT),lA=new Le("MAT_INPUT_VALUE_ACCESSOR"),cA=["button","checkbox","file","hidden","image","radio","range","reset","submit"],hA=0,fA=pk(function e(t,n,i,r){v(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),dA=((XT=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u,l,c,h){var f;v(this,n),(f=t.call(this,s,o,a,r))._elementRef=e,f._platform=i,f.ngControl=r,f._autofillMonitor=l,f._formField=h,f._uid="mat-input-"+hA++,f.focused=!1,f.stateChanges=new j,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ag().has(e)});var d=f._elementRef.nativeElement,p=d.nodeName.toLowerCase();return f._inputValueAccessor=u||d,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&c.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===p,f._isTextarea="textarea"===p,f._isNativeSelect&&(f.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),f}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){cA.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=yg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=yg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ag().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=yg(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(fA)).\u0275fac=function(e){return new(e||XT)(Va(Qs),Va(ig),Va(DS,10),Va(wx,8),Va(Ox,8),Va(xk),Va(lA,10),Va(sA),Va(Vl),Va(yE,8))},XT.\u0275dir=bt({type:XT,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Xa("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(As("disabled",t.disabled)("required",t.required),Ma("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),ps("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Us([{provide:sE,useExisting:XT}]),wa,Ai]}),XT),pA=((QT=function e(){v(this,e)}).\u0275mod=yt({type:QT}),QT.\u0275inj=Te({factory:function(e){return new(e||QT)},providers:[xk],imports:[[uA,bE,ck],uA,bE]}),QT),vA=((ZT=function(){function e(){v(this,e),this.fileType="csv",this.options={lineBreak:"\n",columnSeparator:"\t",hasHeaderRow:!0,indexIdentifierColumn:0},this.fileUploadStarted=new Ku,this.fileDataAdded=new Ku,this.fileUploadFinished=new Ku,this.fileProcess=new Ku,this.subscriptions=[]}return g(e,[{key:"ngOnInit",value:function(){var e=localStorage.getItem("fileType");e&&(this.fileType=e);var t=localStorage.getItem(this.fileType+"_options");this.options=t?JSON.parse(t):WC[this.fileType],this.acceptedFileTypes=Object.keys(WC)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"fileSelected",value:function(e){var t=this;if(e){this.selectedFile=e,this.selectedFileName=e.name;var n=this.selectedFileName.split("."),i=n[n.length-1];this.acceptedFileTypes.indexOf(i)>-1&&(this.fileType=i,this.updateType());var r=new FileReader;r.onload=function(){t.selectedFileContent=r.result},r.readAsText(e)}else this.selectedFile=null,this.selectedFileName=null,this.selectedFileContent=null}},{key:"updateType",value:function(){localStorage.setItem("fileType",this.fileType);var e=localStorage.getItem(this.fileType+"_options");this.options=e?JSON.parse(e):WC[this.fileType]}},{key:"updateOptions",value:function(){var e=JSON.stringify(this.options);localStorage.setItem(this.fileType+"_options",e)}},{key:"processFile",value:function(){this.fileProcess.emit({lineBreak:this.options.lineBreak,columnSeparator:this.options.columnSeparator,hasHeaderRow:this.options.hasHeaderRow,indexIdentifierColumn:this.options.indexIdentifierColumn,file:this.selectedFile})}}]),e}()).\u0275fac=function(e){return new(e||ZT)},ZT.\u0275cmp=pt({type:ZT,selectors:[["adme-text-file"]],inputs:{fileSelected:"fileSelected"},outputs:{fileUploadStarted:"fileUploadStarted",fileDataAdded:"fileDataAdded",fileUploadFinished:"fileUploadFinished",fileProcess:"fileProcess"},decls:52,vars:10,consts:[[1,"text-file-body"],[1,"description"],["href","https://support.office.com/en-us/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba","target","_blank"],["mat-raised-button","","color","primary","admeFileSelect","",3,"selectedFile"],[1,"text-file-form"],["textFileForm","ngForm"],[1,"form-body"],[1,"file-type"],["name","fileType","required","",3,"ngModel","ngModelChange","selectionChange"],["value","csv"],["value","text"],["value","smi"],[1,"column-separator"],["name","columnSeparator","required","","matTooltip","Set of characters used to separate columns",3,"ngModel","ngModelChange","selectionChange"],[3,"value"],[1,"header-row"],["name","hasHeaderRow","required","","matTooltip","True if dataset has a header row and false if it doesn't",3,"ngModel","ngModelChange","selectionChange"],[1,"smiles-column-number"],["type","number","matInput","","placeholder","SMILES column number","name","indexIdentifierColumn","required","","matTooltip","The column number that contains the SMILES starting from 0.",3,"ngModel","ngModelChange","change"],[1,"form-actions"],[1,"space-between"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(e,t){if(1&e&&(Ha(0,"div",0),Ha(1,"div",1),xs(2," Select a text file containing a list of smiles, but try to keep the size of the data to under 10,000 rows. Anything above 10,000 rows may take several minutes. If you have an Excel file, follow "),Ha(3,"a",2),xs(4,"these instructions"),Ua(),xs(5," to export it as Text or CSV. "),Ua(),Ha(6,"div"),Ha(7,"button",3),Xa("selectedFile",function(e){return t.fileSelected(e)}),xs(8,"Browse"),Ua(),Ha(9,"span"),xs(10),Ua(),Ua(),Ha(11,"form",4,5),Ha(13,"div",6),Ha(14,"div",7),Ha(15,"mat-form-field"),Ha(16,"mat-label"),xs(17,"File type"),Ua(),Ha(18,"mat-select",8),Xa("ngModelChange",function(e){return t.fileType=e})("selectionChange",function(){return t.updateType()}),Ha(19,"mat-option",9),xs(20," CSV "),Ua(),Ha(21,"mat-option",10),xs(22," Text "),Ua(),Ha(23,"mat-option",11),xs(24," SMI "),Ua(),Ua(),Ua(),Ua(),Ha(25,"div",12),Ha(26,"mat-form-field"),Ha(27,"mat-label"),xs(28,"Column separator"),Ua(),Ha(29,"mat-select",13),Xa("ngModelChange",function(e){return t.options.columnSeparator=e})("selectionChange",function(){return t.updateOptions()}),Ha(30,"mat-option",14),xs(31," Comma (,) "),Ua(),Ha(32,"mat-option",14),xs(33," Tab (\\t) "),Ua(),Ua(),Ua(),Ua(),Ha(34,"div",15),Ha(35,"mat-form-field"),Ha(36,"mat-label"),xs(37,"Has header row"),Ua(),Ha(38,"mat-select",16),Xa("ngModelChange",function(e){return t.options.hasHeaderRow=e})("selectionChange",function(){return t.updateOptions()}),Ha(39,"mat-option",14),xs(40," Yes "),Ua(),Ha(41,"mat-option",14),xs(42," No "),Ua(),Ua(),Ua(),Ua(),Ha(43,"div",17),Ha(44,"mat-form-field"),Ha(45,"input",18),Xa("ngModelChange",function(e){return t.options.indexIdentifierColumn=e})("change",function(){return t.updateOptions()}),Ua(),Ha(46,"mat-hint"),xs(47,"Zero indicates that the SMILES are in the first column"),Ua(),Ua(),Ua(),Ua(),Ha(48,"div",19),qa(49,"span",20),Ha(50,"button",21),Xa("click",function(){return t.processFile()}),xs(51," Process file "),Ua(),Ua(),Ua(),Ua()),2&e){var n=Na(12);uo(10),Ts(" \xa0 ",t.selectedFileName?"Selected file: "+t.selectedFileName:"No file selected"," "),uo(8),Ba("ngModel",t.fileType),uo(11),Ba("ngModel",t.options.columnSeparator),uo(1),Ba("value",","),uo(2),Ba("value","\t"),uo(6),Ba("ngModel",t.options.hasHeaderRow),uo(1),Ba("value",!0),uo(2),Ba("value",!1),uo(4),Ba("ngModel",t.options.indexIdentifierColumn),uo(5),Ba("disabled",n.invalid||!t.selectedFileName||!t.selectedFileContent)}},directives:[zC,YC,Ex,LS,wx,_E,hE,PT,Rx,MS,xx,Gk,iA,NS,dA,nS,cE],styles:[".text-file-body[_ngcontent-%COMP%]{height:100%}.text-file-body[_ngcontent-%COMP%], .text-file-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.text-file-form[_ngcontent-%COMP%]{margin-top:15px;flex-grow:1;overflow:auto}.description[_ngcontent-%COMP%]{margin-bottom:10px}.form-body[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.form-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){padding-right:10px}.mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:15px}.form-actions[_ngcontent-%COMP%]{display:flex;padding-top:15px}"]}),ZT),mA=["*"];function gA(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function yA(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function _A(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var bA,kA=function e(t,n,i){v(this,e),this.url=t,this.svgText=n,this.options=i},wA=((bA=function(){function e(t,n,i,r){v(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return g(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new kA(n,null,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(bi.HTML,n);if(!r)throw _A(n);return this._addSvgIconConfig(e,t,new kA("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new kA(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(bi.HTML,t);if(!i)throw _A(t);return this._addSvgIconSetConfig(e,new kA("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(bi.RESOURCE_URL,e);if(!n)throw yA(e);var i=this._cachedIconsByUrl.get(n);return i?af(CA(i)):this._loadSvgIconFromConfig(new kA(e,null)).pipe(Yf(function(e){return t._cachedIconsByUrl.set(n,e)}),Q(function(e){return CA(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=SA(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):_w(gA(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?af(CA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Q(function(e){return CA(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?af(i):GC(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(zf(function(t){var i=n._sanitizer.sanitize(bi.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),af(null)}))})).pipe(Q(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw gA(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}),Q(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?af(null):this._fetchIcon(e).pipe(Yf(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i enter",Iy("150ms cubic-bezier(0, 0, 0.2, 1)",Dy({transform:"none",opacity:1}))),Ly("* => void, * => exit",Iy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Dy({opacity:0})))])},jA=((FA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new Ku,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return g(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(yy)).\u0275fac=function(e){return new(e||FA)(Va(Qs),Va(Yg),Va(_u),Va(mc,8),Va(NA),Va(ty))},FA.\u0275dir=bt({type:FA,viewQuery:function(e,t){var n;1&e&&sl(by,!0),2&e&&al(n=dl())&&(t._portalOutlet=n.first)},features:[wa]}),FA),BA=((LA=function(e){u(n,e);var t=c(n);function n(){var e;return v(this,n),(e=t.apply(this,arguments))._state="enter",e}return g(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(jA)).\u0275fac=function(e){return zA(e||LA)},LA.\u0275cmp=pt({type:LA,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&$a("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(As("id",t._id),Ma("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Os("@dialogContainer",t._state))},features:[wa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fa(0,MA,0,0,"ng-template",0)},directives:[by],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VA.dialogContainer]}}),LA),zA=pr(BA),HA=0,UA=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+HA++;v(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,n._id=r,n._animationStateChanged.pipe(gf(function(e){return"opened"===e.state}),Mf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(gf(function(e){return"closed"===e.state}),Mf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(gf(function(e){return 27===e.keyCode&&!i.disableClose&&!lg(e)})).subscribe(function(e){e.preventDefault(),qA(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():qA(i,"mouse")})}return g(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(gf(function(e){return"closing"===e.state}),Mf(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function qA(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var WA,YA,GA,KA,ZA,QA=new Le("MatDialogData"),XA=new Le("mat-dialog-default-options"),$A=new Le("mat-dialog-scroll-strategy"),JA={provide:$A,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},eO=((ZA=function(){function e(t,n,i,r,o,a,s,u,l){var c=this;v(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=vf(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return g(e,[{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new NA)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new LE({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=ba.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:NA,useValue:t}]}),i=new vy(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof xu)t.attachTemplatePortal(new my(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new vy(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(xy,null)||r.push({provide:xy,useValue:{value:e.direction,change:af()}}),ba.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||ZA)(Va(iT),Va(ba),Va(void 0),Va(void 0),Va(HE),Va(void 0),Va(Ge),Va(Ge),Va(Le))},ZA.\u0275dir=bt({type:ZA}),ZA),tO=((KA=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s,u){return v(this,n),t.call(this,e,i,o,s,u,a,UA,BA,QA)}return n}(eO)).\u0275fac=function(e){return new(e||KA)(Lt(iT),Lt(ba),Lt(Fc,8),Lt(XA,8),Lt($A),Lt(KA,12),Lt(HE))},KA.\u0275prov=Ee({token:KA,factory:KA.\u0275fac}),KA),nO=((GA=function e(){v(this,e)}).\u0275mod=yt({type:GA}),GA.\u0275inj=Te({factory:function(e){return new(e||GA)},providers:[tO,JA],imports:[[lT,Cy,ck],ck]}),GA),iO=((YA=function(){function e(t,n){v(this,e),this.el=t,this.http=n,this.privateStereo=!1,this.isAfterViewInit=!1,this.imageElement=this.el.nativeElement}return g(e,[{key:"ngAfterViewInit",value:function(){this.isAfterViewInit=!0,this.setImageSrc()}},{key:"setImageSrc",value:function(){if(this.isAfterViewInit){var e="/api/v1/structure_image/"+encodeURIComponent(this.privateEntityId);this.imageElement.src=e,this.imageElement.alt="structure image"}}},{key:"version",set:function(e){e!==this.privateVersion&&(this.privateVersion=e,this.setImageSrc())}},{key:"entityId",set:function(e){e!==this.privateEntityId&&(this.privateEntityId=e,this.setImageSrc())}},{key:"size",set:function(e){e!==this.privateSize&&(this.privateSize=e,this.setImageSrc())}},{key:"stereo",set:function(e){e!==this.privateStereo&&(this.privateStereo=e,this.setImageSrc())}},{key:"atomMaps",set:function(e){e!==this.privateAtomMaps&&(this.privateAtomMaps=e,this.setImageSrc())}}]),e}()).\u0275fac=function(e){return new(e||YA)(Va(Qs),Va(Rm))},YA.\u0275dir=bt({type:YA,selectors:[["","admeStructureImage",""]],inputs:{version:"version",entityId:"entityId",size:"size",stereo:"stereo",atomMaps:"atomMaps"}}),YA),rO=((WA=function(){function e(t){v(this,e),this.data=t,this.smiles=t.smiles}return g(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||WA)(Va(QA))},WA.\u0275cmp=pt({type:WA,selectors:[["adme-structure-image-dialog"]],decls:1,vars:1,consts:[["admeStructureImage","",3,"entityId"]],template:function(e,t){1&e&&qa(0,"img",0),2&e&&Ba("entityId",t.smiles)},directives:[iO],styles:["img[_ngcontent-%COMP%]{height:60vh;width:auto}"]}),WA);function oO(e,t){if(1&e&&(Ha(0,"mat-option",19),xs(1),Ua()),2&e){var n=t.$implicit;Ba("value",n),uo(1),Ts(" ",n," ")}}function aO(e,t){if(1&e){var n=Ka();Ha(0,"mat-form-field",16),Ha(1,"mat-select",17),Xa("selectionChange",function(e){return cn(n),ns(2)._changePageSize(e.value)}),Fa(2,oO,2,2,"mat-option",18),Ua(),Ua()}if(2&e){var i=ns(2);Ba("appearance",i._formFieldAppearance)("color",i.color),uo(1),Ba("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),uo(1),Ba("ngForOf",i._displayedPageSizeOptions)}}function sO(e,t){if(1&e&&(Ha(0,"div",20),xs(1),Ua()),2&e){var n=ns(2);uo(1),Es(n.pageSize)}}function uO(e,t){if(1&e&&(Ha(0,"div",12),Ha(1,"div",13),xs(2),Ua(),Fa(3,aO,3,6,"mat-form-field",14),Fa(4,sO,2,1,"div",15),Ua()),2&e){var n=ns();uo(2),Ts(" ",n._intl.itemsPerPageLabel," "),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length>1),uo(1),Ba("ngIf",n._displayedPageSizeOptions.length<=1)}}function lO(e,t){if(1&e){var n=Ka();Ha(0,"button",21),Xa("click",function(){return cn(n),ns().firstPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",22),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ma("aria-label",i._intl.firstPageLabel)}}function cO(e,t){if(1&e){var n=Ka();Nn(),Vn(),Ha(0,"button",23),Xa("click",function(){return cn(n),ns().lastPage()}),Nn(),Ha(1,"svg",7),qa(2,"path",24),Ua(),Ua()}if(2&e){var i=ns();Ba("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ma("aria-label",i._intl.lastPageLabel)}}var hO,fO,dO,pO,vO=((hO=function e(){v(this,e),this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||hO)},hO.\u0275prov=Ee({factory:function(){return new hO},token:hO,providedIn:"root"}),hO),mO={provide:vO,deps:[[new _e,new ke,vO]],useFactory:function(e){return e||new vO}},gO=new Le("MAT_PAGINATOR_DEFAULT_OPTIONS"),yO=hk(vk(function e(){v(this,e)})),_O=((pO=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;if(v(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Ku,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return h(o)}return g(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];v(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._cachedCellWidths=[]}return g(e,[{key:"clearStickyPositioning",value:function(e,t){var n,r=this,o=[],a=i(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(var u=0;u3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],s=a.children.length,u=this._getCellWidths(a,o),l=this._getStickyStartColumnPositions(u,t),c=this._getStickyEndColumnPositions(u,n);this._scheduleStyleChanges(function(){var o,a="rtl"===r.direction,u=a?"right":"left",h=a?"left":"right",f=i(e);try{for(f.s();!(o=f.n()).done;)for(var d=o.value,p=0;p1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),vI=((qO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||qO)(Va(Ru),Va(Qs))},qO.\u0275dir=bt({type:qO,selectors:[["","rowOutlet",""]]}),qO),mI=((UO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||UO)(Va(Ru),Va(Qs))},UO.\u0275dir=bt({type:UO,selectors:[["","headerRowOutlet",""]]}),UO),gI=((HO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||HO)(Va(Ru),Va(Qs))},HO.\u0275dir=bt({type:HO,selectors:[["","footerRowOutlet",""]]}),HO),yI=((zO=function e(t,n){v(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||zO)(Va(Ru),Va(Qs))},zO.\u0275dir=bt({type:zO,selectors:[["","noDataRowOutlet",""]]}),zO),_I=((BO=function(){function e(t,n,i,r,o,a,s,u,l,c){v(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new j,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 sf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(ow(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,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()}},{key:"ngOnDestroy",value:function(){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(),Cw(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,r,{$implicit:o.data})}else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(t(n),t(i),t(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,r=i(this._getCellTemplates(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;lI.mostRecentCellOutlet&&lI.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t)}}catch(a){r.e(a)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t=r.length&&(o=0),r[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(cR)).\u0275fac=function(e){return fR(e||oR)},oR.\u0275dir=bt({type:oR,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[wa,Ai]}),oR),fR=pr(hR),dR=sk.ENTERING+" "+ak.STANDARD_CURVE,pR={indicator:Oy("indicator",[Py("active-asc, asc",Dy({transform:"translateY(0px)"})),Py("active-desc, desc",Dy({transform:"translateY(10px)"})),Ly("active-asc <=> active-desc",Iy(dR))]),leftPointer:Oy("leftPointer",[Py("active-asc, asc",Dy({transform:"rotate(-45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),rightPointer:Oy("rightPointer",[Py("active-asc, asc",Dy({transform:"rotate(45deg)"})),Py("active-desc, desc",Dy({transform:"rotate(-45deg)"})),Ly("active-asc <=> active-desc",Iy(dR))]),arrowOpacity:Oy("arrowOpacity",[Py("desc-to-active, asc-to-active, active",Dy({opacity:1})),Py("desc-to-hint, asc-to-hint, hint",Dy({opacity:.54})),Py("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Dy({opacity:0})),Ly("* => asc, * => desc, * => active, * => hint, * => void",Iy("0ms")),Ly("* <=> *",Iy(dR))]),arrowPosition:Oy("arrowPosition",[Ly("* => desc-to-hint, * => desc-to-active",Iy(dR,My([Dy({transform:"translateY(-25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-desc, * => active-to-desc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(25%)"})]))),Ly("* => asc-to-hint, * => asc-to-active",Iy(dR,My([Dy({transform:"translateY(25%)"}),Dy({transform:"translateY(0)"})]))),Ly("* => hint-to-asc, * => active-to-asc",Iy(dR,My([Dy({transform:"translateY(0)"}),Dy({transform:"translateY(-25%)"})]))),Py("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Dy({transform:"translateY(0)"})),Py("hint-to-desc, active-to-desc, desc",Dy({transform:"translateY(-25%)"})),Py("hint-to-asc, active-to-asc, asc",Dy({transform:"translateY(25%)"}))]),allowChildren:Oy("allowChildren",[Ly("* <=> *",[Ny("@*",Fy(),{optional:!0})])])},vR=((aR=function e(){v(this,e),this.changes=new j,this.sortButtonLabel=function(e){return"Change sorting for "+e}}).\u0275fac=function(e){return new(e||aR)},aR.\u0275prov=Ee({factory:function(){return new aR},token:aR,providedIn:"root"}),aR),mR={provide:vR,deps:[[new _e,new ke,vR]],useFactory:function(e){return e||new vR}},gR=hk(function e(){v(this,e)}),yR=((uR=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a,s){var u;return v(this,n),(u=t.call(this))._intl=e,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._rerenderSubscription=se(r.sortChange,r._stateChanges,e.changes).subscribe(function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),i.markForCheck()}),u}return g(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){return e._setIndicatorHintVisible(!!t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=yg(e)}}]),n}(gR)).\u0275fac=function(e){return new(e||uR)(Va(vR),Va(_u),Va(hR,8),Va("MAT_SORT_HEADER_COLUMN_DEF",8),Va(ty),Va(Qs))},uR.\u0275cmp=pt({type:uR,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xa("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Ma("aria-sort",t._getAriaSortAttribute()),ps("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[wa],attrs:iR,ngContentSelectors:lR,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(rs(),Ha(0,"div",0),Ha(1,"div",1),os(2),Ua(),Fa(3,rR,6,6,"div",2),Ua()),2&e&&(ps("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Ma("tabindex",t._isDisabled()?null:0),uo(3),Ba("ngIf",t._renderArrow()))},directives:[Xc],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pR.indicator,pR.leftPointer,pR.rightPointer,pR.arrowOpacity,pR.arrowPosition,pR.allowChildren]},changeDetection:0}),uR),_R=((sR=function e(){v(this,e)}).\u0275mod=yt({type:sR}),sR.\u0275inj=Te({factory:function(e){return new(e||sR)},providers:[mR],imports:[[ph,ck]]}),sR);function bR(e,t){if(1&e&&(Ha(0,"li"),xs(1),Ua()),2&e){var n=t.$implicit;uo(1),Es(n)}}function kR(e,t){if(1&e&&(Ha(0,"ul"),Fa(1,bR,2,1,"li",8),Ua()),2&e){var n=ns(2);uo(1),Ba("ngForOf",n.errorMessages)}}function wR(e,t){if(1&e){var n=Ka();Ha(0,"div",2),Ha(1,"div",3),Ha(2,"div"),xs(3),Ua(),Fa(4,kR,2,1,"ul",4),Ua(),Ha(5,"div",5),Ha(6,"button",6),Xa("click",function(){return cn(n),ns().clearErrorMessage()}),qa(7,"mat-icon",7),Ua(),Ua(),Ua()}if(2&e){var i=ns();uo(3),Ts(" ",i.errorMessage," "),uo(1),Ba("ngIf",i.errorMessages&&i.errorMessages.length)}}function CR(e,t){if(1&e&&(Ha(0,"mat-header-cell",23),Ha(1,"span",24),xs(2),Ua(),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("matTooltip",i.displayedColumnsDict[n].description),uo(1),Ts(" ",i.displayedColumnsDict[n].isSmilesColumn?"mol":n," ")}}function SR(e,t){if(1&e&&(Ha(0,"span"),xs(1),Ua()),2&e){var n=ns().$implicit,i=ns().$implicit;uo(1),Es("0 (0.0)"==n[i]?"0 (0.01)":n[i])}}function xR(e,t){if(1&e){var n=Ka();Ha(0,"a",26),Xa("click",function(){cn(n);var e=ns().$implicit,t=ns().$implicit;return ns(2).openStructureImageDialog(e[t])}),qa(1,"img",27),Ua()}if(2&e){var i=ns().$implicit,r=ns().$implicit;Ba("matTooltip",i[r]),uo(1),Ba("entityId",i[r])}}function ER(e,t){if(1&e&&(Ha(0,"mat-cell"),Fa(1,SR,2,1,"span",4),Fa(2,xR,2,2,"a",25),Ua()),2&e){var n=ns().$implicit,i=ns(2);uo(1),Ba("ngIf",!i.displayedColumnsDict[n].isSmilesColumn),uo(1),Ba("ngIf",i.displayedColumnsDict[n].isSmilesColumn)}}function TR(e,t){1&e&&(Wa(0,20),Fa(1,CR,3,2,"mat-header-cell",21),Fa(2,ER,3,2,"mat-cell",22),Ya()),2&e&&Ba("matColumnDef",t.$implicit)}function AR(e,t){1&e&&qa(0,"mat-header-row")}function OR(e,t){1&e&&qa(0,"mat-row",28)}var IR=function(){return[5,10,25,100]};function RR(e,t){if(1&e){var n=Ka();Ha(0,"div",9),Ha(1,"h2"),xs(2,"Model predictions"),Ua(),Ha(3,"div",10),Ha(4,"button",11),Xa("click",function(){return cn(n),ns().downloadCSV()}),xs(5,"Download"),Ua(),qa(6,"div",12),Ha(7,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua(),Ha(8,"div",14),Ha(9,"mat-table",15,16),Xa("matSortChange",function(e){return cn(n),ns().sortData(e)}),Fa(11,TR,3,1,"ng-container",17),Fa(12,AR,1,0,"mat-header-row",18),Fa(13,OR,1,0,"mat-row",19),Ua(),Ua(),Ha(14,"mat-paginator",13),Xa("page",function(e){return cn(n),ns().pageChange(e)}),Ua(),Ua()}if(2&e){var i=ns();uo(7),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(12,IR)),uo(2),Ba("dataSource",i.paged),uo(2),Ba("ngForOf",i.displayedColumns),uo(1),Ba("matHeaderRowDef",i.displayedColumns),uo(1),Ba("matRowDefColumns",i.displayedColumns),uo(1),Ba("length",i.displayData&&i.displayData.length||0)("pageSize",i.pageSize)("pageIndex",i.page)("pageSizeOptions",Wu(13,IR))}}var DR,PR=((DR=function(){function e(t,n){v(this,e),this.dialog=t,this.gaService=n,this.data=[],this.displayData=[],this.page=0,this.pageSize=10,this.dataHandling="replace",this.errorMessages=[],this.download=new Ku}return g(e,[{key:"ngOnInit",value:function(){}},{key:"pageChange",value:function(e){this.clearErrorMessage(),null!=e?(e.pageIndex!==this.page&&this.gaService.sendEvent("click:button","page-change","predictions:"+this.model),this.page=e.pageIndex,e.pageSize!==this.pageSize&&this.gaService.sendEvent("click:select","page-size-change","predictions:"+this.model),this.pageSize=e.pageSize):this.page=0,this.paged=[];for(var t=this.page*this.pageSize,n=t;n 30 min). The models also provide a probability score (between 0 and 1), shown in parentheses next to the predicted class. The predicted class (unstable or stable) based on the consesus model is shown in the last column."),Ua(),Ua(),Ha(60,"div",4),Ha(61,"div",5),xs(62,"Data for Download:"),Ua(),Ha(63,"div",6),xs(64," A subset of the dataset used for developing these models is available for download. Click "),Ha(65,"a",12),xs(66,"here"),Ua(),xs(67," to download. Alternatively, this data is also available from PubChem Bioassay database: "),Ha(68,"a",13),xs(69,"AID 1508591"),Ua(),xs(70,". "),Ua(),Ua(),Ua(),qa(71,"br"),Ha(72,"h3"),xs(73," RLM Assay Protocol "),Ua(),Ha(74,"p",14),xs(75," Experiments were performed using a Freedom Evo 200 automated platform with a 96-channel (MCA96) head with EVOware software (version 3.2) (Tecan Inc., M\xe4nnedorf, Switzerland). The system also includes an Inheco heating block and cooling block (Inheco, Munich, Germany). Six standard controls were tested in each run: buspirone, propranolol, diclofenac, loperamide, carbamazepine and antipyrine. The assay incubation system consisted of 0.5 mg/mL of rat microsomal protein (Strain: Sprague-Dawley), 1.0 \u03bcM drug concentration, and NADPH regeneration system (containing 0.650 mM NADP+, 1.65 mM glucose 6-phosphate, 1.65 mM MgCl2, and 0.2 unit/mL G6PDH) in 100 mM phosphate buffer at pH 7.4. The incubation was carried out at 37 \xb0C for 15 min. The reaction was quenched by adding 555 \u03bcL of acetonitrile containing 0.28 \u03bcM albendazole, an internal standard. After a 20-minute centrifugation at 3000 rpm at 4\xb0C, 30 \u03bcL of the supernatant was transferred to an analysis plate and was diluted five-fold using 1:2 v/v acetonitrile/water. Sample quantification and analysis was performed using a previously described method (Shah et al., 2016) with minor modifications. The t"),Ha(76,"sub"),xs(77,"1/2"),Ua(),xs(78," values were capped at 30 minutes since for a 15-minute assay, the data cannot be extrapolated beyond 30 minutes (Di et al., 2004). "),Ua(),Ha(79,"h3"),xs(80," References: "),Ua(),Ha(81,"ol"),Ha(82,"li"),xs(83," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High Resolution Accurate Mass Method and Automated Data Analysis Software. Drug Metab Dispos. 44, 1653-1661 (2016). "),Ua(),Ha(84,"li"),xs(85," Di, L. et al. Experimental design on single-time-point high-throughput microsomal stability assay. J Pharm Sci. 93, 1537-1544 (2004). "),Ua(),Ua(),Ua()),2&e){var n=ns();uo(65),Ba("href",n.dataDownloadHref,ki)}}function WR(e,t){1&e&&(Ha(0,"div",2),Ha(1,"h2"),xs(2," CYP450 Models "),Ua(),Ha(3,"h3"),xs(4," High-throughput metabolic stability assays: "),Ua(),Ha(5,"p"),xs(6," The substrate depletion assay was employed to determine metabolic stability, using an established mid-density (384-well format) protocol"),Ha(7,"sup"),xs(8,"1"),Ua(),xs(9,". The workflow included a robotic system for incubation and sample clean-up, coupled with an automated ultra-high performance liquid chromatography-high resolution mass spectrometry (UHPLC-HRMS) method for sample analysis. Briefly, each 110 \xb5L reaction mixture consisted of 1 \xb5M test article, supersomes, and an NADPH regenerating system in 100mM phosphate buffer at pH 7.4. The specific protein and enzyme concentrations, as well as the control compounds utilized are listed in Table 1. Incubations were conducted at 37\xb0C, with mixing, and reaction aliquots were quenched at 0, 5, 10, 15, 30, and 60 min by addition of cold acetonitrile (ACN) with internal standard (IS), i.e. albendazole. Centrifugation at 3000 g, 4 \xb0C for 20 min, was used to clear samples of precipitated protein and debris. Sample analysis in an UHPLC-HRMS instrument, data extraction, and half-life (t"),Ha(10,"sub"),xs(11,"1/2"),Ua(),xs(12,") determinations were performed as previously described"),Ha(13,"sup"),xs(14,"1"),Ua(),xs(15,". "),Ua(),Ha(16,"div",15),Ha(17,"div",16),xs(18," Table 1: Summary of enzyme concentrations, cofactor activities and controls used the P450-Glo assays "),Ua(),Ha(19,"div",17),Ha(20,"table",18),Ha(21,"thead"),Ha(22,"tr",19),Ha(23,"th",20),xs(24," Matrix "),Ua(),Ha(25,"th",20),xs(26," Final Protein Concentration [mg/mL] "),Ua(),Ha(27,"th",20),xs(28," Total CYP content [nM] "),Ua(),Ha(29,"th",20),xs(30," Cytochrome c Reductase activity [nol/(min x mg protein)] "),Ua(),Ha(31,"th",20),xs(32," Cytochrome b"),Ha(33,"sub"),xs(34,"5"),Ua(),xs(35," content [pmol/mg protein] "),Ua(),Ha(36,"th",20),xs(37," High clearance controls "),Ua(),Ha(38,"th",20),xs(39," Moderate clearance controls "),Ua(),Ha(40,"th",20),xs(41," Low clearance controls "),Ua(),Ua(),Ua(),Ha(42,"tbody"),Ha(43,"tr",21),Ha(44,"td",22),xs(45," CYP3A4 "),Ua(),Ha(46,"td",23),xs(47," ~0.2 "),Ua(),Ha(48,"td",23),xs(49," 30 "),Ua(),Ha(50,"td",23),xs(51," 2900 "),Ua(),Ha(52,"td",23),xs(53," 1090 "),Ua(),Ha(54,"td",23),xs(55," Buspirone, Loperamide "),Ua(),Ha(56,"td",23),xs(57," Ketoconazole "),Ua(),Ha(58,"td",23),xs(59," Antipyrine, Carbamazepine "),Ua(),Ua(),Ha(60,"tr",21),Ha(61,"td",22),xs(62," CYP2C9 "),Ua(),Ha(63,"td",23),xs(64," ~0.12 "),Ua(),Ha(65,"td",23),xs(66," 45 "),Ua(),Ha(67,"td",23),xs(68," 985 "),Ua(),Ha(69,"td",23),xs(70," 710 "),Ua(),Ha(71,"td",23),xs(72," Glyburide, Glimepiride "),Ua(),Ha(73,"td",23),xs(74," Tamoxifen "),Ua(),Ha(75,"td",23),xs(76," Antipyrine, Meloxicam "),Ua(),Ua(),Ha(77,"tr",21),Ha(78,"td",22),xs(79," CYP2D6 "),Ua(),Ha(80,"td",23),xs(81," ~0.38 "),Ua(),Ha(82,"td",23),xs(83," 60 "),Ua(),Ha(84,"td",23),xs(85," 3000 "),Ua(),Ha(86,"td",23),xs(87," - "),Ua(),Ha(88,"td",23),xs(89," Bufuralol, Desipramine, Amitriptyline "),Ua(),Ha(90,"td",23),xs(91," Mexiletine "),Ua(),Ha(92,"td",23),xs(93," Codeine "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(94,"h3"),xs(95," P450-Glo qHTS: "),Ua(),Ha(96,"p"),xs(97," The P450-Glo inhibition assay is a luminescent technique used to detect CYP activity, through the liberation of luciferin from CYP probe substrates. P450-Glo assays were performed using a previously described method with minor modifications"),Ha(98,"sup"),xs(99,"2"),Ua(),xs(100,". Briefly, 2 \xb5L of CYP-substrate mix was dispensed into medium-binding white/solid 1,536-well plates using a Flying Reagent Dispenser (FRD, Aurora Discovery, Carlsbad, CA) with the exception of adding Bovine Serum Albumin (BSA) to the mixture for CYP2C9 and CYP2C19. The initial optimization assays for CYP2C9 and CYP2C19 yielded lower signal to background ratios and higher well to well variation. To increase signal and prevent adhesion of protein to tubes of the plate dispenser, 0.4% BSA was added to these two enzyme assays. 23 nL of each positive control (columns 1-4) and test compound (columns 5-48) dissolved in DMSO was transferred to the assay plates using a Wako Pintool station (Wako Automation, San Diego, CA). Positive controls used in these experiments are listed in Table 2. After the control/test compounds were transferred, the assay plates were incubated at room temperature (RT) for 10 min before the addition of 2 \xb5L NADPH regeneration solution using an FRD. The reaction incubation continued at either RT or 37 \xb0C for 60 min, and then quenched by FRD addition of 4 \xb5L of the detection reagent. After a 20 min incubation at room temperature, the luminescence intensity was measured and quantified using a ViewLux plate reader (PerkinElmer, Shelton, CT). Data was expressed as relative luminescence units. "),Ua(),Ha(101,"div",15),Ha(102,"div",16),xs(103," Table 2: Summary of incubation conditions and positive controls used in the P450-Glo assays "),Ua(),Ha(104,"div",17),Ha(105,"table",18),Ha(106,"thead"),Ha(107,"tr",19),Ha(108,"th",20),xs(109," Enzyme "),Ua(),Ha(110,"th",20),xs(111," Inhibitor "),Ua(),Ha(112,"th",20),xs(113," Dilution Format "),Ua(),Ha(114,"th",20),xs(115," Inhibitor Concentration "),Ua(),Ha(116,"th",20),xs(117," Incubation conditions "),Ua(),Ua(),Ua(),Ha(118,"tbody"),Ha(119,"tr",21),Ha(120,"td",22),xs(121," CYP3A4 "),Ua(),Ha(122,"td",23),xs(123," Ketoconazole "),Ua(),Ha(124,"td",24),Ha(125,"div"),xs(126,"16 concentrations/"),Ua(),Ha(127,"div"),xs(128,"2-fold dilution in"),Ua(),Ha(129,"div"),xs(130,"duplicates"),Ua(),Ua(),Ha(131,"td",23),xs(132," 57 \xb5M-1.8 nM "),Ua(),Ha(133,"td",23),xs(134," 1 h/RT "),Ua(),Ua(),Ha(135,"tr",21),Ha(136,"td",22),xs(137," CYP2C9 "),Ua(),Ha(138,"td",23),xs(139," Sulfaphenazole "),Ua(),Ha(140,"td",23),xs(141," 57 \xb5M-1.8 nM "),Ua(),Ha(142,"td",23),xs(143," 1 h/ 37\u02daC/ 0.4% BSA "),Ua(),Ua(),Ha(144,"tr",21),Ha(145,"td",22),xs(146," CYP2D6 "),Ua(),Ha(147,"td",23),xs(148," Quinidine "),Ua(),Ha(149,"td",23),xs(150," 1.4 \xb5M-0.04 nM "),Ua(),Ha(151,"td",23),xs(152," 1 h/RT "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(153,"div",15),Ha(154,"div",16),xs(155," Parsing of Substrates and Inhibitors: "),Ua(),Ha(156,"div",17),Ha(157,"table",25),Ha(158,"thead"),Ha(159,"tr",19),Ha(160,"th",20),xs(161," Category "),Ua(),Ha(162,"th",20),Ha(163,"div"),xs(164,"Clearance"),Ua(),Ha(165,"div"),xs(166,"/"),Ua(),Ha(167,"div"),xs(168,"P450-Glo"),Ua(),Ua(),Ha(169,"th",20),xs(170," Classification "),Ua(),Ha(171,"th",20),xs(172," Parsing Rationale "),Ua(),Ua(),Ua(),Ha(173,"tbody"),Ha(174,"tr",21),Ha(175,"td",23),xs(176," 1 "),Ua(),Ha(177,"td",23),xs(178," + / + "),Ua(),Ha(179,"td",23),xs(180," Substrate "),Ua(),Ha(181,"td",26),xs(182," Exhibiting activity in both assays, the compound is a clear ligand for the enzyme(s). It is unclear whether the parent, product, or both are responsible for the inhibition. "),Ua(),Ua(),Ha(183,"tr",21),Ha(184,"td",23),xs(185," 2 "),Ua(),Ha(186,"td",23),xs(187," - / + "),Ua(),Ha(188,"td",23),xs(189," Inhibitor "),Ua(),Ha(190,"td",26),xs(191," The compound is able to inhibit the enzyme metabolism of a probe substrate, but is not itself cleared, indicating that the parent serves as the inhibitor. "),Ua(),Ua(),Ha(192,"tr",21),Ha(193,"td",23),xs(194," 3 "),Ua(),Ha(195,"td",23),xs(196," - / - "),Ua(),Ha(197,"td",23),xs(198," Non-ligand "),Ua(),Ha(199,"td",26),xs(200," The lack of activity in either assay signifies that the compound does not associate with the enzyme(s) with sufficient affinity to enable catalysis or inhibition thereof. "),Ua(),Ua(),Ha(201,"tr",21),Ha(202,"td",23),xs(203," 4 "),Ua(),Ha(204,"td",23),xs(205," + / - "),Ua(),Ha(206,"td",23),xs(207," Substrate "),Ua(),Ha(208,"td",26),xs(209," Although a clear substrate, the binding kinetics of the parent compound and its metabolites do not preclude the concomitant metabolism of the P450-Glo probe. "),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ha(210,"h3"),xs(211," References: "),Ua(),Ha(212,"ol"),Ha(213,"li"),xs(214," Shah, P. et al. An Automated High-Throughput Metabolic Stability Assay Using an Integrated High-Resolution Accurate Mass Method and Automated Data Analysis Software. Drug metabolism and disposition: the biological fate of chemicals 44, 1653-1661 (2016). "),Ua(),Ha(215,"li"),xs(216," Veith, H. et al. Comprehensive characterization of cytochrome P450 isozyme selectivity across chemical libraries. Nat Biotechnol 27, 1050-1055 (2009). "),Ua(),Ua(),Ua())}var YR,GR,KR,ZR,QR=[{path:"home",component:Qm,data:{pageTitle:"home"}},{path:"predictions",component:(KR=function(){function e(t,n,i){v(this,e),this.http=t,this.loadingService=n,this.gaService=i,this.sketcherDisplayedColumns=["smiles","rlm"],this.errorMessages=[],this.columnSeparator=",",this.lineBreak="\n",this.sketcherIndexIdentifierColumn=0,this.models=["RLM","CYP450"]}return g(e,[{key:"ngOnInit",value:function(){this.link=document.createElement("a")}},{key:"processSketcherInput",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","sketcher"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0),this.indexIdentifierColumn=this.sketcherIndexIdentifierColumn,this.http.get("/api/v1/predict",{params:{smiles:e,model:this.models}}).subscribe(function(e){t.sketcherData=e,t.loadingService.setLoadingState(!1)},function(e){t.errorMessage="There was an error processing your structure. Please modify it and try again.",t.loadingService.setLoadingState(!1)})}},{key:"processFile",value:function(e){var t=this;this.gaService.sendEvent("click:button","predict","file"),this.clearErrorMessage(),this.loadingService.setLoadingState(!0);var n=new FormData;n.append("lineBreak",e.lineBreak),this.lineBreak=e.lineBreak,n.append("columnSeparator",e.columnSeparator),this.columnSeparator=e.columnSeparator,n.append("hasHeaderRow",e.hasHeaderRow.toString()),n.append("indexIdentifierColumn",e.indexIdentifierColumn.toString()),n.append("models",this.models.join(";")),this.fileIndexIdentifierColumn=e.indexIdentifierColumn,this.indexIdentifierColumn=this.fileIndexIdentifierColumn,n.append("file",e.file),this.http.post("/api/v1/predict-file",n).subscribe(function(e){e.hasErrors?t.errorMessage=e.errorMessages:e&&Object.keys(e).length>0&&(t.fileData=e),t.loadingService.setLoadingState(!1)},function(e){t.fileData=null,t.errorMessage="There was an error processing your file. Please make sure you have selected a file that contains SMILES, indicate if the file contains a header and the column number containing the SMILES.",t.loadingService.setLoadingState(!1)})}},{key:"clearErrorMessage",value:function(){this.errorMessage="",this.errorMessages=[]}},{key:"downloadCSV",value:function(e){var n=this,i=t(e.allColumns).join(this.columnSeparator),r=[];e.data.forEach(function(t){return r.push(e.allColumns.map(function(e){return t[e]}).join(n.columnSeparator))});var o=i+this.lineBreak+r.join(this.lineBreak);this.file=new Blob([o],{type:"text/csv"}),this.link.download="ADMEModelsPredictions.csv",this.downloadFile()}},{key:"downloadFile",value:function(){this.link.href=window.URL.createObjectURL(this.file),this.link.click()}},{key:"selectedTabChange",value:function(e,t){this.gaService.sendEvent("click:tab",t,e.tab.textLabel)}}]),e}(),KR.\u0275fac=function(e){return new(e||KR)(Va(Rm),Va(Xm),Va(Km))},KR.\u0275cmp=pt({type:KR,selectors:[["adme-predictions"]],decls:13,vars:4,consts:[[1,"content-container"],[1,"molecule-input"],[3,"selectedTabChange"],["label","Sketcher"],[1,"tab-body"],[3,"moleculeInput"],["class","error-message-container",4,"ngIf"],[4,"ngIf"],["label","Text File"],[3,"fileProcess"],[1,"error-message-container"],[1,"error-message"],[1,"error-message-actions"],["mat-button","","color","primary",3,"click"],["aria-hidden","false","aria-label","Close error message","svgIcon","cancel"],[4,"ngFor","ngForOf"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["dataHandling","concat",3,"predictions-data","model","download"],["dataHandling","replace",3,"predictions-data","model","download"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"mat-tab-group",2),Xa("selectedTabChange",function(e){return t.selectedTabChange(e,"predictions:input-type")}),Ha(3,"mat-tab",3),Ha(4,"div",4),Ha(5,"adme-sketcher",5),Xa("moleculeInput",function(e){return t.processSketcherInput(e)}),Ua(),Ua(),Fa(6,FR,8,2,"div",6),Fa(7,VR,3,1,"div",7),Ua(),Ha(8,"mat-tab",8),Ha(9,"div",4),Ha(10,"adme-text-file",9),Xa("fileProcess",function(e){return t.processFile(e)}),Ua(),Ua(),Fa(11,zR,8,2,"div",6),Fa(12,UR,3,1,"div",7),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.sketcherData),uo(4),Ba("ngIf",t.errorMessage),uo(1),Ba("ngIf",t.fileData))},directives:[OC,_C,qC,Xc,vA,zC,DA,Zc,PR],styles:[".content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px 20px}.mat-tab-group[_ngcontent-%COMP%]{width:100%}.tab-body[_ngcontent-%COMP%]{padding-top:15px;max-width:100%;width:100%;overflow:auto;padding-bottom:10px}.molecule-input[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%}.molecule-input[_ngcontent-%COMP%] .mat-tab-header[_ngcontent-%COMP%]{margin-bottom:10px}.error-message-container[_ngcontent-%COMP%]{margin:15px 0;font-weight:500;color:red;border:1px solid red;border-radius:2px;display:flex}.error-message[_ngcontent-%COMP%]{flex-grow:1;padding:12px 7px}.error-message-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]}),KR),data:{pageTitle:"predictions"}},{path:"models/:model",component:(GR=function(){function e(t,n){v(this,e),this.domSanatizer=t,this.activatedRoute=n,this.model="rlm",this.dataDownloadHref=t.bypassSecurityTrustResourceUrl("/client/assets/rlm_public_set.xlsx")}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.activatedRoute.params.subscribe(function(t){e.model=t.model})}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),e}(),GR.\u0275fac=function(e){return new(e||GR)(Va(ef),Va(ip))},GR.\u0275cmp=pt({type:GR,selectors:[["adme-method"]],decls:3,vars:2,consts:[[1,"container"],["class","inner-container",4,"ngIf"],[1,"inner-container"],[1,"definitions-container"],[1,"definition"],[1,"name"],[1,"value"],["href","https://scikit-learn.org/stable/","target","_blank"],["href","https://keras.io/","target","_blank"],["href","https://www.tensorflow.org/","target","_blank"],["href","https://github.com/chemprop/chemprop","target","_blank"],["href","https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00237","target","_blank"],["target","_blank","admeTrackLinkEvent","","evAction","download","evLabel","rlm data subset",3,"href"],["href","https://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=1508591","target","_blank","admeTrackLinkEvent","","evLabel","rlm pubchem"],[2,"text-align","justify"],[1,"table-container"],[1,"table-description"],[1,"table-responsive-container"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell","strong"],[1,"mat-cell","center"],["rowspan","3",1,"mat-cell","center"],[1,"mat-table","more-padding"],[1,"mat-cell"]],template:function(e,t){1&e&&(Ha(0,"div",0),Fa(1,qR,86,1,"div",1),Fa(2,WR,217,0,"div",1),Ua()),2&e&&(uo(1),Ba("ngIf","rlm"==t.model),uo(1),Ba("ngIf","cyp450"==t.model))},directives:[Xc,Zm],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:35px}.table-description[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-style:italic;margin-bottom:7px}.table-responsive-container[_ngcontent-%COMP%]{overflow:auto}table[_ngcontent-%COMP%]{min-width:700px;border-spacing:0}.mat-row[_ngcontent-%COMP%]{min-height:48px;height:48px}.mat-cell[_ngcontent-%COMP%]{padding:0;border-bottom-width:1px;border-bottom-style:solid}.mat-cell.strong[_ngcontent-%COMP%]{font-weight:500}.mat-cell.center[_ngcontent-%COMP%]{text-align:center}.more-padding[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .more-padding[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:15px;margin-right:15px}.space-top[_ngcontent-%COMP%]{margin-top:20px}"]}),GR),data:{pageTitle:"model"}},{path:"contact",component:(YR=function(){function e(t){v(this,e),this.domSanatizer=t,this.vishalImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/siramshettyv2.jpg"),this.pranavImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/shahpa2.png"),this.jorgeImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/neyraj2.jpg"),this.jordanImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/williamsjos.jpg"),this.noelImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/southalln.jpg"),this.trungImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/nguyenda.png"),this.xinImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/profile_images/xux7.jpg"),this.rdkitImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/rdkit.png"),this.pythonImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/python.png"),this.angularImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/angular.png"),this.epamImgSrc=t.bypassSecurityTrustResourceUrl("/client/assets/images/epam_ketcher.png")}return g(e,[{key:"ngOnInit",value:function(){}}]),e}(),YR.\u0275fac=function(e){return new(e||YR)(Va(ef))},YR.\u0275cmp=pt({type:YR,selectors:[["adme-contact"]],decls:108,vars:11,consts:[[1,"container"],[1,"inner-container"],[1,"profiles-row"],[1,"profile-image-container"],[3,"src"],[1,"profile-info-container"],["href","mailto: siramshettyv2@nih.gov"],["href","mailto: pranav.shah@nih.gov"],["href","mailto: jorge.neyra@nih.gov"],["href","mailto: jordan.williams2@nih.gov"],["href","mailto: southalln@mail.nih.gov"],["href","mailto: nguyenda@mail.nih.gov"],["href","mailto: xin.xu3@nih.gov"],[1,"resources-container"],[1,"resources-row"],["href","https://www.rdkit.org/","target","_blank"],["href","https://www.python.org/","target","_blank"],["href","https://angular.io/","target","_blank"],["href","https://lifescience.opensource.epam.com/ketcher/index.html","target","_blank"]],template:function(e,t){1&e&&(Ha(0,"div",0),Ha(1,"div",1),Ha(2,"h1"),xs(3," Contact "),Ua(),Ha(4,"div",2),Ha(5,"div",3),qa(6,"img",4),Ua(),Ha(7,"div",5),Ha(8,"div"),xs(9," Vishal Siramshetty "),Ua(),Ha(10,"div"),xs(11," Postdoctoral Fellow (Informatics) "),Ua(),Ha(12,"div"),xs(13," Email: "),Ha(14,"a",6),xs(15,"siramshettyv2@nih.gov"),Ua(),xs(16," (models/predictions related queries) "),Ua(),Ua(),Ua(),Ha(17,"div",2),Ha(18,"div",3),qa(19,"img",4),Ua(),Ha(20,"div",5),Ha(21,"div"),xs(22," Pranav Shah "),Ua(),Ha(23,"div"),xs(24," Lead (In Vitro ADME) "),Ua(),Ha(25,"div"),xs(26," Email: "),Ha(27,"a",7),xs(28,"pranav.shah@nih.gov"),Ua(),xs(29," (assay/data related queries) "),Ua(),Ua(),Ua(),Ha(30,"div",2),Ha(31,"div",3),qa(32,"img",4),Ua(),Ha(33,"div",5),Ha(34,"div"),xs(35," Jorge Neyra "),Ua(),Ha(36,"div"),xs(37," Software Developer (Informatics) "),Ua(),Ha(38,"div"),xs(39," Email: "),Ha(40,"a",8),xs(41,"jorge.neyra@nih.gov"),Ua(),xs(42," (software related queries) "),Ua(),Ua(),Ua(),Ha(43,"div",2),Ha(44,"div",3),qa(45,"img",4),Ua(),Ha(46,"div",5),Ha(47,"div"),xs(48," Jordan Williams "),Ua(),Ha(49,"div"),xs(50," Postbaccalaureate Fellow (In Vitro ADME) "),Ua(),Ha(51,"div"),xs(52," Email: "),Ha(53,"a",9),xs(54,"jordan.williams2@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(55,"div",2),Ha(56,"div",3),qa(57,"img",4),Ua(),Ha(58,"div",5),Ha(59,"div"),xs(60," Noel Southall "),Ua(),Ha(61,"div"),xs(62," Lead (Informatics) "),Ua(),Ha(63,"div"),xs(64," Email: "),Ha(65,"a",10),xs(66,"southalln@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(67,"div",2),Ha(68,"div",3),qa(69,"img",4),Ua(),Ha(70,"div",5),Ha(71,"div"),xs(72," Trung Nguyen "),Ua(),Ha(73,"div"),xs(74," Staff Scientist (Informatics) "),Ua(),Ha(75,"div"),xs(76," Email: "),Ha(77,"a",11),xs(78,"nguyenda@mail.nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(79,"div",2),Ha(80,"div",3),qa(81,"img",4),Ua(),Ha(82,"div",5),Ha(83,"div"),xs(84," Xin Xu "),Ua(),Ha(85,"div"),xs(86," Lead (ADME Group) "),Ua(),Ha(87,"div"),xs(88," Email: "),Ha(89,"a",12),xs(90,"xin.xu3@nih.gov"),Ua(),Ua(),Ua(),Ua(),Ha(91,"div",13),Ha(92,"h1"),xs(93," Resources "),Ua(),Ha(94,"div",14),Ha(95,"div"),Ha(96,"a",15),qa(97,"img",4),Ua(),Ua(),Ha(98,"div"),Ha(99,"a",16),qa(100,"img",4),Ua(),Ua(),Ua(),Ha(101,"div",14),Ha(102,"div"),Ha(103,"a",17),qa(104,"img",4),Ua(),Ua(),Ha(105,"div"),Ha(106,"a",18),qa(107,"img",4),Ua(),Ua(),Ua(),Ua(),Ua(),Ua()),2&e&&(uo(6),Ba("src",t.vishalImgSrc,ki),uo(13),Ba("src",t.pranavImgSrc,ki),uo(13),Ba("src",t.jorgeImgSrc,ki),uo(13),Ba("src",t.jordanImgSrc,ki),uo(12),Ba("src",t.noelImgSrc,ki),uo(12),Ba("src",t.trungImgSrc,ki),uo(12),Ba("src",t.xinImgSrc,ki),uo(16),Ba("src",t.rdkitImgSrc,ki),uo(3),Ba("src",t.pythonImgSrc,ki),uo(4),Ba("src",t.angularImgSrc,ki),uo(3),Ba("src",t.epamImgSrc,ki))},styles:["h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:40px;font-size:28px}.profiles-row[_ngcontent-%COMP%]{display:flex}.profiles-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.profile-image-container[_ngcontent-%COMP%]{width:115px;max-width:115px;min-width:115px}.profile-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.profile-info-container[_ngcontent-%COMP%]{padding-left:25px;flex-grow:1;display:flex;flex-direction:column;justify-content:center}.profile-info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px}.resources-container[_ngcontent-%COMP%]{padding-top:40px}.resources-row[_ngcontent-%COMP%]{display:flex;margin-bottom:40px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%;display:flex;justify-content:center;align-items:center}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-right:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{padding-left:7px}.resources-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:80%;max-width:100%}@media (max-width:400px){.profile-image-container[_ngcontent-%COMP%]{width:105px;max-width:105px;min-width:105px}.profile-info-container[_ngcontent-%COMP%]{padding-left:10px}}"]}),YR),data:{pageTitle:"contact"}},{path:"**",component:Qm}],XR=((ZR=function e(){v(this,e)}).\u0275mod=yt({type:ZR}),ZR.\u0275inj=Te({factory:function(e){return new(e||ZR)},imports:[[qv.forRoot(QR,{relativeLinkResolution:"legacy"})],qv]}),ZR);function $R(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function JR(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function eD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}function tD(e,t){if(1&e&&(Nn(),qa(0,"circle",3)),2&e){var n=ns();ds("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),Ma("r",n._getCircleRadius())}}var nD,iD,rD,oD=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",aD=fk(function e(t){v(this,e),this._elementRef=t},"primary"),sD=new Le("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),uD=((rD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;v(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return g(n,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ug(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=_g(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=_g(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,_g(e)))}}]),n}(aD)).\u0275fac=function(e){return new(e||rD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},rD.\u0275cmp=pt({type:rD,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(Ma("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,$R,1,9,"circle",1),Fa(2,JR,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),rD._diameters=new WeakMap,rD),lD=((iD=function(e){u(n,e);var t=c(n);function n(e,i,r,o,a){var s;return v(this,n),(s=t.call(this,e,i,r,o,a)).mode="indeterminate",s}return n}(uD)).\u0275fac=function(e){return new(e||iD)(Va(Qs),Va(ig),Va(mc,8),Va(ek,8),Va(sD))},iD.\u0275cmp=pt({type:iD,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),ps("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[wa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Nn(),Ha(0,"svg",0),Fa(1,eD,1,9,"circle",1),Fa(2,tD,1,7,"circle",2),Ua()),2&e&&(ds("width",t.diameter,"px")("height",t.diameter,"px"),Ba("ngSwitch","indeterminate"===t.mode),Ma("viewBox",t._getViewBox()),uo(1),Ba("ngSwitchCase",!0),uo(1),Ba("ngSwitchCase",!1))},directives:[sh,uh],styles:[oD],encapsulation:2,changeDetection:0}),iD),cD=((nD=function e(){v(this,e)}).\u0275mod=yt({type:nD}),nD.\u0275inj=Te({factory:function(e){return new(e||nD)},imports:[[ck,ph],ck]}),nD);function hD(e,t){1&e&&(Ha(0,"div",1),qa(1,"mat-spinner"),Ua())}var fD,dD,pD,vD,mD=((fD=function(){function e(t){v(this,e),this.lodadingService=t,this.isLoading=!1}return g(e,[{key:"ngOnInit",value:function(){var e=this;this.lodadingService.isLoading.subscribe(function(t){e.isLoading=t})}}]),e}()).\u0275fac=function(e){return new(e||fD)(Va(Xm))},fD.\u0275cmp=pt({type:fD,selectors:[["adme-loading"]],decls:1,vars:1,consts:[["class","progress-bar-container",4,"ngIf"],[1,"progress-bar-container"]],template:function(e,t){1&e&&Fa(0,hD,2,0,"div",0),2&e&&Ba("ngIf",t.isLoading)},directives:[Xc,lD],styles:[".progress-bar-container[_ngcontent-%COMP%]{z-index:1001;position:fixed;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;align-content:center;justify-content:center;background-color:hsla(0,0%,100%,.8)}"]}),fD),gD=["*",[["mat-toolbar-row"]]],yD=["*","mat-toolbar-row"],_D=fk(function e(t){v(this,e),this._elementRef=t}),bD=((vD=function e(){v(this,e)}).\u0275fac=function(e){return new(e||vD)},vD.\u0275dir=bt({type:vD,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),vD),kD=((pD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return g(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(_D)).\u0275fac=function(e){return new(e||pD)(Va(Qs),Va(ig),Va(mc))},pD.\u0275cmp=pt({type:pD,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&cl(n,bD,!0),2&e&&al(i=dl())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&ps("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[wa],ngContentSelectors:yD,decls:2,vars:0,template:function(e,t){1&e&&(rs(gD),os(0),os(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),pD),wD=((dD=function e(){v(this,e)}).\u0275mod=yt({type:dD}),dD.\u0275inj=Te({factory:function(e){return new(e||dD)},imports:[[ck],ck]}),dD);function CD(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dg,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new SD(i,n))}}var SD=function(){function e(t,n){v(this,e),this.delay=t,this.scheduler=n}return g(e,[{key:"call",value:function(e,t){return t.subscribe(new xD(e,this.delay,this.scheduler))}}]),e}(),xD=function(e){u(n,e);var t=c(n);function n(e,i,r){var o;return v(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return g(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new ED(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(ww.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(ww.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(A),ED=function e(t,n){v(this,e),this.time=t,this.notification=n},TD=["mat-menu-item",""],AD=["*"];function OD(e,t){if(1&e){var n=Ka();Ha(0,"div",0),Xa("keydown",function(e){return cn(n),ns()._handleKeydown(e)})("click",function(){return cn(n),ns().closed.emit("click")})("@transformMenu.start",function(e){return cn(n),ns()._onAnimationStart(e)})("@transformMenu.done",function(e){return cn(n),ns()._onAnimationDone(e)}),Ha(1,"div",1),os(2),Ua(),Ua()}if(2&e){var i=ns();Ba("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),Ma("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var ID,RD,DD,PD,MD,LD,FD,ND,VD,jD,BD,zD={transformMenu:Oy("transformMenu",[Py("void",Dy({opacity:0,transform:"scale(0.8)"})),Ly("void => enter",Iy("120ms cubic-bezier(0, 0, 0.2, 1)",Dy({opacity:1,transform:"scale(1)"}))),Ly("* => void",Iy("100ms 25ms linear",Dy({opacity:0})))]),fadeInItems:Oy("fadeInItems",[Py("showing",Dy({opacity:1})),Ly("void => *",[Dy({opacity:0}),Iy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HD=new Le("MatMenuContent"),UD=new Le("MAT_MENU_PANEL"),qD=dk(hk(function e(){v(this,e)})),WD=((ID=function(e){u(n,e);var t=c(n);function n(e,i,r,o){var a;return v(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new j,a._focused=new j,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(f(a)),a}return g(n,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=yg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=yg(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||DD)(Va(Qs),Va(Vl),Va(YD))},DD.\u0275dir=bt({type:DD,contentQueries:function(e,t,n){var i;1&e&&(cl(n,HD,!0),cl(n,WD,!0),cl(n,WD,!1)),2&e&&(al(i=dl())&&(t.lazyContent=i.first),al(i=dl())&&(t._allItems=i),al(i=dl())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&ul(xu,!0),2&e&&al(n=dl())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),DD),ZD=((RD=function(e){u(n,e);var t=c(n);function n(e,i,r){return v(this,n),t.call(this,e,i,r)}return n}(KD)).\u0275fac=function(e){return new(e||RD)(Va(Qs),Va(Vl),Va(YD))},RD.\u0275cmp=pt({type:RD,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Us([{provide:UD,useExisting:RD}]),wa],ngContentSelectors:AD,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(rs(),Fa(0,OD,3,6,"ng-template"))},directives:[Gc],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[zD.transformMenu,zD.fadeInItems]},changeDetection:0}),RD),QD=new Le("mat-menu-scroll-strategy"),XD={provide:QD,deps:[iT],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},$D=sg({passive:!0}),JD=((BD=function(){function t(e,n,i,r,o,a,s,u){var l=this;v(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=x.EMPTY,this._hoverSubscription=x.EMPTY,this._menuCloseSubscription=x.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Ku,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ku,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof KD?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,$D),a&&(a._triggersSubmenu=this.triggersSubmenu())}return g(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$D),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof KD&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof KD?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(gf(function(e){return"void"===e.toState}),Mf(1),ow(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new LE({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var n=e("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=n[0],r=n[1],o=e("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=o[0],s=o[1],u=a,l=s,c=i,h=r,f=0;this.triggersSubmenu()?(h=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",f="bottom"===a?8:-8):this.menu.overlapTrigger||(u="top"===a?"bottom":"top",l="top"===s?"bottom":"top"),t.withPositions([{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:f},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:f},{originX:i,originY:l,overlayX:c,overlayY:s,offsetY:-f},{originX:r,originY:l,overlayX:h,overlayY:s,offsetY:-f}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return se(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:af(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(gf(function(t){return t!==e._menuItemInstance}),gf(function(){return e._menuOpen})):af(),n)}},{key:"_handleMousedown",value:function(e){Xg(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(gf(function(t){return t===e._menuItemInstance&&!t.disabled}),CD(0,vw)).subscribe(function(){e._openedBy="mouse",e.menu instanceof KD&&e.menu._isAnimating?e.menu._animationDone.pipe(Mf(1),CD(0,vw),ow(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new my(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(e){return new(e||BD)(Va(iT),Va(Qs),Va(Ru),Va(QD),Va(UD,8),Va(WD,10),Va(xy,8),Va(ty))},BD.\u0275dir=bt({type:BD,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xa("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Ma("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),BD),eP=((jD=function e(){v(this,e)}).\u0275mod=yt({type:jD}),jD.\u0275inj=Te({factory:function(e){return new(e||jD)},providers:[XD],imports:[ck]}),jD),tP=((VD=function e(){v(this,e)}).\u0275mod=yt({type:VD}),VD.\u0275inj=Te({factory:function(e){return new(e||VD)},providers:[XD],imports:[[ph,ck,Lk,lT,eP],Pw,ck,eP]}),VD),nP=((ND=function(){function e(t,n,i,r,o){v(this,e),this.router=i,this.gaService=r,this._document=o,t.addSvgIcon("cancel",n.bypassSecurityTrustResourceUrl("/client/assets/icons/cancel-24px.svg"))}return g(e,[{key:"ngOnInit",value:function(){var e=this;this._document.getElementById("appFavicon").setAttribute("href","/client/assets/icons/favicon.ico"),this.routerSubscription=this.router.events.subscribe(function(t){t instanceof sd&&e.gaService.sendPageView(t.state.root.firstChild.data.pageTitle,t.state.url)})}},{key:"ngOnDestroy",value:function(){null!=this.routerSubscription&&this.routerSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ND)(Va(wA),Va(ef),Va(Ev),Va(Km),Va(mc))},ND.\u0275cmp=pt({type:ND,selectors:[["adme-root"]],decls:19,vars:1,consts:[["color","primary"],["routerLink","/home",1,"title"],[1,"navigation"],["routerLink","/predictions",1,"nav-item"],[1,"nav-item",3,"matMenuTriggerFor"],["navMenu","matMenu"],["mat-menu-item","","routerLink","/models/rlm"],["mat-menu-item","","routerLink","/models/cyp450"],["routerLink","/contact",1,"nav-item"],[1,"fill-middle"]],template:function(e,t){if(1&e&&(qa(0,"adme-loading"),Ha(1,"mat-toolbar",0),Ha(2,"a",1),xs(3,"ADME @ NCATS"),Ua(),Ha(4,"div",2),Ha(5,"a",3),xs(6,"Predict"),Ua(),Ha(7,"a",4),xs(8,"Models"),Ua(),Ha(9,"mat-menu",null,5),Ha(11,"button",6),xs(12,"RLM"),Ua(),Ha(13,"button",7),xs(14,"CYP450"),Ua(),Ua(),Ha(15,"a",8),xs(16,"Contact"),Ua(),Ua(),qa(17,"span",9),Ua(),qa(18,"router-outlet")),2&e){var n=Na(10);uo(7),Ba("matMenuTriggerFor",n)}},directives:[mD,kD,Av,JD,ZD,WD,Tv,Pv],styles:[".title[_ngcontent-%COMP%]{font-size:30px;color:#fff;text-decoration:none}.title[_ngcontent-%COMP%]:hover{cursor:pointer}.navigation[_ngcontent-%COMP%]{margin-left:20px}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:20px;font-size:14px;transform:all .5s;color:#fff;text-decoration:none}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]:active{text-decoration:underline}@media (max-width:490px){.mat-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding-top:5px}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-left:0;width:100%}.navigation[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-right:0}}"]}),ND),iP=((FD=function e(){v(this,e)}).\u0275mod=yt({type:FD}),FD.\u0275inj=Te({factory:function(e){return new(e||FD)},imports:[[ph,HC]]}),FD),rP=((LD=function e(){v(this,e)}).\u0275mod=yt({type:LD}),LD.\u0275inj=Te({factory:function(e){return new(e||LD)},imports:[[ph,ck],ck]}),LD),oP=((MD=function e(){v(this,e)}).\u0275mod=yt({type:MD}),MD.\u0275inj=Te({factory:function(e){return new(e||MD)},imports:[[ck],ck]}),MD),aP=((PD=function e(){v(this,e)}).\u0275mod=yt({type:PD}),PD.\u0275inj=Te({factory:function(e){return new(e||PD)},imports:[[Ek,Lk,ck,Nk,ph],Ek,ck,Nk,oP]}),PD);function sP(e){return function(){return e.load()}}var uP,lP=((uP=function e(){v(this,e)}).\u0275mod=yt({type:uP,bootstrap:[nP]}),uP.\u0275inj=Te({factory:function(e){return new(e||uP)},providers:[Gm,{provide:gl,useFactory:sP,deps:[Gm],multi:!0}],imports:[[of,XR,nk,iP,nR,kO,Ym,HC,wD,Mx,Lx,bE,LT,FC,pA,rP,cD,aP,nO,_R,oA,PA,tP]]}),uP);(function(){if(Qn)throw new Error("Cannot enable prod mode after platform setup.");Zn=!1})(),nf().bootstrapModule(lP).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file diff --git a/server/client/runtime-es2015.b23b85bc9e821d2c6257.js b/server/client/runtime-es2015.77ee60893201b199ca73.js similarity index 76% rename from server/client/runtime-es2015.b23b85bc9e821d2c6257.js rename to server/client/runtime-es2015.77ee60893201b199ca73.js index cdb6d3a..c7d841a 100644 --- a/server/client/runtime-es2015.b23b85bc9e821d2c6257.js +++ b/server/client/runtime-es2015.77ee60893201b199ca73.js @@ -1 +1 @@ -!function(e){function r(r){for(var n,l,i=r[0],f=r[1],a=r[2],c=0,s=[];c