From ee5940ddfd08ef7a5f8cc3658466e424f505e00a Mon Sep 17 00:00:00 2001 From: Andrew Berezovskyi Date: Sat, 18 Jan 2025 01:08:14 +0100 Subject: [PATCH] Angular 11 Signed-off-by: Andrew Berezovskyi --- .../static/dist/oslc-ui/3rdpartylicenses.txt | 36 ++++--------------- .../webapp/static/dist/oslc-ui/index.html | 26 +++++++------- .../webapp/static/dist/oslc-ui/main-es2015.js | 2 +- .../webapp/static/dist/oslc-ui/main-es5.js | 2 +- .../static/dist/oslc-ui/polyfills-es2015.js | 2 +- .../static/dist/oslc-ui/polyfills-es5.js | 2 +- .../static/dist/oslc-ui/runtime-es2015.js | 2 +- .../webapp/static/dist/oslc-ui/runtime-es5.js | 2 +- .../webapp/static/dist/oslc-ui/styles.css | 12 +++---- 9 files changed, 30 insertions(+), 56 deletions(-) diff --git a/src/server-cm/src/main/webapp/static/dist/oslc-ui/3rdpartylicenses.txt b/src/server-cm/src/main/webapp/static/dist/oslc-ui/3rdpartylicenses.txt index 07f7d194..0ad15622 100644 --- a/src/server-cm/src/main/webapp/static/dist/oslc-ui/3rdpartylicenses.txt +++ b/src/server-cm/src/main/webapp/static/dist/oslc-ui/3rdpartylicenses.txt @@ -30,7 +30,7 @@ MIT MIT The MIT License -Copyright (c) 2020 Google LLC. +Copyright (c) 2021 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -70,7 +70,7 @@ MIT MIT The MIT License -Copyright (c) 2020 Google LLC. +Copyright (c) 2021 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -145,8 +145,8 @@ bootstrap MIT The MIT License (MIT) -Copyright (c) 2011-2019 Twitter, Inc. -Copyright (c) 2011-2019 The Bootstrap Authors +Copyright (c) 2011-2021 Twitter, Inc. +Copyright (c) 2011-2021 The Bootstrap Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -196,7 +196,7 @@ For more information, please refer to core-js MIT -Copyright (c) 2014-2020 Denis Pushkarev +Copyright (c) 2014-2021 Denis Pushkarev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -217,30 +217,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -css-loader -MIT -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - regenerator-runtime MIT MIT License @@ -479,7 +455,7 @@ zone.js MIT The MIT License -Copyright (c) 2010-2019 Google LLC. http://angular.io/license +Copyright (c) 2010-2022 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/server-cm/src/main/webapp/static/dist/oslc-ui/index.html b/src/server-cm/src/main/webapp/static/dist/oslc-ui/index.html index 2820ea8b..630f6b43 100644 --- a/src/server-cm/src/main/webapp/static/dist/oslc-ui/index.html +++ b/src/server-cm/src/main/webapp/static/dist/oslc-ui/index.html @@ -1,14 +1,12 @@ - - - - - NgAdaptorSesammTool - - - - - - - - - + + + NgAdaptorSesammTool + + + + + + + + + \ No newline at end of file diff --git a/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es2015.js b/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es2015.js index b9f16c69..3b971094 100644 --- a/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es2015.js +++ b/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es2015.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e);let i=!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 i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};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:i,_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 s=new f(t,e,n);return s.syncErrorThrowable=!1,s}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,i){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),s(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=i}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(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let _=(()=>{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:s}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(s?s.call(i,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_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:s}=t;if(e||s)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{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 E=(()=>{class t extends _{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 S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;inew S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class x 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,s=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function R(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const I=t=>{if(t&&"function"==typeof t[g])return s=t,t=>{const e=s[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(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[A])return e=t,t=>{const n=e[A]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,s};function D(t,e,n,s,i=new x(t,n,s)){if(!i.closed)return e instanceof _?e.subscribe(i):I(e)(i)}class N extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function V(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 M(t,this.project,this.thisArg))}}class M 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 j(t,e){return new _(n=>{const s=new u;let i=0;return s.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function L(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 _(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[g]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(R(t))return function(t,e){return new _(n=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(P(t))return j(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const s=new u;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[A](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(I(t))}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(H((n,s)=>L(t(n,s)).pipe(V((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends N{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 $(t=Number.POSITIVE_INFINITY){return H(y,t)}function q(t,e){return e?j(t,e):new _(T(t))}function U(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return k(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:$(e)(q(t,n))}function W(){return function(t){return t.lift(new K(t))}}class K{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new Z(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class Z 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,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class Q extends _{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 W()(this)}}const G=(()=>{const t=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class 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 Y(){return new E}function J(){return t=>{return W()((e=Y,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,G);return s.source=t,s.subjectFactory=n,s})(t));var e}}function tt(t,e,n){const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}const et=tt("Inject",t=>({token:t})),nt=tt("Optional"),st=tt("Self"),it=tt("SkipSelf");var rt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ot(t){for(let e in t)if(t[e]===ot)return e;throw Error("Could not find renamed property on target object.")}function at(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function lt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ht(t){return ut(t,t[pt])||ut(t,t[gt])}function ut(t,e){return e&&e.token===t?e:null}function dt(t){return t&&(t.hasOwnProperty(ft)||t.hasOwnProperty(yt))?t[ft]:null}const pt=ot({\u0275prov:ot}),ft=ot({\u0275inj:ot}),mt=ot({\u0275provFallback:ot}),gt=ot({ngInjectableDef:ot}),yt=ot({ngInjectorDef:ot});function _t(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(_t).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function vt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const bt=ot({__forward_ref__:ot});function wt(t){return t.__forward_ref__=wt,t.toString=function(){return _t(this())},t}function Ct(t){return Et(t)?t():t}function Et(t){return"function"==typeof t&&t.hasOwnProperty(bt)&&t.__forward_ref__===wt}const St="undefined"!=typeof globalThis&&globalThis,kt="undefined"!=typeof window&&window,xt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Ot=St||Tt||kt||xt,At=ot({\u0275cmp:ot}),Pt=ot({\u0275dir:ot}),Rt=ot({\u0275pipe:ot}),It=ot({\u0275mod:ot}),Dt=ot({\u0275loc:ot}),Nt=ot({\u0275fac:ot}),Vt=ot({__NG_ELEMENT_ID__:ot});class Ft{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=lt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Mt=new Ft("INJECTOR",-1),jt={},Lt=/\n/gm,Ht=ot({provide:String,useValue:ot});let Bt,zt=void 0;function $t(t){const e=zt;return zt=t,e}function qt(t){const e=Bt;return Bt=t,e}function Ut(t,e=rt.Default){if(void 0===zt)throw new Error("inject() must be called from an injection context");return null===zt?Zt(t,void 0,e):zt.get(t,e&rt.Optional?null:void 0,e)}function Wt(t,e=rt.Default){return(Bt||Ut)(Ct(t),e)}const Kt=Wt;function Zt(t,e,n){const s=ht(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&rt.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${_t(t)}]`)}function Qt(t){const e=[];for(let n=0;nArray.isArray(t)?Yt(t,e):e(t))}function Jt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function te(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ee(t,e){const n=[];for(let s=0;s=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function se(t,e){const n=ie(t,e);if(n>=0)return t[1|n]}function ie(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}const re=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),oe=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}();function ae(t){return""+{toString:t}}const le={},ce=[];let he=0;function ue(t){const e=t.type,n=e.prototype,s={},i={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:s,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===re.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ce,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||oe.Emulated,id:"c",styles:t.styles||ce,_:null,setInput:null,schemas:t.schemas||null,tView:null};return i._=ae(()=>{const e=t.directives,n=t.features,r=t.pipes;i.id+=he++,i.inputs=ge(t.inputs,s),i.outputs=ge(t.outputs),n&&n.forEach(t=>t(i)),i.directiveDefs=e?()=>("function"==typeof e?e():e).map(de):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(pe):null}),i}function de(t){return ve(t)||function(t){return t[Pt]||null}(t)}function pe(t){return function(t){return t[Rt]||null}(t)}const fe={};function me(t){const e={type:t.type,bootstrap:t.bootstrap||ce,declarations:t.declarations||ce,imports:t.imports||ce,exports:t.exports||ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&ae(()=>{fe[t.id]=t.type}),e}function ge(t,e){if(null==t)return le;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const ye=ue;function _e(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ve(t){return t[At]||null}function be(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function we(t,e){const n=t[It]||null;if(!n&&!0===e)throw new Error(`Type ${_t(t)} does not have '\u0275mod' property.`);return n}function Ce(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ee(t){return Array.isArray(t)&&!0===t[1]}function Se(t){return 0!=(8&t.flags)}function ke(t){return 2==(2&t.flags)}function xe(t){return 1==(1&t.flags)}function Te(t){return null!==t.template}function Oe(t){return 0!=(512&t[2])}const Ae={lFrame:Qe(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Pe(){return Ae.bindingsEnabled}function Re(){return Ae.lFrame.lView}function Ie(){return Ae.lFrame.tView}function De(t){Ae.lFrame.contextLView=t}function Ne(){return Ae.lFrame.previousOrParentTNode}function Ve(t,e){Ae.lFrame.previousOrParentTNode=t,Ae.lFrame.isParent=e}function Fe(){return Ae.lFrame.isParent}function Me(){Ae.lFrame.isParent=!1}function je(){return Ae.checkNoChangesMode}function Le(t){Ae.checkNoChangesMode=t}function He(){const t=Ae.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Be(){return Ae.lFrame.bindingIndex++}function ze(t){const e=Ae.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function $e(t,e){const n=Ae.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function qe(){return Ae.lFrame.currentQueryIndex}function Ue(t){Ae.lFrame.currentQueryIndex=t}function We(t,e){const n=Ze();Ae.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Ke(t,e){const n=Ze(),s=t[1];Ae.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=s,n.contextLView=t,n.bindingIndex=s.bindingStartIndex}function Ze(){const t=Ae.lFrame,e=null===t?null:t.child;return null===e?Qe(t):e}function Qe(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ge(){const t=Ae.lFrame;return Ae.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Xe=Ge;function Ye(){const t=Ge();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Je(){return Ae.lFrame.selectedIndex}function tn(t){Ae.lFrame.selectedIndex=t}function en(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n=s)break}else e[o]<0&&(t[18]+=65536),(r>10>16&&(3&t[2])===e&&(t[2]+=1024,r.call(o)):r.call(o)}class ln{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}let cn=void 0;function hn(){return void 0!==cn?cn:"undefined"!=typeof document?document:void 0}function un(t){return!!t.listen}const dn={createRenderer:(t,e)=>hn()};function pn(t,e,n){const s=un(t);let i=0;for(;ie){o=r-1;break}}}for(;r>16}function bn(t,e){let n=vn(t),s=e;for(;n>0;)s=s[15],n--;return s}function wn(t){return"string"==typeof t?t:null==t?"":""+t}function Cn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wn(t)}const En=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function Sn(t){return t instanceof Function?t():t}let kn=!0;function xn(t){const e=kn;return kn=t,e}let Tn=0;function On(t,e){const n=Pn(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,An(s.data,t),An(e,null),An(s.blueprint,null));const i=Rn(t,e),r=t.injectorIndex;if(yn(i)){const t=_n(i),n=bn(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function An(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Pn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Rn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],s=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function In(t,e,n){!function(t,e,n){let s="string"!=typeof n?n[Vt]:n.charCodeAt(0)||0;null==s&&(s=n[Vt]=Tn++);const i=255&s,r=1<0?255&e:e}(n);if("function"==typeof i){We(e,t);try{const t=i();if(null!=t||s&rt.Optional)return t;throw new Error(`No provider for ${Cn(n)}!`)}finally{Xe()}}else if("number"==typeof i){if(-1===i)return new Hn(t,e);let r=null,o=Pn(t,e),a=-1,l=s&rt.Host?e[16][6]:null;for((-1===o||s&rt.SkipSelf)&&(a=-1===o?Rn(t,e):e[o+8],Ln(s,!1)?(r=e[1],o=_n(a),e=bn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(jn(i,o,t.data)){const t=Vn(o,e,n,r,s,l);if(t!==Nn)return t}Ln(s,e[1].data[o+8]===l)&&jn(i,o,e)?(r=t,o=_n(a),e=bn(a,e)):o=-1}}}if(s&rt.Optional&&void 0===i&&(i=null),0==(s&(rt.Self|rt.Host))){const t=e[9],r=qt(void 0);try{return t?t.get(n,i,s&rt.Optional):Zt(n,i,s&rt.Optional)}finally{qt(r)}}if(s&rt.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Cn(n)}]`)}const Nn={};function Vn(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=Fn(a,o,n,null==s?ke(a)&&kn:s!=o&&3===a.type,i&rt.Host&&r===a);return null!==l?Mn(e,o,l,a):Nn}function Fn(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=65535&r,l=t.directiveStart,c=r>>16,h=i?a+c:t.directiveEnd;for(let u=s?a:a+c;u=l&&t.type===n)return u}if(i){const t=o[l];if(t&&Te(t)&&t.type===n)return l}return null}function Mn(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof ln){const o=i;if(o.resolving)throw new Error("Circular dep for "+Cn(r[n]));const a=xn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=qt(o.injectImpl)),We(t,s);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{onChanges:s,onInit:i,doCheck:r}=e;s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&qt(l),xn(a),o.resolving=!1,Xe()}}return i}function jn(t,e,n){const s=64&t,i=32&t;let r;return r=128&t?s?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:s?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(r&1<{const e=t(Ct(n));return e?e():null};let s=be(n);if(null===s){const t=dt(n);s=t&&t.factory}return s||null}(e);return null!==n?n:t=>new t}function zn(t){return t.ngDebugContext}function $n(t){return t.ngOriginalError}function qn(t,...e){t.error(...e)}class Un{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||qn}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?zn(t)?zn(t):this._findContext($n(t)):null}_findOriginalError(t){let e=$n(t);for(;e&&$n(e);)e=$n(e);return e}}class Wn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Kn extends Wn{getTypeName(){return"HTML"}}class Zn extends Wn{getTypeName(){return"Style"}}class Qn extends Wn{getTypeName(){return"Script"}}class Gn extends Wn{getTypeName(){return"URL"}}class Xn extends Wn{getTypeName(){return"ResourceURL"}}function Yn(t){return t instanceof Wn?t.changingThisBreaksApplicationSecurity:t}function Jn(t,e){const n=ts(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 ts(t){return t instanceof Wn&&t.getTypeName()||null}let es=!0,ns=!1;function ss(){return ns=!0,es}class is{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t=""+t+"";try{t=encodeURI(t)}catch(s){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t=""+t+"";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0as(t.trim())).join(", ")),this.buf.push(" ",e,'="',Cs(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();fs.hasOwnProperty(e)&&!hs.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Cs(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 bs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ws=/([^\#-~ |!])/g;function Cs(t){return t.replace(/&/g,"&").replace(bs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(ws,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Es;function Ss(t,e){let n=null;try{Es=Es||new is(t);let s=e?String(e):"";n=Es.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=Es.getInertBodyElement(s)}while(s!==r);const o=new vs,a=o.sanitizeChildren(ks(n)||n);return ss()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=ks(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ks(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const xs=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Ts=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Os=/^url\(([^)]+)\)$/;function As(t){const e=Rs();return e?e.sanitize(xs.HTML,t)||"":Jn(t,"HTML")?Yn(t):Ss(hn(),wn(t))}function Ps(t){const e=Rs();return e?e.sanitize(xs.URL,t)||"":Jn(t,"URL")?Yn(t):as(wn(t))}function Rs(){const t=Re();return t&&t[12]}function Is(t){for(;Array.isArray(t);)t=t[0];return t}function Ds(t,e){return Is(e[t+19])}function Ns(t,e){return Is(e[t.index])}function Vs(t,e){return t.data[e+19]}function Fs(t,e){return t[e+19]}function Ms(t,e){const n=e[t];return Ce(n)?n:n[0]}function js(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ls(t){return 4==(4&t[2])}function Hs(t){return 128==(128&t[2])}function Bs(t,e){return null===t||null==e?null:t[e]}function zs(t){t[18]=0}function $s(t,e){t.__ngContext__=e}function qs(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Us(){throw new Error("Cannot mix multi providers and regular providers")}function Ws(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}function Ks(t,e,n){let s=0;for(;sr?"":i[h+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Ws(e,c,0)||2&s&&c!==t){if(Gs(s))return!1;o=!0}}}}else{if(!o&&!Gs(s)&&!Gs(l))return!1;if(o&&Gs(l))continue;o=!1,s=l|1&s}}return Gs(s)||o}function Gs(t){return 0==(1&t)}function Xs(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||Gs(o)||(e+=ti(r,i),i=""),s=o,r=r||!Gs(s);n++}return""!==i&&(e+=ti(r,i)),e}const ni={};function si(t){const e=t[3];return Ee(e)?e[3]:e}function ii(t){ri(Ie(),Re(),Je()+t,je())}function ri(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&nn(e,s,n)}else{const s=t.preOrderHooks;null!==s&&sn(e,s,0,n)}tn(n)}function oi(t,e){return t<<17|e<<2}function ai(t){return t>>17&32767}function li(t){return 2|t}function ci(t){return(131068&t)>>2}function hi(t,e){return-131069&t|e<<2}function ui(t){return 1|t}function di(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s>1==-1){for(let t=9;t19&&ri(t,e,0,je()),n(s,i)}finally{tn(r)}}function bi(t,e,n){if(Se(e)){const s=e.directiveEnd;for(let i=e.directiveStart;iPromise.resolve(null))();function Gi(t){return t[7]||(t[7]=[])}function Xi(t){return t.cleanup||(t.cleanup=[])}function Yi(t,e){const n=t[9],s=n?n.get(Un,null):null;s&&s.handleError(e)}function Ji(t,e,n,s,i){for(let r=0;r0&&(t[n-1][4]=s[4]);const r=te(t,9+e);sr(s[1],s,!1,null);const o=r[5];null!==o&&o.detachView(r[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function or(t,e){if(!(256&e[2])){const n=e[11];un(n)&&n.destroyNode&&_r(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return lr(t[1],t);for(;e;){let n=null;if(Ce(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ce(e)&&lr(e[1],e),e=ar(e,t);null===e&&(e=t),Ce(e)&&lr(e[1],e),n=e&&e[4]}e=n}}(e)}}function ar(t,e){let n;return Ce(t)&&(n=t[6])&&2===n.type?tr(n,t):t[3]===e?null:t[3]}function lr(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 s=0;s=0?t[a]():t[-a].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&un(e[11])&&e[11].destroy();const s=e[17];if(null!==s&&Ee(e[3])){s!==e[3]&&ir(s,e);const n=e[5];null!==n&&n.detachView(t)}}}function cr(t,e,n){let s=e.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(e=s).parent;if(null==s){const t=n[6];return 2===t.type?er(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ns(e,n).parentNode;if(2&s.flags){const e=t.data,n=e[e[s.index].directiveStart].encapsulation;if(n!==oe.ShadowDom&&n!==oe.Native)return null}return Ns(s,n)}function hr(t,e,n,s){un(t)?t.insertBefore(e,n,s):e.insertBefore(n,s,!0)}function ur(t,e,n){un(t)?t.appendChild(e,n):e.appendChild(n)}function dr(t,e,n,s){null!==s?hr(t,e,n,s):ur(t,e,n)}function pr(t,e){return un(t)?t.parentNode(e):e.parentNode}function fr(t,e){if(2===t.type){const n=tr(t,e);return null===n?null:gr(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Ns(t,e):null}function mr(t,e,n,s){const i=cr(t,s,e);if(null!=i){const t=e[11],r=fr(s.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}or(this._lView[1],this._lView)}onDestroy(t){var e,n,s;e=this._lView[1],s=t,Gi(n=this._lView).push(s),e.firstCreatePass&&Xi(e).push(n[7].length-1,null)}markForCheck(){Ui(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Wi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Le(!0);try{Wi(t,e,n)}finally{Le(!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,_r(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 Er extends Cr{constructor(t){super(t),this._view=t}detectChanges(){Ki(this._view)}checkNoChanges(){!function(t){Le(!0);try{Ki(t)}finally{Le(!1)}}(this._view)}get context(){return null}}let Sr,kr,xr;function Tr(t,e,n){return Sr||(Sr=class extends t{}),new Sr(Ns(e,n))}function Or(t,e,n,s){return kr||(kr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=fi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[5];null!==s&&(n[5]=s.createEmbeddedView(e)),gi(e,n,t);const i=new Cr(n);return i._tViewNode=n[6],i}}),0===n.type?new kr(s,n,Tr(e,n,s)):null}function Ar(t,e,n,s){let i;xr||(xr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Tr(e,this._hostTNode,this._hostView)}get injector(){return new Hn(this._hostTNode,this._hostView)}get parentInjector(){const t=Rn(this._hostTNode,this._hostView),e=bn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let s=vn(t),i=e,r=e[6];for(;s>1;)i=i[15],r=i[6],s--;return r}(t,this._hostView,this._hostTNode);return yn(t)&&null!=n?new Hn(n,e):new Hn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;if(!i&&null==t.ngModule&&r){const t=r.get(Xt,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ee(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new xr(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,s){const i=9+s,r=n.length;s>0&&(n[i-1][4]=e),s{class t{}return t.__NG_ELEMENT_ID__=()=>Ir(),t})();const Ir=Pr,Dr=new Ft("Set Injector scope."),Nr={},Vr={},Fr=[];let Mr=void 0;function jr(){return void 0===Mr&&(Mr=new Gt),Mr}function Lr(t,e=null,n=null,s){return new Hr(t,n,e||jr(),s)}class Hr{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&Yt(e,n=>this.processProvider(n,t,e)),Yt([t],t=>this.processInjectorType(t,[],i)),this.records.set(Mt,$r(void 0,this));const r=this.records.get(Dr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:_t(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=jt,n=rt.Default){this.assertNotDestroyed();const s=$t(this);try{if(!(n&rt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Ft)&&ht(t);e=n&&this.injectableDefInScope(n)?$r(Br(t),Nr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&rt.Self?jr():this.parent).get(t,e=n&rt.Optional&&e===jt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(_t(t)),s)throw r;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=_t(e);if(Array.isArray(e))i=e.map(_t).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):_t(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Lt,"\n ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{$t(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(_t(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Ct(t)))return!1;let s=dt(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=dt(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{Yt(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,s||Fr))}}this.injectorDefTypes.add(r),this.records.set(r,$r(s.factory,Nr));const a=s.providers;if(null!=a&&!o){const e=t;Yt(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=Ur(t=Ct(t))?t:Ct(t&&t.provide);const i=function(t,e,n){return qr(t)?$r(void 0,t.useValue):$r(zr(t,e,n),Nr)}(t,e,n);if(Ur(t)||!0!==t.multi){const t=this.records.get(s);t&&void 0!==t.multi&&Us()}else{let e=this.records.get(s);e?void 0===e.multi&&Us():(e=$r(void 0,Nr,!0),e.factory=()=>Qt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===Vr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(_t(t)):e.value===Nr&&(e.value=Vr,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 Br(t){const e=ht(t),n=null!==e?e.factory:be(t);if(null!==n)return n;const s=dt(t);if(null!==s)return s.factory;if(t instanceof Ft)throw new Error(`Token ${_t(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ee(e,"?");throw new Error(`Can't resolve all parameters for ${_t(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[pt]||t[gt]||t[mt]&&t[mt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function zr(t,e,n){let s=void 0;if(Ur(t)){const e=Ct(t);return be(e)||Br(e)}if(qr(t))s=()=>Ct(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...Qt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>Wt(Ct(t.useExisting));else{const i=Ct(t&&(t.useClass||t.provide));if(i||function(t,e,n){let s="";throw t&&e&&(s=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${_t(t)}'`+s)}(e,n,t),!function(t){return!!t.deps}(t))return be(i)||Br(i);s=()=>new i(...Qt(t.deps))}var i;return s}function $r(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qr(t){return null!==t&&"object"==typeof t&&Ht in t}function Ur(t){return"function"==typeof t}const Wr=function(t,e,n){return function(t,e=null,n=null,s){const i=Lr(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let Kr=(()=>{class t{static create(t,e){return Array.isArray(t)?Wr(t,e,""):Wr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=jt,t.NULL=new Gt,t.\u0275prov=lt({token:t,providedIn:"any",factory:()=>Wt(Mt)}),t.__NG_ELEMENT_ID__=-1,t})(),Zr=new Map;const Qr=new Set;function Gr(t){return"string"==typeof t?t:t.text()}function Xr(t,e){let n=t.styles,s=t.classes,i=0;for(let r=0;ra(Is(t[s.index])).target:s.index;if(un(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=ko(s,e,r,!1);const t=n.listen(p.name||f,i,r);h.push(r,t),c&&c.push(i,g,m,m+1)}}else r=ko(s,e,r,!0),f.addEventListener(i,r,o),h.push(r),c&&c.push(i,g,m,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ae.lFrame.contextLView))[8]}(t)}function To(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i=0}const Vo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fo(t){return t.substring(Vo.key,Vo.keyEnd)}function Mo(t,e){const n=Vo.textEnd;return n===e?-1:(e=Vo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Vo.key=e,n),jo(t,e,n))}function jo(t,e,n){for(;e=0;n=Mo(e,n))ne(t,Fo(e),!0)}function zo(t,e){return e>=t.expandoStartIndex}function $o(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[Je()+19],o=zo(t,n);Qo(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=function(t){const e=Ae.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=Uo(n=qo(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=qo(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==ci(s))return t[ai(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=qo(null,t,e,n[1],s),n=Uo(n,e.attrs,s),function(t,e,n,s){t[ai(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s=void 0;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(i)if(0!==l){const e=ai(t[a+1]);t[s+1]=oi(e,a),0!==e&&(t[e+1]=hi(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=oi(a,0),0!==a&&(t[a+1]=hi(t[a+1],s)),a=s;else t[s+1]=oi(l,0),0===a?a=s:t[l+1]=hi(t[l+1],s),l=s;h&&(t[s+1]=li(t[s+1])),Do(t,c,s,!0),Do(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ie(r,e)>=0&&(n[s+1]=ui(n[s+1]))}(e,c,t,s,r),o=oi(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}function qo(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[i+1];h===ni&&(h=c?Io:void 0);let u=c?se(h,s):l===s?h:void 0;if(r&&!Zo(u)&&(u=se(e,s)),Zo(u)&&(a=u,o))return a;const d=t[i+1];i=o?ai(d):ci(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=se(t,s))}return a}function Zo(t){return void 0!==t}function Qo(t,e){return 0!=(t.flags&(e?16:32))}function Go(t,e=""){const n=Re(),s=Ie(),i=t+19,r=s.firstCreatePass?mi(s,n[6],t,3,null,null):s.data[i],o=n[i]=function(t,e){return un(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);mr(s,n,o,r),Ve(r,!1)}function Xo(t){return Yo("",t,""),Xo}function Yo(t,e,n){const s=Re(),i=lo(s,t,e,n);return i!==ni&&function(t,e,n){const s=Ds(e,t),i=t[11];un(i)?i.setValue(s,n):s.textContent=n}(s,Je(),i),Yo}function Jo(t,e){const n=js(t)[1],s=n.data.length-1;en(n,{directiveStart:s,directiveEnd:s+1})}function ta(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i=void 0;if(Te(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=ea(t.inputs),e.declaredInputs=ea(t.declaredInputs),e.outputs=ea(t.outputs);const n=i.hostBindings;n&&ia(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&na(t,r),o&&sa(t,o),at(t.inputs,i.inputs),at(t.declaredInputs,i.declaredInputs),at(t.outputs,i.outputs),Te(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}e.afterContentChecked=e.afterContentChecked||i.afterContentChecked,e.afterContentInit=t.afterContentInit||i.afterContentInit,e.afterViewChecked=t.afterViewChecked||i.afterViewChecked,e.afterViewInit=t.afterViewInit||i.afterViewInit,e.doCheck=t.doCheck||i.doCheck,e.onDestroy=t.onDestroy||i.onDestroy,e.onInit=t.onInit||i.onInit}const e=i.features;if(e)for(let s=0;s=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=mn(i.hostAttrs,n=mn(n,i.hostAttrs))}}(s)}function ea(t){return t===le?{}:t===ce?[]:t}function na(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function sa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function ia(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}class ra{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function oa(){return aa.ngInherit=!0,aa}function aa(t){t.type.prototype.ngOnChanges&&(t.setInput=la,t.onChanges=function(){const t=ca(this),e=t&&t.current;if(e){const n=t.previous;if(n===le)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function la(t,e,n,s){const i=ca(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:le,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new ra(l&&l.currentValue,e,o===le),t[s]=e}function ca(t){return t.__ngSimpleChanges__||null}function ha(t,e,n,s,i){if(t=Ct(t),Array.isArray(t))for(let r=0;r>16;if(Ur(t)||!t.multi){const s=new ln(l,i,uo),p=pa(a,e,i?h:h+d,u);-1===p?(In(On(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=pa(a,e,h+d,u),f=pa(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(i&&!g||!i&&!m){In(On(c,o),r,a);const h=function(t,e,n,s,i){const r=new ln(t,n,uo);return r.multi=[],r.index=e,r.componentProviders=0,da(r,i,s&&!n),r}(i?ma:fa,n.length,i,s,l);!i&&g&&(n[f].providerFactory=h),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(h),o.push(h)}else ua(r,t,p>-1?p:f),da(n[i?f:p],l,!i&&s);!i&&s&&g&&n[f].componentProviders++}}}function ua(t,e,n){if(Ur(e)||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;s&&(t.destroyHooks||(t.destroyHooks=[])).push(n,s)}}function da(t,e,n){t.multi.push(e),n&&t.componentProviders++}function pa(t,e,n,s){for(let i=n;i{n.providersResolver=(n,s)=>function(t,e,n){const s=Ie();if(s.firstCreatePass){const i=Te(t);ha(n,s.data,s.blueprint,i,!0),ha(e,s.data,s.blueprint,i,!1)}}(n,s?s(t):t,e)}}class _a{}class va{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${_t(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ba=(()=>{class t{}return t.NULL=new va,t})(),wa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Ca(t),t})();const Ca=function(t){return Tr(t,Ne(),Re())};class Ea{}const Sa=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xa(),t})();const xa=function(){const t=Re(),e=Ms(Ne().index,t);return function(t){const e=t[11];if(un(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ce(e)?e:t)};let Ta=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>null}),t})();class Oa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Aa=new Oa("9.0.5");class Pa{constructor(){}supports(t){return no(t)}create(t){return new Ia(t)}}const Ra=(t,e)=>e;class Ia{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||Ra}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex{s=this._trackByFn(e,t),null!==i&&to(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),to(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(to(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(to(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new Da(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),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 s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,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 s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Va),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 Va),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 Da{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 Na{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)&&to(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 Va{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Na,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 Fa(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),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 s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new La(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){to(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 La{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 Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new it,new nt]]}}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=lt({token:t,providedIn:"root",factory:()=>new t([new Pa])}),t})(),Ba=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new it,new nt]]}}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=lt({token:t,providedIn:"root",factory:()=>new t([new Ma])}),t})();const za=[new Ma],$a=new Ha([new Pa]),qa=new Ba(za);let Ua=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Wa(t,wa),t})();const Wa=function(t,e){return Or(t,e,Ne(),Re())};let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Za(t,wa),t})();const Za=function(t,e){return Ar(t,e,Ne(),Re())},Qa={};class Ga extends ba{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ve(t);return new Ja(e,this.ngModule)}}function Xa(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ya=new Ft("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>En});class Ja extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ei).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Xa(this.componentDef.inputs)}get outputs(){return Xa(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,Qa,i);return r!==Qa||s===Qa?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(Ea,dn),o=i.get(Ta,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(un(t))return t.selectRootElement(e,n===oe.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):pi(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:En,clean:Qi,playerHandler:null,flags:0},p=Si(0,-1,null,1,0,null,null,null,null,null),f=fi(null,p,d,h,null,null,r,a,o,i);let m,g;Ke(f,null);try{const t=function(t,e,n,s,i,r){const o=n[1];n[19]=t;const a=mi(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Xr(a,l),null!==t&&(pn(i,t,l),null!==a.classes&&wr(i,t,a.classes),null!==a.styles&&br(i,t,a.styles)));const c=s.createRenderer(t,e),h=fi(n,Ei(e),null,e.onPush?64:16,n[19],a,s,c,void 0);return o.firstCreatePass&&(In(On(a,n),o,e.type),Di(o,a),Vi(a,n.length,1)),qi(n,h),n[19]=h}(c,this.componentDef,f,r,a);if(c)if(n)pn(a,c,["ng-version",Aa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s0&&wr(a,c,e.join(" "))}g=Vs(f[1],0),e&&(g.projection=e.map(t=>Array.from(t))),m=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=Ne();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ii(t,s,1),Fi(t,e,n));const i=Mn(e,t,e.length-1,s);$s(i,e);const r=Ns(s,e);return r&&$s(r,e),i}(r,n,e);s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Ne();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){tn(a.index-19);const t=n[1];Ai(t,e),Pi(t,n,e.hostVars),Ri(e,o)}return o}(t,this.componentDef,f,d,[Jo]),gi(p,f,null)}finally{Ye()}const y=new tl(this.componentType,m,Tr(wa,g,f),f,g);return n&&!u||(y.hostView._tViewNode.child=g),y}}class tl extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Er(s),this.hostView._tViewNode=function(t,e,n,s){let i=t.node;return null==i&&(t.node=i=ki(0,null,2,-1,null,null)),s[6]=i}(s[1],0,0,s),this.componentType=t}get injector(){return new Hn(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 el=void 0;var nl=["en",[["a","p"],["AM","PM"],el],[["AM","PM"],el,el],[["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"]],el,[["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"]],el,[["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}",el,"{1} 'at' {0}",el],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let sl={};function il(t){return t in sl||(sl[t]=Ot.ng&&Ot.ng.common&&Ot.ng.common.locales&&Ot.ng.common.locales[t]),sl[t]}const rl=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let ol="en-US";function al(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ol=t.toLowerCase().replace(/_/g,"-"))}const ll=new Map;class cl extends Xt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ga(this);const n=we(t),s=t[Dt]||null;s&&al(s),this._bootstrapComponents=Sn(n.bootstrap),this._r3Injector=Lr(t,e,[{provide:Xt,useValue:this},{provide:ba,useValue:this.componentFactoryResolver}],_t(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Kr.THROW_IF_NOT_FOUND,n=rt.Default){return t===Kr||t===Xt||t===Mt?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 hl extends class{}{constructor(t){super(),this.moduleType=t,null!==we(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${_t(e)} vs ${_t(e.name)}`)})(t,ll.get(t),e),ll.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new cl(this.moduleType,t)}}function ul(t,e,n,s,i){return function(t,e,n,s,i,r,o){const a=e+n;return function(t,e,n,s){const i=oo(t,e,n);return oo(t,e+1,s)||i}(t,a,i,r)?io(t,a+2,o?s.call(o,i,r):s(i,r)):ro(t,a+2)}(Re(),He(),t,e,n,s,i)}class dl extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,i,r);return t instanceof u&&t.add(o),o}}function pl(){return this._results[Jr()]()}class fl{constructor(){this.dirty=!0,this._results=[],this.changes=new dl,this.length=0;const t=Jr(),e=fl.prototype;e[t]||(e[t]=pl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s0)i.push(a[e/2]);else{const r=o[e+1],a=n[-s];for(let e=9;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ol,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Pl=new Ft("AppId"),Rl={provide:Pl,useFactory:function(){return`${Il()}${Il()}${Il()}`},deps:[]};function Il(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dl=new Ft("Platform Initializer"),Nl=new Ft("Platform ID"),Vl=new Ft("appBootstrapListener");let Fl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Ml=new Ft("LocaleId"),jl=new Ft("DefaultCurrencyCode");class Ll{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Hl=function(t){return new hl(t)},Bl=Hl,zl=function(t){return Promise.resolve(Hl(t))},$l=function(t){const e=Hl(t),n=Sn(we(t).declarations).reduce((t,e)=>{const n=ve(e);return n&&t.push(new Ja(n)),t},[]);return new Ll(e,n)},ql=$l,Ul=function(t){return Promise.resolve($l(t))};let Wl=(()=>{class t{constructor(){this.compileModuleSync=Bl,this.compileModuleAsync=zl,this.compileModuleAndAllComponentsSync=ql,this.compileModuleAndAllComponentsAsync=Ul}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Kl=new Ft("compilerOptions"),Zl=(()=>Promise.resolve(0))();function Ql(t){"undefined"==typeof Zone?Zl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Gl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new dl(!1),this.onMicrotaskEmpty=new dl(!1),this.onStable=new dl(!1),this.onError=new dl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ot,()=>{t.lastRequestAnimationFrameId=-1,tc(t),Jl(t)}),tc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return ec(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),nc(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return ec(t),e.invoke(s,i,r,o,a)}finally{nc(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,tc(t),Jl(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Gl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Gl.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,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Yl,Xl,Xl);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Xl(){}const Yl={};function Jl(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 tc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function ec(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function nc(t){t._nesting--,Jl(t)}class sc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new dl,this.onMicrotaskEmpty=new dl,this.onStable=new dl,this.onError=new dl}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,s){return t.apply(e,n)}}let ic=(()=>{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:()=>{Gl.assertNotInAngularZone(),Ql(()=>{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())Ql(()=>{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 s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Wt(Gl))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),rc=(()=>{class t{constructor(){this._applications=new Map,lc.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 lc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class oc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ac,lc=new oc,cc=function(t,e,n){const s=new hl(n);if(0===Zr.size)return Promise.resolve(s);const i=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(t.get(Kl,[]).concat(e).map(t=>t.providers));if(0===i.length)return Promise.resolve(s);const r=function(){const t=Ot.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),o=Kr.create({providers:i}).get(r.ResourceLoader);return function(t){const e=[],n=new Map;function s(t){let e=n.get(t);if(!e){const s=(t=>Promise.resolve(o.get(t)))(t);n.set(t,e=s.then(Gr))}return e}return Zr.forEach((t,n)=>{const i=[];t.templateUrl&&i.push(s(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;r&&r.forEach((e,n)=>{o.push(""),i.push(s(e).then(s=>{o[a+n]=s,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(t){Qr.delete(t)}(n));e.push(l)}),Zr=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const hc=new Ft("AllowMultipleToken");function uc(t,e,n=[]){const s="Platform: "+e,i=new Ft(s);return(e=[])=>{let r=dc();if(!r||r.injector.get(hc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Dr,useValue:"platform"});!function(t){if(ac&&!ac.destroyed&&!ac.injector.get(hc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ac=t.get(pc);const e=t.get(Dl,null);e&&e.forEach(t=>t())}(Kr.create({providers:t,name:s}))}return function(t){const e=dc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function dc(){return ac&&!ac.destroyed?ac:null}let pc=(()=>{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 sc:("zone.js"===t?void 0:t)||new Gl({enableLongStackTrace:ss(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:Gl,useValue:n}];return n.run(()=>{const e=Kr.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(Un,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>gc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return wo(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(Al);return t.runInitializers(),t.donePromise.then(()=>(al(i.injector.get(Ml,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=fc({},e);return cc(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(mc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${_t(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Wt(Kr))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function fc(t,e){return Array.isArray(e)?e.reduce(fc,t):Object.assign(Object.assign({},t),e)}let mc=(()=>{class t{constructor(t,e,n,s,i,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ss(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Gl.assertNotInAngularZone(),Ql(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Gl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=U(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Xt),i=n.create(Kr.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(ic,null);return r&&i.injector.get(rc).registerApplication(i.location.nativeElement,r),this._loadComponent(i),ss()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;gc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Vl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),gc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Wt(Gl),Wt(Fl),Wt(Kr),Wt(Un),Wt(ba),Wt(Al))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function gc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const yc=uc(null,"core",[{provide:Nl,useValue:"unknown"},{provide:pc,deps:[Kr]},{provide:rc,deps:[]},{provide:Fl,deps:[]}]),_c=[{provide:mc,useClass:mc,deps:[Gl,Fl,Kr,Un,ba,Al]},{provide:Ya,deps:[Gl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Al,useClass:Al,deps:[[new nt,Ol]]},{provide:Wl,useClass:Wl,deps:[]},Rl,{provide:Ha,useFactory:function(){return $a},deps:[]},{provide:Ba,useFactory:function(){return qa},deps:[]},{provide:Ml,useFactory:function(t){return al(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new et(Ml),new nt,new it]]},{provide:jl,useValue:"USD"}];let vc=(()=>{class t{constructor(t){}}return t.\u0275mod=me({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(Wt(mc))},providers:_c}),t})(),bc=null;function wc(){return bc}const Cc=new Ft("DocumentToken");let Ec=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:Sc,token:t,providedIn:"platform"}),t})();function Sc(){return Wt(kc)}let kc=(()=>{class t extends Ec{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=wc().getLocation(),this._history=wc().getHistory()}getBaseHrefFromDOM(){return wc().getBaseHref(this._doc)}onPopState(t){wc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){wc().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){xc()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){xc()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Wt(Cc))},t.\u0275prov=lt({factory:Tc,token:t,providedIn:"platform"}),t})();function xc(){return!!window.history.pushState}function Tc(){return new kc(Wt(Cc))}function Oc(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 Ac(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 Pc(t){return t&&"?"!==t[0]?"?"+t:t}let Rc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:Ic,token:t,providedIn:"root"}),t})();function Ic(t){const e=Wt(Cc).location;return new Nc(Wt(Ec),e&&e.origin||"")}const Dc=new Ft("appBaseHref");let Nc=(()=>{class t extends Rc{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 Oc(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Pc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+Pc(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+Pc(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ec),Wt(Dc,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Vc=(()=>{class t{constructor(t,e){this._subject=new dl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Ac(Mc(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+Pc(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Mc(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+Pc(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Pc(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Wt(Rc),Wt(Ec))},t.normalizeQueryParams=Pc,t.joinWithSlash=Oc,t.stripTrailingSlash=Ac,t.\u0275prov=lt({factory:Fc,token:t,providedIn:"root"}),t})();function Fc(){return new Vc(Wt(Rc),Wt(Ec))}function Mc(t){return t.replace(/\/index.html$/,"")}const jc=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class Lc{}let Hc=(()=>{class t extends Lc{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=il(e);if(n)return n;const s=e.split("-")[0];if(n=il(s),n)return n;if("en"===s)return nl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[rl.PluralCase]}(e||this.locale)(t)){case jc.Zero:return"zero";case jc.One:return"one";case jc.Two:return"two";case jc.Few:return"few";case jc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ml))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}class zc{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}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 $c=(()=>{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){ss()&&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,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new zc(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new qc(t,n);e.push(i)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,s);const r=new qc(t,i);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)(uo(Ka),uo(Ua),uo(Ha))},t.\u0275dir=ye({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class qc{constructor(t,e){this.record=t,this.view=e}}let Uc=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Wc,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){Kc("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Kc("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)(uo(Ka),uo(Ua))},t.\u0275dir=ye({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Wc{constructor(){this.$implicit=null,this.ngIf=null}}function Kc(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${_t(e)}'.`)}let Zc=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(uo(Ka))},t.\u0275dir=ye({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[oa()]}),t})();class Qc{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Gc{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Xc=new Gc,Yc=new Qc;let Jc=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=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)):to(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,eo.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,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(wo(e))return Xc;if(Co(e))return Yc;throw Error(`InvalidPipeArgument: '${e}' for pipe '${_t(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=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=rt.Default){const e=Pr(!0);if(null!=e||t&rt.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=_e({name:"async",type:t,pure:!1}),t})(),th=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[{provide:Lc,useClass:Hc}]}),t})();class eh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new eh,bc||(bc=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=sh||(sh=document.querySelector("base"),sh)?sh.getAttribute("href"):null;return null==e?null:(n=e,nh||(nh=document.createElement("a")),nh.setAttribute("href",n),"/"===nh.pathname.charAt(0)?nh.pathname:"/"+nh.pathname);var n}resetBaseElement(){sh=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 Bc(document.cookie,t)}}let nh,sh=null;const ih=new Ft("TRANSITION_ID"),rh=[{provide:Ol,useFactory:function(t,e,n){return()=>{n.get(Al).donePromise.then(()=>{const n=wc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[ih,Cc,Kr],multi:!0}];class oh{static init(){var t;t=new oh,lc=t}addToWindow(t){Ot.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(t=>{const e=Ot.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?wc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const ah=new Ft("EventManagerPlugins");let lh=(()=>{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 s=0;s{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=lt({token:t,factory:t.\u0275fac}),t})(),uh=(()=>{class t extends hh{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=>wc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Cc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const dh={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/"},ph=/%COMP%/g;function fh(t,e,n){for(let s=0;s{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let gh=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new yh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case oe.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new _h(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case oe.Native:case oe.ShadowDom:return new vh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=fh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Wt(lh),Wt(uh),Wt(Pl))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class yh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(dh[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,s){if(s){e=s+":"+e;const i=dh[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=dh[n];s?t.removeAttributeNS(s,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,s){s&Sa.DashCase?t.style.setProperty(e,n,s&Sa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Sa.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,mh(n)):this.eventManager.addEventListener(t,e,mh(n))}}class _h extends yh{constructor(t,e,n,s){super(t),this.component=n;const i=fh(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(ph,s+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(ph,t)}(s+"-"+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 vh extends yh{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===oe.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=fh(s.id,s.styles,[]);for(let r=0;r{class t extends ch{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Cc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const wh=["alt","control","meta","shift"],Ch={"\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"},Eh={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"},Sh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let kh=(()=>{class t extends ch{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),r=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wc().onAndCancel(e,i.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(wh.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,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&&Eh.hasOwnProperty(e)&&(e=Eh[e]))}return Ch[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),wh.forEach(s=>{s!=n&&(0,Sh[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Wt(Cc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return Wt(Th)},token:t,providedIn:"root"}),t})(),Th=(()=>{class t extends xh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case xs.NONE:return e;case xs.HTML:return Jn(e,"HTML")?Yn(e):Ss(this._doc,String(e));case xs.STYLE:return Jn(e,"Style")?Yn(e):function(t){if(!(t=String(t).trim()))return"";const e=t.match(Os);return e&&as(e[1])===e[1]||t.match(Ts)&&function(t){let e=!0,n=!0;for(let s=0;s{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:Pl,useValue:e.appId},{provide:ih,useExisting:Pl},rh]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(Wt(t,12))},providers:Ah,imports:[th,vc]}),t})();"undefined"!=typeof window&&window;const Rh=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Ih={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Ih.schedule(t,0);if(void 0===window.requestAnimationFrame)return Ih.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Dh(t,e,n){let s=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Rh.call(t,e)}(t,e)||(s=n,0))),s}class Nh{constructor(t,e){this.component=t,this.injector=e,this.componentFactory=e.get(ba).resolveComponentFactory(t)}create(t){return new Vh(this.componentFactory,t)}}class Vh{constructor(t,e){this.componentFactory=t,this.injector=e,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.uninitializedInputs=new Set}connect(t){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);this.componentRef||this.initializeComponent(t)}disconnect(){this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Ih.schedule(()=>{this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))}getInputValue(t){return this.componentRef?this.componentRef.instance[t]:this.initialInputValues.get(t)}setInputValue(t,e){var n,s;this.componentRef?(n=e)===(s=this.getInputValue(t))||n!=n&&s!=s||(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)}initializeComponent(t){const e=Kr.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,s=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let r=0,o=n.length;r{this.initialInputValues.has(t)?this.setInputValue(t,this.initialInputValues.get(t)):this.uninitializedInputs.add(t)}),this.initialInputValues.clear()}initializeOutputs(){const t=this.componentFactory.outputs.map(({propName:t,templateName:e})=>this.componentRef.instance[t].pipe(V(t=>({name:e,value:t}))));this.events=U(...t)}callNgOnChanges(){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,this.componentRef.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ih.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const s=this.uninitializedInputs.has(t);this.uninitializedInputs.delete(t);const i=s?void 0:this.getInputValue(t);this.inputChanges[t]=new ra(i,e,s)}detectChanges(){this.componentRef&&(this.callNgOnChanges(),this.componentRef.changeDetectorRef.detectChanges())}}class Fh extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Mh(t,e){const n=function(t,e){return e.get(ba).resolveComponentFactory(t).inputs}(t,e.injector),s=e.strategyFactory||new Nh(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var s;e[(s=n,s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Fh{constructor(t){super(),this.ngElementStrategy=s.create(t||e.injector)}attributeChangedCallback(t,n,r,o){this.ngElementStrategy||(this.ngElementStrategy=s.create(e.injector)),this.ngElementStrategy.setInputValue(i[t],r)}connectedCallback(){this.ngElementStrategy||(this.ngElementStrategy=s.create(e.injector)),this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const s=t.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,n),s}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}disconnectedCallback(){this.ngElementStrategy&&this.ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}}return r.observedAttributes=Object.keys(i),n.map(({propName:t})=>t).forEach(t=>{Object.defineProperty(r.prototype,t,{get:function(){return this.ngElementStrategy.getInputValue(t)},set:function(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})}),r}function jh(...t){let e=t[t.length-1];return k(e)?(t.pop(),j(t,e)):q(t)}function Lh(t,e){return function(n){return n.lift(new Hh(t,e))}}class Hh{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Bh(t,this.predicate,this.thisArg))}}class Bh extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class zh{}class $h{}class qh{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),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}: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 qh?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 qh;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qh?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 s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Uh{encodeKey(t){return Wh(t)}encodeValue(t){return Wh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Wh(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 Kh{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Uh,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 s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,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 Kh({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 Zh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Gh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Xh{constructor(t,e,n,s){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new qh),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 Xh(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}const Yh=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Jh{constructor(t,e=200,n="OK"){this.headers=t.headers||new qh,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 tu extends Jh{constructor(t={}){super(t),this.type=Yh.ResponseHeader}clone(t={}){return new tu({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 eu extends Jh{constructor(t={}){super(t),this.type=Yh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new eu({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 nu extends Jh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function su(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let iu=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof Xh)s=t;else{let i=void 0;i=n.headers instanceof qh?n.headers:new qh(n.headers);let r=void 0;n.params&&(r=n.params instanceof Kh?n.params:new Kh({fromObject:n.params})),s=new Xh(t,e,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=jh(s).pipe(H(t=>this.handler.handle(t),void 0,1));if(t instanceof Xh||"events"===n.observe)return i;const r=i.pipe(Lh(t=>t instanceof eu));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(V(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(V(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(V(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(V(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 Kh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,su(n,e))}post(t,e,n={}){return this.request("POST",t,su(n,e))}put(t,e,n={}){return this.request("PUT",t,su(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Wt(zh))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class ru{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const ou=new Ft("HTTP_INTERCEPTORS");let au=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const lu=/^\)\]\}',?\n/;class cu{}let hu=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),uu=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new _(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 s=t.serializeBody();let i=null;const r=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,s=n.statusText||"OK",r=new qh(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 i=new tu({headers:r,status:e,statusText:s,url:o}),i},o=()=>{let{headers:s,status:i,statusText:o,url:a}=r(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(lu,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new eu({body:l,headers:s,status:i,statusText:o,url:a||void 0})),e.complete()):e.error(new nu({error:l,headers:s,status:i,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=r(),i=new nu({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(i)};let l=!1;const c=s=>{l||(e.next(r()),l=!0);let i={type:Yh.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(i.total=s.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},h=t=>{let n={type:Yh.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!==s&&n.upload&&n.upload.addEventListener("progress",h)),n.send(s),e.next({type:Yh.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",h)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Wt(cu))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const du=new Ft("XSRF_COOKIE_NAME"),pu=new Ft("XSRF_HEADER_NAME");class fu{}let mu=(()=>{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=Bc(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Wt(Cc),Wt(Nl),Wt(du))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),gu=(()=>{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 s=this.tokenService.getToken();return null===s||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,s)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Wt(fu),Wt(pu))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),yu=(()=>{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(ou,[]);this.chain=t.reduceRight((t,e)=>new ru(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Wt($h),Wt(Kr))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),_u=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:gu,useClass:au}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:du,useValue:e.cookieName}:[],e.headerName?{provide:pu,useValue:e.headerName}:[]]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[gu,{provide:ou,useExisting:gu,multi:!0},{provide:fu,useClass:mu},{provide:du,useValue:"XSRF-TOKEN"},{provide:pu,useValue:"X-XSRF-TOKEN"}]}),t})(),vu=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[iu,{provide:zh,useClass:yu},uu,{provide:$h,useExisting:uu},hu,{provide:cu,useExisting:hu}],imports:[[_u.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function bu(){}function wu(t,e,n){return function(s){return s.lift(new Cu(t,e,n))}}class Cu{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Eu(t,this.nextOrObserver,this.error,this.complete))}}class Eu extends f{constructor(t,e,n,i){super(t),this._tapNext=bu,this._tapError=bu,this._tapComplete=bu,this._tapError=n||bu,this._tapComplete=i||bu,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||bu,this._tapError=e.error||bu,this._tapComplete=e.complete||bu)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class Su{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ku(t,this.selector,this.caught))}}class ku extends N{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 s=new x(this,void 0,void 0);this.add(s);const i=D(this,n,void 0,void 0,s);i!==s&&this.add(i)}}}let xu=(()=>{class t{constructor(t){this.http=t}search(t){const e=`${this.baseUrl}?terms=${t.toLowerCase().trim()}`;return this.http.get(e).pipe(wu(t=>{console.log("Get data: ",t)}),V(t=>t["oslc:results"].map((t,e)=>{const n={id:e+1,resource:t["rdf:resource"]};return this.fields.map(e=>{n[e]=t[e]}),n})))}getPreviewIframe(t){return this.http.get(t,{headers:{Accept:"application/x-oslc-compact+xml"},responseType:"text"}).pipe(wu(t=>{console.log("Get preview iframe data: ",t)}),V(t=>{const e=function(t){const e={},n=Tu(Tu(t)),s=Ou(n,"dcterms:title");e.title=s.textContent;const i=Ou(n,"oslc:smallPreview"),r=Ou(n,"oslc:largePreview");let o;if(o=Tu(null!==i?i:r),o){const t=Ou(o,"oslc:document");t&&(e.uri=t.getAttribute("rdf:resource"));const n=Ou(o,"oslc:hintHeight");e.height=n.textContent;const s=Ou(o,"oslc:hintWidth");e.width=s.textContent}return e}((new DOMParser).parseFromString(t,"text/xml"));let n="",n}),function(t){return function(e){const n=new Ed(t),s=e.lift(n);return n.caught=s}}(t=>t.error instanceof Error?(console.error("An error occurred:",t.error.message),vu(`Error loading the preview dialog, Status: ${t.status}`)):(console.error(`Backend returned code ${t.status}, body was: ${t.error}`),vu("Error loading the preview dialog"))))}}return t.\u0275fac=function(e){return new(e||t)(ls(id))},t.\u0275prov=pt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xd(t){for(const e of t.childNodes)if(e.nodeType===Node.ELEMENT_NODE)return e}function kd(t,e){for(const n of t.childNodes)if(n.nodeType===Node.ELEMENT_NODE&&n.nodeName===e)return n}const Td=new mu(pu);function Od(t,e=Td){return n=>n.lift(new Ad(t,e))}class Ad{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Pd(t,this.dueTime,this.scheduler))}}class Pd extends m{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(Rd,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 Rd(t){t.debouncedNext()}class Id{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Dd(t,this.compare,this.keySelector))}}class Dd extends m{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(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function Nd(t,e){return new v(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===s||!c)&&(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}let Vd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ao($a),Ao(La))},t.\u0275dir=Qt({type:t}),t})(),Fd=(()=>{class t extends Vd{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Hn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,features:[po]}),t})();const jd=new qn("NgValueAccessor"),Md={provide:jd,useExisting:rt(()=>Hd),multi:!0},Ld=new qn("CompositionEventMode");let Hd=(()=>{class t extends Vd{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Yc()?Yc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ao($a),Ao(La),Ao(Ld,8))},t.\u0275dir=Qt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Bo("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:[Ra([Md]),po]}),t})();const Bd=new qn("NgValidators"),$d=new qn("NgAsyncValidators");function zd(t){return null!=t}function qd(t){const e=Mo(t)?F(t):t;return Ho(e),e}function Wd(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 Ud(t,e){return e.map(e=>e(t))}function Kd(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Zd(t){return null!=t?function(t){if(!t)return null;const e=t.filter(zd);return 0==e.length?null:function(t){return Wd(Ud(t,e))}}(Kd(t)):null}function Qd(t){return null!=t?function(t){if(!t)return null;const e=t.filter(zd);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Nd(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Nd(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Nd(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(T(t=>e(...t)))}return Nd(t,null)}(Ud(t,e).map(qd)).pipe(T(Wd))}}(Kd(t)):null}function Yd(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Xd(t){return t?Array.isArray(t)?t:[t]:[]}function Gd(t,e){return Array.isArray(t)?t.includes(e):t===e}function Jd(t,e){const n=Xd(e);return Xd(t).forEach(t=>{Gd(n,t)||n.push(t)}),n}function tp(t,e){return Xd(e).filter(e=>!Gd(t,e))}let ep=(()=>{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=Zd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Qd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Qt({type:t}),t})(),np=(()=>{class t extends ep{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Hn(t)))(n||t)}}(),t.\u0275dir=Qt({type:t,features:[po]}),t})();class sp extends ep{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let ip=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,s;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void 0:s[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ao(sp,2))},t.\u0275dir=Qt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&na("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})();function rp(t,e){(function(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Yd(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const s=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Yd(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]);const i=()=>t.updateValueAndValidity();op(e._rawValidators,i),op(e._rawAsyncValidators,i)})(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ap(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&&ap(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 op(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function ap(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function lp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const cp="VALID",hp="INVALID",up="PENDING",dp="DISABLED";function pp(t){return(_p(t)?t.validators:t)||null}function fp(t){return Array.isArray(t)?Zd(t):t||null}function mp(t,e){return(_p(e)?e.asyncValidators:t)||null}function yp(t){return Array.isArray(t)?Qd(t):t||null}function _p(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class gp{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=fp(this._rawValidators),this._composedAsyncValidatorFn=yp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===cp}get invalid(){return this.status===hp}get pending(){return this.status==up}get disabled(){return this.status===dp}get enabled(){return this.status!==dp}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=fp(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=yp(t)}addValidators(t){this.setValidators(Jd(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Jd(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(tp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(tp(t,this._rawAsyncValidators))}hasValidator(t){return Gd(this._rawValidators,t)}hasAsyncValidator(t){return Gd(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(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=up,!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=dp,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=cp,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===cp||this.status===up)&&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()?dp:cp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=up,this._hasOwnPendingAsyncValidator=!0;const e=qd(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let s=t;return e.forEach(t=>{s=s instanceof bp?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof wp&&s.at(t)||null}),s}(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 Bl,this.statusChanges=new Bl}_calculateStatus(){return this._allControlsDisabled()?dp:this.errors?hp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(up)?up:this._anyControlsHaveStatus(hp)?hp:cp}_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){_p(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class vp extends gp{constructor(t=null,e,n){super(pp(e),mp(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){lp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){lp(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 bp extends gp{constructor(t,e,n){super(pp(e),mp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{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 vp?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),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 wp extends gp{constructor(t,e,n){super(pp(e),mp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof vp?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Ep={provide:sp,useExisting:rt(()=>Sp)},Cp=(()=>Promise.resolve(null))();let Sp=(()=>{class t extends sp{constructor(t,e,n,s){super(),this.control=new vp,this._registered=!1,this.update=new Bl,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,s,i;return Array.isArray(e),e.forEach(t=>{t.constructor===Hd?n=t:function(t){return Object.getPrototypeOf(t.constructor)===Fd}(t)?s=t:i=t}),i||s||n||null}(0,s)}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?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){rp(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){Cp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Cp.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ao(np,9),Ao(Bd,10),Ao($d,10),Ao(jd,10))},t.\u0275dir=Qt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ra([Ep]),po,le]}),t})(),xp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})(),kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[xp]]}),t})(),Tp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[kp]}),t})();function Op(t){return null!=t&&"false"!=`${t}`}function Ap(t){return Array.isArray(t)?t:[t]}function Pp(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Rp(t,e,n,i){return s(n)&&(i=n,n=void 0),i?Rp(t,e,n).pipe(T(t=>l(t)?i(...t):i(t))):new v(s=>{Ip(t,e,function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},s,n)})}function Ip(t,e,n,s,i){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(e,n,i),r=()=>s.removeEventListener(e,n,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(e,n),r=()=>s.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(e,n),r=()=>s.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let Dp=1;const Np=Promise.resolve(),Vp={};function Fp(t){return t in Vp&&(delete Vp[t],!0)}const jp={setImmediate(t){const e=Dp++;return Vp[e]=!0,Np.then(()=>Fp(e)&&t()),e},clearImmediate(t){Fp(t)}};new class extends mu{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++s0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=jp.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&&(jp.clearImmediate(e),t.scheduled=void 0)}});class Mp{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Lp(t,this.durationSelector))}}class Lp extends M{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=L(n,new j(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Hp(t){return!l(t)&&t-parseFloat(t)+1>=0}function Bp(t=0,e,n){let s=-1;return Hp(e)?s=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=Td),new v(e=>{const i=Hp(t)?t:+t-n.now();return n.schedule($p,i,{index:0,period:s,subscriber:e})})}function $p(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function zp(t,e=Td){return function(t){return function(e){return e.lift(new Mp(t))}}(()=>Bp(t,e))}function qp(t){return e=>e.lift(new Wp(t))}class Wp{constructor(t){this.notifier=t}call(t,e){const n=new Up(t),s=L(this.notifier,new j(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class Up extends M{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Kp(...t){return z(1)(vu(...t))}let Zp;try{Zp="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(d){Zp=!1}let Qp,Yp=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function(t){return t===Rh}(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&&!Zp)&&"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)(ls(hc))},t.\u0275prov=pt({factory:function(){return new t(ls(hc))},token:t,providedIn:"root"}),t})(),Xp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})();function Gp(){if(null==Qp){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qp=!1,Qp;if("scrollBehavior"in document.documentElement.style)Qp=!0;else{const t=Element.prototype.scrollTo;Qp=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Qp}const Jp=new qn("cdk-dir-doc",{providedIn:"root",factory:function(){return cs(Xc)}});let tf=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Bl,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)(ls(Jp,8))},t.\u0275prov=pt({factory:function(){return new t(ls(Jp,8))},token:t,providedIn:"root"}),t})(),ef=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})(),nf=(()=>{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 v(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(zp(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):vu()}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(Vu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=function(t){return t instanceof La?t.nativeElement:t}(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Rp(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)(ls(xc),ls(Yp),ls(Xc,8))},t.\u0275prov=pt({factory:function(){return new t(ls(xc),ls(Yp),ls(Xc,8))},token:t,providedIn:"root"}),t})(),sf=(()=>{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,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(zp(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)(ls(Yp),ls(xc),ls(Xc,8))},t.\u0275prov=pt({factory:function(){return new t(ls(Yp),ls(xc),ls(Xc,8))},token:t,providedIn:"root"}),t})(),rf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})(),of=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[ef,Xp,rf],ef,rf]}),t})();class af{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 lf extends af{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class cf extends af{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 hf extends af{constructor(t){super(),this.element=t instanceof La?t.nativeElement:t}}class uf extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof lf?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof cf?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof hf?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let df=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})();const pf=(()=>{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 ff(t){return e=>0===t?gu():e.lift(new mf(t))}class mf{constructor(t){if(this.total=t,this.total<0)throw new pf}call(t,e){return e.subscribe(new yf(t,this.total))}}class yf extends m{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()))}}class _f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new gf(t,this.predicate,this.inclusive))}}class gf extends m{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(s){return void e.error(s)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}const vf=Gp();class bf{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=Pp(-this._previousScrollPosition.left),t.style.top=Pp(-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,s=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),vf&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vf&&(e.scrollBehavior=s,n.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class wf{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,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 Ef{enable(){}disable(){}attach(){}}function Cf(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Sf(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class xf{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,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();Cf(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 kf=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Ef,this.close=t=>new wf(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new bf(this._viewportRuler,this._document),this.reposition=t=>new xf(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(ls(nf),ls(sf),ls(xc),ls(Xc))},t.\u0275prov=pt({factory:function(){return new t(ls(nf),ls(sf),ls(xc),ls(Xc))},token:t,providedIn:"root"}),t})();class Tf{constructor(t){if(this.scrollStrategy=new Ef,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 Of{constructor(t,e,n,s,i){this.offsetX=n,this.offsetY=s,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Af{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Pf=(()=>{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)(ls(Xc))},t.\u0275prov=pt({factory:function(){return new t(ls(Xc))},token:t,providedIn:"root"}),t})(),Rf=(()=>{class t extends Pf{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)(ls(Xc))},t.\u0275prov=pt({factory:function(){return new t(ls(Xc))},token:t,providedIn:"root"}),t})(),If=(()=>{class t extends Pf{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 s=n.length-1;s>-1;s--){const i=n[s];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(ls(Xc),ls(Yp))},t.\u0275prov=pt({factory:function(){return new t(ls(Xc),ls(Yp))},token:t,providedIn:"root"}),t})();const Df=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Nf=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Df){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new S,this._outsidePointerEvents=new S,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.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(ff(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=Pp(this._config.width),t.height=Pp(this._config.height),t.minWidth=Pp(this._config.minWidth),t.minHeight=Pp(this._config.minHeight),t.maxWidth=Pp(this._config.maxWidth),t.maxHeight=Pp(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;Ap(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(qp(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 Ff="cdk-overlay-connected-position-bounding-box",jf=/([A-Za-z%]+)$/;class Mf{constructor(t,e,n,s,i){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new 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(Ff),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,s=[];let i;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)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!i||i.overlayFit.visibleAreae&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lf(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ff),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,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?s:i}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:s}}_getOverlayPoint(t,e,n){let s,i;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+s,y:t.y+i}}_getOverlayFit(t,e,n,s){const i=Bf(e);let{x:r,y:o}=t,a=this._getOffset(s,"x"),l=this._getOffset(s,"y");a&&(r+=a),l&&(o+=l);let c=0-o,h=o+i.height-n.height,u=this._subtractOverflows(i.width,0-r,r+i.width-n.width),d=this._subtractOverflows(i.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:i.width*i.height===p,fitsInViewportVertically:d===i.height,fitsInViewportHorizontally:u==i.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,i=n.right-e.x,r=Hf(this._overlayRef.getConfig().minHeight),o=Hf(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=r&&r<=s)&&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 s=Bf(e),i=this._viewportRect,r=Math.max(t.x+s.width-i.width,0),o=Math.max(t.y+s.height-i.height,0),a=Math.max(i.top-n.top-t.y,0),l=Math.max(i.left-n.left-t.x,0);let c=0,h=0;return c=s.width<=i.width?l||-r:t.xs&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;s.height=Pp(n.height),s.top=Pp(n.top),s.bottom=Pp(n.bottom),s.width=Pp(n.width),s.left=Pp(n.left),s.right=Pp(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=Pp(t)),i&&(s.maxWidth=Pp(i))}this._lastBoundingBoxSize=n,Lf(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Lf(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lf(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();Lf(n,this._getExactOverlayY(e,t,s)),Lf(n,this._getExactOverlayX(e,t,s))}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&&(s?n.maxHeight=Pp(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=Pp(r.maxWidth):i&&(n.maxWidth="")),Lf(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":s.top=Pp(i.y),s}_getExactOverlayX(t,e,n){let s,i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Pp(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Sf(t,n),isOriginOutsideView:Cf(t,n),isOverlayClipped:Sf(e,n),isOverlayOutsideView:Cf(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&&Ap(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 La)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 Lf(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Hf(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(jf);return n&&"px"!==n?null:parseFloat(e)}return t||null}function Bf(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class $f{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new Mf(n,s,i,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,s){const i=new Of(t,e,n,s);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const zf="cdk-global-overlay-wrapper";class qf{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(zf),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:s,height:i,maxWidth:r,maxHeight:o}=n,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==i&&"100vh"!==i||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(zf),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Wf=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new qf}connectedTo(t,e,n){return new $f(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Mf(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ls(sf),ls(Xc),ls(Yp),ls(Nf))},t.\u0275prov=pt({factory:function(){return new t(ls(sf),ls(Xc),ls(Yp),ls(Nf))},token:t,providedIn:"root"}),t})(),Uf=0,Kf=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=i,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),s=this._createPortalOutlet(n),i=new Tf(t);return i.direction=i.direction||this._directionality.value,new Vf(s,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Uf++,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(qc)),new uf(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ls(kf),ls(Nf),ls(Va),ls(Wf),ls(Rf),ls(ho),ls(xc),ls(Xc),ls(tf),ls(hh),ls(If))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const Zf=[{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"}],Qf=new qn("cdk-connected-overlay-scroll-strategy");let Yf=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Ao(La))},t.\u0275dir=Qt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Xf=(()=>{class t{constructor(t,e,n,s,i){this._overlay=t,this._dir=i,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 Bl,this.positionChange=new Bl,this.attach=new Bl,this.detach=new Bl,this.overlayKeydown=new Bl,this.overlayOutsideClick=new Bl,this._templatePortal=new cf(e,n),this._scrollStrategyFactory=s,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=Op(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Op(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Op(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Op(t)}get push(){return this._push}set push(t){this._push=Op(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=Zf);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&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(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 Tf({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 _f(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)(Ao(Kf),Ao(yl),Ao(El),Ao(Qf),Ao(tf,8))},t.\u0275dir=Qt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[le]}),t})();const Gf={provide:Qf,deps:[Kf],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Jf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({providers:[Kf,Gf],imports:[[ef,df,of],of]}),t})();const tm=["dialog"];function em(t,e){1&t&&No(0,"div",5),2&t&&Po("innerHTML",qo(2).SafeContent,Ri)}function nm(t,e){1&t&&(Io(0,"div"),Ko(1),Do())}function sm(t,e){if(1&t&&(Io(0,"div",1,2),To(2,em,1,1,"div",3),To(3,nm,2,0,"div",4),Do()),2&t){const t=qo();Gi(2),Po("ngIf",t.SafeContent),Gi(1),Po("ngIf",!t.SafeContent)}}const im=["*"];let rm=(()=>{class t{constructor(t,e){this.changeDetectorRef=t,this.sanitizer=e,this.close=new Bl,this.open=new Bl,this.isOpened=!1,this.destroy$=new S}get SafeContent(){return this._content}set Content(t){this._content=this.sanitizer.bypassSecurityTrustHtml(t),this.changeDetectorRef.markForCheck()}ngOnInit(){const t=this.CdkOverlayOrigin.elementRef.nativeElement,e=Rp(document,"mousemove").pipe(Vu(()=>!this.isOpened),xu(e=>Rp(document,"mousemove").pipe(function(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>Kp(t,n,e)):e=>Kp(t,e)}(e),Od(300),Vu(e=>t.contains(e.target)))),J(),qp(this.destroy$));e.subscribe(()=>this.changeState(!0));const n=Rp(document,"mousemove").pipe(Od(100),Vu(()=>this.isOpened),Vu(e=>this.isMovedOutside(t,this.dialog,e)));e.pipe(qp(this.destroy$),function(t,e){return xu(()=>t)}(n)).subscribe(()=>{this.changeState(!1)})}ngOnDestroy(){this.destroy$.next()}connectedOverlayDetach(){this.changeState(!1)}changeState(t){this.isOpened!==t&&(this.isOpened=t,t?this.open.emit():this.close.emit(),this.changeDetectorRef.markForCheck())}isMovedOutside(t,e,n){return!(t.contains(n.target)||e.nativeElement.contains(n.target))}}return t.\u0275fac=function(e){return new(e||t)(Ao(ul),Ao(ou))},t.\u0275cmp=zt({type:t,selectors:[["app-popup"]],viewQuery:function(t,e){if(1&t&&tc(tm,5),2&t){let t;Jl(t=ec())&&(e.dialog=t.first)}},inputs:{CdkOverlayOrigin:"CdkOverlayOrigin"},outputs:{close:"close",open:"open"},ngContentSelectors:im,decls:1,vars:2,consts:[["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","detach"],["role","dialog","aria-label","Dialog",1,"dialog-container"],["dialog",""],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"]],template:function(t,e){1&t&&(Uo(),To(0,sm,4,2,"ng-template",0),Bo("detach",function(){return e.connectedOverlayDetach()})),2&t&&Po("cdkConnectedOverlayOrigin",e.CdkOverlayOrigin)("cdkConnectedOverlayOpen",e.isOpened)},directives:[Xf,wh],styles:[".dialog-container[_ngcontent-%COMP%]{padding:20px;background-color:#fff;box-shadow:0 0 5px #0006}"],changeDetection:0}),t})();function om(t,e){1&t&&No(0,"span",7)}function am(t,e){if(1&t&&(Io(0,"th",10),pa(1),Do()),2&t){const t=e.$implicit;Gi(1),ma(" ",t," ")}}function lm(t,e){if(1&t&&(Io(0,"td"),Io(1,"span"),pa(2),Do(),Do()),2&t){const t=e.$implicit,n=qo().$implicit;Gi(2),fa(n[t])}}function cm(t,e){if(1&t){const t=Re();Io(0,"tr",13,14),Bo("click",function(){const e=De(t),n=e.$implicit,s=e.index;return qo(2).onItemSelected(n,s)}),Io(2,"th",15),Io(3,"div",16),Io(4,"input",17),Bo("click",function(){const e=De(t),n=e.$implicit,s=e.index;return qo(2).onItemSelected(n,s)}),Do(),Io(5,"label",18),pa(6,"\xa0"),Do(),Do(),Do(),To(7,lm,3,1,"td",19),Io(8,"app-popup",20,21),Bo("open",function(){const e=De(t).$implicit,n=Oo(9);return qo(2).renderPreviewIframe(n,e.resource)}),pa(10," Loading... "),Do(),Do()}if(2&t){const t=e.$implicit,n=e.index,s=Oo(1),i=qo(2);na("table-primary",null==i.selectedRows[n]?null:i.selectedRows[n].selected),Gi(4),Qo("id","rowCheck",t.id,""),Po("checked",null==i.selectedRows[n]?null:i.selectedRows[n].selected),Gi(1),Qo("for","rowCheck",t.id,""),Gi(2),Po("ngForOf",i.searchService.fields),Gi(1),Po("CdkOverlayOrigin",s)}}function hm(t,e){if(1&t&&(Io(0,"div",8),Io(1,"table",9),Io(2,"thead"),Io(3,"tr"),Io(4,"th",10),pa(5,"\xa0"),Do(),To(6,am,2,1,"th",11),Do(),Do(),Io(7,"tbody"),To(8,cm,11,7,"tr",12),Do(),Do(),Do()),2&t){const t=e.ngIf,n=qo();Gi(6),Po("ngForOf",n.searchService.fields),Gi(2),Po("ngForOf",t)}}function um(t,e){if(1&t&&(Io(0,"span"),pa(1),Do()),2&t){const t=qo();Gi(1),fa(t.noDataText)}}let dm=(()=>{class t{constructor(t){this.searchService=t,this.itemsSelected=new Bl,this.searchValue="",this.debouncedInputValue=this.searchValue,this.searchDecouncer$=new S,this.selectedRows=[],this.searchResult$=new S}ngAfterViewInit(){this.setupSearchDebouncer()}ngOnDestroy(){console.log("Destroying HeaderComponent")}onSearchInputChange(t){this.searchDecouncer$.next(t)}onSearch(){this.selectedRows=[],this.search()}onItemSelected(t,e){var n;this.selectedRows[e]={selected:!(null===(n=this.selectedRows[e])||void 0===n?void 0:n.selected),item:t};const s=this.searchService.fields[0],i=this.selectedRows.filter(t=>!0===t.selected).map(t=>({resource:t.item.resource,text:t.item[s]}));this.itemsSelected.emit(i)}renderPreviewIframe(t,e){this.searchService.getPreviewIframe(e).subscribe(e=>{t.Content=e})}setupSearchDebouncer(){this.searchDecouncer$.pipe(Od(500),function(t,e){return n=>n.lift(new Id(t,e))}()).subscribe(t=>{this.debouncedInputValue=t,this.search()})}search(){this.busy=!0,this.searchResult$.next(null),this.searchService.search(this.debouncedInputValue).subscribe(t=>{0===t.length&&(t=null),this.searchResult$.next(t),this.busy=!1})}}return t.\u0275fac=function(e){return new(e||t)(Ao(Sd))},t.\u0275cmp=zt({type:t,selectors:[["app-search-header"]],inputs:{noDataText:"noDataText",searchPlaceholderText:"searchPlaceholderText"},outputs:{itemsSelected:"itemsSelected"},decls:10,vars:7,consts:[[1,"input-group","mb-3"],["autofocus","","type","search","aria-describedby","button-search",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","button","id","button-search",1,"btn","btn-outline-primary",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["class","table-sm table-hover table-responsive-sm max-width",4,"ngIf","ngIfElse"],["noresult",""],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"table-sm","table-hover","table-responsive-sm","max-width"],[1,"table"],["scope","col"],["scope","col",4,"ngFor","ngForOf"],["cdkOverlayOrigin","",3,"table-primary","click",4,"ngFor","ngForOf"],["cdkOverlayOrigin","",3,"click"],["CdkOverlayOrigin","cdkOverlayOrigin"],["scope","row"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","checked","click"],[1,"custom-control-label",3,"for"],[4,"ngFor","ngForOf"],[3,"CdkOverlayOrigin","open"],["popup",""]],template:function(t,e){if(1&t&&(Io(0,"div",0),Io(1,"input",1),Bo("ngModelChange",function(t){return e.searchValue=t})("ngModelChange",function(t){return e.onSearchInputChange(t)}),Do(),Io(2,"div",2),Io(3,"button",3),Bo("click",function(){return e.onSearch()}),To(4,om,1,0,"span",4),pa(5," Search "),Do(),Do(),Do(),To(6,hm,9,2,"div",5),function(t,e){const n=Ie();let s;const i=t+20;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new lt("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,s.onDestroy)):s=n.data[i];const r=s.factory||(s.factory=oe(s.type)),o=St(Ao);try{const t=En(!1),e=r();En(t),function(t,e,n,s){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=s}(n,Re(),i,e)}finally{St(o)}}(7,"async"),To(8,um,2,1,"ng-template",null,6,sc)),2&t){const t=Oo(9);Gi(1),Po("ngModel",e.searchValue)("placeholder",e.searchPlaceholderText),Gi(3),Po("ngIf",!0===e.busy),Gi(2),Po("ngIf",Ll(7,5,e.searchResult$))("ngIfElse",t)}},directives:[Hd,ip,Sp,wh,vh,Yf,rm],pipes:[Ah],styles:["[_nghost-%COMP%], .full-width[_ngcontent-%COMP%]{width:100%}.max-width[_ngcontent-%COMP%]{flex-grow:1;overflow:auto}"]}),t})(),pm=(()=>{class t{constructor(t){this.searchService=t,this.noDataText="No results to show...",this.searchPlaceholderText="Find a specific resource through a free-text search.",this.oslcResponse=""}onItemsSelected(t){let e='oslc-response:{ "oslc:results": [';e+=t.map(t=>'{"oslc:label": "'+t.text+'", "rdf:resource": "'+t.resource+'"}').join(", "),e+="]}",this.oslcResponse=e}ngOnInit(){this.searchService.baseUrl=this.selectionUri;const t=JSON.parse(this.fields);this.searchService.fields=t}onOk(){this.sendResponse(this.oslcResponse)}onCancel(){this.sendResponse('oslc-response:{ "oslc:results": [ ]}')}sendResponse(t){console.log("oslcResponse: ",t),"#oslc-core-windowName-1.0"===window.location.hash?this.respondWithWindowName(t):"#oslc-core-postMessage-1.0"===window.location.hash&&this.respondWithPostMessage(t)}respondWithPostMessage(t){null!=window.parent?window.parent.postMessage(t,"*"):window.postMessage(t,"*")}respondWithWindowName(t){const e=window.name;window.name=t,window.location.href=e}}return t.\u0275fac=function(e){return new(e||t)(Ao(Sd))},t.\u0275cmp=zt({type:t,selectors:[["app-selector"]],inputs:{noDataText:"noDataText",searchPlaceholderText:"searchPlaceholderText",selectionUri:"selectionUri",fields:"fields"},decls:12,vars:2,consts:[[3,"noDataText","searchPlaceholderText","itemsSelected"],[1,"footer","d-flex","flex-row","align-middle"],[1,"d-flex","flex-grow-1","align-items-center","mb-0"],["type","button",1,"btn","btn-outline-secondary","m-2",3,"click"],["type","button","cdkFocusInitial","",1,"btn","btn-primary",3,"click"]],template:function(t,e){1&t&&(Io(0,"app-search-header",0),Bo("itemsSelected",function(t){return e.onItemsSelected(t)}),Do(),Io(1,"div",1),Io(2,"div",2),Io(3,"span"),pa(4,"OSLC Selection Dialog "),Io(5,"em"),pa(6,"(generated by Eclipse Lyo)"),Do(),Do(),Do(),Io(7,"div"),Io(8,"button",3),Bo("click",function(){return e.onCancel()}),pa(9," Cancel "),Do(),Io(10,"button",4),Bo("click",function(){return e.onOk()}),pa(11," Select "),Do(),Do(),Do()),2&t&&Po("noDataText",e.noDataText)("searchPlaceholderText",e.searchPlaceholderText)},directives:[dm],styles:[""]}),t})();class fm{}const mm="*";function ym(t,e=null){return{type:2,steps:t,options:e}}function _m(t){return{type:6,styles:t,offset:null}}function gm(t){Promise.resolve(null).then(t)}class vm{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){gm(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class bm{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,s=0;const i=this.players.length;0==i?gm(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function wm(){return"undefined"!=typeof window&&void 0!==window.document}function Em(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Cm(t){switch(t.length){case 0:return new vm;case 1:return t[0];default:return new bm(t)}}function Sm(t,e,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==l,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case"!":a=i[n];break;case mm:a=r[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}h[s]=a}),s||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 xm(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&km(n,"start",t)));break;case"done":t.onDone(()=>s(n&&km(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&km(n,"destroy",t)))}}function km(t,e,n){const s=n.totalTime,i=Tm(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function Tm(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function Om(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function Am(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Pm=(t,e)=>!1,Rm=(t,e)=>!1,Im=(t,e,n)=>[];const Dm=Em();(Dm||"undefined"!=typeof Element)&&(Pm=wm()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),Rm=(()=>{if(Dm||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]):Rm}})(),Im=(t,e,n)=>{let s=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let Bm=(()=>{class t{validateStyleProperty(t){return Fm(t)}matchesElement(t,e){return jm(t,e)}containsElement(t,e){return Mm(t,e)}query(t,e,n){return Lm(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new vm(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})(),$m=(()=>{class t{}return t.NOOP=new Bm,t})();const zm="ng-enter",qm="ng-leave",Wm="ng-trigger",Um=".ng-trigger",Km="ng-animating",Zm=".ng-animating";function Qm(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ym(parseFloat(e[1]),e[2])}function Ym(t,e){return"s"===e?1e3*t:t}function Xm(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=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:""};s=Ym(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=Ym(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function Gm(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Jm(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else Gm(t,n);return n}function ty(t,e,n){return n?e+":"+n+";":""}function ey(t){let e="";for(let n=0;n{const i=hy(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),Em()&&ey(t))}function sy(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=hy(e);t.style[n]=""}),Em()&&ey(t))}function iy(t){return Array.isArray(t)?1==t.length?t[0]:ym(t):t}const ry=new RegExp("{{\\s*(.+?)\\s*}}","g");function oy(t){let e=[];if("string"==typeof t){let n;for(;n=ry.exec(t);)e.push(n[1]);ry.lastIndex=0}return e}function ay(t,e,n){const s=t.toString(),i=s.replace(ry,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),i=""),i.toString()});return i==s?t:i}function ly(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const cy=/-+([a-z0-9])/g;function hy(t){return t.replace(cy,(...t)=>t[1].toUpperCase())}function uy(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function dy(t,e){return 0===t||0===e}function py(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;ifunction(t,e,n){if(":"==t[0]){const s=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 s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(vy(i,o));"<"==r[0]&&!("*"==i&&"*"==o)&&e.push(vy(o,i))}(t,n,e)):n.push(t),n}const _y=new Set(["true","1"]),gy=new Set(["false","0"]);function vy(t,e){const n=_y.has(t)||gy.has(t),s=_y.has(e)||gy.has(e);return(i,r)=>{let o="*"==t||t==i,a="*"==e||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?_y.has(t):gy.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?_y.has(e):gy.has(e)),o&&a}}const by=new RegExp("s*:selfs*,?","g");function wy(t,e,n){return new Ey(t).build(e,n)}class Ey{constructor(t){this._driver=t}build(t,e){const n=new Cy(e);return this._resetContextStyleTimingState(n),fy(this,iy(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],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,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(Sy(t)){const e=t;Object.keys(e).forEach(t=>{oy(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=ly(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=fy(this,iy(t.animation),e);return{type:1,matchers:yy(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:xy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>fy(this,t,e)),options:xy(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=fy(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:xy(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 ky(Xm(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ky(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||Xm(s,e),ky(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let s,i=t.styles?t.styles:_m({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=_m(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,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==mm?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(Sy(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=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 "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=oy(t);i.length&&i.forEach(t=>{s.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 s=0;const i=[];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(Sy(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Sy(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&s{const r=h>0?s==u?1:h*s:i[s],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:fy(this,iy(t.animation),e),options:xy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:xy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:xy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(by,"")),t=t.replace(/@\*/g,Um).replace(/@\w+/g,t=>Um+"-"+t.substr(1)).replace(/:animating/g,Zm),[t,e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Om(e.collectedStyles,e.currentQuerySelector,{});const o=fy(this,iy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:xy(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"}:Xm(t.timings,e.errors,!0);return{type:12,animation:fy(this,iy(t.animation),e),timings:n,options:null}}}class Cy{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 Sy(t){return!Array.isArray(t)&&"object"==typeof t}function xy(t){return t?(t=Gm(t)).params&&(t.params=function(t){return t?Gm(t):null}(t.params)):t={},t}function ky(t,e,n){return{duration:t,delay:e,easing:n}}function Ty(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class Oy{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 Ay=new RegExp(":enter","g"),Py=new RegExp(":leave","g");function Ry(t,e,n,s,i,r={},o={},a,l,c=[]){return(new Iy).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class Iy{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new Oy;const h=new Ny(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),fy(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()):[Ty(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 s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=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 s=e.currentTimeline.currentTime;const i=null!=n.duration?Qm(n.duration):null,r=null!=n.delay?Qm(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),fy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Dy);const t=Qm(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>fy(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?Qm(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),fy(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Xm(e.params?ay(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),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?Qm(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Dy);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),fy(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,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;fy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Dy={};class Ny{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Dy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Vy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=Qm(n.duration)),null!=n.delay&&(s.delay=Qm(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=ay(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,i=new Ny(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Dy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Fy(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(Ay,"."+this._enterClassName)).replace(Py,"."+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!i&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Vy{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,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 Vy(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]||mm,this._currentKeyframe[t]=mm}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=mm})):Jm(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=ay(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:mm),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],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=Jm(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):s==mm&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?ly(t.values()):[],r=e.size?ly(e.values()):[];if(n){const t=s[0],e=Gm(t);t.offset=0,e.offset=1,s=[t,e]}return Ty(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class Fy extends Vy{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,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:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=Jm(t[0],!1);a.offset=0,i.push(a);const l=Jm(t[0],!1);l.offset=jy(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=Jm(t[s],!1);o.offset=jy((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return Ty(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function jy(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class My{}class Ly extends My{normalizePropertyName(t,e){return hy(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(Hy[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const Hy=(()=>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 By(t,e,n,s,i,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const $y={};class zy{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||$y,d=this.buildStyles(n,o&&o.params||$y,h),p=a&&a.params||$y,f=this.buildStyles(s,p,h),m=new Set,y=new Map,_=new Map,g="void"===s,v={params:Object.assign(Object.assign({},u),p)},b=c?[]:Ry(t,e,this.ast.animation,i,r,d,f,v,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return By(e,this._triggerName,n,s,g,d,f,[],[],y,_,w,h);b.forEach(t=>{const n=t.element,s=Om(y,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=Om(_,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const E=ly(m.values());return By(e,this._triggerName,n,s,g,d,f,b,E,y,_,w)}}class qy{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},s=Gm(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=ay(r,s,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Wy{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new qy(t.style,t.options&&t.options.params||{},n)}),Uy(this.states,"true","1"),Uy(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new zy(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new zy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Uy(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Ky=new Oy;class Zy{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=wy(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]=s}_buildPlayer(t,e,n){const s=t.element,i=Sm(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const o=new Map;if(i?(r=Ry(this._driver,e,i,zm,qm,{},{},n,Ky,s),r.forEach(t=>{const e=Om(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,mm)})});const a=Cm(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,s){const i=Tm(e,"","","");return xm(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const Qy="ng-animate-queued",Yy="ng-animate-disabled",Xy=".ng-animate-disabled",Gy=[],Jy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},t_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},e_="__ng_removed";class n_{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){const e=Gm(t);delete e.value,this.options=e}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const s_="void",i_=new n_(s_);class r_{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,p_(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(t){return"start"==t||"done"==t}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);const i=Om(this._elementListeners,t,[]),r={name:e,phase:n,callback:s};i.push(r);const o=Om(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(p_(t,Wm),p_(t,Wm+"-"+e),o[e]=i_),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(r);t>=0&&i.splice(t,1),this._triggers[e]||delete o[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,s=!0){const i=this._getTrigger(e),r=new a_(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(p_(t,Wm),p_(t,Wm+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new n_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=i_),l.value!==s_&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i{sy(t,n),ny(t,s)})}return}const c=Om(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=i.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!s)return;h=i.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||(p_(t,Qy),r.onStart(()=>{f_(t,Qy)})),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,Um,!0);n.forEach(t=>{if(t[e_])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,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,s_,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Cm(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const s=new Set;e.forEach(e=>{const i=e.name;if(s.has(i))return;s.add(i);const r=this._triggers[i].fallbackTransition,o=n[i]||i_,a=new n_(s_),l=new a_(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t[e_];(!s||s===Jy)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){p_(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=Tm(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,xm(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s: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 o_{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 r_(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||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 s=this._namespaceLookup[t];s&&s.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 s=0;s=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),p_(t,Yy)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),f_(t,Yy))}removeNode(t,e,n,s){if(l_(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e[e_]={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return l_(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,Um,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Zm,!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 Cm(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[e_];if(e&&e.setForRemoval){if(t[e_]=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,Xy)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Xy,!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?Cm(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 Oy,s=[],i=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=zm+f++;p.set(e,n),t.forEach(t=>p_(t,n))});const m=[],y=new Set,_=new Set;for(let P=0;Py.add(t)):_.add(t))}const g=new Map,v=u_(u,Array.from(y));v.forEach((t,e)=>{const n=qm+f++;g.set(e,n),t.forEach(t=>p_(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>f_(t,n))}),v.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>f_(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(b.push(e),this.collectedEnterElements.length){const t=i[e_];if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,i),u=g.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>sy(i,f.fromStyles)),e.onDestroy(()=>ny(i,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>sy(i,f.fromStyles)),e.onDestroy(()=>ny(i,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),r.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Om(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 s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.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`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,C=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Om(E,e,[]).push(t),t.destroy()})});const S=m.filter(t=>__(t,a,l)),x=new Map;h_(x,this.driver,_,l,mm).forEach(t=>{__(t,a,l)&&S.push(t)});const k=new Map;d.forEach((t,e)=>{h_(k,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=x.get(t),n=k.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const T=[],O=[],A={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>ny(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=A;if(C.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>C.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,E,i,k,x);if(r.setRealPlayer(n),t===A)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Cm(e)),s.push(r)}}else sy(e,o.fromStyles),r.onDestroy(()=>ny(e,o.toStyles)),O.push(r),c.has(e)&&s.push(r)}),O.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Cm(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let P=0;P!t.destroyed);s.length?m_(this,t,s):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 s=e[e_];return s&&s.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,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==s_;e.forEach(e=>{e.queued||!t&&e.triggerName!=s||r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=Om(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}sy(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,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[e_];if(d&&d.removedBeforeQueried)return new vm(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return y_(t,e),e}((n.get(u)||Gy).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=i.get(u),y=r.get(u),_=Sm(0,this._normalizer,0,e.keyframes,m,y),g=this._buildPlayer(e,_,f);if(e.subTimeline&&s&&h.add(u),p){const e=new a_(t,o,u);e.setRealPlayer(g),l.push(e)}return g});l.forEach(t=>{Om(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>p_(t,Km));const d=Cm(u);return d.onDestroy(()=>{c.forEach(t=>f_(t,Km)),ny(a,e.toStyles)}),h.forEach(t=>{Om(s,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 vm(t.duration,t.delay)}}class a_{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new vm,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=>xm(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){Om(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 l_(t){return t&&1===t.nodeType}function c_(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function h_(t,e,n,s,i){const r=[];n.forEach(t=>r.push(c_(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);(!n||0==n.length)&&(s[e_]=t_,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>c_(t,r[a++])),o}function u_(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;function r(t){if(!t)return 1;let e=i.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:s.has(o)?1:r(o),i.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const d_="$$classes";function p_(t,e){if(t.classList)t.classList.add(e);else{let n=t[d_];n||(n=t[d_]={}),n[e]=!0}}function f_(t,e){if(t.classList)t.classList.remove(e);else{let n=t[d_];n&&delete n[e]}}function m_(t,e,n){Cm(n).onDone(()=>t.processLeaveNode(e))}function y_(t,e){for(let n=0;ni.add(t)):e.set(t,s),n.delete(t),!0}class g_{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new o_(t,e,n),this._timelineEngine=new Zy(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=wy(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Wy(t,e,n)}(s,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=Am(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=Am(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function v_(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=w_(e[0]),e.length>1&&(s=w_(e[e.length-1]))):e&&(n=w_(e)),n||s?new b_(t,n,s):null}let b_=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ny(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ny(this._element,this._initialStyles),this._endStyles&&(ny(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sy(this._element,this._endStyles),this._endStyles=null),ny(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function w_(t){let e=null;const n=Object.keys(t);for(let s=0;sthis._handleCallback(t)}apply(){(function(t,e){const n=R_(t,"").trim();let s=0;n.length&&(function(t,e){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),A_(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=R_(t,"").split(","),s=O_(n,e);s>=0&&(n.splice(s,1),P_(t,"",n.join(",")))}(this._element,this._name))}}function k_(t,e,n){P_(t,"PlayState",n,T_(t,e))}function T_(t,e){const n=R_(t,"");return n.indexOf(",")>0?O_(n.split(","),e):O_([n],e)}function O_(t,e){for(let n=0;n=0)return n;return-1}function A_(t,e,n){n?t.removeEventListener(S_,e):t.addEventListener(S_,e)}function P_(t,e,n,s){const i=C_+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function R_(t,e){return t.style[C_+e]||""}class I_{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new x_(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]:my(this.element,n))})}this.currentSnapshot=t}}class D_ extends vm{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Hm(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 N_{constructor(){this._count=0}validateStyleProperty(t){return Fm(t)}matchesElement(t,e){return jm(t,e)}containsElement(t,e){return Mm(t,e)}query(t,e,n){return Lm(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Hm(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=`${i}}\n`}),s+="}\n";const r=document.createElement("style");return r.textContent=s,r}animate(t,e,n,s,i,r=[],o){const a=r.filter(t=>t instanceof I_),l={};dy(n,s)&&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=py(t,e,l));if(0==n)return new D_(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(u);const d=v_(t,e),p=new I_(t,e,h,n,s,i,c,d);return p.onDestroy(()=>function(t){t.parentNode.removeChild(t)}(u)),p}}class V_{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:my(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class F_{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(j_().toString()),this._cssKeyframesDriver=new N_}validateStyleProperty(t){return Fm(t)}matchesElement(t,e){return jm(t,e)}containsElement(t,e){return Mm(t,e)}query(t,e,n){return Lm(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof V_);dy(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=v_(t,e=py(t,e=e.map(t=>Jm(t,!1)),l));return new V_(t,e,a,h)}}function j_(){return wm()&&Element.prototype.animate||{}}let M_=(()=>{class t extends fm{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Ot.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?ym(t):t;return B_(this._renderer,null,e,"register",[n]),new L_(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ls(Ba),ls(Xc))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class L_ extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new H_(this._id,t,e||{},this._renderer)}}class H_{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,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 B_(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function B_(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const $_="@.disabled";let z_=(()=>{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 q_("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new W_(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ls(Ba),ls(g_),ls(xc))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();class q_{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,s=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,s)}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,s){this.delegate.setAttribute(t,e,n,s)}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,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&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 W_ extends q_{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&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 s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return"@"!=i.charAt(0)&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let U_=(()=>{class t extends g_{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ls(Xc),ls($m),ls(My))},t.\u0275prov=pt({token:t,factory:t.\u0275fac}),t})();const K_=new qn("AnimationModuleType"),Z_=[{provide:fm,useClass:M_},{provide:My,useFactory:function(){return new Ly}},{provide:g_,useClass:U_},{provide:Ba,useFactory:function(t,e,n){return new z_(t,e,n)},deps:[Yh,g_,xc]}],Q_=[{provide:$m,useFactory:function(){return"function"==typeof j_()?new F_:new N_}},{provide:K_,useValue:"BrowserAnimations"},...Z_],Y_=[{provide:$m,useClass:Bm},{provide:K_,useValue:"NoopAnimations"},...Z_];let X_=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Y_:Q_}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({providers:Q_,imports:[uu]}),t})();class G_ extends m{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class J_ extends m{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()}}function tg(t,e,n,s,i=new J_(t,n,s)){if(!i.closed)return e instanceof v?e.subscribe(i):N(e)(i)}class eg{call(t,e){return e.subscribe(new ng(t))}}class ng extends G_{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class lg extends M{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[R](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return L(this.observable,new j(this))}}function cg(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new hg(t,n))}}class hg{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new ug(t,this.observables,this.project))}}class ug extends G_{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const s=e.length;this.values=new Array(s);for(let i=0;i0){const t=s.indexOf(n);-1!==t&&s.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const dg=["*"],pg=["dialog"];function fg(t){return null!=t}function mg(t){return(t||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const yg={animation:!0,transitionTimerDelayMs:5};let _g=(()=>{class t{constructor(){this.animation=yg.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const gg=()=>{},{transitionTimerDelayMs:vg}=yg,bg=new Map,wg=(t,e,n,s)=>{let i=s.context||{};const r=bg.get(e);if(r)switch(s.runningTransition){case"continue":return _u;case"stop":t.run(()=>r.transition$.complete()),i=Object.assign(r.context,i),bg.delete(e)}const o=n(e,s.animation,i)||gg;if(!s.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>o()),vu(void 0).pipe(function(t){return e=>new v(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const a=new S,c=new S,h=a.pipe(function(...t){return e=>Kp(e,vu(...t))}(!0));bg.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:i});const u=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=Rp(e,"transitionend").pipe(qp(h),Vu(({target:t})=>t===e));(function(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return q(t,void 0).lift(new eg)})(Bp(u+vg).pipe(qp(h)),n,c).pipe(qp(h)).subscribe(()=>{bg.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let Eg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Sg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})(),xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})();var Tg=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Tg||(Tg={})),Tg))();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const Og=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Ag(t){const e=Array.from(t.querySelectorAll(Og)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,s={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(s=this.offset(e,!1)),s.top+=e.clientTop,s.left+=e.clientLeft}return n.top-=s.top,n.bottom-=s.top,n.left-=s.left,n.right-=s.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),s=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+s,bottom:n.bottom+s,left:n.left+i,right:n.right+i};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(t,e,n,s){const[i="top",r="center"]=n.split("-"),o=s?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),h=parseFloat(a.marginLeft),u=parseFloat(a.marginRight);let d=0,p=0;switch(i){case"top":d=o.top-(e.offsetHeight+l+c);break;case"bottom":d=o.top+o.height;break;case"left":p=o.left-(e.offsetWidth+h+u);break;case"right":p=o.left+o.width}switch(r){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-e.offsetWidth;break;case"center":"top"===i||"bottom"===i?p=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=e.getBoundingClientRect(),m=document.documentElement,y=window.innerHeight||m.clientHeight,_=window.innerWidth||m.clientWidth;return f.left>=0&&f.top>=0&&f.right<=_&&f.bottom<=y}},new Date(1882,10,12),new Date(2174,10,25);let Pg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph,Tp]]}),t})(),Rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})(),Ig=(()=>{class t{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(ls(_g))},t.\u0275prov=pt({factory:function(){return new t(ls(_g))},token:t,providedIn:"root"}),t})();class Dg{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}const Ng=()=>{};let Vg=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Ng}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,s=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${s+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(ls(Xc))},t.\u0275prov=pt({factory:function(){return new t(ls(Xc))},token:t,providedIn:"root"}),t})(),Fg=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(ff(1)).subscribe(()=>{wg(this._zone,this._el.nativeElement,(t,e)=>{e&&mg(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return wg(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(Ao(La),Ao(xc))},t.\u0275cmp=zt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(sa("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),na("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class jg{close(t){}dismiss(t){}}class Mg{constructor(t,e,n,s){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=s,this._closed=new S,this._dismissed=new S,this._hidden=new S,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(qp(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(qp(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():vu(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),sg(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Lg=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Lg||(Lg={})),Lg))();let Hg=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new S,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Bl,this.shown=new S,this.hidden=new S}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ff(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=sg(wg(this._zone,t,()=>t.classList.remove("show"),e),wg(this._zone,this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const t={animation:this.animation,runningTransition:"continue"};sg(wg(this._zone,this._elRef.nativeElement,(t,e)=>{e&&mg(t),t.classList.add("show")},t),wg(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Rp(t,"keydown").pipe(qp(this._closed$),Vu(t=>t.which===Tg.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Lg.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;Rp(this._dialogEl.nativeElement,"mousedown").pipe(qp(this._closed$),vd(()=>e=!1),xu(()=>Rp(t,"mouseup").pipe(qp(this._closed$),ff(1))),Vu(({target:e})=>t===e)).subscribe(()=>{e=!0}),Rp(t,"click").pipe(qp(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!e&&this._zone.run(()=>this.dismiss(Lg.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=Ag(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&wg(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(Ao(Xc),Ao(La),Ao(xc))},t.\u0275cmp=zt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&tc(pg,7),2&t){let t;Jl(t=ec())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(xo("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),sa("modal d-block"+(e.windowClass?" "+e.windowClass:"")),na("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:dg,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(Uo(),Io(0,"div",0,1),Io(2,"div",2),Ko(3),Do(),Do()),2&t&&sa("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":"")+(e.modalDialogClass?" "+e.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),Bg=(()=>{class t{constructor(t,e,n,s,i,r){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=s,this._rendererFactory=i,this._ngZone=r,this._activeWindowCmptHasChanged=new S,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new Bl,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,s=!1)=>{t.runOutsideAngular(()=>{const t=Rp(e,"focusin").pipe(qp(n),T(t=>t.target));Rp(e,"keydown").pipe(qp(n),Vu(t=>t.which===Tg.Tab),cg(t)).subscribe(([t,n])=>{const[s,i]=Ag(e);(n===s||n===e)&&t.shiftKey&&(i.focus(),t.preventDefault()),n===i&&!t.shiftKey&&(s.focus(),t.preventDefault())}),s&&Rp(e,"click").pipe(qp(n),cg(t),T(t=>t[1])).subscribe(t=>t.focus())})})(this._ngZone,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,s){const i=s.container instanceof HTMLElement?s.container:fg(s.container)?this._document.querySelector(s.container):this._document.body,r=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(r.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);const l=new jg,c=this._getContentRef(t,s.injector||e,n,l,s);let h=!1!==s.backdrop?this._attachBackdrop(t,i):void 0,u=this._attachWindowComponent(t,i,c),d=new Mg(u,c,h,s.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(u),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(u.instance,s),1===this._modalRefs.length&&r.addClass(this._document.body,"modal-open"),h&&h.instance&&(this._applyBackdropOptions(h.instance,s),h.changeDetectorRef.detectChanges()),u.changeDetectorRef.detectChanges(),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Fg).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let s=t.resolveComponentFactory(Hg).create(this._injector,n.nodes);return this._applicationRef.attachView(s.hostView),e.appendChild(s.location.nativeElement),s}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{fg(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{fg(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,s,i){return n?n instanceof yl?this._createFromTemplateRef(n,s):function(t){return"string"==typeof t}(n)?this._createFromString(n):this._createFromComponent(t,e,n,s,i):new Dg([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Dg([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new Dg([[e]])}_createFromComponent(t,e,n,s,i){const r=t.resolveComponentFactory(n),o=ho.create({providers:[{provide:jg,useValue:s}],parent:e}),a=r.create(o),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Dg([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(ls(qc),ls(ho),ls(Xc),ls(Vg),ls(Ba),ls(xc))},t.\u0275prov=pt({factory:function(){return new t(ls(qc),ls(Qr),ls(Xc),ls(Vg),ls(Ba),ls(xc))},token:t,providedIn:"root"}),t})(),$g=(()=>{class t{constructor(t,e,n,s){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=s}open(t,e={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(ls(Va),ls(ho),ls(Bg),ls(Ig))},t.\u0275prov=pt({factory:function(){return new t(ls(Va),ls(Qr),ls(Bg),ls(Ig))},token:t,providedIn:"root"}),t})(),zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({providers:[$g]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Ug=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({}),t})();new qn("live announcer delay",{providedIn:"root",factory:function(){return 100}});let Gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Ph]]}),t})();const Jg=[Eg,Cg,Sg,xg,kg,Pg,Rg,zg,qg,Wg,Ug,Kg,Zg,Qg,Yg,Xg,Gg];let tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[Jg,Eg,Cg,Sg,xg,kg,Pg,Rg,zg,qg,Wg,Ug,Kg,Zg,Qg,Yg,Xg,Gg]}),t})();function ev(t,e){if(1&t&&(Io(0,"span"),pa(1),Do()),2&t){const t=qo().$implicit;Gi(1),ma(" ",t.propertyDefintion.data,": ")}}function nv(t,e){if(1&t&&(Io(0,"a",9),pa(1),Do()),2&t){const t=qo().$implicit;Zo("href",t.propertyDefintion.data.link,Ii),Gi(1),ma(" ",t.propertyDefintion.data.title,": ")}}const sv=function(t,e){return{valuetype:t,itemvalue:e}};function iv(t,e){if(1&t&&(Io(0,"li"),jo(1,11),Do()),2&t){const t=e.$implicit,n=qo(2).$implicit;qo(2);const s=Oo(2);Gi(1),Po("ngTemplateOutlet",s)("ngTemplateOutletContext",jl(2,sv,n.propertyValue.representationType,t))}}function rv(t,e){if(1&t&&(Vo(0),Io(1,"ul"),To(2,iv,2,5,"li",10),Do(),Fo()),2&t){const t=qo().$implicit;Gi(2),Po("ngForOf",t.propertyValue.data)}}function ov(t,e){if(1&t&&jo(0,11),2&t){const t=qo().$implicit;qo(2),Po("ngTemplateOutlet",Oo(2))("ngTemplateOutletContext",jl(2,sv,t.propertyValue.representationType,t.propertyValue.data))}}function av(t,e){if(1&t&&(Io(0,"dl",3),Io(1,"dt",4),To(2,ev,2,1,"span",0),To(3,nv,2,2,"a",5),Do(),Io(4,"dd",6),To(5,rv,3,1,"ng-container",7),To(6,ov,1,5,"ng-template",null,8,sc),Do(),Do()),2&t){const t=e.$implicit,n=Oo(7);Gi(2),Po("ngIf","Text"===t.propertyDefintion.representationType),Gi(1),Po("ngIf","Link"===t.propertyDefintion.representationType),Gi(2),Po("ngIf",!0===t.propertyValue.representAsList)("ngIfElse",n)}}function lv(t,e){if(1&t&&(Io(0,"section"),To(1,av,8,4,"dl",2),Do()),2&t){const t=qo();Gi(1),Po("ngForOf",t.data.properties)}}function cv(t,e){if(1&t&&(Vo(0),Io(1,"span"),pa(2),Do(),Fo()),2&t){const t=qo().itemvalue;Gi(2),ma(" ",t," ")}}function hv(t,e){if(1&t&&(Vo(0),Io(1,"a",9),pa(2),Do(),Fo()),2&t){const t=qo().itemvalue;Gi(1),Zo("href",t.link,Ii),Gi(1),ma(" ",t.title," ")}}function uv(t,e){if(1&t&&(To(0,cv,3,1,"ng-container",0),To(1,hv,3,2,"ng-container",0)),2&t){const t=e.valuetype;Po("ngIf","Text"===t),Gi(1),Po("ngIf","Link"===t)}}let dv=(()=>{class t{constructor(){}ngOnInit(){this.inputData&&(this.data=JSON.parse(this.inputData)),this.data.properties=this.data.properties.map(t=>(!0===t.propertyValue.representAsList&&(t.propertyValue.data=this.getArrayValueSafe(t.propertyValue.data)),t))}getArrayValueSafe(t){return null==t?[]:!1===Array.isArray(t)?[t]:t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=zt({type:t,selectors:[["app-preview"]],inputs:{inputData:"inputData"},decls:3,vars:1,consts:[[4,"ngIf"],["valuecontainer",""],["class","row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-3"],[3,"href",4,"ngIf"],[1,"col-7"],[4,"ngIf","ngIfElse"],["singlevalues",""],[3,"href"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(To(0,lv,2,1,"section",0),To(1,uv,2,2,"ng-template",null,1,sc)),2&t&&Po("ngIf",e.data)},directives:[wh,vh,Sh],styles:["dl[_ngcontent-%COMP%]{margin-bottom:0}"]}),t})(),pv=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=pt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),fv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({providers:[pv]}),t})();"undefined"!=typeof Element&∈const mv="cdk-high-contrast-black-on-white",yv="cdk-high-contrast-white-on-black",_v="cdk-high-contrast-active";let gv=(()=>{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,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){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(_v),t.remove(mv),t.remove(yv);const e=this.getHighContrastMode();1===e?(t.add(_v),t.add(mv)):2===e&&(t.add(_v),t.add(yv))}}}return t.\u0275fac=function(e){return new(e||t)(ls(Yp),ls(Xc))},t.\u0275prov=pt({factory:function(){return new t(ls(Yp),ls(Xc))},token:t,providedIn:"root"}),t})(),vv=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(ls(gv))},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[Xp,fv]]}),t})(),bv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[ef]]}),t})(),wv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[[of]]}),t})(),Ev=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({imports:[vv,ef,fv,Jf,Xp,df,of,bv,wv]}),t})(),Cv=(()=>{class t{constructor(t){const e=Nu(pm,{injector:t});customElements.define("oslc-selector",e);const n=Nu(dv,{injector:t});customElements.define("oslc-preview",n)}ngDoBootstrap(t){0}}return t.\u0275fac=function(e){return new(e||t)(ls(ho))},t.\u0275mod=Kt({type:t}),t.\u0275inj=ft({providers:[],imports:[[uu,_d,X_,Ev,Tp,tv]]}),t})();(function(){if(jc)throw new Error("Cannot enable prod mode after platform setup.");Fc=!1})(),cu().bootstrapModule(Cv).catch(t=>console.error(t))}},function(t){t(t.s=3390)}]); \ No newline at end of file diff --git a/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es5.js b/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es5.js index 976804ce..a9fb68f8 100644 --- a/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es5.js +++ b/src/server-cm/src/main/webapp/static/dist/oslc-ui/main-es5.js @@ -1 +1 @@ -function _templateObject35(){var e=_taggedTemplateLiteral([":@@ngb.toast.close-aria\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject35=function(){return e},e}function _templateObject34(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.AM\u241f69a1f176a93998876952adac57c3bc3863b6105e\u241f4592818992509942761:",":INTERPOLATION:"]);return _templateObject34=function(){return e},e}function _templateObject33(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.PM\u241f8d6e691e10306c1b34c6b26805151aaea320ef7f\u241f3564199131264287502:",":INTERPOLATION:"]);return _templateObject33=function(){return e},e}function _templateObject32(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.decrement-seconds\u241f5db47ac104294243a70eb9124fbea9d0004ddf69\u241f753633511487974857:Decrement seconds"]);return _templateObject32=function(){return e},e}function _templateObject31(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.increment-seconds\u241f912322ecee7d659d04dcf494a70e22e49d334b26\u241f5364772110539092174:Increment seconds"]);return _templateObject31=function(){return e},e}function _templateObject30(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.seconds\u241f4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c\u241f8874012390997067175:Seconds"]);return _templateObject30=function(){return e},e}function _templateObject29(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.SS\u241febe38d36a40a2383c5fefa9b4608ffbda08bd4a3\u241f3628127143071124194:SS"]);return _templateObject29=function(){return e},e}function _templateObject28(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.decrement-minutes\u241fc1a6899e529c096da5b660385d4e77fe1f7ad271\u241f7447789825403243588:Decrement minutes"]);return _templateObject28=function(){return e},e}function _templateObject27(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.increment-minutes\u241ff5a4a3bc05e053f6732475d0e74875ec01c3a348\u241f180147720391025024:Increment minutes"]);return _templateObject27=function(){return e},e}function _templateObject26(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.decrement-hours\u241f147c7a19429da7d999e247d22e33fee370b1691b\u241f3651829882940481818:Decrement hours"]);return _templateObject26=function(){return e},e}function _templateObject25(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.increment-hours\u241fcb74bc1d625a6c1742f0d7d47306cf495780c218\u241f5939278348542933629:Increment hours"]);return _templateObject25=function(){return e},e}function _templateObject24(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.minutes\u241f41e62daa962947c0d23ded0981975d1bddf0bf38\u241f5531237363767747080:Minutes"]);return _templateObject24=function(){return e},e}function _templateObject23(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.MM\u241f72c8edf6a50068a05bde70991e36b1e881f4ca54\u241f1647282246509919852:MM"]);return _templateObject23=function(){return e},e}function _templateObject22(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.hours\u241f3bbce5fef7e1151da052a4e529453edb340e3912\u241f8070396816726827304:Hours"]);return _templateObject22=function(){return e},e}function _templateObject21(){var e=_taggedTemplateLiteral([":@@ngb.timepicker.HH\u241fce676ab1d6d98f85c836381cf100a4a91ef95a1f\u241f4043638465245303811:HH"]);return _templateObject21=function(){return e},e}function _templateObject20(){var e=_taggedTemplateLiteral([":@@ngb.progressbar.value\u241f04d611d19c117c60c9e14d0a04399a027184bc77\u241f5214781723415385277:",":INTERPOLATION:%"]);return _templateObject20=function(){return e},e}function _templateObject19(){var e=_taggedTemplateLiteral([":@@ngb.pagination.last-aria\u241f5c729788ba138508aca1bec050b610f7bf81db3e\u241f4882268002141858767:Last"]);return _templateObject19=function(){return e},e}function _templateObject18(){var e=_taggedTemplateLiteral([":@@ngb.pagination.next-aria\u241ff732c304c7433e5a83ffcd862c3dce709a0f4982\u241f3885497195825665706:Next"]);return _templateObject18=function(){return e},e}function _templateObject17(){var e=_taggedTemplateLiteral([":@@ngb.pagination.previous-aria\u241f680d5c75b7fd8d37961083608b9fcdc4167b4c43\u241f4452427314943113135:Previous"]);return _templateObject17=function(){return e},e}function _templateObject16(){var e=_taggedTemplateLiteral([":@@ngb.pagination.first-aria\u241ff2f852318759c6396b5d3d17031d53817d7b38cc\u241f2241508602425256033:First"]);return _templateObject16=function(){return e},e}function _templateObject15(){var e=_taggedTemplateLiteral([":@@ngb.pagination.last\u241f49f27a460bc97e7e00be5b37098bfa79884fc7d9\u241f5277020320267646988:\xbb\xbb"]);return _templateObject15=function(){return e},e}function _templateObject14(){var e=_taggedTemplateLiteral([":@@ngb.pagination.next\u241fba9cbb4ff311464308a3627e4f1c3345d9fe6d7d\u241f5458177150283468089:\xbb"]);return _templateObject14=function(){return e},e}function _templateObject13(){var e=_taggedTemplateLiteral([":@@ngb.pagination.previous\u241f6e52b6ee77a4848d899dd21b591c6fd499e3aef3\u241f6479320895410098858:\xab"]);return _templateObject13=function(){return e},e}function _templateObject12(){var e=_taggedTemplateLiteral([":@@ngb.pagination.first\u241f656506dfd46380956a655f919f1498d018f75ca0\u241f6867721956102594380:\xab\xab"]);return _templateObject12=function(){return e},e}function _templateObject11(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.select-year\u241f8ceb09d002bf0c5d1cac171dfbffe1805d2b3962\u241f8852264961585484321:Select year"]);return _templateObject11=function(){return e},e}function _templateObject10(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.select-year\u241f8ceb09d002bf0c5d1cac171dfbffe1805d2b3962\u241f8852264961585484321:Select year"]);return _templateObject10=function(){return e},e}function _templateObject9(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.select-month\u241f1dbc84807f35518112f62e5775d1daebd3d8462b\u241f2253869508135064750:Select month"]);return _templateObject9=function(){return e},e}function _templateObject8(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.select-month\u241f1dbc84807f35518112f62e5775d1daebd3d8462b\u241f2253869508135064750:Select month"]);return _templateObject8=function(){return e},e}function _templateObject7(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.next-month\u241f4bd046985cfe13040d5ef0cd881edce0968a111a\u241f3628374603023447227:Next month"]);return _templateObject7=function(){return e},e}function _templateObject6(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.next-month\u241f4bd046985cfe13040d5ef0cd881edce0968a111a\u241f3628374603023447227:Next month"]);return _templateObject6=function(){return e},e}function _templateObject5(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.previous-month\u241fc3b08b07b5ab98e7cdcf18df39355690ab7d3884\u241f8586908745456864217:Previous month"]);return _templateObject5=function(){return e},e}function _templateObject4(){var e=_taggedTemplateLiteral([":@@ngb.datepicker.previous-month\u241fc3b08b07b5ab98e7cdcf18df39355690ab7d3884\u241f8586908745456864217:Previous month"]);return _templateObject4=function(){return e},e}function _templateObject3(){var e=_taggedTemplateLiteral([":@@ngb.carousel.next\u241ff732c304c7433e5a83ffcd862c3dce709a0f4982\u241f3885497195825665706:Next"]);return _templateObject3=function(){return e},e}function _templateObject2(){var e=_taggedTemplateLiteral([":@@ngb.carousel.previous\u241f680d5c75b7fd8d37961083608b9fcdc4167b4c43\u241f4452427314943113135:Previous"]);return _templateObject2=function(){return e},e}function _templateObject(){var e=_taggedTemplateLiteral([":@@ngb.alert.close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject=function(){return e},e}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;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,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:new A(e,n,r);if(!i.closed)return t instanceof k?t.subscribe(i):N(t)(i)}var V=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(v);function F(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 M(e,t))}}var M=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.project,this.thisArg))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(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}(v);function H(e,t){return new k((function(n){var r=new f,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function B(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new k((function(n){var r=new f;return r.add(t.schedule((function(){var i=e[_]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(D(e))return function(e,t){return new k((function(n){var r=new f;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(R(e))return H(e,t);if(function(e){return e&&"function"==typeof e[I]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new k((function(n){var r,i=new f;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[I](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof k?e:new k(N(e))}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(z((function(n,r){return B(e(n,r)).pipe(F((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new q(e,n))})}var q=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new U(e,this.project,this.concurrent))}}]),e}(),U=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(V);function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return z(m,e)}function K(e,t){return t?H(e,t):new k(P(e))}function $(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof k?t[0]:W(r)(K(t,i))}function Z(){return function(e){return e.lift(new G(e))}}var Q,G=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new X(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(v),Y={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(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 f).add(this.source.subscribe(new J(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return Z()(this)}}]),n}(k).prototype)._subscribe},_isComplete:{value:Q._isComplete,writable:!0},getSubject:{value:Q.getSubject},connect:{value:Q.connect},refCount:{value:Q.refCount}},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(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}(E);function ee(){return new O}function te(){return function(e){return Z()((t=ee,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,Y);return r.source=e,r.subjectFactory=n,r})(e));var t}}function ne(e,t,n){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:ae.Default;if(void 0===Ue)throw new Error("inject() must be called from an injection context");return null===Ue?Ge(e,void 0,t):Ue.get(e,t&ae.Optional?null:void 0,t)}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae.Default;return(Oe||$e)(Se(e),t)}var Qe=Ze;function Ge(e,t,n){var r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ae.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(ke(e),"]"))}function Xe(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:Be;if(t===Be){var n=new Error("NullInjectorError: No provider for ".concat(ke(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Je=function e(){_classCallCheck(this,e)};function et(e,t){e.forEach((function(e){return Array.isArray(e)?et(e,t):t(e)}))}function tt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function nt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function rt(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function ot(e,t){var n=st(e,t);if(n>=0)return e[1|n]}function st(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}var at=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),ut=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}();function lt(e){return""+{toString:e}}var ct={},ht=[],ft=0;function dt(e){var t=e.type,n=t.prototype,r={},i={type:t,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:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===at.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ht,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ut.Emulated,id:"c",styles:e.styles||ht,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=lt((function(){var t=e.directives,n=e.features,o=e.pipes;i.id+=ft++,i.inputs=mt(e.inputs,r),i.outputs=mt(e.outputs),n&&n.forEach((function(e){return e(i)})),i.directiveDefs=t?function(){return("function"==typeof t?t():t).map(pt)}:null,i.pipeDefs=o?function(){return("function"==typeof o?o():o).map(vt)}:null})),i}function pt(e){return kt(e)||function(e){return e[De]||null}(e)}function vt(e){return function(e){return e[Ne]||null}(e)}var yt={};function _t(e){var t={type:e.type,bootstrap:e.bootstrap||ht,declarations:e.declarations||ht,imports:e.imports||ht,exports:e.exports||ht,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&<((function(){yt[e.id]=e.type})),t}function mt(e,t){if(null==e)return ct;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var gt=dt;function kt(e){return e[Re]||null}function bt(e,t){return e.hasOwnProperty(Fe)?e[Fe]:null}function Ct(e,t){var n=e[je]||null;if(!n&&!0===t)throw new Error("Type ".concat(ke(e)," does not have '\u0275mod' property."));return n}function wt(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function Et(e){return 0!=(8&e.flags)}function Ot(e){return 2==(2&e.flags)}function Tt(e){return 1==(1&e.flags)}function xt(e){return null!==e.template}function At(e){return 0!=(512&e[2])}var Pt={lFrame:Gt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function It(){return Pt.bindingsEnabled}function Rt(){return Pt.lFrame.lView}function Dt(){return Pt.lFrame.tView}function Nt(e){Pt.lFrame.contextLView=e}function jt(){return Pt.lFrame.previousOrParentTNode}function Vt(e,t){Pt.lFrame.previousOrParentTNode=e,Pt.lFrame.isParent=t}function Ft(){return Pt.lFrame.isParent}function Mt(){Pt.lFrame.isParent=!1}function Lt(){return Pt.checkNoChangesMode}function Ht(e){Pt.checkNoChangesMode=e}function Bt(){var e=Pt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function zt(){return Pt.lFrame.bindingIndex++}function qt(e){var t=Pt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ut(e,t){var n=Pt.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Wt(){return Pt.lFrame.currentQueryIndex}function Kt(e){Pt.lFrame.currentQueryIndex=e}function $t(e,t){var n=Qt();Pt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Zt(e,t){var n=Qt(),r=e[1];Pt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function Qt(){var e=Pt.lFrame,t=null===e?null:e.child;return null===t?Gt(e):t}function Gt(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Xt(){var e=Pt.lFrame;return Pt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var Yt=Xt;function Jt(){var e=Xt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function en(){return Pt.lFrame.selectedIndex}function tn(e){Pt.lFrame.selectedIndex=e}function nn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(s)):o.call(s)}var ln=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r},cn=void 0;function hn(){return void 0!==cn?cn:"undefined"!=typeof document?document:void 0}function fn(e){return!!e.listen}var dn={createRenderer:function(e,t){return hn()}};function pn(e,t,n){for(var r=fn(e),i=0;it){s=o-1;break}}}for(;o>16}function bn(e,t){for(var n=kn(e),r=t;n>0;)r=r[15],n--;return r}function Cn(e){return"string"==typeof e?e:null==e?"":""+e}function wn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Cn(e)}var Sn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie);function En(e){return e instanceof Function?e():e}var On=!0;function Tn(e){var t=On;return On=e,t}var xn=0;function An(e,t){var n=In(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Pn(r.data,e),Pn(t,null),Pn(r.blueprint,null));var i=Rn(e,t),o=e.injectorIndex;if(mn(i))for(var s=gn(i),a=bn(i,t),u=a[1].data,l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l];return t[o+8]=i,o}function Pn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function In(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Rn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Dn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Me]:n.charCodeAt(0)||0;null==r&&(r=n[Me]=xn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:ae.Default,i=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[Me];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){$t(t,e);try{var s=o();if(null!=s||r&ae.Optional)return s;throw new Error("No provider for ".concat(wn(n),"!"))}finally{Yt()}}else if("number"==typeof o){if(-1===o)return new Bn(e,t);var a=null,u=In(e,t),l=-1,c=r&ae.Host?t[16][6]:null;for((-1===u||r&ae.SkipSelf)&&(l=-1===u?Rn(e,t):t[u+8],Hn(r,!1)?(a=t[1],u=gn(l),t=bn(l,t)):u=-1);-1!==u;){l=t[u+8];var h=t[1];if(Ln(o,u,h.data)){var f=Vn(u,t,n,a,r,c);if(f!==jn)return f}Hn(r,t[1].data[u+8]===c)&&Ln(o,u,t)?(a=h,u=gn(l),t=bn(l,t)):u=-1}}}if(r&ae.Optional&&void 0===i&&(i=null),0==(r&(ae.Self|ae.Host))){var d=t[9],p=Ke(void 0);try{return d?d.get(n,i,r&ae.Optional):Ge(n,i,r&ae.Optional)}finally{Ke(p)}}if(r&ae.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(wn(n),"]"))}var jn={};function Vn(e,t,n,r,i,o){var s=t[1],a=s.data[e+8],u=Fn(a,s,n,null==r?Ot(a)&&On:r!=s&&3===a.type,i&ae.Host&&o===a);return null!==u?Mn(t,s,u,a):jn}function Fn(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h=u&&f.type===n)return h}if(i){var d=s[u];if(d&&xt(d)&&d.type===n)return u}return null}function Mn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof ln){var s=i;if(s.resolving)throw new Error("Circular dep for "+wn(o[n]));var a,u=Tn(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=Ke(s.injectImpl)),$t(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&Ke(a),Tn(u),s.resolving=!1,Yt()}}return i}function Ln(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();yr.hasOwnProperty(t)&&!fr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Sr(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}(),Cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wr=/([^\#-~ |!])/g;function Sr(e){return e.replace(/&/g,"&").replace(Cr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(wr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function Er(e,t){var n=null;try{hr=hr||new or(e);var r=t?String(t):"";n=hr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=hr.getInertBodyElement(r)}while(r!==o);var s=new br,a=s.sanitizeChildren(Or(n)||n);return ir()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=Or(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Or(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Tr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),xr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ar=/^url\(([^)]+)\)$/;function Pr(e){var t=Rr();return t?t.sanitize(Tr.HTML,e)||"":er(e,"HTML")?Jn(e):Er(hn(),Cn(e))}function Ir(e){var t=Rr();return t?t.sanitize(Tr.URL,e)||"":er(e,"URL")?Jn(e):ur(Cn(e))}function Rr(){var e=Rt();return e&&e[12]}function Dr(e){for(;Array.isArray(e);)e=e[0];return e}function Nr(e,t){return Dr(t[e+19])}function jr(e,t){return Dr(t[e.index])}function Vr(e,t){return e.data[t+19]}function Fr(e,t){return e[t+19]}function Mr(e,t){var n=t[e];return wt(n)?n:n[0]}function Lr(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Hr(e){return 4==(4&e[2])}function Br(e){return 128==(128&e[2])}function zr(e,t){return null===e||null==t?null:e[t]}function qr(e){e[18]=0}function Ur(e,t){e.__ngContext__=t}function Wr(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function Kr(){throw new Error("Cannot mix multi providers and regular providers")}function $r(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Zr(e,t,n){for(var r=0;ro?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==$r(f,l,0)||2&r&&l!==h){if(Xr(r))return!1;s=!0}}}}else{if(!s&&!Xr(r)&&!Xr(u))return!1;if(s&&Xr(u))continue;s=!1,r=u|1&r}}return Xr(r)||s}function Xr(e){return 0==(1&e)}function Yr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||Xr(s)||(t+=ti(o,i),i=""),r=s,o=o||!Xr(r);n++}return""!==i&&(t+=ti(o,i)),t}var ri={};function ii(e){var t=e[3];return St(t)?t[3]:t}function oi(e){si(Dt(),Rt(),en()+e,Lt())}function si(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&rn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&on(t,o,0,n)}tn(n)}function ai(e,t){return e<<17|t<<2}function ui(e){return e>>17&32767}function li(e){return 2|e}function ci(e){return(131068&e)>>2}function hi(e,t){return-131069&e|t<<2}function fi(e){return 1|e}function di(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&si(e,t,0,Lt()),n(r,i)}finally{tn(o)}}function bi(e,t,n){if(Et(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:jr,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=nt(e,9+t);io(r[1],r,!1,null);var s=o[5];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function ao(e,t){if(!(256&t[2])){var n=t[11];fn(n)&&n.destroyNode&&ko(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return lo(e[1],e);for(;t;){var n=null;if(wt(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)wt(t)&&lo(t[1],t),t=uo(t,e);null===t&&(t=e),wt(t)&&lo(t[1],t),n=t&&t[4]}t=n}}(t)}}function uo(e,t){var n;return wt(e)&&(n=e[6])&&2===n.type?to(n,e):e[3]===t?null:e[3]}function lo(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 r=0;r=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&fn(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&St(t[3])){r!==t[3]&&oo(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function co(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?no(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return jr(t,n).parentNode;if(2&r.flags){var o=e.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==ut.ShadowDom&&s!==ut.Native)return null}return jr(r,n)}function ho(e,t,n,r){fn(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function fo(e,t,n){fn(e)?e.appendChild(t,n):t.appendChild(n)}function po(e,t,n,r){null!==r?ho(e,t,n,r):fo(e,t,n)}function vo(e,t){return fn(e)?e.parentNode(t):t.parentNode}function yo(e,t){if(2===e.type){var n=to(e,t);return null===n?null:mo(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?jr(e,t):null}function _o(e,t,n,r){var i=co(e,r,t);if(null!=i){var o=t[11],s=yo(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ao(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,Xi(n=this._lView).push(r),t.firstCreatePass&&Yi(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Ki(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){$i(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Ht(!0);try{$i(e,t,n)}finally{Ht(!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,ko(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;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(Dr(s)),St(s))for(var a=9;a0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(Je,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),St(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Oo(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ao(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Bn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Rn(this._hostTNode,this._hostView),t=bn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=kn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return mn(e)&&null!=n?new Bn(n,t):new Bn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var o=r[n.index];if(St(o))(function(e,t){e[2]=-2})(i=o);else{var s;if(4===n.type)s=Dr(o);else if(s=r[11].createComment(""),At(r)){var a=r[11],u=jr(n,r);ho(a,vo(a,u),s,function(e,t){return fn(e)?e.nextSibling(t):t.nextSibling}(a,u))}else _o(r[1],r,s,n);r[n.index]=i=Bi(o,r,s,n),Wi(r,i)}return new Oo(i,n,r)}function Ro(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ot(e)){var r=Mr(e.index,t);return new To(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new To(t[16],t):null}(jt(),Rt(),e)}var Do=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return No()},e}(),No=Ro,jo=new Le("Set Injector scope."),Vo={},Fo={},Mo=[],Lo=void 0;function Ho(){return void 0===Lo&&(Lo=new Ye),Lo}function Bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new zo(e,n,t||Ho(),r)}var zo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&et(n,(function(e){return i.processProvider(e,t,n)})),et([t],(function(e){return i.processInjectorType(e,[],s)})),this.records.set(He,Wo(void 0,this));var a=this.records.get(jo);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:ke(t))}return _createClass(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]:Be,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae.Default;this.assertNotDestroyed();var r,i=We(this);try{if(!(n&ae.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Le)&&fe(e);o=s&&this.injectableDefInScope(s)?Wo(qo(e),Vo):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&ae.Self?Ho():this.parent).get(e,t=n&ae.Optional&&t===Be?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(ke(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=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 i=ke(t);if(Array.isArray(t))i=t.map(ke).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(ze,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{We(i)}}},{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(ke(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 r=this;if(!(e=Se(e)))return!1;var i=pe(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=pe(o)),null==i)return!1;if(null!=i.imports&&!a){var u;n.push(s);try{et(i.imports,(function(e){r.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,i=t.providers;et(i,(function(e){return r.processProvider(e,n,i||Mo)}))},c=0;c0){var n=rt(t,"?");throw new Error("Can't resolve all parameters for ".concat(ke(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[ve]||e[me]||e[_e]&&e[_e]());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 v10. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Uo(e,t,n){var r,i=void 0;if($o(e)){var o=Se(e);return bt(o)||qo(o)}if(Ko(e))i=function(){return Se(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(Xe(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ze(Se(e.useExisting))};else{var s=Se(e&&(e.useClass||e.provide));if(s||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(ke(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return bt(s)||qo(s);i=function(){return _construct(s,_toConsumableArray(Xe(e.deps)))}}return i}function Wo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ko(e){return null!==e&&"object"==typeof e&&qe in e}function $o(e){return"function"==typeof e}var Zo=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,r=arguments.length>3?arguments[3]:void 0,i=Bo(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Qo=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Zo(e,t,""):Zo(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Be,e.NULL=new Ye,e.\u0275prov=ce({token:e,providedIn:"any",factory:function(){return Ze(He)}}),e.__NG_ELEMENT_ID__=-1,e}(),Go=new Map,Xo=new Set;function Yo(e){return"string"==typeof e?e:e.text()}function Jo(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:ae.Default,n=Rt();return null==n?Ze(e,t):Nn(jt(),n,Se(e),t)}function ps(e,t,n){var r=Rt();if(us(r,zt(),t)){var i=en();xi(Dt(),r,i,e,t,n)}return ps}function vs(e,t,n,r,i){var o=i?"class":"style";eo(e,n,t.inputs[o],o,r)}function ys(e,t,n,r){var i=Rt(),o=Dt(),s=19+e,a=i[11],u=i[s]=pi(t,a,Pt.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,u=zr(a,o),l=yi(t,n[6],e,3,i,u);return Ai(t,n,l,zr(a,s)),null!==l.mergedAttrs&&Jo(l,l.mergedAttrs),null!==t.queries&&t.queries.elementStart(t,l),l}(e,o,i,0,t,n,r):o.data[s];Vt(l,!0);var c=l.mergedAttrs;null!==c&&pn(a,u,c);var h=l.classes;null!==h&&wo(a,u,h);var f=l.styles;null!==f&&Co(a,u,f),_o(o,i,u,l),0===Pt.lFrame.elementDepthCount&&Ur(u,i),Pt.lFrame.elementDepthCount++,Tt(l)&&(Ci(o,i,l),bi(o,l,i)),null!==r&&wi(i,l)}function _s(){var e=jt();Ft()?Mt():Vt(e=e.parent,!1);var t=e;Pt.lFrame.elementDepthCount--;var n=Dt();n.firstCreatePass&&(nn(n,e),Et(e)&&n.queries.elementEnd(e)),null!==t.classes&&function(e){return 0!=(16&e.flags)}(t)&&vs(n,t,Rt(),t.classes,!0),null!==t.styles&&function(e){return 0!=(32&e.flags)}(t)&&vs(n,t,Rt(),t.styles,!1)}function ms(e,t,n,r){ys(e,t,n,r),_s()}function gs(e,t,n){var r=Rt(),i=Dt(),o=e+19,s=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,s=zr(o,r),a=yi(t,n[6],e,4,"ng-container",s);return null!==s&&Jo(a,s),Ai(t,n,a,zr(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,i,r,t,n):i.data[o];Vt(s,!0);var a=r[o]=r[11].createComment("");_o(i,r,a,s),Ur(a,r),Tt(s)&&(Ci(i,r,s),bi(i,s,r)),null!=n&&wi(r,s)}function ks(){var e=jt(),t=Dt();Ft()?Mt():Vt(e=e.parent,!1),t.firstCreatePass&&(nn(t,e),Et(e)&&t.queries.elementEnd(e))}function bs(e,t,n){gs(e,t,n),ks()}function Cs(e){return!!e&&"function"==typeof e.then}function ws(e){return!!e&&"function"==typeof e.subscribe}function Ss(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Rt(),o=Dt(),s=jt();return function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,u=Tt(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Xi(t),h=!0;if(3===r.type){var f=jr(r,t),d=a?a(f):ct,p=d.target||f,v=c.length,y=a?function(e){return a(Dr(e[r.index])).target}:r.index;if(fn(n)){var _=null;if(!a&&u&&(_=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=o,_.__ngLastListenerFn__=o,h=!1;else{o=Os(r,t,o,!1);var m=n.listen(d.name||p,i,o);c.push(o,m),l&&l.push(i,y,v,v+1)}}else o=Os(r,t,o,!0),p.addEventListener(i,o,s),c.push(o),l&&l.push(i,y,v,s)}var g,k=r.outputs;if(h&&null!==k&&(g=k[i])){var b=g.length;if(b)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Pt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Pt.lFrame.contextLView))[8]}(e)}function xs(e,t){for(var n=null,r=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),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Rt(),i=Dt(),o=yi(i,r[6],e,1,null,n||null);null===o.projection&&(o.projection=t),Mt(),function(e,t,n){bo(t[11],0,t,n,co(e,n,t),yo(n.parent||t[6],t))}(i,r,o)}function Is(e,t,n){return Rs(e,"",t,"",n),Is}function Rs(e,t,n,r,i){var o=Rt(),s=cs(o,t,n,r);if(s!==ri){var a=en();xi(Dt(),o,a,e,s,i)}return Rs}var Ds=[];function Ns(e,t,n,r,i){for(var o=e[n+1],s=null===t,a=r?ui(o):ci(o),u=!1;0!==a&&(!1===u||s);){var l=e[a+1];js(e[a],t)&&(u=!0,e[a+1]=r?fi(l):li(l)),a=r?ui(l):ci(l)}u&&(e[n+1]=r?li(o):fi(o))}function js(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&st(e,t)>=0}var Vs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fs(e){return e.substring(Vs.key,Vs.keyEnd)}function Ms(e,t){var n=Vs.textEnd;return n===t?-1:(t=Vs.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Vs.key=t,n),Ls(e,t,n))}function Ls(e,t,n){for(;t=0;n=Ms(t,n))it(e,Fs(t),!0)}function qs(e,t){return t>=e.expandoStartIndex}function Us(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[en()+19],s=qs(e,n);Gs(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Pt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ks(n=Ws(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Ws(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==ci(r))return e[ui(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[ui(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=Ks(a=Ws(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==u){var f=ui(e[a+1]);e[r+1]=ai(f,a),0!==f&&(e[f+1]=hi(e[f+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=ai(a,0),0!==a&&(e[a+1]=hi(e[a+1],r)),a=r;else e[r+1]=ai(u,0),0===a?a=r:e[u+1]=hi(e[u+1],r),u=r;c&&(e[r+1]=li(e[r+1])),Ns(e,l,r,!0),Ns(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&st(o,t)>=0&&(n[r+1]=fi(n[r+1]))}(t,l,e,r,o),s=ai(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Ws(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[i+1];f===ri&&(f=h?Ds:void 0);var d=h?ot(f,r):c===r?f:void 0;if(l&&!Qs(d)&&(d=ot(u,r)),Qs(d)&&(a=d,s))return a;var p=e[i+1];i=s?ui(p):ci(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=ot(v,r))}return a}function Qs(e){return void 0!==e}function Gs(e,t){return 0!=(e.flags&(t?16:32))}function Xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Rt(),r=Dt(),i=e+19,o=r.firstCreatePass?yi(r,n[6],e,3,null,null):r.data[i],s=n[i]=function(e,t){return fn(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);_o(r,n,s,o),Vt(o,!1)}function Ys(e){return Js("",e,""),Ys}function Js(e,t,n){var r=Rt(),i=cs(r,e,t,n);return i!==ri&&function(e,t,n){var r=Nr(t,e),i=e[11];fn(i)?i.setValue(r,n):r.textContent=n}(r,en(),i),Js}function ea(e,t){var n=Lr(e)[1],r=n.data.length-1;nn(n,{directiveStart:r,directiveEnd:r+1})}function ta(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(xt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=na(e.inputs),o.declaredInputs=na(e.declaredInputs),o.outputs=na(e.outputs);var s=i.hostBindings;s&&oa(e,s);var a=i.viewQuery,u=i.contentQueries;if(a&&ra(e,a),u&&ia(e,u),le(e.inputs,i.inputs),le(e.declaredInputs,i.declaredInputs),le(e.outputs,i.outputs),xt(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=e.afterContentInit||i.afterContentInit,o.afterViewChecked=e.afterViewChecked||i.afterViewChecked,o.afterViewInit=e.afterViewInit||i.afterViewInit,o.doCheck=e.doCheck||i.doCheck,o.onDestroy=e.onDestroy||i.onDestroy,o.onInit=e.onInit||i.onInit}var c=i.features;if(c)for(var h=0;h=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=yn(i.hostAttrs,n=yn(n,i.hostAttrs))}}(r)}function na(e){return e===ct?{}:e===ht?[]:e}function ra(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function ia(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function oa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var sa=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function aa(){return ua.ngInherit=!0,ua}function ua(e){e.type.prototype.ngOnChanges&&(e.setInput=la,e.onChanges=function(){var e=ca(this),t=e&&e.current;if(t){var n=e.previous;if(n===ct)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function la(e,t,n,r){var i=ca(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ct,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new sa(u&&u.currentValue,t,s===ct),e[r]=t}function ca(e){return e.__ngSimpleChanges__||null}function ha(e,t,n,r,i){if(e=Se(e),Array.isArray(e))for(var o=0;o>16;if($o(e)||!e.multi){var p=new ln(l,i,ds),v=pa(u,t,i?h:h+d,f);-1===v?(Dn(An(c,a),s,u),fa(s,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(p),a.push(p)):(n[v]=p,a[v]=p)}else{var y=pa(u,t,h+d,f),_=pa(u,t,h,h+d),m=y>=0&&n[y],g=_>=0&&n[_];if(i&&!g||!i&&!m){Dn(An(c,a),s,u);var k=function(e,t,n,r,i){var o=new ln(e,n,ds);return o.multi=[],o.index=t,o.componentProviders=0,da(o,i,r&&!n),o}(i?ya:va,n.length,i,r,l);!i&&g&&(n[_].providerFactory=k),fa(s,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(k),a.push(k)}else fa(s,e,y>-1?y:_),da(n[i?_:y],l,!i&&r);!i&&r&&g&&n[_].componentProviders++}}}function fa(e,t,n){if($o(t)||t.useClass){var r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function da(e,t,n){e.multi.push(t),n&&e.componentProviders++}function pa(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=Dt();if(r.firstCreatePass){var i=xt(e);ha(n,r.data,r.blueprint,i,!0),ha(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var ga=function e(){_classCallCheck(this,e)},ka=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(ke(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ba=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new ka,e}(),Ca=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return wa(e)},e}(),wa=function(e){return Ao(e,jt(),Rt())},Sa=function e(){_classCallCheck(this,e)},Ea=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Oa=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Ta()},e}(),Ta=function(){var e=Rt(),t=Mr(jt().index,e);return function(e){var t=e[11];if(fn(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(wt(t)?t:e)},xa=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=ce({token:e,providedIn:"root",factory:function(){return null}}),e}(),Aa=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("9.0.5"),Pa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return is(e)}},{key:"create",value:function(e){return new Ra(e)}}]),e}(),Ia=function(e,t){return t},Ra=function(){function e(t){_classCallCheck(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||Ia}return _createClass(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,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0&&wo(l,h,k.join(" "))}o=Vr(y[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],s=function(e,t,n){var r=jt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Di(e,r,1),Fi(e,t,n));var i=Mn(t,e,t.length-1,r);Ur(i,t);var o=jr(r,t);return o&&Ur(o,t),i}(o,n,t);r.components.push(s),e[8]=s,i&&i.forEach((function(e){return e(s,t)})),t.contentQueries&&t.contentQueries(1,s,n.length-1);var a=jt();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){tn(a.index-19);var u=n[1];Pi(u,t),Ii(u,n,t.hostVars),Ri(t,s)}return s}(_,this.componentDef,y,p,[ea]),_i(v,y,null)}finally{Jt()}var b=new eu(this.componentType,i,Ao(Ca,o,y),y,o);return n&&!d||(b.hostView._tViewNode.child=o),b}},{key:"inputs",get:function(){return Xa(this.componentDef.inputs)}},{key:"outputs",get:function(){return Xa(this.componentDef.outputs)}}]),n}(ga),eu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,s){var a,u,l,c;return _classCallCheck(this,n),(a=t.call(this)).location=i,a._rootLView=o,a._tNode=s,a.destroyCbs=[],a.instance=r,a.hostView=a.changeDetectorRef=new xo(o),a.hostView._tViewNode=(u=o[1],l=o,null==(c=u.node)&&(u.node=c=Oi(0,null,2,-1,null,null)),l[6]=c),a.componentType=e,a}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Bn(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),tu=void 0,nu=["en",[["a","p"],["AM","PM"],tu],[["AM","PM"],tu,tu],[["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"]],tu,[["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"]],tu,[["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}",tu,"{1} 'at' {0}",tu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ru={};function iu(e){return e in ru||(ru[e]=Ie.ng&&Ie.ng.common&&Ie.ng.common.locales&&Ie.ng.common.locales[e]),ru[e]}var ou=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function su(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var au=new Map,uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new Ga(_assertThisInitialized(i));var o=Ct(e),s=e[Ve]||null;return s&&su(s),i._bootstrapComponents=En(o.bootstrap),i._r3Injector=Bo(e,r,[{provide:Je,useValue:_assertThisInitialized(i)},{provide:ba,useValue:i.componentFactoryResolver}],ke(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ae.Default;return e===Qo||e===Je||e===He?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}(Je),lu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==Ct(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ke(t)," vs ").concat(ke(t.name)))})(n,au.get(n),t),au.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new uu(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function cu(e,t,n,r,i){return function(e,t,n,r,i,o,s){var a=t+n;return function(e,t,n,r){var i=us(e,t,n);return us(e,t+1,r)||i}(e,a,i,o)?ss(e,a+2,s?r.call(s,i,o):r(i,o)):as(e,a+2)}(Rt(),Bt(),e,t,n,r,i)}var hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(i=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&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=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)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,s);return e instanceof f&&e.add(a),a}}]),n}(O);function fu(){return this._results[ts()]()}var du=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new hu,this.length=0;var t=ts(),n=e.prototype;n[t]||(n[t]=fu)}return _createClass(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=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},_u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(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&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(a[u/2]);else{for(var c=s[u+1],h=n[-l],f=9;f0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,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)(Ze(Qu))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e}(),ol=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,sl.addToWindow(this)}return _createClass(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 sl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e}(),sl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),al=function(e,t,n){var r=new lu(n);if(0===Go.size)return Promise.resolve(r);var i,o,s=(i=e.get(Ku,[]).concat(t).map((function(e){return e.providers})),o=[],i.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===s.length)return Promise.resolve(r);var a=function(){var e=Ie.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),u=Qo.create({providers:s}).get(a.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(u.get(e))}(e);n.set(e,t=r.then(Yo))}return t}return Go.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((function(t,n){s.push(""),i.push(r(t).then((function(r){s[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var u=Promise.all(i).then((function(){return function(e){Xo.delete(e)}(n)}));t.push(u)})),Go=new Map,Promise.all(t).then((function(){}))}().then((function(){return r}))},ul=new Le("AllowMultipleToken");function ll(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Le(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=cl();if(!o||o.injector.get(ul,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:jo,useValue:"platform"});!function(e){if(nl&&!nl.destroyed&&!nl.injector.get(ul,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nl=e.get(hl);var t=e.get(Ru,null);t&&t.forEach((function(e){return e()}))}(Qo.create({providers:s,name:r}))}return function(e){var t=cl();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}(i)}}function cl(){return nl&&!nl.destroyed?nl:null}var hl=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new rl:("zone.js"===n?void 0:n)||new Qu({enableLongStackTrace:ir(),shouldCoalesceEventChangeDetection:r})),s=[{provide:Qu,useValue:o}];return o.run((function(){var t=Qo.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Kn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return vl(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(xu)).runInitializers(),s.donePromise.then((function(){return su(n.injector.get(Vu,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Cs(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=fl({},n);return al(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(pl);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(ke(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)(Ze(Qo))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e}();function fl(e,t){return Array.isArray(t)?t.reduce(fl,e):Object.assign(Object.assign({},e),t)}var dl,pl=((dl=function(){function e(t,n,r,i,o,s){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ir(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var u=new k((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),l=new k((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Qu.assertNotInAngularZone(),Zu((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Qu.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=$(u,l.pipe(te()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=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 ga?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(Je),o=n.create(Qo.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(il,null);return s&&o.injector.get(ol).registerApplication(o.location.nativeElement,s),this._loadComponent(o),ir()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the 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=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.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;vl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Nu,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),vl(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||dl)(Ze(Qu),Ze(ju),Ze(Qo),Ze(Kn),Ze(ba),Ze(xu))},dl.\u0275prov=ce({token:dl,factory:dl.\u0275fac}),dl);function vl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yl=ll(null,"core",[{provide:Du,useValue:"unknown"},{provide:hl,deps:[Qo]},{provide:ol,deps:[]},{provide:ju,deps:[]}]),_l=[{provide:pl,useClass:pl,deps:[Qu,ju,Qo,Kn,ba,xu]},{provide:Ya,deps:[Qu],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:xu,useClass:xu,deps:[[new ie,Tu]]},{provide:Wu,useClass:Wu,deps:[]},Pu,{provide:Ha,useFactory:function(){return qa},deps:[]},{provide:Ba,useFactory:function(){return Ua},deps:[]},{provide:Vu,useFactory:function(e){return su(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new re(Vu),new ie,new se]]},{provide:Fu,useValue:"USD"}],ml=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=_t({type:e}),e.\u0275inj=he({factory:function(t){return new(t||e)(Ze(pl))},providers:_l}),e}(),gl=null;function kl(){return gl}var bl,Cl=new Le("DocumentToken"),wl=((bl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||bl)},bl.\u0275prov=ce({factory:Sl,token:bl,providedIn:"platform"}),bl);function Sl(){return Ze(Ol)}var El,Ol=((El=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._init(),r}return _createClass(n,[{key:"_init",value:function(){this.location=kl().getLocation(),this._history=kl().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return kl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){kl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){kl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){Tl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Tl()?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}(wl)).\u0275fac=function(e){return new(e||El)(Ze(Cl))},El.\u0275prov=ce({factory:xl,token:El,providedIn:"platform"}),El);function Tl(){return!!window.history.pushState}function xl(){return new Ol(Ze(Cl))}function Al(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 Pl(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 Il(e){return e&&"?"!==e[0]?"?"+e:e}var Rl,Dl=((Rl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Rl)},Rl.\u0275prov=ce({factory:Nl,token:Rl,providedIn:"root"}),Rl);function Nl(e){var t=Ze(Cl).location;return new Ml(Ze(wl),t&&t.origin||"")}var jl,Vl,Fl=new Le("appBaseHref"),Ml=((Vl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;if(_classCallCheck(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)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 i._baseHref=r,_possibleConstructorReturn(i)}return _createClass(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 Al(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Il(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Il(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Il(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Dl)).\u0275fac=function(e){return new(e||Vl)(Ze(wl),Ze(Fl,8))},Vl.\u0275prov=ce({token:Vl,factory:Vl.\u0275fac}),Vl),Ll=((jl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new hu,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Pl(Bl(i)),this._platformStrategy.onPopState((function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(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+Il(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Bl(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+Il(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+Il(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.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||jl)(Ze(Dl),Ze(wl))},jl.normalizeQueryParams=Il,jl.joinWithSlash=Al,jl.stripTrailingSlash=Pl,jl.\u0275prov=ce({factory:Hl,token:jl,providedIn:"root"}),jl);function Hl(){return new Ll(Ze(Dl),Ze(wl))}function Bl(e){return e.replace(/\/index.html$/,"")}var zl,ql=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Ul=function e(){_classCallCheck(this,e)},Wl=((zl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=iu(t);if(n)return n;var r=t.split("-")[0];if(n=iu(r))return n;if("en"===r)return nu;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[ou.PluralCase]}(t||this.locale)(e)){case ql.Zero:return"zero";case ql.One:return"one";case ql.Two:return"two";case ql.Few:return"few";case ql.Many:return"many";default:return"other"}}}]),n}(Ul)).\u0275fac=function(e){return new(e||zl)(Ze(Vu))},zl.\u0275prov=ce({token:zl,factory:zl.\u0275fac}),zl);function Kl(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),s=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),a=s[0],u=s[1];if(a.trim()===t)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}var $l,Zl,Ql=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(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}(),Gl=(($l=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(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(r){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,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Ql(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new Xl(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var u=new Xl(e,a);n.push(u)}}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:ae.Default,t=Ro(!0);if(null!=t||e&ae.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},ic.\u0275pipe={type:(rc={name:"async",type:ic,pure:!1}).type,name:rc.name,factory:null,pure:!1!==rc.pure,onDestroy:rc.type.prototype.ngOnDestroy||null},ic),pc=((nc=function e(){_classCallCheck(this,e)}).\u0275mod=_t({type:nc}),nc.\u0275inj=he({factory:function(e){return new(e||nc)},providers:[{provide:Ul,useClass:Wl}]}),nc),vc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(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=yc||(yc=document.querySelector("base"))?yc.getAttribute("href"):null;return null==n?null:(t=n,oc||(oc=document.createElement("a")),oc.setAttribute("href",t),"/"===oc.pathname.charAt(0)?oc.pathname:"/"+oc.pathname)}},{key:"resetBaseElement",value:function(){yc=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 Kl(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,gl||(gl=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),yc=null,_c=new Le("TRANSITION_ID"),mc=[{provide:Tu,useFactory:function(e,t,n){return function(){n.get(xu).donePromise.then((function(){var n=kl();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:[_c,Cl,Qo],multi:!0}],gc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Ie.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ie.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ie.getAllAngularRootElements=function(){return e.getAllRootElements()},Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push((function(e){var t=Ie.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?kl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,sl=t}}]),e}(),kc=new Le("EventManagerPlugins"),bc=((sc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(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,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s}},{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&&zc.hasOwnProperty(t)&&(t=zc[t]))}return Bc[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Hc.forEach((function(r){r!=n&&(0,qc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Cc)).\u0275fac=function(e){return new(e||Dc)(Ze(Cl))},Dc.\u0275prov=ce({token:Dc,factory:Dc.\u0275fac}),Dc),Wc=((Rc=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Rc)},Rc.\u0275prov=ce({factory:function(){return Ze(Kc)},token:Rc,providedIn:"root"}),Rc),Kc=((Ic=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Tr.NONE:return t;case Tr.HTML:return er(t,"HTML")?Jn(t):Er(this._doc,String(t));case Tr.STYLE:return er(t,"Style")?Jn(t):function(e){if(!(e=String(e).trim()))return"";var t=e.match(Ar);return t&&ur(t[1])===t[1]||e.match(xr)&&function(e){for(var t=!0,n=!0,r=0;r0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}return _createClass(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 t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,_toConsumableArray(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter((function(e){return-1===i.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{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}(),hh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return fh(e)}},{key:"encodeValue",value:function(e){return fh(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function fh(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 dh=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new hh,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach((function(e){var r=e.indexOf("="),i=_slicedToArray(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=i[0],s=i[1],a=n.get(o)||[];a.push(s),n.set(o,a)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(e){var r=n.fromObject[e];t.map.set(e,Array.isArray(r)?r:[r])}))):this.map=null}return _createClass(e,[{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(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),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 r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function ph(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function vh(e){return"undefined"!=typeof Blob&&e instanceof Blob}function yh(e){return"undefined"!=typeof FormData&&e instanceof FormData}var _h=function(){function e(t,n,r,i){var o;if(_classCallCheck(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)||i?(this.body=void 0!==r?r:null,o=i):o=r,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 ch),this.params){var s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{var a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=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,r,o,{params:l,headers:u,reportProgress:a,responseType:i,withCredentials:s})}}]),e}(),mh=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),gh=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new ch,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},kh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=mh.ResponseHeader,e}return _createClass(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}(gh),bh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=mh.Response,e.body=void 0!==r.body?r.body:null,e}return _createClass(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}(gh),Ch=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.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),r.error=e.error||null,r}return n}(gh);function wh(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Sh,Eh,Oh,Th,xh,Ah,Ph,Ih,Rh,Dh=((Sh=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof _h)n=e;else{var o=void 0;o=i.headers instanceof ch?i.headers:new ch(i.headers);var s=void 0;i.params&&(s=i.params instanceof dh?i.params:new dh({fromObject:i.params})),n=new _h(e,t,void 0!==i.body?i.body:null,{headers:o,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var a=ih(n).pipe(z((function(e){return r.handler.handle(e)}),void 0,1));if(e instanceof _h||"events"===i.observe)return a;var u=a.pipe(oh((function(e){return e instanceof bh})));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(F((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(F((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(F((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(F((function(e){return e.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(i.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 dh).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,wh(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,wh(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,wh(n,t))}}]),e}()).\u0275fac=function(e){return new(e||Sh)(Ze(uh))},Sh.\u0275prov=ce({token:Sh,factory:Sh.\u0275fac}),Sh),Nh=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),jh=new Le("HTTP_INTERCEPTORS"),Vh=((Eh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Eh)},Eh.\u0275prov=ce({token:Eh,factory:Eh.\u0275fac}),Eh),Fh=/^\)\]\}',?\n/,Mh=function e(){_classCallCheck(this,e)},Lh=((Th=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||Th)},Th.\u0275prov=ce({token:Th,factory:Th.\u0275fac}),Th),Hh=((Oh=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new k((function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((function(e,t){return r.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=e.serializeBody(),a=null,u=function(){if(null!==a)return a;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new ch(r.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}(r)||e.url;return a=new kh({headers:i,status:t,statusText:n,url:o})},l=function(){var t=u(),i=t.headers,o=t.status,s=t.statusText,a=t.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.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(Fh,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new bh({body:l,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new Ch({error:l,headers:i,status:o,statusText:s,url:a||void 0}))},c=function(e){var t=u().url,i=new Ch({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},h=!1,f=function(t){h||(n.next(u()),h=!0);var i={type:mh.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:mh.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",l),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==s&&r.upload&&r.upload.addEventListener("progress",d)),r.send(s),n.next({type:mh.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),e.reportProgress&&(r.removeEventListener("progress",f),null!==s&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||Oh)(Ze(Mh))},Oh.\u0275prov=ce({token:Oh,factory:Oh.\u0275fac}),Oh),Bh=new Le("XSRF_COOKIE_NAME"),zh=new Le("XSRF_HEADER_NAME"),qh=function e(){_classCallCheck(this,e)},Uh=((Rh=function(){function e(t,n,r){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Kl(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Rh)(Ze(Cl),Ze(Du),Ze(Bh))},Rh.\u0275prov=ce({token:Rh,factory:Rh.\u0275fac}),Rh),Wh=((Ih=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(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 r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ih)(Ze(qh),Ze(zh))},Ih.\u0275prov=ce({token:Ih,factory:Ih.\u0275fac}),Ih),Kh=((Ph=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(jh,[]);this.chain=t.reduceRight((function(e,t){return new Nh(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ph)(Ze(lh),Ze(Qo))},Ph.\u0275prov=ce({token:Ph,factory:Ph.\u0275fac}),Ph),$h=((Ah=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Wh,useClass:Vh}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Bh,useValue:t.cookieName}:[],t.headerName?{provide:zh,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=_t({type:Ah}),Ah.\u0275inj=he({factory:function(e){return new(e||Ah)},providers:[Wh,{provide:jh,useExisting:Wh,multi:!0},{provide:qh,useClass:Uh},{provide:Bh,useValue:"XSRF-TOKEN"},{provide:zh,useValue:"X-XSRF-TOKEN"}]}),Ah),Zh=((xh=function e(){_classCallCheck(this,e)}).\u0275mod=_t({type:xh}),xh.\u0275inj=he({factory:function(e){return new(e||xh)},providers:[Dh,{provide:uh,useClass:Kh},Hh,{provide:lh,useExisting:Hh},Lh,{provide:Mh,useExisting:Lh}],imports:[[$h.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),xh);function Qh(){}function Gh(e,t,n){return function(r){return r.lift(new Yh(e,t,n))}}var Xh,Yh=function(){function e(t,n,r){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Jh(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Jh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,s){var a;return _classCallCheck(this,n),(a=t.call(this,e))._tapNext=Qh,a._tapError=Qh,a._tapComplete=Qh,a._tapError=o||Qh,a._tapComplete=s||Qh,r(i)?(a._context=_assertThisInitialized(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Qh,a._tapError=i.error||Qh,a._tapComplete=i.complete||Qh),a}return _createClass(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}(v),ef=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new tf(e,this.selector,this.caught))}}]),e}(),tf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new A(this,void 0,void 0);this.add(r);var i=j(this,t,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(V),nf=((Xh=function(){function e(t){_classCallCheck(this,e),this.http=t}return _createClass(e,[{key:"search",value:function(e){var t=this,n="".concat(this.baseUrl,"?terms=").concat(e.toLowerCase().trim());return this.http.get(n).pipe(Gh((function(e){console.log("Get data: ",e)})),F((function(e){return e["oslc:results"].map((function(e,n){var r={id:n+1,resource:e["rdf:resource"]};return t.fields.map((function(t){r[t]=e[t]})),r}))})))}},{key:"getPreviewIframe",value:function(e){return this.http.get(e,{headers:{Accept:"application/x-oslc-compact+xml"},responseType:"text"}).pipe(Gh((function(e){console.log("Get preview iframe data: ",e)})),F((function(e){var t=function(e){var t={},n=rf(rf(e)),r=of(n,"dcterms:title");t.title=r.textContent;var i,o=of(n,"oslc:smallPreview"),s=of(n,"oslc:largePreview");if(i=rf(null!==o?o:s)){var a=of(i,"oslc:document");a&&(t.uri=a.getAttribute("rdf:resource"));var u=of(i,"oslc:hintHeight");t.height=u.textContent;var l=of(i,"oslc:hintWidth");t.width=l.textContent}return t}((new DOMParser).parseFromString(e,"text/xml")),n=""}),function(t){return function(e){var n=new bf(t),i=e.lift(n);return n.caught=i}}(function(t){return t.error instanceof Error?(console.error("An error occurred:",t.error.message),mh("Error loading the preview dialog, Status: ".concat(t.status))):(console.error("Backend returned code ".concat(t.status,", body was: ").concat(t.error)),mh("Error loading the preview dialog"))}))}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(nf))},t.\u0275prov=Ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function Cf(t){var e,i=n(t.childNodes);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.nodeType===Node.ELEMENT_NODE)return r}}catch(o){i.e(o)}finally{i.f()}}function Sf(t,e){var i,r=n(t.childNodes);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.nodeType===Node.ELEMENT_NODE&&o.nodeName===e)return o}}catch(s){r.e(s)}finally{r.f()}}var xf=new dh(hh);function Tf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xf;return function(n){return n.lift(new Of(t,e))}}var Of=function(){return m(function t(e,n){p(this,t),this.dueTime=e,this.scheduler=n},[{key:"call",value:function(t,e){return e.subscribe(new Af(t,this.dueTime,this.scheduler))}}])}(),Af=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e,[t])).dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return d(e,t),m(e,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Pf,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}])}(T);function Pf(t){t.debouncedNext()}var Rf=function(){return m(function t(e,n){p(this,t),this.compare=e,this.keySelector=n},[{key:"call",value:function(t,e){return e.subscribe(new If(t,this.compare,this.keySelector))}}])}(),If=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e,[t])).keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return d(e,t),m(e,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}])}(T);function Df(t,e){return new R(function(n){var i=t.length;if(0!==i)for(var r=new Array(i),o=0,s=0,a=function(a){var u=Q(t[a]),l=!1;n.add(u.subscribe({next:function(t){l||(l=!0,s++),r[a]=t},error:function(t){return n.error(t)},complete:function(){(++o===i||!l)&&(s===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=r[n],t},{}):r),n.complete())}}))},u=0;u-1&&t.splice(n,1)}var ad="VALID",ud="INVALID",ld="PENDING",cd="DISABLED";function hd(t){return(pd(t)?t.validators:t)||null}function fd(t){return Array.isArray(t)?Zf(t):t||null}function dd(t,e){return(pd(e)?e.asyncValidators:t)||null}function vd(t){return Array.isArray(t)?Qf(t):t||null}function pd(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var yd=function(){return m(function t(e,n){p(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=fd(this._rawValidators),this._composedAsyncValidatorFn=vd(this._rawAsyncValidators)},[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===ad}},{key:"invalid",get:function(){return this.status===ud}},{key:"pending",get:function(){return this.status==ld}},{key:"disabled",get:function(){return this.status===cd}},{key:"enabled",get:function(){return this.status!==cd}},{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:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=fd(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=vd(t)}},{key:"addValidators",value:function(t){this.setValidators($f(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators($f(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Jf(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Jf(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return Gf(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return Gf(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=ld,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=cd,this.errors=null,this._forEachChild(function(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(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=ad,this._forEachChild(function(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(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=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(),(this.status===ad||this.status===ld)&&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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?cd:ad}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=ld,this._hasOwnPendingAsyncValidator=!0;var n=qf(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;var i=t;return e.forEach(function(t){i=i instanceof gd?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof _d&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new qu,this.statusChanges=new qu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?cd:this.errors?ud:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ld)?ld:this._anyControlsHaveStatus(ud)?ud:ad}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){pd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}])}(),md=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return p(this,e),(t=u(this,e,[hd(i),dd(r,i)]))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return d(e,t),m(e,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){sd(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){sd(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{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(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}}])}(yd),gd=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e,[hd(n),dd(i,n)])).controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return d(e,t),m(e,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof md?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var i=e.controls[n];i&&t(i,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}])}(yd),_d=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e,[hd(n),dd(i,n)])).controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!!r.asyncValidator}),r}return d(e,t),m(e,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof md?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=n(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}])}(yd),kd={provide:nd,useExisting:mt(function(){return wd})},bd=Promise.resolve(null),wd=function(){var t=function(t){function n(t,e,i,r){var o;return p(this,n),(o=u(this,n)).control=new md,o._registered=!1,o.update=new qu,o._parent=t,o._setValidators(e),o._setAsyncValidators(i),o.valueAccessor=function(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===Lf?n=t:function(t){return Object.getPrototypeOf(t.constructor)===Vf}(t)?i=t:r=t}),r||i||n||null):null;var n,i,r}(0,r),o}return d(n,t),m(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(t,n){return[].concat(e(n.path),[t])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{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(){(function(t,e){(function(t,e){var n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Yf(n,e.validator)):"function"==typeof n&&t.setValidators([n]);var i=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Yf(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);var r=function(){return t.updateValueAndValidity()};rd(e._rawValidators,r),rd(e._rawAsyncValidators,r)})(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&od(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&od(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)})(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(t){var e=this;bd.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;bd.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}}])}(nd);return t.\u0275fac=function(e){return new(e||t)(js(ed,9),js(Hf,10),js(Bf,10),js(Ff,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:[Ma([kd]),bs,ge]}),t}(),Ed=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}(),Cd=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Ed]]}),t}(),Sd=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[Cd]}),t}();function xd(t){return null!=t&&"false"!="".concat(t)}function Td(t){return Array.isArray(t)?t:[t]}function Od(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function Ad(t,n,i,r){return h(i)&&(r=i,i=void 0),r?Ad(t,n,i).pipe(L(function(t){return k(t)?r.apply(void 0,e(t)):r(t)})):new R(function(e){Pd(t,n,function(t){e.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},e,i)})}function Pd(t,e,n,i,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,n,r),o=function(){return s.removeEventListener(e,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var a=t;t.on(e,n),o=function(){return a.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,n),o=function(){return u.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,c=t.length;l2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?c(f(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return c(f(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)}}])}(hh));var Rd=1,Id=Promise.resolve(),Dd={};function Nd(t){return t in Dd&&(delete Dd[t],!0)}var Vd=function(t){var e=Rd++;return Dd[e]=!0,Id.then(function(){return Nd(e)&&t()}),e},Fd=function(t){Nd(t)};new(function(t){function e(){return p(this,e),u(this,e,arguments)}return d(e,t),m(e,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?c(f(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=Vd(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return c(f(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(Fd(n),t.scheduled=void 0)}}])}(hh));var jd=function(){return m(function t(e){p(this,t),this.durationSelector=e},[{key:"call",value:function(t,e){return e.subscribe(new Md(t,this.durationSelector))}}])}(),Md=function(t){function e(t,n){var i;return p(this,e),(i=u(this,e,[t])).durationSelector=n,i.hasValue=!1,i}return d(e,t),m(e,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{var n;e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=G(e,new Y(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}])}(X);function Ld(t){return!k(t)&&t-parseFloat(t)+1>=0}function Hd(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Ld(e)?i=Number(e)<1?1:Number(e):M(e)&&(n=e),M(n)||(n=xf),new R(function(e){var r=Ld(t)?t:+t-n.now();return n.schedule(Bd,r,{index:0,period:i,subscriber:e})})}function Bd(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function zd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xf;return function(t){return function(e){return e.lift(new jd(t))}}(function(){return Hd(t,e)})}function qd(t){return function(e){return e.lift(new Ud(t))}}var Wd,Ud=function(){return m(function t(e){p(this,t),this.notifier=e},[{key:"call",value:function(t,e){var n=new Kd(t),i=G(this.notifier,new Y(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}])}(),Kd=function(t){function e(t){var n;return p(this,e),(n=u(this,e,[t])).seenValue=!1,n}return d(e,t),m(e,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}])}(X);function Zd(){return et(1)(mh.apply(void 0,arguments))}try{Wd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){Wd=!1}var Qd,Yd=function(){var t=m(function t(e){p(this,t),this._platformId=e,this.isBrowser=this._platformId?function(t){return t===Rc}(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&&!Wd)&&"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)(gi(fl))},t.\u0275prov=Ct({factory:function(){return new t(gi(fl))},token:t,providedIn:"root"}),t}(),Xd=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}();var Gd=new ti("cdk-dir-doc",{providedIn:"root",factory:function(){return _i($l)}}),$d=function(){var t=function(){return m(function t(e){if(p(this,t),this.value="ltr",this.change=new qu,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}},[{key:"ngOnDestroy",value:function(){this.change.complete()}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(Gd,8))},t.\u0275prov=Ct({factory:function(){return new t(gi(Gd,8))},token:t,providedIn:"root"}),t}(),Jd=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}(),tv=function(){var t=function(){return m(function t(e,n,i){p(this,t),this._ngZone=e,this._platform=n,this._scrolled=new F,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i},[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new R(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(zd(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):mh()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Dh(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=function(t){return t instanceof Ua?t.nativeElement:t}(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Ad(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(Tl),gi(Yd),gi($l,8))},t.\u0275prov=Ct({factory:function(){return new t(gi(Tl),gi(Yd),gi($l,8))},token:t,providedIn:"root"}),t}(),ev=function(){var t=function(){return m(function t(e,n,i){var r=this;p(this,t),this._platform=e,this._change=new F,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})},[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var 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}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(zd(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var 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)(gi(Yd),gi(Tl),gi($l,8))},t.\u0275prov=Ct({factory:function(){return new t(gi(Yd),gi(Tl),gi($l,8))},token:t,providedIn:"root"}),t}(),nv=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}(),iv=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Jd,Xd,nv],Jd,nv]}),t}(),rv=function(){return m(function t(){p(this,t)},[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}])}(),ov=function(t){function e(t,n,i,r){var o;return p(this,e),(o=u(this,e)).component=t,o.viewContainerRef=n,o.injector=i,o.componentFactoryResolver=r,o}return d(e,t),m(e)}(rv),sv=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e)).templateRef=t,r.viewContainerRef=n,r.context=i,r}return d(e,t),m(e,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,c(f(e.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,c(f(e.prototype),"detach",this).call(this)}}])}(rv),av=function(t){function e(t){var n;return p(this,e),(n=u(this,e)).element=t instanceof Ua?t.nativeElement:t,n}return d(e,t),m(e)}(rv),uv=function(t){function e(t,n,i,r,o){var s;return p(this,e),(s=u(this,e)).outletElement=t,s._componentFactoryResolver=n,s._appRef=i,s._defaultInjector=r,s.attachDomPortal=function(t){var n=t.element,i=s._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),s.outletElement.appendChild(n),s._attachedPortal=t,c((l(s),f(e.prototype)),"setDisposeFn",s).call(l(s),function(){i.parentNode&&i.parentNode.replaceChild(n,i)})},s._document=o,s}return d(e,t),m(e,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),this._attachedPortal=t,i}},{key:"dispose",value:function(){c(f(e.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}])}(function(){return m(function t(){p(this,t),this._isDisposed=!1,this.attachDomPortal=null},[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof ov?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof sv?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof av?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}])}()),lv=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}(),cv=function(){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 hv(t){return function(e){return 0===t?yh():e.lift(new fv(t))}}var fv=function(){return m(function t(e){if(p(this,t),this.total=e,this.total<0)throw new cv},[{key:"call",value:function(t,e){return e.subscribe(new dv(t,this.total))}}])}(),dv=function(t){function e(t,n){var i;return p(this,e),(i=u(this,e,[t])).total=n,i.count=0,i}return d(e,t),m(e,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}])}(T),vv=function(){return m(function t(e,n){p(this,t),this.predicate=e,this.inclusive=n},[{key:"call",value:function(t,e){return e.subscribe(new pv(t,this.predicate,this.inclusive))}}])}(),pv=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e,[t])).predicate=n,r.inclusive=i,r.index=0,r}return d(e,t),m(e,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}])}(T),yv=function(){if(null==Qd){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qd=!1;if("scrollBehavior"in document.documentElement.style)Qd=!0;else{var t=Element.prototype.scrollTo;Qd=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Qd}(),mv=function(){return m(function t(e,n){p(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n},[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Od(-this._previousScrollPosition.left),t.style.top=Od(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),yv&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yv&&(e.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}])}(),gv=function(){return m(function t(e,n,i,r){var o=this;p(this,t),this._scrollDispatcher=e,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()})}},[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),_v=function(){return m(function t(){p(this,t)},[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}])}();function kv(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function bv(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var wv=function(){return m(function t(e,n,i,r){p(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null},[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;kv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),Ev=function(){var t=m(function t(e,n,i,r){var o=this;p(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new _v},this.close=function(t){return new gv(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new mv(o._viewportRuler,o._document)},this.reposition=function(t){return new wv(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r});return t.\u0275fac=function(e){return new(e||t)(gi(tv),gi(ev),gi(Tl),gi($l))},t.\u0275prov=Ct({factory:function(){return new t(gi(tv),gi(ev),gi(Tl),gi($l))},token:t,providedIn:"root"}),t}(),Cv=m(function t(e){if(p(this,t),this.scrollStrategy=new _v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}])}();return t.\u0275fac=function(e){return new(e||t)(gi($l))},t.\u0275prov=Ct({factory:function(){return new t(gi($l))},token:t,providedIn:"root"}),t}(),Ov=function(){var t=function(t){function e(t){var n;return p(this,e),(n=u(this,e,[t]))._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},n}return d(e,t),m(e,[{key:"add",value:function(t){c(f(e.prototype),"add",this).call(this,t),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)}}])}(Tv);return t.\u0275fac=function(e){return new(e||t)(gi($l))},t.\u0275prov=Ct({factory:function(){return new t(gi($l))},token:t,providedIn:"root"}),t}(),Av=function(){var t=function(t){function e(t,n){var i;return p(this,e),(i=u(this,e,[t]))._platform=n,i._cursorStyleIsSet=!1,i._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=i._attachedOverlays.slice(),r=n.length-1;r>-1;r--){var o=n[r];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},i}return d(e,t),m(e,[{key:"add",value:function(t){if(c(f(e.prototype),"add",this).call(this,t),!this._isAttached){var n=this._document.body;n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}])}(Tv);return t.\u0275fac=function(e){return new(e||t)(gi($l),gi(Yd))},t.\u0275prov=Ct({factory:function(){return new t(gi($l),gi(Yd))},token:t,providedIn:"root"}),t}(),Pv=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Rv=function(){var t=function(){return m(function t(e,n){p(this,t),this._platform=n,this._document=e},[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||Pv)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], .').concat(t,'[platform="test"]')),n=0;nv&&(v=m,d=y)}}catch(g){p.e(g)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Fv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Dv),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 t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=Mv(e),o=t.x,s=t.y,a=this._getOffset(i,"x"),u=this._getOffset(i,"y");a&&(o+=a),u&&(s+=u);var l=0-s,c=s+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=jv(this._overlayRef.getConfig().minHeight),s=jv(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=r;return(t.fitsInViewportVertically||null!=o&&o<=i)&&a}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=Mv(e),s=this._viewportRect,a=Math.max(t.x+o.width-s.width,0),u=Math.max(t.y+o.height-s.height,0),l=Math.max(s.top-n.top-t.y,0),c=Math.max(s.left-n.left-t.x,0);return i=o.width<=s.width?c||-a:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)a=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)s=t.x,o=u.right-t.x;else{var f=Math.min(u.right-t.x+u.left,t.x),d=this._lastBoundingBoxSize.width;o=2*f,s=t.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.x-d/2)}return{top:i,left:s,bottom:r,right:a,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var 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));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=Od(n.height),i.top=Od(n.top),i.bottom=Od(n.bottom),i.width=Od(n.width),i.left=Od(n.left),i.right=Od(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",r&&(i.maxHeight=Od(r)),o&&(i.maxWidth=Od(o))}this._lastBoundingBoxSize=n,Fv(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){Fv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Fv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var s=this._viewportRuler.getViewportScrollPosition();Fv(n,this._getExactOverlayY(e,t,s)),Fv(n,this._getExactOverlayX(e,t,s))}else n.position="static";var a="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(a+="translateX(".concat(u,"px) ")),l&&(a+="translateY(".concat(l,"px)")),n.transform=a.trim(),o.maxHeight&&(i?n.maxHeight=Od(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Od(o.maxWidth):r&&(n.maxWidth="")),Fv(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Od(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Od(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:bv(t,n),isOriginOutsideView:kv(t,n),isOverlayClipped:bv(e,n),isOverlayOutsideView:kv(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,s=n.maxHeight,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=u?"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=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Hv),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}])}(),zv=function(){var t=function(){return m(function t(e,n,i,r){p(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r},[{key:"global",value:function(){return new Bv}},{key:"connectedTo",value:function(t,e,n){return new Lv(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Vv(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(ev),gi($l),gi(Yd),gi(Rv))},t.\u0275prov=Ct({factory:function(){return new t(gi(ev),gi($l),gi(Yd),gi(Rv))},token:t,providedIn:"root"}),t}(),qv=0,Wv=function(){var t=function(){return m(function t(e,n,i,r,o,s,a,u,l,c,h){p(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=s,this._ngZone=a,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h},[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Cv(t);return r.direction=r.direction||this._directionality.value,new Iv(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+qv++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Ul)),new uv(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(Ev),gi(Rv),gi(Ba),gi(zv),gi(Ov),gi(_s),gi(Tl),gi($l),gi($d),gi(hc),gi(Av))},t.\u0275prov=Ct({token:t,factory:t.\u0275fac}),t}(),Uv=[{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"}],Kv=new ti("cdk-connected-overlay-scroll-strategy"),Zv=function(){var t=m(function t(e){p(this,t),this.elementRef=e});return t.\u0275fac=function(e){return new(e||t)(js(Ua))},t.\u0275dir=se({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),Qv=function(){var t=function(){return m(function t(e,n,i,r,o){p(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=C.EMPTY,this._attachSubscription=C.EMPTY,this._detachSubscription=C.EMPTY,this._positionSubscription=C.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new qu,this.positionChange=new qu,this.attach=new qu,this.detach=new qu,this.overlayKeydown=new qu,this.overlayOutsideClick=new qu,this._templatePortal=new sv(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()},[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=xd(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=xd(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=xd(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=xd(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=xd(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{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(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())}},{key:"_createOverlay",value:function(){var t=this;(!this.positions||!this.positions.length)&&(this.positions=Uv);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),27===e.keyCode&&!t.disableClose&&!function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new vv(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}])}();return t.\u0275fac=function(e){return new(e||t)(js(Wv),js(bu),js(xu),js(Kv),js($d,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:[ge]}),t}(),Yv={provide:Kv,deps:[Wv],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Xv=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({providers:[Wv,Yv],imports:[[Jd,lv,iv],iv]}),t}(),Gv=["dialog"];function $v(t,e){1&t&&zs(0,"div",5),2&t&&Ms("innerHTML",$s(2).SafeContent,Br)}function Jv(t,e){1&t&&(Hs(0,"div"),ea(1),Bs())}function tp(t,e){if(1&t&&(Hs(0,"div",1,2),Vs(2,$v,1,1,"div",3),Vs(3,Jv,2,0,"div",4),Bs()),2&t){var n=$s();uo(2),Ms("ngIf",n.SafeContent),uo(1),Ms("ngIf",!n.SafeContent)}}var ep=["*"],np=function(){var t=function(){return m(function t(e,n){p(this,t),this.changeDetectorRef=e,this.sanitizer=n,this.close=new qu,this.open=new qu,this.isOpened=!1,this.destroy$=new F},[{key:"SafeContent",get:function(){return this._content}},{key:"Content",set:function(t){this._content=this.sanitizer.bypassSecurityTrustHtml(t),this.changeDetectorRef.markForCheck()}},{key:"ngOnInit",value:function(){var t=this,e=this.CdkOverlayOrigin.elementRef.nativeElement,n=Ad(document,"mousemove").pipe(Dh(function(){return!t.isOpened}),Eh(function(t){return Ad(document,"mousemove").pipe(function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;n--){var i=e[n];if(t===i.name)return i}throw new kt("302","The pipe '".concat(t,"' could not be found!"))}("async",i.pipeRegistry),i.data[27]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(27,n.onDestroy)):n=i.data[27];var r=n.factory||(n.factory=ye(n.type)),o=Vt(js);try{var s=In(!1),a=r();In(s),function(t,e,n,i){27>=t.data.length&&(t.data[27]=null,t.blueprint[27]=null),e[27]=i}(i,Be(),0,a)}finally{Vt(o)}}(),Vs(8,up,2,1,"ng-template",null,6,ol)),2&t){var n=Fs(9);uo(1),Ms("ngModel",e.searchValue)("placeholder",e.searchPlaceholderText),uo(3),Ms("ngIf",!0===e.busy),uo(2),Ms("ngIf",function(t,e,n){var i=t+20,r=Be(),o=Ie(r,i);return function(t,e){return Os.isWrapped(e)&&(e=Os.unwrap(e),t[Le.lFrame.bindingIndex]=ao),e}(r,function(t,e){return t[1].data[e].pure}(r,i)?function(t,e,n,i,r,o){var s=e+n;return Is(t,s,r)?Rs(t,s+1,o?i.call(o,r):i(r)):Bu(t,s+1)}(r,Ge(),e,o.transform,n,o):o.transform(n))}(7,5,e.searchResult$))("ngIfElse",n)}},directives:[Lf,id,wd,bc,_c,Zv,np],pipes:[Ac],styles:["[_nghost-%COMP%], .full-width[_ngcontent-%COMP%]{width:100%}.max-width[_ngcontent-%COMP%]{flex-grow:1;overflow:auto}"]}),t}(),cp=function(){var t=function(){return m(function t(e){p(this,t),this.searchService=e,this.noDataText="No results to show...",this.searchPlaceholderText="Find a specific resource through a free-text search.",this.oslcResponse=""},[{key:"onItemsSelected",value:function(t){var e='oslc-response:{ "oslc:results": [';e+=t.map(function(t){return'{"oslc:label": "'+t.text+'", "rdf:resource": "'+t.resource+'"}'}).join(", "),e+="]}",this.oslcResponse=e}},{key:"ngOnInit",value:function(){this.searchService.baseUrl=this.selectionUri;var t=JSON.parse(this.fields);this.searchService.fields=t}},{key:"onOk",value:function(){this.sendResponse(this.oslcResponse)}},{key:"onCancel",value:function(){this.sendResponse('oslc-response:{ "oslc:results": [ ]}')}},{key:"sendResponse",value:function(t){console.log("oslcResponse: ",t),"#oslc-core-windowName-1.0"===window.location.hash?this.respondWithWindowName(t):"#oslc-core-postMessage-1.0"===window.location.hash&&this.respondWithPostMessage(t)}},{key:"respondWithPostMessage",value:function(t){null!=window.parent?window.parent.postMessage(t,"*"):window.postMessage(t,"*")}},{key:"respondWithWindowName",value:function(t){var e=window.name;window.name=t,window.location.href=e}}])}();return t.\u0275fac=function(e){return new(e||t)(js(Ef))},t.\u0275cmp=te({type:t,selectors:[["app-selector"]],inputs:{noDataText:"noDataText",searchPlaceholderText:"searchPlaceholderText",selectionUri:"selectionUri",fields:"fields"},decls:12,vars:2,consts:[[3,"noDataText","searchPlaceholderText","itemsSelected"],[1,"footer","d-flex","flex-row","align-middle"],[1,"d-flex","flex-grow-1","align-items-center","mb-0"],["type","button",1,"btn","btn-outline-secondary","m-2",3,"click"],["type","button","cdkFocusInitial","",1,"btn","btn-primary",3,"click"]],template:function(t,e){1&t&&(Hs(0,"app-search-header",0),Ys("itemsSelected",function(t){return e.onItemsSelected(t)}),Bs(),Hs(1,"div",1),Hs(2,"div",2),Hs(3,"span"),ba(4,"OSLC Selection Dialog "),Hs(5,"em"),ba(6,"(generated by Eclipse Lyo)"),Bs(),Bs(),Bs(),Hs(7,"div"),Hs(8,"button",3),Ys("click",function(){return e.onCancel()}),ba(9," Cancel "),Bs(),Hs(10,"button",4),Ys("click",function(){return e.onOk()}),ba(11," Select "),Bs(),Bs(),Bs()),2&t&&Ms("noDataText",e.noDataText)("searchPlaceholderText",e.searchPlaceholderText)},directives:[lp],styles:[""]}),t}(),hp=m(function t(){p(this,t)}),fp="*";function dp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function vp(t){return{type:6,styles:t,offset:null}}function pp(t){Promise.resolve(null).then(t)}var yp=function(){return m(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{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 t=this;pp(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),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(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}])}(),mp=function(){return m(function t(e){var n=this;p(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,o=0,s=this.players.length;0==s?pp(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==s&&n._onFinish()}),t.onDestroy(function(){++r==s&&n._onDestroy()}),t.onStart(function(){++o==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}])}();function gp(){return"undefined"!=typeof window&&void 0!==window.document}function _p(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function kp(t){switch(t.length){case 0:return new yp;case 1:return t[0];default:return new mp(t)}}function bp(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],a=[],u=-1,l=null;if(i.forEach(function(t){var n=t.offset,i=n==u,c=i&&l||{};Object.keys(t).forEach(function(n){var i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,s),a){case"!":a=r[n];break;case fp:a=o[n];break;default:a=e.normalizeStyleValue(n,i,a,s)}c[i]=a}),i||a.push(c),l=c,u=n}),s.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(s.join(c)))}return a}function wp(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Ep(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Ep(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Ep(n,"destroy",t))})}}function Ep(t,e,n){var i=n.totalTime,r=Cp(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Cp(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Sp(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function xp(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Tp=function(t,e){return!1},Op=function(t,e){return!1},Ap=function(t,e,n){return[]},Pp=_p();(Pp||"undefined"!=typeof Element)&&(Tp=gp()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},Op=function(){if(Pp||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Op}(),Ap=function(t,e,n){var i=[];if(n)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Xp(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else Yp(t,n);return n}function Gp(t,e,n){return n?e+":"+n+";":""}function $p(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],s=r[2],a=r[3];e.push(yy(o,a)),"<"==s[0]&&("*"!=o||"*"!=a)&&e.push(yy(a,o))}(t,n,e)}):n.push(t),n}var vy=new Set(["true","1"]),py=new Set(["false","0"]);function yy(t,e){var n=vy.has(t)||py.has(t),i=vy.has(e)||py.has(e);return function(r,o){var s="*"==t||t==r,a="*"==e||e==o;return!s&&n&&"boolean"==typeof r&&(s=r?vy.has(t):py.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?vy.has(e):py.has(e)),s&&a}}var my=new RegExp("s*:selfs*,?","g");function gy(t,e,n){return new _y(t).build(e,n)}var _y=function(){return m(function t(e){p(this,t),this._driver=e},[{key:"build",value:function(t,e){var n=new ky(e);return this._resetContextStyleTimingState(n),hy(this,ey(t),n)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,i=e.queryCount=0,r=e.depCount=0,o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var a=t,u=a.name;u.toString().split(/\s*,\s*/).forEach(function(t){a.name=t,o.push(n.visitState(a,e))}),a.name=u}else if(1==t.type){var l=n.visitTransition(t,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(t){if(by(t)){var e=t;Object.keys(e).forEach(function(t){iy(e[t]).forEach(function(t){o.hasOwnProperty(t)||r.add(t)})})}}),r.size){var s=oy(r.values());e.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(s.join(", ")))}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n=hy(this,ey(t.animation),e);return{type:1,matchers:dy(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:wy(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return hy(n,t,e)}),options:wy(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=i;var o=hy(n,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:wy(t.options)}}},{key:"visitAnimate",value:function(t,e){var n=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ey(Qp(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=Ey(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Ey((n=n||Qp(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var i,r=t.styles?t.styles:vp({});if(5==r.type)i=this.visitKeyframes(r,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};n.easing&&(a.easing=n.easing),o=vp(a)}e.currentTime+=n.duration+n.delay;var u=this.visitStyle(o,e);u.isEmptyStep=s,i=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==fp?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(by(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var s=e.collectedStyles[e.currentQuerySelector],a=s[i],u=!0;a&&(o!=r&&o>=a.startTime&&r<=a.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(a.startTime,'ms" and "').concat(a.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=a.startTime),u&&(s[i]={startTime:o,endTime:r}),e.options&&function(t,e,n){var i=e.params||{},r=iy(t);r.length&&r.forEach(function(t){i.hasOwnProperty(t)||n.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})}(t[i],e.options,e.errors)}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],s=!1,a=!1,u=0,l=t.steps.map(function(t){var i=n._makeStyleAst(t,e),l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(by(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(by(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),a=a||c<0||c>1,s=s||c0&&r0?r==f?1:h*r:o[r],a=s*p;e.currentTime=d+v.delay+a,v.duration=a,n._validateStyleAst(t,e),t.offset=s,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:hy(this,ey(t.animation),e),options:wy(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:wy(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:wy(t.options)}}},{key:"visitQuery",value:function(e,n){var i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;var o=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(my,"")),t=t.replace(/@\*/g,qp).replace(/@\w+/g,function(t){return qp+"-"+t.substr(1)}).replace(/:animating/g,Up),[t,e]}(e.selector),s=t(o,2),a=s[0],u=s[1];n.currentQuerySelector=i.length?i+" "+a:a,Sp(n.collectedStyles,n.currentQuerySelector,{});var l=hy(this,ey(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:u,animation:l,originalSelector:e.selector,options:wy(e.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Qp(t.timings,e.errors,!0);return{type:12,animation:hy(this,ey(t.animation),e),timings:n,options:null}}}])}(),ky=m(function t(e){p(this,t),this.errors=e,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 by(t){return!Array.isArray(t)&&"object"==typeof t}function wy(t){return t?(t=Yp(t)).params&&(t.params=function(t){return t?Yp(t):null}(t.params)):t={},t}function Ey(t,e,n){return{duration:t,delay:e,easing:n}}function Cy(t,e,n,i,r,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Sy=function(){return m(function t(){p(this,t),this._map=new Map},[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,n){var i,r=this._map.get(t);r||this._map.set(t,r=[]),(i=r).push.apply(i,e(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}])}(),xy=new RegExp(":enter","g"),Ty=new RegExp(":leave","g");function Oy(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},a=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 Ay).buildKeyframes(t,e,n,i,r,o,s,a,u,l)}var Ay=function(){return m(function t(){p(this,t)},[{key:"buildKeyframes",value:function(t,e,n,i,r,o,s,a,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Sy;var c=new Ry(t,e,u,i,r,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),hy(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Cy(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?Kp(n.duration):null,o=null!=n.delay?Kp(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),hy(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Py);var s=Kp(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return hy(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Kp(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),hy(n,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return Qp(e.params?ry(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Kp(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Py);var s=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(i,r){e.currentQueryIndex=r;var a=e.createSubContext(t.options,i);o&&a.delayNextStep(o),i===e.element&&(u=a.currentTimeline),hy(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;hy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}])}(),Py={},Ry=function(){function t(e,n,i,r,o,s,a,u){p(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Py,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Iy(this._driver,n,0),a.push(this.currentTimeline)}return m(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=Kp(i.duration)),null!=i.delay&&(r.delay=Kp(i.delay));var o=i.params;if(o){var s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){(!e||!s.hasOwnProperty(t))&&(s[t]=ry(o[t],s,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=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 t(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(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Py,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Dy(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,i,r,o,s){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(xy,"."+this._enterClassName)).replace(Ty,"."+this._leaveClassName);var u=this._driver.query(this.element,t,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),a.push.apply(a,e(u))}return!o&&0==a.length&&s.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),a}}])}(),Iy=function(){function t(e,n,i,r){p(this,t),this._driver=e,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 m(t,[{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:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||fp,e._currentKeyframe[t]=fp}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},s=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=fp}):Xp(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=ry(s[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:fp),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,s){var a=Xp(o,!0);Object.keys(a).forEach(function(t){var i=a[t];"!"==i?e.add(t):i==fp&&n.add(t)}),i||(a.offset=s/t.duration),r.push(a)});var o=e.size?oy(e.values()):[],s=n.size?oy(n.values()):[];if(i){var a=r[0],u=Yp(a);a.offset=0,u.offset=1,r=[a,u]}return Cy(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}])}(),Dy=function(t){function e(t,n,i,r,o,s){var a,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,e),(a=u(this,e,[t,n,s.delay])).keyframes=i,a.preStyleProps=r,a.postStyleProps=o,a._stretchStartingKeyframe=l,a.timings={duration:s.duration,delay:s.delay,easing:s.easing},a}return d(e,t),m(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=i+n,a=n/s,u=Xp(t[0],!1);u.offset=0,o.push(u);var l=Xp(t[0],!1);l.offset=Ny(a),o.push(l);for(var c=t.length-1,h=1;h<=c;h++){var f=Xp(t[h],!1);f.offset=Ny((n+f.offset*i)/s),o.push(f)}i=s,n=0,r="",t=o}return Cy(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}])}(Iy);function Ny(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var Vy=m(function t(){p(this,t)}),Fy=function(t){function e(){return p(this,e),u(this,e,arguments)}return d(e,t),m(e,[{key:"normalizePropertyName",value:function(t,e){return ay(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",o=n.toString().trim();if(jy[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+r}}])}(Vy),jy=function(t){var e={};return t.forEach(function(t){return 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 My(t,e,n,i,r,o,s,a,u,l,c,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Ly={},Hy=function(){return m(function t(e,n,i){p(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i},[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some(function(t){return t(e,n,i,r)})}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,i,r,o,s,a,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Ly,f=this.buildStyles(n,s&&s.params||Ly,c),d=a&&a.params||Ly,v=this.buildStyles(i,d,c),p=new Set,y=new Map,m=new Map,g="void"===i,_={params:Object.assign(Object.assign({},h),d)},k=l?[]:Oy(t,e,this.ast.animation,r,o,f,v,_,u,c),b=0;if(k.forEach(function(t){b=Math.max(t.duration+t.delay,b)}),c.length)return My(e,this._triggerName,n,i,g,f,v,[],[],y,m,b,c);k.forEach(function(t){var n=t.element,i=Sp(y,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=Sp(m,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&p.add(n)});var w=oy(p.values());return My(e,this._triggerName,n,i,g,f,v,k,w,y,m,b)}}])}(),By=function(){return m(function t(e,n,i){p(this,t),this.styles=e,this.defaultParams=n,this.normalizer=i},[{key:"buildStyles",value:function(t,e){var n=this,i={},r=Yp(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var s=o[t];s.length>1&&(s=ry(s,r,e));var a=n.normalizer.normalizePropertyName(t,e);s=n.normalizer.normalizeStyleValue(t,a,s,e),i[a]=s})}}),i}}])}(),zy=function(){return m(function t(e,n,i){var r=this;p(this,t),this.name=e,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(t){r.states[t.name]=new By(t.style,t.options&&t.options.params||{},i)}),qy(this.states,"true","1"),qy(this.states,"false","0"),n.transitions.forEach(function(t){r.transitionFactories.push(new Hy(e,t,r.states))}),this.fallbackTransition=function(t,e,n){return new Hy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},e)}(e,this.states)},[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}])}();function qy(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Wy=new Sy,Uy=function(){return m(function t(e,n,i){p(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]},[{key:"register",value:function(t,e){var n=[],i=gy(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=bp(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],a=new Map;if(s?(n=Oy(this._driver,e,s,Hp,Bp,{},{},r,Wy,o)).forEach(function(t){var e=Sp(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=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: ".concat(o.join("\n")));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,fp)})});var u=kp(n.map(function(t){var e=a.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return i.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Cp(e,"","","");return wp(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);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(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}])}(),Ky="ng-animate-queued",Zy="ng-animate-disabled",Qy=".ng-animate-disabled",Yy=[],Xy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$y="__ng_removed",Jy=function(){return m(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(i?e.value:e),i){var r=Yp(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})},[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}}])}(),tm="void",em=new Jy(tm),nm=function(){return m(function t(e,n,i){p(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,cm(n,this._hostClassName)},[{key:"listen",value:function(t,e,n,i){var r=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if(!function(t){return"start"==t||"done"==t}(n))throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=Sp(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var a=Sp(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(cm(t,zp),cm(t,zp+"-"+e),a[e]=em),function(){r._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),r._triggers[e]||delete a[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),s=new rm(this.id,e,t),a=this._engine.statesByElement.get(t);a||(cm(t,zp),cm(t,zp+"-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new Jy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u||(u=em),l.value===tm||u.value!==l.value){var c=Sp(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,l.value,t,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:f}),f||(cm(t,Ky),s.onStart(function(){hm(t,Ky)})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);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,e)){this._namespaceList.splice(r+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}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),cm(t,Zy)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),hm(t,Zy))}},{key:"removeNode",value:function(t,e,n,i){if(om(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e[$y]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return om(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,qp,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Up,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return kp(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t[$y];if(n&&n.setForRemoval){if(t[$y]=Xy,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,Qy)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Qy,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(n).forEach(function(t){var e=t.player,n=t.element;if(S.push(e),i.collectedEnterElements.length){var s=n[$y];if(s&&s.setForMove)return void e.destroy()}var h=!f||!i.driver.containsElement(f,n),d=E.get(n),v=p.get(n),y=i._buildInstruction(t,r,v,d,h);if(y.errors&&y.errors.length)x.push(y);else{if(h)return e.onStart(function(){return ty(n,y.fromStyles)}),e.onDestroy(function(){return Jp(n,y.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return ty(n,y.fromStyles)}),e.onDestroy(function(){return Jp(n,y.toStyles)}),void o.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(n,y.timelines),a.push({instruction:y,player:e,element:n}),y.queriedElements.forEach(function(t){return Sp(u,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=c.get(e);i||c.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(x.length){var O=[];x.forEach(function(t){O.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return O.push("- ".concat(t,"\n"))})}),S.forEach(function(t){return t.destroy()}),this.reportError(O)}var A=new Map,P=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(P.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))}),o.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Sp(A,e,[]).push(t),t.destroy()})});var R=m.filter(function(t){return vm(t,l,c)}),I=new Map;am(I,this.driver,_,c,fp).forEach(function(t){vm(t,l,c)&&R.push(t)});var D=new Map;v.forEach(function(t,e){am(D,i.driver,new Set(t),l,"!")}),R.forEach(function(t){var e=I.get(t),n=D.get(t);I.set(t,Object.assign(Object.assign({},e),n))});var N=[],V=[],F={};a.forEach(function(t){var e=t.element,n=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return n.onDestroy(function(){return Jp(e,a.toStyles)}),n.disabled=!0,n.overrideTotalTime(a.totalTime),void o.push(n);var u=F;if(P.size>1){for(var l=e,c=[];l=l.parentNode;){var f=P.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(t){return P.set(t,u)})}var d=i._buildAnimation(n.namespaceId,a,A,s,D,I);if(n.setRealPlayer(d),u===F)N.push(n);else{var v=i.playersByElement.get(u);v&&v.length&&(n.parentPlayer=kp(v)),o.push(n)}}else ty(e,a.fromStyles),n.onDestroy(function(){return Jp(e,a.toStyles)}),V.push(n),h.has(e)&&o.push(n)}),V.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=kp(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new yp(t.duration,t.delay)}}])}(),rm=function(){return m(function t(e,n,i){p(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new yp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0},[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return wp(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){Sp(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{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(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}])}();function om(t){return t&&1===t.nodeType}function sm(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function am(t,e,n,i,r){var o=[];n.forEach(function(t){return o.push(sm(t))});var s=[];i.forEach(function(n,i){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(i,t,r);(!n||0==n.length)&&(i[$y]=Gy,s.push(i))}),t.set(i,o)});var a=0;return n.forEach(function(t){return sm(t,o[a++])}),s}function um(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var s=t.parentNode;return e=n.has(s)?s:i.has(s)?1:o(s),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}var lm="$$classes";function cm(t,e){if(t.classList)t.classList.add(e);else{var n=t[lm];n||(n=t[lm]={}),n[e]=!0}}function hm(t,e){if(t.classList)t.classList.remove(e);else{var n=t[lm];n&&delete n[e]}}function fm(t,e,n){kp(n).onDone(function(){return t.processLeaveNode(e)})}function dm(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}])}();function ym(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=gm(e[0]),e.length>1&&(i=gm(e[e.length-1]))):e&&(n=gm(e)),n||i?new mm(t,n,i):null}var mm=function(){var t=function(){function t(e,n,i){p(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return m(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Jp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Jp(this._element,this._initialStyles),this._endStyles&&(Jp(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ty(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ty(this._element,this._endStyles),this._endStyles=null),Jp(this._element,this._initialStyles),this._state=3)}}])}();return t.initialStylesByElement=new WeakMap,t}();function gm(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),xm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){var n=Om(t,"").split(","),i=Sm(n,e);i>=0&&(n.splice(i,1),Tm(t,"",n.join(",")))}(this._element,this._name))}}])}();function Em(t,e,n){Tm(t,"PlayState",n,Cm(t,e))}function Cm(t,e){var n=Om(t,"");return n.indexOf(",")>0?Sm(n.split(","),e):Sm([n],e)}function Sm(t,e){for(var n=0;n=0)return n;return-1}function xm(t,e,n){n?t.removeEventListener(bm,e):t.addEventListener(bm,e)}function Tm(t,e,n,i){var r=km+e;if(null!=i){var o=t.style[r];if(o.length){var s=o.split(",");s[i]=n,n=s.join(",")}}t.style[r]=n}function Om(t,e){return t.style[km+e]||""}var Am=function(){return m(function t(e,n,i,r,o,s,a,u){p(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=a,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+o,this._buildStyler()},[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{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(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),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(t){this._styler.setPosition(t)}},{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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new wm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:fy(t.element,i))})}this.currentSnapshot=e}}])}(),Pm=function(t){function e(t,n){var i;return p(this,e),(i=u(this,e)).element=t,i._startingStyles={},i.__initialized=!1,i._styles=jp(n),i}return d(e,t),m(e,[{key:"init",value:function(){var t=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),c(f(e.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),c(f(e.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,c(f(e.prototype),"destroy",this).call(this))}}])}(yp),Rm=function(){return m(function t(){p(this,t),this._count=0},[{key:"validateStyleProperty",value:function(t){return Dp(t)}},{key:"matchesElement",value:function(t,e){return Np(t,e)}},{key:"containsElement",value:function(t,e){return Vp(t,e)}},{key:"query",value:function(t,e,n){return Fp(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return jp(t)});var i="@keyframes ".concat(e," {\n"),r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=o.filter(function(t){return t instanceof Am}),a={};ly(n,i)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return a[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=cy(t,e,a));if(0==n)return new Pm(t,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(t,l,e);(function(t){var e,n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(c);var h=ym(t,e),f=new Am(t,e,l,n,i,r,u,h);return f.onDestroy(function(){return function(t){t.parentNode.removeChild(t)}(c)}),f}}])}(),Im=function(){return m(function t(e,n,i,r){p(this,t),this.element=e,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},[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),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(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:fy(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}])}(),Dm=function(){return m(function t(){p(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Nm().toString()),this._cssKeyframesDriver=new Rm},[{key:"validateStyleProperty",value:function(t){return Dp(t)}},{key:"matchesElement",value:function(t,e){return Np(t,e)}},{key:"containsElement",value:function(t,e){return Vp(t,e)}},{key:"query",value:function(t,e,n){return Fp(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6?arguments[6]:void 0;if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);var u={},l=o.filter(function(t){return t instanceof Im});ly(n,i)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var c=ym(t,e=cy(t,e=e.map(function(t){return Xp(t,!1)}),u));return new Im(t,e,a,c)}}])}();function Nm(){return gp()&&Element.prototype.animate||{}}var Vm=function(){var t=function(t){function e(t,n){var i;return p(this,e),(i=u(this,e))._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:Lt.None,styles:[],data:{animation:[]}}),i}return d(e,t),m(e,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?dp(t):t;return Mm(this._renderer,null,e,"register",[n]),new Fm(e,this._renderer)}}])}(hp);return t.\u0275fac=function(e){return new(e||t)(gi(Za),gi($l))},t.\u0275prov=Ct({token:t,factory:t.\u0275fac}),t}(),Fm=function(t){function e(t,n){var i;return p(this,e),(i=u(this,e))._id=t,i._renderer=n,i}return d(e,t),m(e,[{key:"create",value:function(t,e){return new jm(this._id,t,e||{},this._renderer)}}])}(m(function t(){p(this,t)})),jm=function(){return m(function t(e,n,i,r){p(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)},[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&e==Lm?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}])}(),zm=function(e){function n(t,e,i,r){var o;return p(this,n),(o=u(this,n,[e,i,r])).factory=t,o.namespaceId=e,o}return d(n,e),m(n,[{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Lm?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(e,n,i){var r=this;if("@"==n.charAt(0)){var o,s,a=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e),u=n.substr(1),l="";return"@"!=u.charAt(0)&&(o=function(t){var e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(u),u=(s=t(o,2))[0],l=s[1]),this.engine.listen(this.namespaceId,a,u,l,function(t){r.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(e,n,i)}}])}(Bm),qm=function(){var t=function(t){function e(t,n,i){return p(this,e),u(this,e,[t.body,n,i])}return d(e,t),m(e,[{key:"ngOnDestroy",value:function(){this.flush()}}])}(pm);return t.\u0275fac=function(e){return new(e||t)(gi($l),gi(Lp),gi(Vy))},t.\u0275prov=Ct({token:t,factory:t.\u0275fac}),t}(),Wm=new ti("AnimationModuleType"),Um=[{provide:hp,useClass:Vm},{provide:Vy,useFactory:function(){return new Fy}},{provide:pm,useClass:qm},{provide:Za,useFactory:function(t,e,n){return new Hm(t,e,n)},deps:[Yc,pm,Tl]}],Km=[{provide:Lp,useFactory:function(){return"function"==typeof Nm()?new Dm:new Rm}},{provide:Wm,useValue:"BrowserAnimations"}].concat(Um),Zm=[{provide:Lp,useClass:Mp},{provide:Wm,useValue:"NoopAnimations"}].concat(Um),Qm=function(){var t=function(){function t(){p(this,t)}return m(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?Zm:Km}}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({providers:Km,imports:[ch]}),t}(),Ym=function(t){function e(){return p(this,e),u(this,e,arguments)}return d(e,t),m(e,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}])}(T),Xm=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e)).parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return d(e,t),m(e,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}])}(T);function Gm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Xm(t,n,i);if(!r.closed)return e instanceof R?e.subscribe(r):K(e)(r)}var $m=function(){return m(function t(){p(this,t)},[{key:"call",value:function(t,e){return e.subscribe(new Jm(t))}}])}(),Jm=function(t){function e(t){var n;return p(this,e),(n=u(this,e,[t])).hasFirst=!1,n.observables=[],n.subscriptions=[],n}return d(e,t),m(e,[{key:"_next",value:function(t){this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n2&&void 0!==arguments[2]||Object.create(null);return p(this,e),(i=u(this,e,[t])).resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return d(e,t),m(e,[{key:"_next",value:function(t){var e=this.iterators;k(t)?e.push(new rg(t)):e.push("function"==typeof t[q]?new ig(t[q]()):new og(this.destination,this,t))}},{key:"_complete",value:function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;nthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}])}(),og=function(t){function e(t,n,i){var r;return p(this,e),(r=u(this,e,[t])).parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return d(e,t),m(e,[{key:q,value:function(){return this}},{key:"next",value:function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(t){this.buffer.push(t),this.parent.checkIterators()}},{key:"subscribe",value:function(){return G(this.observable,new Y(this))}}])}(X);function sg(){for(var t=arguments.length,e=new Array(t),n=0;n0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(t){if(0===this.toRespond.length){var n=[t].concat(e(this.values));this.project?this._tryProject(n):this.destination.next(n)}}},{key:"_tryProject",value:function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}])}(Ym),lg=["*"],cg=["dialog"];function hg(t){return null!=t}function fg(t){return(t||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var dg=!0,vg=5,pg=function(){var t=m(function t(){p(this,t),this.animation=dg});return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ct({factory:function(){return new t},token:t,providedIn:"root"}),t}(),yg=function(){},mg=vg,gg=new Map,_g=function(t,e,n,i){var r=i.context||{},o=gg.get(e);if(o)switch(i.runningTransition){case"continue":return ph;case"stop":t.run(function(){return o.transition$.complete()}),r=Object.assign(o.context,r),gg.delete(e)}var s=n(e,i.animation,r)||yg;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(function(){return s()}),mh(void 0).pipe(function(t){return function(e){return new R(function(n){return e.subscribe(function(e){return t.run(function(){return n.next(e)})},function(e){return t.run(function(){return n.error(e)})},function(){return t.run(function(){return n.complete()})})})}}(t));var a=new F,u=new F,l=a.pipe(function(){for(var t=arguments.length,e=new Array(t),n=0;n2||/Android/.test(navigator.userAgent));var xg=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Tg(t){var e=Array.from(t.querySelectorAll(xg)).filter(function(t){return-1!==t.tabIndex});return[e[0],e[e.length-1]]}new(function(){return m(function t(){p(this,t)},[{key:"getAllStyles",value:function(t){return window.getComputedStyle(t)}},{key:"getStyle",value:function(t,e){return this.getAllStyles(t)[e]}},{key:"isStaticPositioned",value:function(t){return"static"===(this.getStyle(t,"position")||"static")}},{key:"offsetParent",value:function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}},{key:"position",value:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))e={top:(e=t.getBoundingClientRect()).top,bottom:e.bottom,left:e.left,right:e.right,height:e.height,width:e.width};else{var r=this.offsetParent(t);e=this.offset(t,!1),r!==document.documentElement&&(i=this.offset(r,!1)),i.top+=r.clientTop,i.left+=r.clientLeft}return e.top-=i.top,e.bottom-=i.top,e.left-=i.left,e.right-=i.left,n&&(e.top=Math.round(e.top),e.bottom=Math.round(e.bottom),e.left=Math.round(e.left),e.right=Math.round(e.right)),e}},{key:"offset",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft,o={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}},{key:"positionElements",value:function(e,n,i,r){var o=t(i.split("-"),2),s=o[0],a=void 0===s?"top":s,u=o[1],l=void 0===u?"center":u,c=r?this.offset(e,!1):this.position(e,!1),h=this.getAllStyles(n),f=parseFloat(h.marginTop),d=parseFloat(h.marginBottom),v=parseFloat(h.marginLeft),p=parseFloat(h.marginRight),y=0,m=0;switch(a){case"top":y=c.top-(n.offsetHeight+f+d);break;case"bottom":y=c.top+c.height;break;case"left":m=c.left-(n.offsetWidth+v+p);break;case"right":m=c.left+c.width}switch(l){case"top":y=c.top;break;case"bottom":y=c.top+c.height-n.offsetHeight;break;case"left":m=c.left;break;case"right":m=c.left+c.width-n.offsetWidth;break;case"center":"top"===a||"bottom"===a?m=c.left+c.width/2-n.offsetWidth/2:y=c.top+c.height/2-n.offsetHeight/2}n.style.transform="translate(".concat(Math.round(m),"px, ").concat(Math.round(y),"px)");var g=n.getBoundingClientRect(),_=document.documentElement,k=window.innerHeight||_.clientHeight,b=window.innerWidth||_.clientWidth;return g.left>=0&&g.top>=0&&g.right<=b&&g.bottom<=k}}])}()),new Date(1882,10,12),new Date(2174,10,25);var Og=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc,Sd]]}),t}(),Ag=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}(),Pg=function(){var t=function(){return m(function t(e){p(this,t),this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0},[{key:"animation",get:function(){return void 0===this._animation?this._ngbConfig.animation:this._animation},set:function(t){this._animation=t}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(pg))},t.\u0275prov=Ct({factory:function(){return new t(gi(pg))},token:t,providedIn:"root"}),t}(),Rg=m(function t(e,n,i){p(this,t),this.nodes=e,this.viewRef=n,this.componentRef=i}),Ig=function(){},Dg=function(){var t=function(){return m(function t(e){p(this,t),this._document=e},[{key:"compensate",value:function(){var t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Ig}},{key:"_adjustBody",value:function(t){var e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]="".concat(i+t,"px"),function(){return e.style["padding-right"]=n}}},{key:"_isPresent",value:function(t){var e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}},{key:"_getWidth",value:function(){var t=this._document.createElement("div");t.className="modal-scrollbar-measure";var e=this._document.body;e.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}])}();return t.\u0275fac=function(e){return new(e||t)(gi($l))},t.\u0275prov=Ct({factory:function(){return new t(gi($l))},token:t,providedIn:"root"}),t}(),Ng=function(){var t=function(){return m(function t(e,n){p(this,t),this._el=e,this._zone=n},[{key:"ngOnInit",value:function(){var t=this;this._zone.onStable.asObservable().pipe(hv(1)).subscribe(function(){_g(t._zone,t._el.nativeElement,function(t,e){e&&fg(t),t.classList.add("show")},{animation:t.animation,runningTransition:"continue"})})}},{key:"hide",value:function(){return _g(this._zone,this._el.nativeElement,function(t){return t.classList.remove("show")},{animation:this.animation,runningTransition:"stop"})}}])}();return t.\u0275fac=function(e){return new(e||t)(js(Ua),js(Tl))},t.\u0275cmp=te({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(ha("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),ca("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}(),Vg=function(){return m(function t(){p(this,t)},[{key:"close",value:function(t){}},{key:"dismiss",value:function(t){}}])}(),Fg=function(){return m(function t(e,n,i,r){var o=this;p(this,t),this._windowCmptRef=e,this._contentRef=n,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new F,this._dismissed=new F,this._hidden=new F,e.instance.dismissEvent.subscribe(function(t){o.dismiss(t)}),this.result=new Promise(function(t,e){o._resolve=t,o._reject=e}),this.result.then(null,function(){})},[{key:"componentInstance",get:function(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}},{key:"closed",get:function(){return this._closed.asObservable().pipe(qd(this._hidden))}},{key:"dismissed",get:function(){return this._dismissed.asObservable().pipe(qd(this._hidden))}},{key:"hidden",get:function(){return this._hidden.asObservable()}},{key:"shown",get:function(){return this._windowCmptRef.instance.shown.asObservable()}},{key:"close",value:function(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}},{key:"_dismiss",value:function(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}},{key:"dismiss",value:function(t){var e=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then(function(n){!1!==n&&e._dismiss(t)},function(){}):!1!==n&&this._dismiss(t)}else this._dismiss(t)}},{key:"_removeModalElements",value:function(){var t=this,e=this._windowCmptRef.instance.hide(),n=this._backdropCmptRef?this._backdropCmptRef.instance.hide():mh(void 0);e.subscribe(function(){var e=t._windowCmptRef.location.nativeElement;e.parentNode.removeChild(e),t._windowCmptRef.destroy(),t._contentRef&&t._contentRef.viewRef&&t._contentRef.viewRef.destroy(),t._windowCmptRef=null,t._contentRef=null}),n.subscribe(function(){if(t._backdropCmptRef){var e=t._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),t._backdropCmptRef.destroy(),t._backdropCmptRef=null}}),tg(e,n).subscribe(function(){t._hidden.next(),t._hidden.complete()})}}])}(),jg=(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(jg||(jg={})),jg),Mg=function(){var t=function(){return m(function t(e,n,i){p(this,t),this._document=e,this._elRef=n,this._zone=i,this._closed$=new F,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new qu,this.shown=new F,this.hidden=new F},[{key:"dismiss",value:function(t){this.dismissEvent.emit(t)}},{key:"ngOnInit",value:function(){var t=this;this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(hv(1)).subscribe(function(){t._show()})}},{key:"ngOnDestroy",value:function(){this._disableEventHandling()}},{key:"hide",value:function(){var t=this,e=this._elRef.nativeElement,n={animation:this.animation,runningTransition:"stop"},i=tg(_g(this._zone,e,function(){return e.classList.remove("show")},n),_g(this._zone,this._dialogEl.nativeElement,function(){},n));return i.subscribe(function(){t.hidden.next(),t.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),i}},{key:"_show",value:function(){var t=this,e={animation:this.animation,runningTransition:"continue"};tg(_g(this._zone,this._elRef.nativeElement,function(t,e){e&&fg(t),t.classList.add("show")},e),_g(this._zone,this._dialogEl.nativeElement,function(){},e)).subscribe(function(){t.shown.next(),t.shown.complete()}),this._enableEventHandling(),this._setFocus()}},{key:"_enableEventHandling",value:function(){var t=this,e=this._elRef.nativeElement;this._zone.runOutsideAngular(function(){Ad(e,"keydown").pipe(qd(t._closed$),Dh(function(t){return t.which===Sg.Escape})).subscribe(function(e){t.keyboard?requestAnimationFrame(function(){e.defaultPrevented||t._zone.run(function(){return t.dismiss(jg.ESC)})}):"static"===t.backdrop&&t._bumpBackdrop()});var n=!1;Ad(t._dialogEl.nativeElement,"mousedown").pipe(qd(t._closed$),gf(function(){return n=!1}),Eh(function(){return Ad(e,"mouseup").pipe(qd(t._closed$),hv(1))}),Dh(function(t){var n=t.target;return e===n})).subscribe(function(){n=!0}),Ad(e,"click").pipe(qd(t._closed$)).subscribe(function(i){var r=i.target;e===r&&("static"===t.backdrop?t._bumpBackdrop():!0===t.backdrop&&!n&&t._zone.run(function(){return t.dismiss(jg.BACKDROP_CLICK)})),n=!1})})}},{key:"_disableEventHandling",value:function(){this._closed$.next()}},{key:"_setFocus",value:function(){var t=this._elRef.nativeElement;if(!t.contains(document.activeElement)){var e=t.querySelector("[ngbAutofocus]"),n=Tg(t)[0];(e||n||t).focus()}}},{key:"_restoreFocus",value:function(){var t,e=this,n=this._document.body,i=this._elWithFocus;t=i&&i.focus&&n.contains(i)?i:n,this._zone.runOutsideAngular(function(){setTimeout(function(){return t.focus()}),e._elWithFocus=null})}},{key:"_bumpBackdrop",value:function(){"static"===this.backdrop&&_g(this._zone,this._elRef.nativeElement,function(t){var e=t.classList;return e.add("modal-static"),function(){return e.remove("modal-static")}},{animation:this.animation,runningTransition:"continue"})}}])}();return t.\u0275fac=function(e){return new(e||t)(js($l),js(Ua),js(Tl))},t.\u0275cmp=te({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var n;(1&t&&nl(cg,7),2&t)&&(el(n=il())&&(e._dialogEl=n.first))},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(Ds("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),ha("modal d-block"+(e.windowClass?" "+e.windowClass:"")),ca("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:lg,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(ta(),Hs(0,"div",0,1),Hs(2,"div",2),ea(3),Bs(),Bs()),2&t&&ha("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":"")+(e.modalDialogClass?" "+e.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t}(),Lg=function(){var e=function(){return m(function e(n,i,r,o,s,a){var u=this;p(this,e),this._applicationRef=n,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new F,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new qu,this._activeWindowCmptHasChanged.subscribe(function(){if(u._windowCmpts.length){var e=u._windowCmpts[u._windowCmpts.length-1];(function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.runOutsideAngular(function(){var e=Ad(n,"focusin").pipe(qd(i),L(function(t){return t.target}));Ad(n,"keydown").pipe(qd(i),Dh(function(t){return t.which===Sg.Tab}),sg(e)).subscribe(function(e){var i=t(e,2),r=i[0],o=i[1],s=t(Tg(n),2),a=s[0],u=s[1];(o===a||o===n)&&r.shiftKey&&(u.focus(),r.preventDefault()),o===u&&!r.shiftKey&&(a.focus(),r.preventDefault())}),r&&Ad(n,"click").pipe(qd(i),sg(e),L(function(t){return t[1]})).subscribe(function(t){return t.focus()})})})(u._ngZone,e.location.nativeElement,u._activeWindowCmptHasChanged),u._revertAriaHidden(),u._setAriaHidden(e.location.nativeElement)}})},[{key:"open",value:function(t,e,n,i){var r=this,o=i.container instanceof HTMLElement?i.container:hg(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),a=this._scrollBar.compensate(),u=function(){r._modalRefs.length||(s.removeClass(r._document.body,"modal-open"),r._revertAriaHidden())};if(!o)throw new Error('The specified modal container "'.concat(i.container||"body",'" was not found in the DOM.'));var l=new Vg,c=this._getContentRef(t,i.injector||e,n,l,i),h=!1!==i.backdrop?this._attachBackdrop(t,o):void 0,f=this._attachWindowComponent(t,o,c),d=new Fg(f,c,h,i.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(f),d.result.then(a,a),d.result.then(u,u),l.close=function(t){d.close(t)},l.dismiss=function(t){d.dismiss(t)},this._applyWindowOptions(f.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),h&&h.instance&&(this._applyBackdropOptions(h.instance,i),h.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),d}},{key:"activeInstances",get:function(){return this._activeInstances}},{key:"dismissAll",value:function(t){this._modalRefs.forEach(function(e){return e.dismiss(t)})}},{key:"hasOpenModals",value:function(){return this._modalRefs.length>0}},{key:"_attachBackdrop",value:function(t,e){var n=t.resolveComponentFactory(Ng).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}},{key:"_attachWindowComponent",value:function(t,e,n){var i=t.resolveComponentFactory(Mg).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}},{key:"_applyWindowOptions",value:function(t,e){this._windowAttributes.forEach(function(n){hg(e[n])&&(t[n]=e[n])})}},{key:"_applyBackdropOptions",value:function(t,e){this._backdropAttributes.forEach(function(n){hg(e[n])&&(t[n]=e[n])})}},{key:"_getContentRef",value:function(t,e,n,i,r){return n?n instanceof bu?this._createFromTemplateRef(n,i):function(t){return"string"==typeof t}(n)?this._createFromString(n):this._createFromComponent(t,e,n,i,r):new Rg([])}},{key:"_createFromTemplateRef",value:function(t,e){var n=t.createEmbeddedView({$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Rg([n.rootNodes],n)}},{key:"_createFromString",value:function(t){var e=this._document.createTextNode("".concat(t));return new Rg([[e]])}},{key:"_createFromComponent",value:function(t,e,n,i,r){var o=t.resolveComponentFactory(n),s=_s.create({providers:[{provide:Vg,useValue:i}],parent:e}),a=o.create(s),u=a.location.nativeElement;return r.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Rg([[u]],a.hostView,a)}},{key:"_setAriaHidden",value:function(t){var e=this,n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==t&&"SCRIPT"!==n.nodeName&&(e._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}},{key:"_revertAriaHidden",value:function(){this._ariaHiddenValues.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}},{key:"_registerModalRef",value:function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&(e._modalRefs.splice(n,1),e._activeInstances.emit(e._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(n,n)}},{key:"_registerWindowCmpt",value:function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())})}}])}();return e.\u0275fac=function(t){return new(t||e)(gi(Ul),gi(_s),gi($l),gi(Dg),gi(Za),gi(Tl))},e.\u0275prov=Ct({factory:function(){return new e(gi(Ul),gi(os),gi($l),gi(Dg),gi(Za),gi(Tl))},token:e,providedIn:"root"}),e}(),Hg=function(){var t=function(){return m(function t(e,n,i,r){p(this,t),this._moduleCFR=e,this._injector=n,this._modalStack=i,this._config=r},[{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}},{key:"activeInstances",get:function(){return this._modalStack.activeInstances}},{key:"dismissAll",value:function(t){this._modalStack.dismissAll(t)}},{key:"hasOpenModals",value:function(){return this._modalStack.hasOpenModals()}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(Ba),gi(_s),gi(Lg),gi(Pg))},t.\u0275prov=Ct({factory:function(){return new t(gi(Ba),gi(os),gi(Lg),gi(Pg))},token:t,providedIn:"root"}),t}(),Bg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({providers:[Hg]}),t}(),zg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),qg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Wg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Ug=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Kg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Zg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Qg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Yg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({}),t}();new ti("live announcer delay",{providedIn:"root",factory:function(){return 100}});var Xg=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Pc]]}),t}(),Gg=[kg,bg,wg,Eg,Cg,Og,Ag,Bg,zg,qg,Wg,Ug,Kg,Zg,Qg,Yg,Xg],$g=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[Gg,kg,bg,wg,Eg,Cg,Og,Ag,Bg,zg,qg,Wg,Ug,Kg,Zg,Qg,Yg,Xg]}),t}();function Jg(t,e){if(1&t&&(Hs(0,"span"),ba(1),Bs()),2&t){var n=$s().$implicit;uo(1),Ea(" ",n.propertyDefintion.data,": ")}}function t_(t,e){if(1&t&&(Hs(0,"a",9),ba(1),Bs()),2&t){var n=$s().$implicit;na("href",n.propertyDefintion.data.link,zr),uo(1),Ea(" ",n.propertyDefintion.data.title,": ")}}var e_=function(t,e){return{valuetype:t,itemvalue:e}};function n_(t,e){if(1&t&&(Hs(0,"li"),Us(1,11),Bs()),2&t){var n=e.$implicit,i=$s(2).$implicit;$s(2);var r=Fs(2);uo(1),Ms("ngTemplateOutlet",r)("ngTemplateOutletContext",Hu(2,e_,i.propertyValue.representationType,n))}}function i_(t,e){if(1&t&&(qs(0),Hs(1,"ul"),Vs(2,n_,2,5,"li",10),Bs(),Ws()),2&t){var n=$s().$implicit;uo(2),Ms("ngForOf",n.propertyValue.data)}}function r_(t,e){if(1&t&&Us(0,11),2&t){var n=$s().$implicit;$s(2),Ms("ngTemplateOutlet",Fs(2))("ngTemplateOutletContext",Hu(2,e_,n.propertyValue.representationType,n.propertyValue.data))}}function o_(t,e){if(1&t&&(Hs(0,"dl",3),Hs(1,"dt",4),Vs(2,Jg,2,1,"span",0),Vs(3,t_,2,2,"a",5),Bs(),Hs(4,"dd",6),Vs(5,i_,3,1,"ng-container",7),Vs(6,r_,1,5,"ng-template",null,8,ol),Bs(),Bs()),2&t){var n=e.$implicit,i=Fs(7);uo(2),Ms("ngIf","Text"===n.propertyDefintion.representationType),uo(1),Ms("ngIf","Link"===n.propertyDefintion.representationType),uo(2),Ms("ngIf",!0===n.propertyValue.representAsList)("ngIfElse",i)}}function s_(t,e){if(1&t&&(Hs(0,"section"),Vs(1,o_,8,4,"dl",2),Bs()),2&t){var n=$s();uo(1),Ms("ngForOf",n.data.properties)}}function a_(t,e){if(1&t&&(qs(0),Hs(1,"span"),ba(2),Bs(),Ws()),2&t){var n=$s().itemvalue;uo(2),Ea(" ",n," ")}}function u_(t,e){if(1&t&&(qs(0),Hs(1,"a",9),ba(2),Bs(),Ws()),2&t){var n=$s().itemvalue;uo(1),na("href",n.link,zr),uo(1),Ea(" ",n.title," ")}}function l_(t,e){if(1&t&&(Vs(0,a_,3,1,"ng-container",0),Vs(1,u_,3,2,"ng-container",0)),2&t){var n=e.valuetype;Ms("ngIf","Text"===n),uo(1),Ms("ngIf","Link"===n)}}var c_=function(){var t=function(){return m(function t(){p(this,t)},[{key:"ngOnInit",value:function(){var t=this;this.inputData&&(this.data=JSON.parse(this.inputData)),this.data.properties=this.data.properties.map(function(e){return!0===e.propertyValue.representAsList&&(e.propertyValue.data=t.getArrayValueSafe(e.propertyValue.data)),e})}},{key:"getArrayValueSafe",value:function(t){return null==t?[]:!1===Array.isArray(t)?[t]:t}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=te({type:t,selectors:[["app-preview"]],inputs:{inputData:"inputData"},decls:3,vars:1,consts:[[4,"ngIf"],["valuecontainer",""],["class","row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-3"],[3,"href",4,"ngIf"],[1,"col-7"],[4,"ngIf","ngIfElse"],["singlevalues",""],[3,"href"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(Vs(0,s_,2,1,"section",0),Vs(1,l_,2,2,"ng-template",null,1,ol)),2&t&&Ms("ngIf",e.data)},directives:[bc,_c,Sc],styles:["dl[_ngcontent-%COMP%]{margin-bottom:0}"]}),t}(),h_=function(){var t=function(){return m(function t(){p(this,t)},[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}])}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ct({factory:function(){return new t},token:t,providedIn:"root"}),t}(),f_=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({providers:[h_]}),t}();"undefined"!=typeof Element&∈var d_="cdk-high-contrast-black-on-white",v_="cdk-high-contrast-white-on-black",p_="cdk-high-contrast-active",y_=function(){var t=function(){return m(function t(e,n){p(this,t),this._platform=e,this._document=n},[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var 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}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(p_),t.remove(d_),t.remove(v_);var e=this.getHighContrastMode();1===e?(t.add(p_),t.add(d_)):2===e&&(t.add(p_),t.add(v_))}}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(Yd),gi($l))},t.\u0275prov=Ct({factory:function(){return new t(gi(Yd),gi($l))},token:t,providedIn:"root"}),t}(),m_=function(){var t=m(function t(e){p(this,t),e._applyBodyHighContrastModeCssClasses()});return t.\u0275fac=function(e){return new(e||t)(gi(y_))},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Xd,f_]]}),t}(),g_=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[Jd]]}),t}(),__=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[[iv]]}),t}(),k_=function(){var t=m(function t(){p(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=re({type:t}),t.\u0275inj=St({imports:[m_,Jd,f_,Xv,Xd,lv,iv,g_,__]}),t}(),b_=function(){var t=function(){return m(function t(e){p(this,t);var n=Ih(cp,{injector:e});customElements.define("oslc-selector",n);var i=Ih(c_,{injector:e});customElements.define("oslc-preview",i)},[{key:"ngDoBootstrap",value:function(t){}}])}();return t.\u0275fac=function(e){return new(e||t)(gi(_s))},t.\u0275mod=re({type:t}),t.\u0275inj=St({providers:[],imports:[[ch,yf,Qm,k_,Sd,$g]]}),t}();(function(){if(Ll)throw new Error("Cannot enable prod mode after platform setup.");Ml=!1})(),uh().bootstrapModule(b_).catch(function(t){return console.error(t)})}},function(t){t(t.s=3390)}])}(); \ No newline at end of file diff --git a/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es2015.js b/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es2015.js index ff9838cc..08af91a6 100644 --- a/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es2015.js +++ b/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es2015.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(t,e,n){t.exports=n("hN/g")},"5yqK":function(t,e){"document"in self&&(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e1||n<0||n>1?h:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*o}if(o>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&t<1&&(s=(e-1)/(t-1)),1+s*(o-1)}for(var c=0,l=1;c=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function s(t){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=t;var e=v.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function c(t){if("linear"==t)return h;var e=y.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=b.exec(t);if(n)return a(Number(n[1]),m);var r=w.exec(t);return r?a(Number(r[1]),{start:p,middle:d,end:m}[r[2]]):g[t]||h}function l(t,e,n){if(null==e)return T;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?E:S}var u="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=c(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,m=0,g={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":a(1,p),"step-middle":a(1,d),"step-end":a(1,m)},v=null,_="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",y=new RegExp("cubic-bezier\\("+_+","+_+","+_+","+_+"\\)"),b=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,T=0,k=1,E=2,S=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=l(t,e,n),o=function(t,e,n,r,o){switch(r){case k:return"backwards"==e||"both"==e?0:null;case S:return n-o;case E:return"forwards"==e||"both"==e?t:null;case T:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==k&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),a=function(t,e,n,r,o,i){var a=t===1/0?e%1:t%1;return 0!==a||n!==E||0===r||0===o&&0!==i||(a=1),a}(i,n.iterationStart,r,n.iterations,o,n.duration),s=function(t,e,n,r){return t===E&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,i),c=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(c)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=c}(n={}),function(t,e){function n(t,e){return t in c&&c[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var s in a.style[t]=e,o){var c=o[s];r[c]=n(c,a.style[c])}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),i=!0,a=-1/0,s=0;s=0&&t.offset<=1})),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o=t.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)r.prototype[l]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(l,l in c);for(var u in document.documentElement.style)u in a||u in s||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(u);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(r),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(r),function(t,e){t.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var o=[],i=0;i0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(n,r),function(t,e,n){function r(t){var e=l;l=[],t1e-4?(g=.5/Math.sqrt(_),v=[(h[2][1]-h[1][2])*g,(h[0][2]-h[2][0])*g,(h[1][0]-h[0][1])*g,.25/g]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?v=[.25*(g=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/g,(h[0][2]+h[2][0])/g,(h[2][1]-h[1][2])/g]:h[1][1]>h[2][2]?(g=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),v=[(h[0][1]+h[1][0])/g,.25*g,(h[1][2]+h[2][1])/g,(h[0][2]-h[2][0])/g]):(g=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),v=[(h[0][2]+h[2][0])/g,(h[1][2]+h[2][1])/g,.25*g,(h[1][0]-h[0][1])/g]),[f,p,d,v,l]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[s(a(t))]},t.transformListToMatrix=a}(r),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],a=[],s=[],c=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),l=0;l=1?e:"visible"}]}),["visibility"])}(r),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(r),function(t,e){function n(t){function e(){var e=a.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,(function(t){return r[t]=null,"U"+t}));for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),c=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=c,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,c),t.parseAngle=l,t.mergeDimensions=i;var u=t.consumeParenthesised.bind(null,s),f=t.consumeRepeated.bind(void 0,u,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler((function(t){var e=h(t);if(e&&""==e[1])return e[0]}),d,["background-size"]),t.addPropertiesHandler(c,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(c,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)}),", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(r),function(t,e){function n(t){return function(e){var n=0;return t.map((function(t){return t===l?e[n++]:t}))}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var a=n[1],s=h[a];if(!s)return;var c=n[2].split(","),l=s[0];if(l.length900||e%100!=0))return e}),(function(t,n){return[t,n,e]}),["font-weight"])}(r),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var o=t.consumeRepeated(n,/^/,r);if(o&&""==o[1]){var a=o[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(t){return"object"==typeof t?t:i[t]}))}}}function o(r){var o=t.consumeRepeated(n,/^/,r);if(o){for(var a=o[0],s=[{"%":50},{"%":50}],c=0,l=!1,u=0;u=0&&this._cancelHandlers.splice(n,1)}else c.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(n)},"N/DB":function(t,e){const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i="undefined"!=typeof global&&global,a=function(t,...e){if(a.translate){const n=a.translate(t,e);t=n[0],e=n[1]}let n=s(t[0],t.raw[0]);for(let r=1;r",this._properties=e&&e.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==N.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=s.current;for(;t.parent;)t=t.parent;return t}static get current(){return O.zone}static get currentTask(){return A}static __load_patch(e,o){if(N.hasOwnProperty(e)){if(a)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const i="Zone:"+e;n(i),N[e]=o(t,s,P),r(i,i)}}get parent(){return this._parent}get name(){return this._name}get(t){const e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}run(t,e,n,r){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{O=O.parent}}runGuarded(t,e=null,n,r){O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{O=O.parent}}runTask(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||y).name+"; Execution: "+this.name+")");if(t.state===b&&(t.type===D||t.type===x))return;const r=t.state!=k;r&&t._transitionTo(k,T),t.runCount++;const o=A;A=t,O={parent:O,zone:this};try{t.type==x&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==b&&t.state!==S&&(t.type==D||t.data&&t.data.isPeriodic?r&&t._transitionTo(T,k):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(b,k,b))),O=O.parent,A=o}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);e=e.parent}}t._transitionTo(w,b);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(n){throw t._transitionTo(S,w,b),this._zoneDelegate.handleError(this,n),n}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==w&&t._transitionTo(T,w),t}scheduleMicroTask(t,e,n,r){return this.scheduleTask(new u(C,t,e,n,r,void 0))}scheduleMacroTask(t,e,n,r,o){return this.scheduleTask(new u(x,t,e,n,r,o))}scheduleEventTask(t,e,n,r,o){return this.scheduleTask(new u(D,t,e,n,r,o))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||y).name+"; Execution: "+this.name+")");t._transitionTo(E,T,k);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(S,E),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(b,E),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let r=0;rt.hasTask(n,r),onScheduleTask:(t,e,n,r)=>t.scheduleTask(n,r),onInvokeTask:(t,e,n,r,o,i)=>t.invokeTask(n,r,o,i),onCancelTask:(t,e,n,r)=>t.cancelTask(n,r)};class l{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask;(r||e&&e._hasTaskZS)&&(this._hasTaskZS=r?n:c,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e),n||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=C)throw new Error("Task is missing scheduleFn.");v(e)}return n}invokeTask(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(n){this.handleError(t,n)}}_updateTaskCount(t,e){const n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}class u{constructor(e,n,r,o,i,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=a,!r)throw new Error("callback is not defined");this.callback=r;const s=this;this.invoke=e===D&&o&&o.useG?u.invokeTask:function(){return u.invokeTask.call(t,s,this,arguments)}}static invokeTask(t,e,n){t||(t=this),M++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==M&&_(),M--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(b,w)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=t,t==b&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const f=i("setTimeout"),h=i("Promise"),p=i("then");let d,m=[],g=!1;function v(e){if(0===M&&0===m.length)if(d||t[h]&&(d=t[h].resolve(0)),d){let t=d[p];t||(t=d.then),t.call(d,_)}else t[f](_,0);e&&m.push(e)}function _(){if(!g){for(g=!0;m.length;){const e=m;m=[];for(let n=0;nO,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:v,showUncaughtError:()=>!s[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,setNativePromise:t=>{t&&"function"==typeof t.resolve&&(d=t.resolve(0))},patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let O={parent:null,zone:new s(null,null)},A=null,M=0;function R(){}r("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(t,e,n)=>{const r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=n.symbol,a=[],s=i("Promise"),c=i("then");n.onUnhandledError=t=>{if(n.showUncaughtError()){const e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=()=>{for(;a.length;)for(;a.length;){const e=a.shift();try{e.zone.runGuarded(()=>{throw e})}catch(t){u(t)}}};const l=i("unhandledPromiseRejectionHandler");function u(t){n.onUnhandledError(t);try{const n=e[l];n&&"function"==typeof n&&n.call(this,t)}catch(r){}}function f(t){return t&&t.then}function h(t){return t}function p(t){return S.reject(t)}const d=i("state"),m=i("value"),g=i("finally"),v=i("parentPromiseValue"),_=i("parentPromiseState");function y(t,e){return n=>{try{w(t,e,n)}catch(r){w(t,!1,r)}}}const b=i("currentTaskTrace");function w(t,r,i){const s=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}}();if(t===i)throw new TypeError("Promise resolved with itself");if(null===t[d]){let u=null;try{"object"!=typeof i&&"function"!=typeof i||(u=i&&i.then)}catch(l){return s(()=>{w(t,!1,l)})(),t}if(!1!==r&&i instanceof S&&i.hasOwnProperty(d)&&i.hasOwnProperty(m)&&null!==i[d])k(i),w(t,i[d],i[m]);else if(!1!==r&&"function"==typeof u)try{u.call(i,s(y(t,r)),s(y(t,!1)))}catch(l){s(()=>{w(t,!1,l)})()}else{t[d]=r;const s=t[m];if(t[m]=i,t[g]===g&&!0===r&&(t[d]=t[_],t[m]=t[v]),!1===r&&i instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;t&&o(i,b,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e{try{const r=t[m],o=!!n&&g===n[g];o&&(n[v]=r,n[_]=i);const s=e.run(a,void 0,o&&a!==p&&a!==h?[]:[r]);w(n,!0,s)}catch(r){w(n,!1,r)}},n)}class S{constructor(t){const e=this;if(!(e instanceof S))throw new Error("Must be an instanceof Promise.");e[d]=null,e[m]=[];try{t&&t(y(e,!0),y(e,!1))}catch(n){w(e,!1,n)}}static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return w(new this(null),!0,t)}static reject(t){return w(new this(null),!1,t)}static race(t){let e,n,r=new this((t,r)=>{e=t,n=r});function o(t){e(t)}function i(t){n(t)}for(let a of t)f(a)||(a=this.resolve(a)),a.then(o,i);return r}static all(t){return S.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof S?this:S).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,r,o=new this((t,e)=>{n=t,r=e}),i=2,a=0;const s=[];for(let l of t){f(l)||(l=this.resolve(l));const t=a;try{l.then(r=>{s[t]=e?e.thenCallback(r):r,i--,0===i&&n(s)},o=>{e?(s[t]=e.errorCallback(o),i--,0===i&&n(s)):r(o)})}catch(c){r(c)}i++,a++}return i-=2,0===i&&n(s),o}get[Symbol.toStringTag](){return"Promise"}then(t,n){const r=new this.constructor(null),o=e.current;return null==this[d]?this[m].push(o,r,t,n):E(this,o,r,t,n),r}catch(t){return this.then(null,t)}finally(t){const n=new this.constructor(null);n[g]=g;const r=e.current;return null==this[d]?this[m].push(r,n,t,t):E(this,r,n,t,t),n}}S.resolve=S.resolve,S.reject=S.reject,S.race=S.race,S.all=S.all;const C=t[s]=t.Promise,x=e.__symbol__("ZoneAwarePromise");let D=r(t,"Promise");D&&!D.configurable||(D&&delete D.writable,D&&delete D.value,D||(D={configurable:!0,enumerable:!0}),D.get=function(){return t[x]?t[x]:t[s]},D.set=function(e){e===S?t[x]=e:(t[s]=e,e.prototype[c]||P(e),n.setNativePromise(e))},o(t,"Promise",D)),t.Promise=S;const N=i("thenPatched");function P(t){const e=t.prototype,n=r(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const o=e.then;e[c]=o,t.prototype.then=function(t,e){return new S((t,e)=>{o.call(this,t,e)}).then(t,e)},t[N]=!0}if(n.patchThen=P,C){P(C);const e=t.fetch;"function"==typeof e&&(t[n.symbol("fetch")]=e,t.fetch=(O=e,function(){let t=O.apply(this,arguments);if(t instanceof S)return t;let e=t.constructor;return e[N]||P(e),t}))}var O;return Promise[e.__symbol__("uncaughtPromiseErrors")]=a,S});const t=Object.getOwnPropertyDescriptor,e=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),s=Zone.__symbol__("");function c(t,e){return Zone.current.wrap(t,e)}function l(t,e,n,r,o){return Zone.current.scheduleMacroTask(t,e,n,r,o)}const u=Zone.__symbol__,f="undefined"!=typeof window,h=f?window:void 0,p=f&&h||"object"==typeof self&&self||global,d=[null];function m(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=c(t[n],e+"_"+n));return t}function g(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const v="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,_=!("nw"in p)&&void 0!==p.process&&"[object process]"==={}.toString.call(p.process),y=!_&&!v&&!(!f||!h.HTMLElement),b=void 0!==p.process&&"[object process]"==={}.toString.call(p.process)&&!v&&!(!f||!h.HTMLElement),w={},T=function(t){if(!(t=t||p.event))return;let e=w[t.type];e||(e=w[t.type]=u("ON_PROPERTY"+t.type));const n=this||t.target||p,r=n[e];let o;if(y&&n===h&&"error"===t.type){const e=t;o=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===o&&t.preventDefault()}else o=r&&r.apply(this,arguments),null==o||o||t.preventDefault();return o};function k(n,r,o){let i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const a=u("on"+r+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete i.writable,delete i.value;const s=i.get,c=i.set,l=r.substr(2);let f=w[l];f||(f=w[l]=u("ON_PROPERTY"+l)),i.set=function(t){let e=this;e||n!==p||(e=p),e&&(e[f]&&e.removeEventListener(l,T),c&&c.apply(e,d),"function"==typeof t?(e[f]=t,e.addEventListener(l,T,!1)):e[f]=null)},i.get=function(){let t=this;if(t||n!==p||(t=p),!t)return null;const e=t[f];if(e)return e;if(s){let e=s&&s.call(this);if(e)return i.set.call(this,e),"function"==typeof t.removeAttribute&&t.removeAttribute(r),e}return null},e(n,r,i),n[a]=!0}function E(t,e,n){if(e)for(let r=0;rfunction(e,r){const i=n(e,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?l(i.name,r[i.cbIdx],i,o):t.apply(e,r)})}function N(t,e){t[u("OriginalDelegate")]=e}let P=!1,O=!1;function A(){try{const t=h.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}function M(){if(P)return O;P=!0;try{const t=h.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(O=!0)}catch(t){}return O}Zone.__load_patch("toString",t=>{const e=Function.prototype.toString,n=u("OriginalDelegate"),r=u("Promise"),o=u("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=t[r];if(n)return e.call(n)}if(this===Error){const n=t[o];if(n)return e.call(n)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let R=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(at){R=!1}const L={useG:!0},Z={},z={},j=new RegExp("^"+s+"(\\w+)(true|false)$"),F=u("propagationStopped");function I(t,e,r){const o=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",c=r&&r.rmAll||"removeAllListeners",l=u(o),f="."+o+":",h=function(t,e,n){if(t.isRemoved)return;const r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=t=>r.handleEvent(t),t.originalDelegate=r),t.invoke(t,e,[n]);const o=t.options;o&&"object"==typeof o&&o.once&&e[i].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)},p=function(e){if(!(e=e||t.event))return;const n=this||e.target||t,r=n[Z[e.type].false];if(r)if(1===r.length)h(r[0],n,e);else{const t=r.slice();for(let r=0;rfunction(e,n){e[F]=!0,t&&t.apply(e,n)})}function B(t,e,n,r,o){const i=Zone.__symbol__(r);if(e[i])return;const a=e[i]=e[r];e[r]=function(i,s,c){return s&&s.prototype&&o.forEach((function(e){const o=`${n}.${r}::`+e,i=s.prototype;if(i.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(i,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,o),t._redefineProperty(s.prototype,e,n)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))})),a.call(e,i,s,c)},t.attachOriginToPatched(e[r],a)}const q=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],G=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],V=["bounce","finish","start"],K=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],X=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Y=["close","error","open","message"],J=["error","message"],Q=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],q,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function tt(t,e,n){if(!n||0===n.length)return e;const r=n.filter(e=>e.target===t);if(!r||0===r.length)return e;const o=r[0].ignoreProperties;return e.filter(t=>-1===o.indexOf(t))}function et(t,e,n,r){t&&E(t,tt(t,e,n),r)}function nt(t,e){if(_&&!b)return;if(Zone[t.symbol("patchEvents")])return;const r="undefined"!=typeof WebSocket,o=e.__Zone_ignore_on_properties;if(y){const t=window,e=A?[{target:t,ignoreProperties:["error"]}]:[];et(t,Q.concat(["messageerror"]),o?o.concat(e):o,n(t)),et(Document.prototype,Q,o),void 0!==t.SVGElement&&et(t.SVGElement.prototype,Q,o),et(Element.prototype,Q,o),et(HTMLElement.prototype,Q,o),et(HTMLMediaElement.prototype,U,o),et(HTMLFrameSetElement.prototype,q.concat($),o),et(HTMLBodyElement.prototype,q.concat($),o),et(HTMLFrameElement.prototype,G,o),et(HTMLIFrameElement.prototype,G,o);const r=t.HTMLMarqueeElement;r&&et(r.prototype,V,o);const i=t.Worker;i&&et(i.prototype,J,o)}const i=e.XMLHttpRequest;i&&et(i.prototype,K,o);const a=e.XMLHttpRequestEventTarget;a&&et(a&&a.prototype,K,o),"undefined"!=typeof IDBIndex&&(et(IDBIndex.prototype,X,o),et(IDBRequest.prototype,X,o),et(IDBOpenDBRequest.prototype,X,o),et(IDBDatabase.prototype,X,o),et(IDBTransaction.prototype,X,o),et(IDBCursor.prototype,X,o)),r&&et(WebSocket.prototype,Y,o)}Zone.__load_patch("util",(n,i,a)=>{a.patchOnProperties=E,a.patchMethod=x,a.bindArguments=m,a.patchMacroTask=D;const l=i.__symbol__("BLACK_LISTED_EVENTS"),u=i.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(i[l]=i[u]=n[l]),a.patchEventPrototype=W,a.patchEventTarget=I,a.isIEOrEdge=M,a.ObjectDefineProperty=e,a.ObjectGetOwnPropertyDescriptor=t,a.ObjectCreate=r,a.ArraySlice=o,a.patchClass=C,a.wrapWithCurrentZone=c,a.filterProperties=tt,a.attachOriginToPatched=N,a._redefineProperty=Object.defineProperty,a.patchCallbacks=B,a.getGlobalObjects=()=>({globalSources:z,zoneSymbolEventNames:Z,eventNames:Q,isBrowser:y,isMix:b,isNode:_,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:s,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const rt=u("zoneTask");function ot(t,e,n,r){let o=null,i=null;n+=r;const a={};function s(e){const n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[rt]=null))}},n.handleId=o.apply(t,n.args),e}function c(t){return i(t.data.handleId)}o=x(t,e+=r,n=>function(o,i){if("function"==typeof i[0]){const t=l(e,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},s,c);if(!t)return t;const n=t.data.handleId;return"number"==typeof n?a[n]=t:n&&(n[rt]=t),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(t.ref=n.ref.bind(n),t.unref=n.unref.bind(n)),"number"==typeof n||n?n:t}return n.apply(t,i)}),i=x(t,n,e=>function(n,r){const o=r[0];let i;"number"==typeof o?i=a[o]:(i=o&&o[rt],i||(i=o)),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof o?delete a[o]:o&&(o[rt]=null),i.zone.cancelTask(i)):e.apply(t,r)})}function it(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:o,FALSE_STR:i,ZONE_SYMBOL_PREFIX:a}=e.getGlobalObjects();for(let c=0;c{const e=t[Zone.__symbol__("legacyPatch")];e&&e()}),Zone.__load_patch("timers",t=>{ot(t,"set","clear","Timeout"),ot(t,"set","clear","Interval"),ot(t,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{ot(t,"request","cancel","AnimationFrame"),ot(t,"mozRequest","mozCancel","AnimationFrame"),ot(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,e)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(r,i){return e.current.run(n,t,i,o)})}),Zone.__load_patch("EventTarget",(t,e,n)=>{!function(t,e){e.patchEventPrototype(t,e)}(t,n),it(t,n);const r=t.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(t,[r.prototype]),C("MutationObserver"),C("WebKitMutationObserver"),C("IntersectionObserver"),C("FileReader")}),Zone.__load_patch("on_property",(t,e,n)=>{nt(n,t)}),Zone.__load_patch("customElements",(t,e,n)=>{!function(t,e){const{isBrowser:n,isMix:r}=e.getGlobalObjects();(n||r)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)}),Zone.__load_patch("XHR",(t,e)=>{!function(t){const h=t.XMLHttpRequest;if(!h)return;const p=h.prototype;let d=p[i],m=p[a];if(!d){const e=t.XMLHttpRequestEventTarget;if(e){const t=e.prototype;d=t[i],m=t[a]}}function g(t){const r=t.data,c=r.target;c[s]=!1,c[f]=!1;const l=c[o];d||(d=c[i],m=c[a]),l&&m.call(c,"readystatechange",l);const u=c[o]=()=>{if(c.readyState===c.DONE)if(!r.aborted&&c[s]&&"scheduled"===t.state){const n=c[e.__symbol__("loadfalse")];if(n&&n.length>0){const o=t.invoke;t.invoke=function(){const n=c[e.__symbol__("loadfalse")];for(let e=0;efunction(t,e){return t[r]=0==e[2],t[c]=e[1],y.apply(t,e)}),b=u("fetchTaskAborting"),w=u("fetchTaskScheduling"),T=x(p,"send",()=>function(t,n){if(!0===e.current[w])return T.apply(t,n);if(t[r])return T.apply(t,n);{const e={target:t,url:t[c],isPeriodic:!1,args:n,aborted:!1},r=l("XMLHttpRequest.send",v,e,g,_);t&&!0===t[f]&&!e.aborted&&"scheduled"===r.state&&r.invoke()}}),k=x(p,"abort",()=>function(t,r){const o=t[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===e.current[b])return k.apply(t,r)})}(t);const n=u("xhrTask"),r=u("xhrSync"),o=u("xhrListener"),s=u("xhrScheduled"),c=u("xhrURL"),f=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,n){const r=e.constructor.name;for(let o=0;o{const e=function(){return t.apply(this,m(arguments,r+"."+i))};return N(e,t),e})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,e)=>{function n(e){return function(n){H(t,e).forEach(r=>{const o=t.PromiseRejectionEvent;if(o){const t=new o(e,{promise:n.promise,reason:n.rejection});r.invoke(t)}})}}t.PromiseRejectionEvent&&(e[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(e,n,e,t):r)||(t.exports=o)},s1Zv:function(t,e,n){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()}},[[2,0]]]); \ No newline at end of file +(self.webpackChunkoslc_ui=self.webpackChunkoslc_ui||[]).push([[429],{3907:function(){(function(){"use strict";var t=window.Document.prototype.createElement,e=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,i=window.Document.prototype.append,o=window.DocumentFragment.prototype.prepend,a=window.DocumentFragment.prototype.append,s=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,l=window.Node.prototype.insertBefore,u=window.Node.prototype.removeChild,h=window.Node.prototype.replaceChild,f=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),d=window.Element.prototype.attachShadow,p=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),m=window.Element.prototype.getAttribute,g=window.Element.prototype.setAttribute,_=window.Element.prototype.removeAttribute,v=window.Element.prototype.getAttributeNS,y=window.Element.prototype.setAttributeNS,b=window.Element.prototype.removeAttributeNS,w=window.Element.prototype.insertAdjacentElement,T=window.Element.prototype.insertAdjacentHTML,k=window.Element.prototype.prepend,E=window.Element.prototype.append,S=window.Element.prototype.before,C=window.Element.prototype.after,x=window.Element.prototype.replaceWith,D=window.Element.prototype.remove,N=window.HTMLElement,P=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),O=window.HTMLElement.prototype.insertAdjacentElement,A=window.HTMLElement.prototype.insertAdjacentHTML,M=new Set;function R(t){var e=M.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(t){return M.add(t)});var L=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function Z(t){var e=t.isConnected;if(void 0!==e)return e;if(L(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function j(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e}function z(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function F(t,e,n){for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var i=r;e(i);var o=i.localName;if("link"===o&&"import"===i.getAttribute("rel")){if(r=i.import,void 0===n&&(n=new Set),r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)F(r,e,n);r=z(t,i);continue}if("template"===o){r=z(t,i);continue}if(i=i.__CE_shadowRoot)for(i=i.firstChild;i;i=i.nextSibling)F(i,e,n)}r=r.firstChild?r.firstChild:z(t,r)}}function I(){var t=!(null==at||!at.noDocumentConstructionObserver),e=!(null==at||!at.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=e,this.C=t}function H(t,e,n,r){var i=window.ShadyDom;if(t.shadyDomFastWalk&&i&&i.inUse){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll)for(t=i.nativeMethods.querySelectorAll.call(e,"*"),e=0;e{class e{constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=e.current;for(;t.parent;)t=t.parent;return t}static get current(){return A.zone}static get currentTask(){return M}static __load_patch(i,o,s=!1){if(P.hasOwnProperty(i)){if(!s&&a)throw Error("Already loaded patch: "+i)}else if(!t["__Zone_disable_"+i]){const a="Zone:"+i;n(a),P[i]=o(t,e,O),r(a,a)}}get parent(){return this._parent}get name(){return this._name}get(t){const e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}run(t,e,n,r){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{A=A.parent}}runGuarded(t,e=null,n,r){A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{A=A.parent}}runTask(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");if(t.state===w&&(t.type===N||t.type===D))return;const r=t.state!=E;r&&t._transitionTo(E,k),t.runCount++;const i=M;M=t,A={parent:A,zone:this};try{t.type==D&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{t.state!==w&&t.state!==C&&(t.type==N||t.data&&t.data.isPeriodic?r&&t._transitionTo(k,E):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(w,E,w))),A=A.parent,M=i}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);e=e.parent}}t._transitionTo(T,w);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(n){throw t._transitionTo(C,T,w),this._zoneDelegate.handleError(this,n),n}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==T&&t._transitionTo(k,T),t}scheduleMicroTask(t,e,n,r){return this.scheduleTask(new u(x,t,e,n,r,void 0))}scheduleMacroTask(t,e,n,r,i){return this.scheduleTask(new u(D,t,e,n,r,i))}scheduleEventTask(t,e,n,r,i){return this.scheduleTask(new u(N,t,e,n,r,i))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");t._transitionTo(S,k,E);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(C,S),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(w,S),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let r=0;rt.hasTask(n,r),onScheduleTask:(t,e,n,r)=>t.scheduleTask(n,r),onInvokeTask:(t,e,n,r,i,o)=>t.invokeTask(n,r,i,o),onCancelTask:(t,e,n,r)=>t.cancelTask(n,r)};class l{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask;(r||e&&e._hasTaskZS)&&(this._hasTaskZS=r?n:c,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,i):e.apply(n,r)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e),n||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=x)throw new Error("Task is missing scheduleFn.");v(e)}return n}invokeTask(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(n){this.handleError(t,n)}}_updateTaskCount(t,e){const n=this._taskCounts,r=n[t],i=n[t]=r+e;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}class u{constructor(e,n,r,i,o,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=i,this.scheduleFn=o,this.cancelFn=a,!r)throw new Error("callback is not defined");this.callback=r;const s=this;this.invoke=e===N&&i&&i.useG?u.invokeTask:function(){return u.invokeTask.call(t,s,this,arguments)}}static invokeTask(t,e,n){t||(t=this),R++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==R&&y(),R--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(w,T)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=t,t==w&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=o("setTimeout"),f=o("Promise"),d=o("then");let p,m=[],g=!1;function _(e){if(p||t[f]&&(p=t[f].resolve(0)),p){let t=p[d];t||(t=p.then),t.call(p,e)}else t[h](e,0)}function v(t){0===R&&0===m.length&&_(y),t&&m.push(t)}function y(){if(!g){for(g=!0;m.length;){const e=m;m=[];for(let n=0;nA,onUnhandledError:L,microtaskDrainDone:L,scheduleMicroTask:v,showUncaughtError:()=>!s[o("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:L,patchMethod:()=>L,bindArguments:()=>[],patchThen:()=>L,patchMacroTask:()=>L,patchEventPrototype:()=>L,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>L,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>L,wrapWithCurrentZone:()=>L,filterProperties:()=>[],attachOriginToPatched:()=>L,_redefineProperty:()=>L,patchCallbacks:()=>L,nativeScheduleMicroTask:_};let A={parent:null,zone:new s(null,null)},M=null,R=0;function L(){}r("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const t=Object.getOwnPropertyDescriptor,e=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,i=Array.prototype.slice,o="addEventListener",a="removeEventListener",s=Zone.__symbol__(o),c=Zone.__symbol__(a),l="true",u="false",h=Zone.__symbol__("");function f(t,e){return Zone.current.wrap(t,e)}function d(t,e,n,r,i){return Zone.current.scheduleMacroTask(t,e,n,r,i)}const p=Zone.__symbol__,m="undefined"!=typeof window,g=m?window:void 0,_=m&&g||"object"==typeof self&&self||global;function v(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=f(t[n],e+"_"+n));return t}function y(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,w=!("nw"in _)&&void 0!==_.process&&"[object process]"==={}.toString.call(_.process),T=!w&&!b&&!(!m||!g.HTMLElement),k=void 0!==_.process&&"[object process]"==={}.toString.call(_.process)&&!b&&!(!m||!g.HTMLElement),E={},S=function(t){if(!(t=t||_.event))return;let e=E[t.type];e||(e=E[t.type]=p("ON_PROPERTY"+t.type));const n=this||t.target||_,r=n[e];let i;if(T&&n===g&&"error"===t.type){const e=t;i=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&t.preventDefault()}else i=r&&r.apply(this,arguments),null!=i&&!i&&t.preventDefault();return i};function C(n,r,i){let o=t(n,r);if(!o&&i&&t(i,r)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const a=p("on"+r+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete o.writable,delete o.value;const s=o.get,c=o.set,l=r.slice(2);let u=E[l];u||(u=E[l]=p("ON_PROPERTY"+l)),o.set=function(t){let e=this;!e&&n===_&&(e=_),e&&("function"==typeof e[u]&&e.removeEventListener(l,S),c&&c.call(e,null),e[u]=t,"function"==typeof t&&e.addEventListener(l,S,!1))},o.get=function(){let t=this;if(!t&&n===_&&(t=_),!t)return null;const e=t[u];if(e)return e;if(s){let e=s.call(this);if(e)return o.set.call(this,e),"function"==typeof t.removeAttribute&&t.removeAttribute(r),e}return null},e(n,r,o),n[a]=!0}function x(t,e,n){if(e)for(let r=0;rfunction(e,r){const o=n(e,r);return o.cbIdx>=0&&"function"==typeof r[o.cbIdx]?d(o.name,r[o.cbIdx],o,i):t.apply(e,r)})}function A(t,e){t[p("OriginalDelegate")]=e}let M=!1,R=!1;function L(){if(M)return R;M=!0;try{const t=g.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(R=!0)}catch(t){}return R}Zone.__load_patch("ZoneAwarePromise",(t,e,n)=>{const r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,o=n.symbol,a=[],s=!0===t[o("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=o("Promise"),l=o("then");n.onUnhandledError=t=>{if(n.showUncaughtError()){const e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=()=>{for(;a.length;){const e=a.shift();try{e.zone.runGuarded(()=>{throw e.throwOriginal?e.rejection:e})}catch(t){h(t)}}};const u=o("unhandledPromiseRejectionHandler");function h(t){n.onUnhandledError(t);try{const n=e[u];"function"==typeof n&&n.call(this,t)}catch(r){}}function f(t){return t&&t.then}function d(t){return t}function p(t){return A.reject(t)}const m=o("state"),g=o("value"),_=o("finally"),v=o("parentPromiseValue"),y=o("parentPromiseState"),b=null,w=!1;function T(t,e){return n=>{try{S(t,e,n)}catch(r){S(t,!1,r)}}}const k=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},E=o("currentTaskTrace");function S(t,r,o){const c=k();if(t===o)throw new TypeError("Promise resolved with itself");if(t[m]===b){let h=null;try{("object"==typeof o||"function"==typeof o)&&(h=o&&o.then)}catch(l){return c(()=>{S(t,!1,l)})(),t}if(r!==w&&o instanceof A&&o.hasOwnProperty(m)&&o.hasOwnProperty(g)&&o[m]!==b)x(o),S(t,o[m],o[g]);else if(r!==w&&"function"==typeof h)try{h.call(o,c(T(t,r)),c(T(t,!1)))}catch(l){c(()=>{S(t,!1,l)})()}else{t[m]=r;const c=t[g];if(t[g]=o,t[_]===_&&!0===r&&(t[m]=t[y],t[g]=t[v]),r===w&&o instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;t&&i(o,E,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e{try{const r=t[g],i=!!n&&_===n[_];i&&(n[v]=r,n[y]=o);const s=e.run(a,void 0,i&&a!==p&&a!==d?[]:[r]);S(n,!0,s)}catch(r){S(n,!1,r)}},n)}const N=function(){},O=t.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return S(new this(null),!0,t)}static reject(t){return S(new this(null),w,t)}static any(t){if(!t||"function"!=typeof t[Symbol.iterator])return Promise.reject(new O([],"All promises were rejected"));const e=[];let n=0;try{for(let r of t)n++,e.push(A.resolve(r))}catch(o){return Promise.reject(new O([],"All promises were rejected"))}if(0===n)return Promise.reject(new O([],"All promises were rejected"));let r=!1;const i=[];return new A((t,o)=>{for(let a=0;a{r||(r=!0,t(e))},t=>{i.push(t),n--,0===n&&(r=!0,o(new O(i,"All promises were rejected")))})})}static race(t){let e,n,r=new this((t,r)=>{e=t,n=r});function i(t){e(t)}function o(t){n(t)}for(let a of t)f(a)||(a=this.resolve(a)),a.then(i,o);return r}static all(t){return A.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof A?this:A).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,r,i=new this((t,e)=>{n=t,r=e}),o=2,a=0;const s=[];for(let l of t){f(l)||(l=this.resolve(l));const t=a;try{l.then(r=>{s[t]=e?e.thenCallback(r):r,o--,0===o&&n(s)},i=>{e?(s[t]=e.errorCallback(i),o--,0===o&&n(s)):r(i)})}catch(c){r(c)}o++,a++}return o-=2,0===o&&n(s),i}constructor(t){const e=this;if(!(e instanceof A))throw new Error("Must be an instanceof Promise.");e[m]=b,e[g]=[];try{const n=k();t&&t(n(T(e,!0)),n(T(e,w)))}catch(n){S(e,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(t,n){var r;let i=null===(r=this.constructor)||void 0===r?void 0:r[Symbol.species];(!i||"function"!=typeof i)&&(i=this.constructor||A);const o=new i(N),a=e.current;return this[m]==b?this[g].push(a,o,t,n):D(this,a,o,t,n),o}catch(t){return this.then(null,t)}finally(t){var n;let r=null===(n=this.constructor)||void 0===n?void 0:n[Symbol.species];(!r||"function"!=typeof r)&&(r=A);const i=new r(N);i[_]=_;const o=e.current;return this[m]==b?this[g].push(o,i,t,t):D(this,o,i,t,t),i}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const M=t[c]=t.Promise;t.Promise=A;const R=o("thenPatched");function L(t){const e=t.prototype,n=r(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const i=e.then;e[l]=i,t.prototype.then=function(t,e){return new A((t,e)=>{i.call(this,t,e)}).then(t,e)},t[R]=!0}return n.patchThen=L,M&&(L(M),P(t,"fetch",t=>function(t){return function(e,n){let r=t.apply(e,n);if(r instanceof A)return r;let i=r.constructor;return i[R]||L(i),r}}(t))),Promise[e.__symbol__("uncaughtPromiseErrors")]=a,A}),Zone.__load_patch("toString",t=>{const e=Function.prototype.toString,n=p("OriginalDelegate"),r=p("Promise"),i=p("Error"),o=function(){if("function"==typeof this){const o=this[n];if(o)return"function"==typeof o?e.call(o):Object.prototype.toString.call(o);if(this===Promise){const n=t[r];if(n)return e.call(n)}if(this===Error){const n=t[i];if(n)return e.call(n)}}return e.call(this)};o[n]=e,Function.prototype.toString=o;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});let Z=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){Z=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(J){Z=!1}const j={useG:!0},z={},F={},I=new RegExp("^"+h+"(\\w+)(true|false)$"),H=p("propagationStopped");function W(t,e){const n=(e?e(t):t)+u,r=(e?e(t):t)+l,i=h+n,o=h+r;z[t]={},z[t][u]=i,z[t][l]=o}function B(t,e,r,i){const s=i&&i.add||o,c=i&&i.rm||a,f=i&&i.listeners||"eventListeners",d=i&&i.rmAll||"removeAllListeners",m=p(s),g="."+s+":",_=function(t,e,n){if(t.isRemoved)return;const r=t.callback;let i;"object"==typeof r&&r.handleEvent&&(t.callback=t=>r.handleEvent(t),t.originalDelegate=r);try{t.invoke(t,e,[n])}catch(a){i=a}const o=t.options;return o&&"object"==typeof o&&o.once&&e[c].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o),i};function v(n,r,i){if(!(r=r||t.event))return;const o=n||r.target||t,a=o[z[r.type][i?l:u]];if(a){const t=[];if(1===a.length){const e=_(a[0],o,r);e&&t.push(e)}else{const e=a.slice();for(let n=0;n{throw r})}}}const y=function(t){return v(this,t,!1)},b=function(t){return v(this,t,!0)};function T(e,r){if(!e)return!1;let i=!0;r&&void 0!==r.useG&&(i=r.useG);const o=r&&r.vh;let a=!0;r&&void 0!==r.chkDup&&(a=r.chkDup);let _=!1;r&&void 0!==r.rt&&(_=r.rt);let v=e;for(;v&&!v.hasOwnProperty(s);)v=n(v);if(!v&&e[s]&&(v=e),!v||v[m])return!1;const T=r&&r.eventNameToString,k={},E=v[m]=v[s],S=v[p(c)]=v[c],C=v[p(f)]=v[f],x=v[p(d)]=v[d];let D;function N(t,e){return!Z&&"object"==typeof t&&t?!!t.capture:Z&&e?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?Object.assign(Object.assign({},t),{passive:!0}):t:{passive:!0}:t}r&&r.prepend&&(D=v[p(r.prepend)]=v[r.prepend]);const P=i?function(t){if(!k.isExisting)return E.call(k.target,k.eventName,k.capture?b:y,k.options)}:function(t){return E.call(k.target,k.eventName,t.invoke,k.options)},O=i?function(t){if(!t.isRemoved){const e=z[t.eventName];let n;e&&(n=e[t.capture?l:u]);const r=n&&t.target[n];if(r)for(let i=0;ifunction(e,n){e[H]=!0,t&&t.apply(e,n)})}function G(t,e,n,r,i){const o=Zone.__symbol__(r);if(e[o])return;const a=e[o]=e[r];e[r]=function(o,s,c){return s&&s.prototype&&i.forEach(function(e){const i=`${n}.${r}::`+e,o=s.prototype;try{if(o.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(o,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,i),t._redefineProperty(s.prototype,e,n)):o[e]&&(o[e]=t.wrapWithCurrentZone(o[e],i))}else o[e]&&(o[e]=t.wrapWithCurrentZone(o[e],i))}catch(a){}}),a.call(e,o,s,c)},t.attachOriginToPatched(e[r],a)}function $(t,e,n){if(!n||0===n.length)return e;const r=n.filter(e=>e.target===t);if(!r||0===r.length)return e;const i=r[0].ignoreProperties;return e.filter(t=>-1===i.indexOf(t))}function V(t,e,n,r){t&&x(t,$(t,e,n),r)}function X(t){return Object.getOwnPropertyNames(t).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}Zone.__load_patch("util",(n,s,c)=>{const d=X(n);c.patchOnProperties=x,c.patchMethod=P,c.bindArguments=v,c.patchMacroTask=O;const p=s.__symbol__("BLACK_LISTED_EVENTS"),m=s.__symbol__("UNPATCHED_EVENTS");n[m]&&(n[p]=n[m]),n[p]&&(s[p]=s[m]=n[p]),c.patchEventPrototype=U,c.patchEventTarget=B,c.isIEOrEdge=L,c.ObjectDefineProperty=e,c.ObjectGetOwnPropertyDescriptor=t,c.ObjectCreate=r,c.ArraySlice=i,c.patchClass=N,c.wrapWithCurrentZone=f,c.filterProperties=$,c.attachOriginToPatched=A,c._redefineProperty=Object.defineProperty,c.patchCallbacks=G,c.getGlobalObjects=()=>({globalSources:F,zoneSymbolEventNames:z,eventNames:d,isBrowser:T,isMix:k,isNode:w,TRUE_STR:l,FALSE_STR:u,ZONE_SYMBOL_PREFIX:h,ADD_EVENT_LISTENER_STR:o,REMOVE_EVENT_LISTENER_STR:a})});const K=p("zoneTask");function Y(t,e,n,r){let i=null,o=null;n+=r;const a={};function s(e){const n=e.data;return n.args[0]=function(){return e.invoke.apply(this,arguments)},n.handleId=i.apply(t,n.args),e}function c(e){return o.call(t,e.data.handleId)}i=P(t,e+=r,n=>function(i,o){if("function"==typeof o[0]){const t={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?o[1]||0:void 0,args:o},n=o[0];o[0]=function(){try{return n.apply(this,arguments)}finally{t.isPeriodic||("number"==typeof t.handleId?delete a[t.handleId]:t.handleId&&(t.handleId[K]=null))}};const i=d(e,o[0],t,s,c);if(!i)return i;const l=i.data.handleId;return"number"==typeof l?a[l]=i:l&&(l[K]=i),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(i.ref=l.ref.bind(l),i.unref=l.unref.bind(l)),"number"==typeof l||l?l:i}return n.apply(t,o)}),o=P(t,n,e=>function(n,r){const i=r[0];let o;"number"==typeof i?o=a[i]:(o=i&&i[K],o||(o=i)),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[K]=null),o.zone.cancelTask(o)):e.apply(t,r)})}Zone.__load_patch("legacy",t=>{const e=t[Zone.__symbol__("legacyPatch")];e&&e()}),Zone.__load_patch("queueMicrotask",(t,e,n)=>{n.patchMethod(t,"queueMicrotask",t=>function(t,n){e.current.scheduleMicroTask("queueMicrotask",n[0])})}),Zone.__load_patch("timers",t=>{const e="set",n="clear";Y(t,e,n,"Timeout"),Y(t,e,n,"Interval"),Y(t,e,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Y(t,"request","cancel","AnimationFrame"),Y(t,"mozRequest","mozCancel","AnimationFrame"),Y(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,e)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(r,o){return e.current.run(n,t,o,i)})}),Zone.__load_patch("EventTarget",(t,e,n)=>{(function(t,e){e.patchEventPrototype(t,e)})(t,n),function(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:o,ZONE_SYMBOL_PREFIX:a}=e.getGlobalObjects();for(let c=0;c{N("MutationObserver"),N("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,e,n)=>{N("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,e,n)=>{N("FileReader")}),Zone.__load_patch("on_property",(t,e,r)=>{!function(t,e){if(w&&!k||Zone[t.symbol("patchEvents")])return;const r=e.__Zone_ignore_on_properties;let i=[];if(T){const e=window;i=i.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const o=function(){try{const t=g.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:e,ignoreProperties:["error"]}]:[];V(e,X(e),r&&r.concat(o),n(e))}i=i.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let n=0;n{!function(t,e){const{isBrowser:n,isMix:r}=e.getGlobalObjects();(n||r)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)}),Zone.__load_patch("XHR",(t,e)=>{!function(t){const u=t.XMLHttpRequest;if(!u)return;const h=u.prototype;let f=h[s],m=h[c];if(!f){const e=t.XMLHttpRequestEventTarget;if(e){const t=e.prototype;f=t[s],m=t[c]}}const g="readystatechange",_="scheduled";function v(t){const r=t.data,a=r.target;a[o]=!1,a[l]=!1;const u=a[i];f||(f=a[s],m=a[c]),u&&m.call(a,g,u);const h=a[i]=()=>{if(a.readyState===a.DONE)if(!r.aborted&&a[o]&&t.state===_){const n=a[e.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){const i=t.invoke;t.invoke=function(){const n=a[e.__symbol__("loadfalse")];for(let e=0;efunction(t,e){return t[r]=0==e[2],t[a]=e[1],w.apply(t,e)}),T=p("fetchTaskAborting"),k=p("fetchTaskScheduling"),E=P(h,"send",()=>function(t,n){if(!0===e.current[k]||t[r])return E.apply(t,n);{const e={target:t,url:t[a],isPeriodic:!1,args:n,aborted:!1},r=d("XMLHttpRequest.send",y,e,v,b);t&&!0===t[l]&&!e.aborted&&r.state===_&&r.invoke()}}),S=P(h,"abort",()=>function(t,r){const i=function(t){return t[n]}(t);if(i&&"string"==typeof i.type){if(null==i.cancelFn||i.data&&i.data.aborted)return;i.zone.cancelTask(i)}else if(!0===e.current[T])return S.apply(t,r)})}(t);const n=p("xhrTask"),r=p("xhrSync"),i=p("xhrListener"),o=p("xhrScheduled"),a=p("xhrURL"),l=p("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,n){const r=e.constructor.name;for(let i=0;i{const e=function(){return t.apply(this,v(arguments,r+"."+o))};return A(e,t),e})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,e)=>{function n(e){return function(n){q(t,e).forEach(r=>{const i=t.PromiseRejectionEvent;if(i){const t=new i(e,{promise:n.promise,reason:n.rejection});r.invoke(t)}})}}t.PromiseRejectionEvent&&(e[p("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[p("rejectionHandledHandler")]=n("rejectionhandled"))})},7834:function(t,e,n){"use strict";const r="undefined"!=typeof globalThis&&globalThis,i="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,a=r||"undefined"!=typeof global&&global||i||o,s=function(t,...e){if(s.translate){const n=s.translate(t,e);t=n[0],e=n[1]}let n=c(t[0],t.raw[0]);for(let r=1;r1||n<0||n>1?f:function(i){function o(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&t<1&&(s=(e-1)/(t-1)),1+s*(i-1)}for(var c=0,l=1;c=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function s(t){_||(_=document.createElement("div").style),_.animationTimingFunction="",_.animationTimingFunction=t;var e=_.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function c(t){if("linear"==t)return f;var e=y.exec(t);if(e)return o.apply(this,e.slice(1).map(Number));var n=b.exec(t);if(n)return a(Number(n[1]),m);var r=w.exec(t);return r?a(Number(r[1]),{start:d,middle:p,end:m}[r[2]]):g[t]||f}function l(t,e,n){if(null==e)return T;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?E:S}var u="backwards|forwards|both|none".split("|"),h="reverse|alternate|alternate-reverse".split("|"),f=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=c(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var d=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,d),"step-middle":a(1,p),"step-end":a(1,m)},_=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",y=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),b=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,T=0,k=1,E=2,S=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return i(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=l(t,e,n),i=function(t,e,n,r,i){switch(r){case k:return"backwards"==e||"both"==e?0:null;case S:return n-i;case E:return"forwards"==e||"both"==e?t:null;case T:return null}}(t,n.fill,e,r,n.delay);if(null===i)return null;var o=function(t,e,n,r,i){var o=i;return 0===t?e!==k&&(o+=n):o+=r/t,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(t,e,n,r,i,o){var a=t===1/0?e%1:t%1;return 0!==a||n!==E||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(t,e,n,r){return t===E&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),c=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(c)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=c}(n={}),function(t,e){function n(t,e){return t in c&&c[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var i=o[t];if(i)for(var s in a.style[t]=e,i){var c=i[s];r[c]=n(c,a.style[c])}else r[t]=n(t,e)}}function i(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?t.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n}),o=!0,a=-1/0,s=0;s=0&&t.offset<=1}),o||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,i=1;i=t.applyFrom&&rthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)r.prototype[c]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(c,c in s);for(var l in document.documentElement.style)l in o||l in a||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,i,o){(function(t){if(!t._webAnimationsPatchedStyle){var e=new r(t);try{n(t,"style",{get:function(){return e}})}catch(o){t.style._set=function(e,n){t.style[e]=n},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}})(e),e.style._set(t.propertyName(i),o)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(r),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(r),function(t,e){function n(t,e,r){if("number"==typeof t&&"number"==typeof e)return t*(1-r)+e*r;if("boolean"==typeof t&&"boolean"==typeof e)return r<.5?t:e;if(t.length==e.length){for(var i=[],o=0;o0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(n,r),function(t,e,n){function r(t){var e=l;l=[],t1e-4?(g=.5/Math.sqrt(v),_=[(f[2][1]-f[1][2])*g,(f[0][2]-f[2][0])*g,(f[1][0]-f[0][1])*g,.25/g]):f[0][0]>f[1][1]&&f[0][0]>f[2][2]?_=[.25*(g=2*Math.sqrt(1+f[0][0]-f[1][1]-f[2][2])),(f[0][1]+f[1][0])/g,(f[0][2]+f[2][0])/g,(f[2][1]-f[1][2])/g]:f[1][1]>f[2][2]?(g=2*Math.sqrt(1+f[1][1]-f[0][0]-f[2][2]),_=[(f[0][1]+f[1][0])/g,.25*g,(f[1][2]+f[2][1])/g,(f[0][2]-f[2][0])/g]):(g=2*Math.sqrt(1+f[2][2]-f[0][0]-f[1][1]),_=[(f[0][2]+f[2][0])/g,(f[1][2]+f[2][1])/g,.25*g,(f[1][0]-f[0][1])/g]),[h,d,p,_,l]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[s(a(t))]},t.transformListToMatrix=a}(r),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,i){for(var o=[],a=[],s=[],c=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,i.length),l=0;l=1?e:"visible"}]},["visibility"])}(r),function(t,e){function n(t){t=t.trim(),o.fillStyle="#000",o.fillStyle=t;var e=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=t,e==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(Math.max(0,Math.min(255,e[n]/e[3])));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(r),function(t,e){function n(t){function e(){var e=a.exec(t);o=e?e[0]:void 0}function n(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=i();return")"!==o?NaN:(e(),t)}function r(){for(var t=n();"*"===o||"/"===o;){var r=o;e();var i=n();"*"===r?t*=i:t/=i}return t}function i(){for(var t=r();"+"===o||"-"===o;){var n=o;e();var i=r();"+"===n?t+=i:t-=i}return t}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,function(t){return r[t]=null,"U"+t});for(var i="U("+t.source+")",o=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),c=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=c,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,c),t.parseAngle=l,t.mergeDimensions=o;var u=t.consumeParenthesised.bind(null,s),h=t.consumeRepeated.bind(void 0,u,/^/),f=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=f;var d=t.mergeNestedRepeated.bind(void 0,i," "),p=t.mergeNestedRepeated.bind(void 0,d,",");t.mergeNonNegativeSizePair=d,t.addPropertiesHandler(function(t){var e=f(t);if(e&&""==e[1])return e[0]},p,["background-size"]),t.addPropertiesHandler(c,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(c,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var i=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var i=r?e:n;if("auto"==i)return"auto";var o=t.mergeDimensions(i,i);return o[2](o[0])}]:t.mergeDimensions(e,n)},", ");t.parseBox=r,t.mergeBoxes=i,t.addPropertiesHandler(r,i,["clip"])}(r),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===l?e[n++]:t})}}function r(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(e);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=f[a];if(!s)return;var c=n[2].split(","),l=s[0];if(l.length900||e%100!=0))return e},function(t,n){return[t,n,e]},["font-weight"])}(r),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var i=t.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map(function(t){return"object"==typeof t?t:o[t]})}}}function i(r){var i=t.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],c=0,l=!1,u=0;u=0&&this._cancelHandlers.splice(n,1)}else c.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==i}catch(a){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,n)}}}(n)}},function(t){t(t.s=7834)}]); \ No newline at end of file diff --git a/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es5.js b/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es5.js index 06977907..5894e738 100644 --- a/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es5.js +++ b/src/server-cm/src/main/webapp/static/dist/oslc-ui/polyfills-es5.js @@ -1 +1 @@ -function _createForOfIteratorHelper(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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 i,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n")})),l="$0"==="a".replace(/./,"$0"),f=i("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var d=i(t),v=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),g=v&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!v||!g||"replace"===t&&(!u||!l||h)||"split"===t&&!p){var m=/./[d],y=n(d,""[t],(function(t,e,n,r,o){return e.exec===a?v&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[1];r(String.prototype,t,y[0]),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}f&&s(RegExp.prototype[d],"sham",!0)}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,n){var r=n("HAuM"),o=n("ewvW"),i=n("RK3t"),a=n("UMSQ"),s=function(t){return function(e,n,s,c){r(n);var u=o(e),l=i(u),f=a(u.length),h=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(h in l){c=l[h],h+=p;break}if(h+=p,t?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:f>h;h+=p)h in l&&(c=n(c,l[h],h,u));return c}};t.exports={left:s(!1),right:s(!0)}},"2A+d":function(t,e,n){var r=n("I+eb"),o=n("/GqU"),i=n("UMSQ");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s1?arguments[1]:void 0)}})},"2oRo":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3I1R":function(t,e,n){n("dG/n")("hasInstance")},"3KgV":function(t,e,n){var r=n("I+eb"),o=n("uy83"),i=n("0Dky"),a=n("hh1v"),s=n("8YOa").onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(t){return c&&a(t)?c(s(t)):t}})},"3bBZ":function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("4mDm"),a=n("kRJp"),s=n("tiKp"),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var f in o){var h=r[f],p=h&&h.prototype;if(p){if(p[c]!==l)try{a(p,c,l)}catch(v){p[c]=l}if(p[u]||a(p,u,f),o[f])for(var d in i)if(p[d]!==i[d])try{a(p,d,i[d])}catch(v){p[d]=i[d]}}}},"4Brf":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("2oRo"),a=n("UTVS"),s=n("hh1v"),c=n("m/L8").f,u=n("6JNq"),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},h=function t(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),n=this instanceof t?new l(e):void 0===e?l():l(e);return""===e&&(f[n]=!0),n};u(h,l);var p=h.prototype=l.prototype;p.constructor=h;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(f,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},"4WOD":function(t,e,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),s=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"4Xet":function(t,e,n){var r=n("0Dky");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"4h0Y":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},"4l63":function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({global:!0,forced:parseInt!=o},{parseInt:o})},"4mDm":function(t,e,n){"use strict";var r=n("/GqU"),o=n("RNIs"),i=n("P4y1"),a=n("afO8"),s=n("fdAy"),c=a.set,u=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4syw":function(t,e,n){var r=n("busE");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"5D5o":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"5DmW":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("/GqU"),a=n("Bs8V").f,s=n("g6v/"),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"5Tg+":function(t,e,n){var r=n("tiKp");e.f=r},"5Yz+":function(t,e,n){"use strict";var r=n("/GqU"),o=n("ppGB"),i=n("UMSQ"),a=n("pkCn"),s=n("rkAj"),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0});t.exports=!l&&f&&h?u:function(t){if(l)return u.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},"5mdu":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,n){"use strict";var r,o,i,a,s=n("I+eb"),c=n("xDBR"),u=n("2oRo"),l=n("0GbY"),f=n("/qmn"),h=n("busE"),p=n("4syw"),d=n("1E5z"),v=n("JiZb"),g=n("hh1v"),m=n("HAuM"),y=n("GarU"),b=n("xrYK"),_=n("iSVu"),w=n("ImZN"),k=n("HH4o"),E=n("SEBh"),x=n("LPSS").set,T=n("tXUg"),S=n("zfnd"),O=n("RN6c"),N=n("8GlL"),D=n("5mdu"),I=n("afO8"),P=n("lMq5"),C=n("tiKp"),M=n("LQDL"),R=C("species"),A="Promise",j=I.get,L=I.set,F=I.getterFor(A),z=f,W=u.TypeError,H=u.document,Z=u.process,U=l("fetch"),B=N.f,G=B,K="process"==b(Z),V=!!(H&&H.createEvent&&u.dispatchEvent),q=P(A,(function(){if(_(z)===String(z)){if(66===M)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!z.prototype.finally)return!0;if(M>=51&&/native code/.test(z))return!1;var t=z.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[R]=e,!(t.then((function(){}))instanceof e)})),Y=q||!k((function(t){z.all(t).catch((function(){}))})),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;T((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var s,c,u,l=r[a++],f=i?l.ok:l.fail,h=l.resolve,p=l.reject,d=l.domain;try{f?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===f?s=o:(d&&d.enter(),s=f(o),d&&(d.exit(),u=!0)),s===l.promise?p(W("Promise-chain cycle")):(c=X(s))?c.call(s,h,p):h(s)):p(o)}catch(v){d&&!u&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&$(t,e)}))}},Q=function(t,e,n){var r,o;V?((r=H.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(o=u["on"+t])?o(r):"unhandledrejection"===t&&O("Unhandled promise rejection",n)},$=function(t,e){x.call(u,(function(){var n,r=e.value;if(tt(e)&&(n=D((function(){K?Z.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)})),e.rejection=K||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){x.call(u,(function(){K?Z.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},ot=function t(e,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(e===r)throw W("Promise can't be resolved itself");var i=X(r);i?T((function(){var o={done:!1};try{i.call(r,nt(t,e,o,n),nt(rt,e,o,n))}catch(a){rt(e,o,a,n)}})):(n.value=r,n.state=1,J(e,n,!1))}catch(a){rt(e,{done:!1},a,n)}}};q&&(z=function(t){y(this,z,A),m(t),r.call(this);var e=j(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(n){rt(this,e,n)}},(r=function(t){L(this,{type:A,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(z.prototype,{then:function(t,e){var n=F(this),r=B(E(this,z));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=K?Z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=j(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},N.f=B=function(t){return t===z||t===i?new o(t):G(t)},c||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",(function(t,e){var n=this;return new z((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return S(z,U.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:q},{Promise:z}),d(z,A,!1,!0),v(A),i=l(A),s({target:A,stat:!0,forced:q},{reject:function(t){var e=B(this);return e.reject.call(void 0,t),e.promise}}),s({target:A,stat:!0,forced:c||q},{resolve:function(t){return S(c&&this===i?z:this,t)}}),s({target:A,stat:!0,forced:Y},{all:function(t){var e=this,n=B(e),r=n.resolve,o=n.reject,i=D((function(){var n=m(e.resolve),i=[],a=0,s=1;w(t,(function(t){var c=a++,u=!1;i.push(void 0),s++,n.call(e,t).then((function(t){u||(u=!0,i[c]=t,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=B(e),r=n.reject,o=D((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"5yqK":function(t,e){"document"in self&&(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e1||n<0||n>1?h:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*o}if(o>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&t<1&&(s=(e-1)/(t-1)),1+s*(o-1)}for(var c=0,u=1;c=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function s(t){m||(m=document.createElement("div").style),m.animationTimingFunction="",m.animationTimingFunction=t;var e=m.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function c(t){if("linear"==t)return h;var e=b.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=_.exec(t);if(n)return a(Number(n[1]),v);var r=w.exec(t);return r?a(Number(r[1]),{start:p,middle:d,end:v}[r[2]]):g[t]||h}function u(t,e,n){if(null==e)return k;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?x:T}var l="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=c(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,v=0,g={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":a(1,p),"step-middle":a(1,d),"step-end":a(1,v)},m=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,k=0,E=1,x=2,T=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=u(t,e,n),o=function(t,e,n,r,o){switch(r){case E:return"backwards"==e||"both"==e?0:null;case T:return n-o;case x:return"forwards"==e||"both"==e?t:null;case k:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==E&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),a=function(t,e,n,r,o,i){var a=t===1/0?e%1:t%1;return 0!==a||n!==x||0===r||0===o&&0!==i||(a=1),a}(i,n.iterationStart,r,n.iterations,o,n.duration),s=function(t,e,n,r){return t===x&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,i),c=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(c)},t.calculatePhase=u,t.normalizeEasing=s,t.parseEasingFunction=c}(n={}),function(t,e){function n(t,e){return t in c&&c[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var s in a.style[t]=e,o){var c=o[s];r[c]=n(c,a.style[c])}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),i=!0,a=-1/0,s=0;s=0&&t.offset<=1})),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o=t.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)r.prototype[u]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(u,u in c);for(var l in document.documentElement.style)l in a||l in s||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(r),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(r),function(t,e){t.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var o=[],i=0;i0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(n,r),function(t,e,n){function r(t){var e=u;u=[],t1e-4?(g=.5/Math.sqrt(y),m=[(h[2][1]-h[1][2])*g,(h[0][2]-h[2][0])*g,(h[1][0]-h[0][1])*g,.25/g]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?m=[.25*(g=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/g,(h[0][2]+h[2][0])/g,(h[2][1]-h[1][2])/g]:h[1][1]>h[2][2]?(g=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),m=[(h[0][1]+h[1][0])/g,.25*g,(h[1][2]+h[2][1])/g,(h[0][2]-h[2][0])/g]):(g=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),m=[(h[0][2]+h[2][0])/g,(h[1][2]+h[2][1])/g,.25*g,(h[1][0]-h[0][1])/g]),[f,p,d,m,u]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[s(a(t))]},t.transformListToMatrix=a}(r),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],a=[],s=[],c=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),u=0;u=1?e:"visible"}]}),["visibility"])}(r),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(r),function(t,e){function n(t){function e(){var e=a.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,(function(t){return r[t]=null,"U"+t}));for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),c=r.bind(null,new RegExp(a+"|%","g")),u=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=c,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,c),t.parseAngle=u,t.mergeDimensions=i;var l=t.consumeParenthesised.bind(null,s),f=t.consumeRepeated.bind(void 0,l,/^/),h=t.consumeRepeated.bind(void 0,f,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler((function(t){var e=h(t);if(e&&""==e[1])return e[0]}),d,["background-size"]),t.addPropertiesHandler(c,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(c,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)}),", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(r),function(t,e){function n(t){return function(e){var n=0;return t.map((function(t){return t===u?e[n++]:t}))}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var a=n[1],s=h[a];if(!s)return;var c=n[2].split(","),u=s[0];if(u.length900||e%100!=0))return e}),(function(t,n){return[t,n,e]}),["font-weight"])}(r),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var o=t.consumeRepeated(n,/^/,r);if(o&&""==o[1]){var a=o[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(t){return"object"==typeof t?t:i[t]}))}}}function o(r){var o=t.consumeRepeated(n,/^/,r);if(o){for(var a=o[0],s=[{"%":50},{"%":50}],c=0,u=!1,l=0;l=0&&this._cancelHandlers.splice(n,1)}else c.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(n)},"6hpn":function(t,e,n){n("Uydy"),n("eajv"),n("n/mU"),n("PqOI"),n("QNnp"),n("/5zm"),n("CsgD"),n("9mRW"),n("QFcT"),n("vAFs"),n("a5NK"),n("yiG3"),n("kNcU"),n("KvGi"),n("AmFO"),n("eJiR"),n("I9xj"),n("tl/u");var r=n("Qo9l");t.exports=r.Math},"7+kd":function(t,e,n){n("dG/n")("isConcatSpreadable")},"7+zs":function(t,e,n){var r=n("kRJp"),o=n("UesL"),i=n("tiKp")("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},"7sbD":function(t,e,n){n("qePV"),n("NbN+"),n("8AyJ"),n("i6QF"),n("kSko"),n("WDsR"),n("r/Vq"),n("5uH8"),n("w1rZ"),n("JevA"),n("toAj"),n("VC3L");var r=n("Qo9l");t.exports=r.Number},"8AyJ":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isFinite:n("4oU/")})},"8GlL":function(t,e,n){"use strict";var r=n("HAuM"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},"8YOa":function(t,e,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,s=n("kOOl"),c=n("uy83"),u=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(t){a(t,u,{value:{objectID:"O"+ ++l,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,u)){if(!f(t))return"F";if(!e)return"E";h(t)}return t[u].objectID},getWeakData:function(t,e){if(!i(t,u)){if(!f(t))return!0;if(!e)return!1;h(t)}return t[u].weakData},onFreeze:function(t){return c&&p.REQUIRED&&f(t)&&!i(t,u)&&h(t),t}};r[u]=!0},"90hW":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},"93I0":function(t,e,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"9LPj":function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("wE6v");r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"9N29":function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").right,i=n("pkCn"),a=n("rkAj"),s=i("reduceRight"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"9bJ7":function(t,e,n){"use strict";var r=n("I+eb"),o=n("ZUd8").codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},"9d/t":function(t,e,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},"9tb/":function(t,e,n){var r=n("I+eb"),o=n("I8vh"),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},A2ZE:function(t,e,n){var r=n("HAuM");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"AO7/":function(t,e,n){var r={};r[n("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(r)},AmFO:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("jrUv"),a=Math.abs,s=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(c/2)}})},BNMt:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("blink")},{blink:function(){return o(this,"blink","","")}})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],o=0;oc&&(u=u.slice(0,c)),t?l+u:u+l)}};t.exports={start:s(!1),end:s(!0)}},DPsx:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},DQNa:function(t,e,n){var r=n("busE"),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"}))},E5NM:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("big")},{big:function(){return o(this,"big","","")}})},E9XD:function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").left,i=n("pkCn"),a=n("rkAj"),s=i("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},ENF9:function(t,e,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),s=n("bWFh"),c=n("rKzb"),u=n("hh1v"),l=n("afO8").enforce,f=n("f5p1"),h=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,d=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=s("WeakMap",d,c);if(f&&h){r=c.getConstructor(d,"WeakMap",!0),a.REQUIRED=!0;var g=v.prototype,m=g.delete,y=g.has,b=g.get,_=g.set;i(g,{delete:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(u(t)&&!p(t)){var e=l(this);return e.frozen||(e.frozen=new r),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(u(t)&&!p(t)){var n=l(this);n.frozen||(n.frozen=new r),y.call(this,t)?_.call(this,t,e):n.frozen.set(t,e)}else _.call(this,t,e);return this}})}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EnZy:function(t,e,n){"use strict";var r=n("14Sl"),o=n("ROdP"),i=n("glrk"),a=n("HYAF"),s=n("SEBh"),c=n("iqWW"),u=n("UMSQ"),l=n("FMNM"),f=n("kmMV"),h=n("0Dky"),p=[].push,d=Math.min,v=!h((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var s,c,u,l=[],h=0,d=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=f.call(d,r))&&!((c=d.lastIndex)>h&&(l.push(r.slice(h,s.index)),s.length>1&&s.index=i));)d.lastIndex===s.index&&d.lastIndex++;return h===r.length?!u&&d.test("")||l.push(""):l.push(r.slice(h)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var f=i(t),h=String(this),p=s(f,RegExp),g=f.unicode,m=new p(v?f:"^(?:"+f.source+")",(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g")),y=void 0===o?4294967295:o>>>0;if(0===y)return[];if(0===h.length)return null===l(m,h)?[h]:[];for(var b=0,_=0,w=[];_1?arguments[1]:void 0)}},FF6l:function(t,e,n){"use strict";var r=n("ewvW"),o=n("I8vh"),i=n("UMSQ"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=i(n.length),c=o(t,s),u=o(e,s),l=arguments.length>2?arguments[2]:void 0,f=a((void 0===l?s:o(l,s))-u,s-c),h=1;for(u0;)u in n?n[c]=n[u]:delete n[c],c+=h,u+=h;return n}},FMNM:function(t,e,n){var r=n("xrYK"),o=n("kmMV");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},FZtP:function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("F8JR"),a=n("kRJp");for(var s in o){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(l){u.forEach=i}}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},GKVU:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},GRPF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},GXvd:function(t,e,n){n("dG/n")("species")},GarU:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},H0pb:function(t,e,n){n("ma9I"),n("07d7"),n("pNMO"),n("tjZM"),n("4Brf"),n("3I1R"),n("7+kd"),n("0oug"),n("KhsS"),n("jt2F"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("gbiT"),n("I9xj"),n("DEfu");var r=n("Qo9l");t.exports=r.Symbol},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HH4o:function(t,e,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(s){}return n}},HNyW:function(t,e,n){var r=n("NC/Y");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},HRxU:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("N+g0")})},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},Hd5f:function(t,e,n){var r=n("0Dky"),o=n("tiKp"),i=n("LQDL"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},HsHA:function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),s=n("zk60"),c=n("6JNq"),u=n("lMq5");t.exports=function(t,e){var n,l,f,h,p,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in e){if(h=e[l],f=t.noTargetGet?(p=o(n,l))&&p.value:n[l],!u(v?l:d+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;c(h,f)}(t.sham||f&&f.sham)&&i(h,"sham",!0),a(n,l,h,t)}}},I1Gw:function(t,e,n){n("dG/n")("split")},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},ImZN:function(t,e,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),s=n("NaFW"),c=n("m92n"),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,l,f){var h,p,d,v,g,m,y,b=a(e,n,l?2:1);if(f)h=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(o(p)){for(d=0,v=i(t.length);v>d;d++)if((g=l?b(r(y=t[d])[0],y[1]):b(t[d]))&&g instanceof u)return g;return new u(!1)}h=p.call(t)}for(m=h.next;!(y=m.call(h)).done;)if("object"==typeof(g=c(h,b,y.value,l))&&g&&g instanceof u)return g;return new u(!1)}).stop=function(t){return new u(!0,t)}},IxXR:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("strike")},{strike:function(){return o(this,"strike","","")}})},J30X:function(t,e,n){n("I+eb")({target:"Array",stat:!0},{isArray:n("6LWA")})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JTJg:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WjRb"),i=n("HYAF");r({target:"String",proto:!0,forced:!n("qxPZ")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},JevA:function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},JfAA:function(t,e,n){"use strict";var r=n("busE"),o=n("glrk"),i=n("0Dky"),a=n("rW0t"),s=RegExp.prototype,c=s.toString;(i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))||"toString"!=c.name)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in s)?a.call(t):n)}),{unsafe:!0})},JiZb:function(t,e,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),s=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&(0,o.f)(e,s,{configurable:!0,get:function(){return this}})}},KhsS:function(t,e,n){n("dG/n")("match")},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},Kxld:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{is:n("Ep9I")})},LKBx:function(t,e,n){"use strict";var r,o=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),s=n("WjRb"),c=n("HYAF"),u=n("qxPZ"),l=n("xDBR"),f="".startsWith,h=Math.min,p=u("startsWith");o({target:"String",proto:!0,forced:!(!l&&!p&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(t){var e=String(c(this));s(t);var n=a(h(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},LPSS:function(t,e,n){var r,o,i,a=n("2oRo"),s=n("0Dky"),c=n("xrYK"),u=n("A2ZE"),l=n("G+Rx"),f=n("zBJ4"),h=n("HNyW"),p=a.location,d=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},k=function(t){return function(){w(t)}},E=function(t){w(t.data)},x=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&v||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete _[t]},"process"==c(g)?r=function(t){g.nextTick(k(t))}:y&&y.now?r=function(t){y.now(k(t))}:m&&!h?(i=(o=new m).port2,o.port1.onmessage=E,r=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)?r="onreadystatechange"in f("script")?function(t){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),w(t)}}:function(t){setTimeout(k(t),0)}:(r=x,a.addEventListener("message",E,!1))),t.exports={set:d,clear:v}},LQDL:function(t,e,n){var r,o,i=n("2oRo"),a=n("NC/Y"),s=i.process,c=s&&s.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=r.length,c=0;s>c;)o.f(t,n=r[c++],e[n]);return t}},"N/DB":function(t,e){var n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i="undefined"!=typeof global&&global;function a(t,e){return":"===e.charAt(0)?t.substring(function(t,e){for(var n=1,r=1;n1?n-1:0),o=1;o=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},PqOI:function(t,e,n){var r=n("I+eb"),o=n("90hW"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},QFcT:function(t,e,n){var r=n("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,s=0,c=arguments.length,u=0;s0?(r=n/u)*r:n;return u===1/0?1/0:u*a(o)}})},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QNnp:function(t,e,n){var r=n("I+eb"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},QWBl:function(t,e,n){"use strict";var r=n("I+eb"),o=n("F8JR");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},Qo9l:function(t,e,n){var r=n("2oRo");t.exports=r},R0gw:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";var t,e,n,r,o,i;function a(){t=Zone.__symbol__,e=Object[t("defineProperty")]=Object.defineProperty,n=Object[t("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,r=Object.create,o=t("unconfigurables"),Object.defineProperty=function(t,e,n){if(c(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);var r=n.configurable;return"prototype"!==e&&(n=u(t,e,n)),l(t,e,n,r)},Object.defineProperties=function(t,e){return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,e[n])})),t},Object.create=function(t,e){return"object"!=typeof e||Object.isFrozen(e)||Object.keys(e).forEach((function(n){e[n]=u(t,n,e[n])})),r(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var r=n(t,e);return r&&c(t,e)&&(r.configurable=!1),r}}function s(t,e,n){var r=n.configurable;return l(t,e,n=u(t,e,n),r)}function c(t,e){return t&&t[o]&&t[o][e]}function u(t,n,r){return Object.isFrozen(r)||(r.configurable=!0),r.configurable||(t[o]||Object.isFrozen(t)||e(t,o,{writable:!0,value:{}}),t[o]&&(t[o][n]=!0)),r}function l(t,n,r,o){try{return e(t,n,r)}catch(a){if(!r.configurable)throw a;void 0===o?delete r.configurable:r.configurable=o;try{return e(t,n,r)}catch(a){var i=null;try{i=JSON.stringify(r)}catch(a){i=r.toString()}console.log("Attempting to configure '"+n+"' with descriptor '"+i+"' on object '"+t+"' and got error, giving up: "+a)}}}function f(t,e){var n=e.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,s=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),l=[],f=t.wtf,h="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");f?l=h.map((function(t){return"HTML"+t+"Element"})).concat(u):t.EventTarget?l.push("EventTarget"):l=u;for(var p=t.__Zone_disable_IE_check||!1,d=t.__Zone_enable_cross_context_check||!1,v=e.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",m={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},y=0;y1?new i(e,n):new i(e),u=t.ObjectGetOwnPropertyDescriptor(c,"onmessage");return u&&!1===u.configurable?(a=t.ObjectCreate(c),s=c,[r,o,"send","close"].forEach((function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var s=Zone.__symbol__("ON_PROPERTY"+i);c[s]=a[s]}}return c[e].apply(c,n)}}))):a=c,t.patchOnProperties(a,["close","error","message","open"],s),a};var a=e.WebSocket;for(var s in i)a[s]=i[s]}(t,e),Zone[t.symbol("patchEvents")]=!0}}(i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(i.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=i.Zone;t.__load_patch("defineProperty",(function(t,e,n){n._redefineProperty=s,a()})),t.__load_patch("registerElement",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)})),t.__load_patch("EventTargetLegacy",(function(t,e,n){f(t,n),h(n,t)}))}})?r.call(e,n,e,t):r)||(t.exports=o)},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},RN6c:function(t,e,n){var r=n("2oRo");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},RNIs:function(t,e,n){var r=n("tiKp"),o=n("fHMY"),i=n("m/L8"),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},ROdP:function(t,e,n){var r=n("hh1v"),o=n("xrYK"),i=n("tiKp")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},Rfxz:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").some,i=n("pkCn"),a=n("rkAj"),s=i("some"),c=a("some");r({target:"Array",proto:!0,forced:!s||!c},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Rm1S:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("UMSQ"),a=n("HYAF"),s=n("iqWW"),c=n("FMNM");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),u=String(this);if(!a.global)return c(a,u);var l=a.unicode;a.lastIndex=0;for(var f,h=[],p=0;null!==(f=c(a,u));){var d=String(f[0]);h[p]=d,""===d&&(a.lastIndex=s(u,i(a.lastIndex),l)),p++}return 0===p?null:h}]}))},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SYor:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").trim;r({target:"String",proto:!0,forced:n("yNLB")("trim")},{trim:function(){return o(this)}})},TFPT:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sub")},{sub:function(){return o(this,"sub","","")}})},TWNs:function(t,e,n){var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("cVYH"),s=n("m/L8").f,c=n("JBy8").f,u=n("ROdP"),l=n("rW0t"),f=n("n3/R"),h=n("busE"),p=n("0Dky"),d=n("afO8").set,v=n("JiZb"),g=n("tiKp")("match"),m=o.RegExp,y=m.prototype,b=/a/g,_=/a/g,w=new m(b)!==b,k=f.UNSUPPORTED_Y;if(r&&i("RegExp",!w||k||p((function(){return _[g]=!1,m(b)!=b||m(_)==_||"/a/i"!=m(b,"i")})))){for(var E=function t(e,n){var r,o=this instanceof t,i=u(e),s=void 0===n;if(!o&&i&&e.constructor===t&&s)return e;w?i&&!s&&(e=e.source):e instanceof t&&(s&&(n=l.call(e)),e=e.source),k&&(r=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var c=a(w?new m(e,n):m(e,n),o?this:y,t);return k&&r&&d(c,{sticky:r}),c},x=function(t){t in E||s(E,t,{configurable:!0,get:function(){return m[t]},set:function(e){m[t]=e}})},T=c(m),S=0;T.length>S;)x(T[S++]);y.constructor=E,E.prototype=y,h(o,"RegExp",E)}v("RegExp")},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TeQF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").filter,i=n("Hd5f"),a=n("rkAj"),s=i("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!s||!c},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,n){"use strict";var r=n("A2ZE"),o=n("ewvW"),i=n("m92n"),a=n("6VoE"),s=n("UMSQ"),c=n("hBjN"),u=n("NaFW");t.exports=function(t){var e,n,l,f,h,p,d=o(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=u(d),_=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>_;_++)p=y?m(d[_],_):d[_],c(n,_,p);else for(h=(f=b.call(d)).next,n=new v;!(l=h.call(f)).done;_++)p=y?i(f,m,[l.value,_],!0):l.value,c(n,_,p);return n.length=_,n}},ToJy:function(t,e,n){"use strict";var r=n("I+eb"),o=n("HAuM"),i=n("ewvW"),a=n("0Dky"),s=n("pkCn"),c=[],u=c.sort,l=a((function(){c.sort(void 0)})),f=a((function(){c.sort(null)})),h=s("sort");r({target:"Array",proto:!0,forced:l||!f||!h},{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},Tskq:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},U3f4:function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("rW0t"),a=n("n3/R").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},UesL:function(t,e,n){"use strict";var r=n("glrk"),o=n("wE6v");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},UxlC:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("ewvW"),a=n("UMSQ"),s=n("ppGB"),c=n("HYAF"),u=n("iqWW"),l=n("FMNM"),f=Math.max,h=Math.min,p=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&m||"string"==typeof r&&-1===r.indexOf(y)){var i=n(e,t,this,r);if(i.done)return i.value}var c=o(t),p=String(this),d="function"==typeof r;d||(r=String(r));var v=c.global;if(v){var _=c.unicode;c.lastIndex=0}for(var w=[];;){var k=l(c,p);if(null===k)break;if(w.push(k),!v)break;""===String(k[0])&&(c.lastIndex=u(p,a(c.lastIndex),_))}for(var E,x="",T=0,S=0;S=T&&(x+=p.slice(T,N)+M,T=N+O.length)}return x+p.slice(T)}];function b(t,n,r,o,a,s){var c=r+t.length,u=o.length,l=v;return void 0!==a&&(a=i(a),l=d),e.call(s,l,(function(e,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return e;if(l>u){var f=p(l/10);return 0===f?e:f<=u?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}s=o[l-1]}return void 0===s?"":s}))}}))},Uydy:function(t,e,n){var r=n("I+eb"),o=n("HsHA"),i=Math.acosh,a=Math.log,s=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+c:o(t-1+s(t-1)*s(t+1))}})},VC3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("QIpd"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},VpIT:function(t,e,n){var r=n("xDBR"),o=n("xs3f");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},WDsR:function(t,e,n){var r=n("I+eb"),o=n("Xol8"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},WJkJ:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},WjRb:function(t,e,n){var r=n("ROdP");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Xe3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("hBjN");r({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},YGK4:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},YNrV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("0Dky"),i=n("33Wh"),a=n("dBg+"),s=n("0eef"),c=n("ewvW"),u=n("RK3t"),l=Object.assign,f=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=i(l({},e)).join("")}))?function(t,e){for(var n=c(t),o=arguments.length,l=1,f=a.f,h=s.f;o>l;)for(var p,d=u(arguments[l++]),v=f?i(d).concat(f(d)):i(d),g=v.length,m=0;g>m;)p=v[m++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:l},ZOXb:function(t,e,n){"use strict";var r=n("0Dky"),o=n("DMt2").start,i=Math.abs,a=Date.prototype,s=a.getTime,c=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:c},ZUd8:function(t,e,n){var r=n("ppGB"),o=n("HYAF"),i=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},ZWaQ:function(t,e,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),s=n("GarU"),c=n("ImZN"),u=n("fdAy"),l=n("JiZb"),f=n("g6v/"),h=n("8YOa").fastKey,p=n("afO8"),d=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var l=t((function(t,r){s(t,l,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&c(r,t[u],t,n)})),p=v(e),g=function(t,e,n){var r,o,i=p(t),a=m(t,e);return a?a.value=n:(i.last=a={index:o=h(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},m=function(t,e){var n,r=p(t),o=h(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(l.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=p(this),n=m(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),f?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(l.prototype,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);u(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},ZfDv:function(t,e,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},Zk8X:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sup")},{sup:function(){return o(this,"sup","","")}})},a57n:function(t,e,n){n("dG/n")("search")},a5NK:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},aVe3:function(t,e){(function(){"use strict";var t=window.Document.prototype.createElement,e=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,o=window.Document.prototype.append,i=window.DocumentFragment.prototype.prepend,a=window.DocumentFragment.prototype.append,s=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,u=window.Node.prototype.insertBefore,l=window.Node.prototype.removeChild,f=window.Node.prototype.replaceChild,h=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),p=window.Element.prototype.attachShadow,d=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),v=window.Element.prototype.getAttribute,g=window.Element.prototype.setAttribute,m=window.Element.prototype.removeAttribute,y=window.Element.prototype.getAttributeNS,b=window.Element.prototype.setAttributeNS,_=window.Element.prototype.removeAttributeNS,w=window.Element.prototype.insertAdjacentElement,k=window.Element.prototype.insertAdjacentHTML,E=window.Element.prototype.prepend,x=window.Element.prototype.append,T=window.Element.prototype.before,S=window.Element.prototype.after,O=window.Element.prototype.replaceWith,N=window.Element.prototype.remove,D=window.HTMLElement,I=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),P=window.HTMLElement.prototype.insertAdjacentElement,C=window.HTMLElement.prototype.insertAdjacentHTML,M=new Set;function R(t){var e=M.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(t){return M.add(t)}));var A=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function j(t){var e=t.isConnected;if(void 0!==e)return e;if(A(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function L(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e}function F(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function z(){var t=!(null==it||!it.noDocumentConstructionObserver),e=!(null==it||!it.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=e,this.C=t}function W(t,e,n,r){var o=window.ShadyDom;if(t.shadyDomFastWalk&&o&&o.inUse){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll)for(t=o.nativeMethods.querySelectorAll.call(e,"*"),e=0;e0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},eoL8:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("m/L8").f})},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},f5p1:function(t,e,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),s=n("0BK2"),c=n("G+Rx"),u=n("zBJ4"),l=n("93I0")("IE_PROTO"),f=function(){},h=function(t){return"