From 3a70917f23978d8c89777441d09a7c2ca43dd58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 8 Feb 2020 19:28:40 +0100 Subject: [PATCH 1/5] Add LICENSE file --- LICENSE.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..d143c99 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Juan Manuel López Pazos + +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. From d65a7603ee8a9c1e92a65d21e5b42920c3f89c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 8 Feb 2020 19:33:00 +0100 Subject: [PATCH 2/5] Fixes main github repo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 485af5a..7d76328 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ # single-spa-angular-app -This is an Angular v8 application example used as NPM package in [single-spa-login-example-with-npm-modules](https://github.com/jualoppaz/single-spa-login-example-with-npm-modules) in order to register an application. See the installation instructions there. +This is an Angular v8 application example used as NPM package in [single-spa-login-example-with-npm-packages](https://github.com/jualoppaz/single-spa-login-example-with-npm-packages) in order to register an application. See the installation instructions there. ## ✍🏻 Motivation From 19a77f3477409f0789f8df9e631f5ace17e08481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 8 Feb 2020 19:33:17 +0100 Subject: [PATCH 3/5] Rename sidebar reference to navbar --- src/app/list/list.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/list/list.component.html b/src/app/list/list.component.html index 288b20a..2490a3b 100644 --- a/src/app/list/list.component.html +++ b/src/app/list/list.component.html @@ -1,2 +1,2 @@

List page

-

This is the initial page. You'll see this page when navigate to Angular section from sidebar.

+

This is the initial page. You'll see this page when navigate to Angular section from navbar.

From c6546c320cd1a5ec242835bd1fd80f6188487103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 8 Feb 2020 19:38:36 +0100 Subject: [PATCH 4/5] Update package.json version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c144f50..a1a286b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "single-spa-angular-app", - "version": "0.1.2", + "version": "0.1.3", "description": "Angular v8 application with two example pages for be included in a single-spa application as registered app.", "main": "dist/main-es2015.js", "scripts": { From 3d7778b5b1afbd733a6e4102d073b84bffde6634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 8 Feb 2020 19:38:44 +0100 Subject: [PATCH 5/5] Update dist folder --- dist/main-es2015.js | 2 +- dist/main-es5.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/main-es2015.js b/dist/main-es2015.js index 72abd8c..b05722f 100644 --- a/dist/main-es2015.js +++ b/dist/main-es2015.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.app3=t():e.app3=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,(function(t){return e[t]}).bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"+EN/":function(e,t,n){var r=n("/c4r");"string"==typeof r&&(r=[[e.i,r,""]]),n("LboF")(r,{insert:"head",singleton:!1}),r.locals&&(e.exports=r.locals)},"/c4r":function(e,t){e.exports=[[e.i,"/* You can add global styles to this file, and also import other style files */\ndiv#angular-app app-root {\n display: block;\n}","",""]]},0:function(e,t,n){n("+EN/"),e.exports=n("F5EL")},"3ejw":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{throw e})}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}function u(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);const h=u;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,u=s?s.length:0;for(;n;)n.remove(this),n=++ae.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,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(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const v="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function y(...e){return _(e)}function _(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:w}let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[v](){return this}pipe(...e){return 0===e.length?this:_(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const S=x;class E extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class T extends g{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(e){const t=new A(this,this);return t.operator=e,t}next(e){if(this.closed)throw new S;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;snew A(e,t),e})();class A extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function I(e){return e&&"function"==typeof e.schedule}class R extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=O(),M=e=>t=>{const n=e[D]();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},U=e=>t=>{const n=e[v]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},L=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const H=e=>{if(e instanceof b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[v])return U(e);if(L(e))return N(e);if(j(e))return P(e);if(e&&"function"==typeof e[D])return M(e);{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function V(e,t,n,r,s=new R(e,n,r)){if(!s.closed)return H(t)(s)}class F extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function $(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 z(e,t))}}class z{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new B(e,this.project,this.thisArg))}}class B extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new b(t?n=>{const r=new d;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:N(e))}function Z(e,t){if(!t)return e instanceof b?e:new b(H(e));if(null!=e){if(function(e){return e&&"function"==typeof e[v]}(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[v]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:U(e))}(e,t);if(j(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:P(e))}(e,t);if(L(e))return q(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[D](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function W(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(W((n,r)=>Z(e(n,r)).pipe($((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends F{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function Y(e=Number.POSITIVE_INFINITY){return W(K,e)}function J(){return function(e){return e.lift(new X(e))}}class X{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends T{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new k}const ie="__parameters__";function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const ae=oe("Inject",e=>({token:e})),le=oe("Optional"),ce=oe("Self"),ue=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ve=de({__forward_ref__:de});function we(e){return e.__forward_ref__=we,e.toString=function(){return me(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ve)&&t.__forward_ref__===we?t():e}const _e="undefined"!=typeof globalThis&&globalThis,be="undefined"!=typeof window&&window,Ce="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xe="undefined"!=typeof global&&global,Se=_e||xe||be||Ce;class Ee{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Te=new Ee("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Ie="ngTokenPath",Re=/\n/gm,Ne="\u0275",Pe="__source",Oe=de({provide:String,useValue:de});let De,Me=void 0;function Ue(e){const t=Me;return Me=e,t}function Le(e,t=he.Default){if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):Me.get(e,t&he.Optional?null:void 0,t)}function je(e,t=he.Default){return(De||Le)(e,t)}class He{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}function Ve(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ne?e.substr(2):e;let s=me(t);if(t instanceof Array)s=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Re,"\n ")}`}class Fe{}class $e{}function ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Be(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const qe=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}(),Ze=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))(),We="ngDebugContext",Ge="ngOriginalError",Qe="ngErrorLogger";function Ke(e){return e[We]}function Ye(e){return e[Ge]}function Je(e,...t){e.error(...t)}class Xe{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Qe]||Je}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ke(e)?Ke(e):this._findContext(Ye(e)):null}_findOriginalError(e){let t=Ye(e);for(;t&&Ye(t);)t=Ye(t);return t}}let et=!0,tt=!1;function nt(){return tt=!0,et}class rt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0ot(e.trim())).join(", ")),this.buf.push(" ",t,'="',bt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();pt.hasOwnProperty(t)&&!ct.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(bt(e))}checkClobberedElement(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}}const yt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_t=/([^\#-~ |!])/g;function bt(e){return e.replace(/&/g,"&").replace(yt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(_t,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}let Ct;function xt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const St=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}();class Et{}const Tt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),kt=/^url\(([^)]+)\)$/,At=/([A-Z])/g;function It(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Rt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Nt(),e})();const Nt=(...e)=>{},Pt=new Ee("The presence of this token marks an injector as being the root injector."),Ot=function(e,t,n){return new Vt(e,t,n)};let Dt=(()=>{class e{static create(e,t){return Array.isArray(e)?Ot(e,t,""):Ot(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new He,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>je(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const Mt=function(e){return e},Ut=[],Lt=Mt,jt=function(){return Array.prototype.slice.call(arguments)},Ht="\u0275";class Vt{constructor(e,t=Dt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Dt,{token:Dt,fn:Mt,deps:Ut,value:this,useNew:!1}),r.set(Te,{token:Te,fn:Mt,deps:Ut,value:this,useNew:!1}),function e(t,n){if(n)if((n=ye(n))instanceof Array)for(let r=0;re.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Ft(e){return $t("Cannot mix multi providers and regular providers",e)}function $t(e,t){return new Error(Ve(e,t,"StaticInjectorError"))}const zt=new Ee("AnalyzeForEntryComponents");let Bt=null;function qt(){if(!Bt){const e=Se.Symbol;if(e&&e.iterator)Bt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t{class e{}return e.NULL=new sn,e})();class an{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>hn(e),e})();const hn=cn;class dn{}class pn{}const fn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let gn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>mn(),e})();const mn=cn;class vn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const wn=new vn("8.2.14");class yn{constructor(){}supports(e){return Qt(e)}create(e){return new bn(e)}}const _n=(e,t)=>t;class bn{constructor(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=e||_n}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&Zt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Zt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Zt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Zt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new Cn(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Sn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Cn{constructor(e,t){this.item=e,this.trackById=t,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 xn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Zt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Sn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new xn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function En(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new An(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Zt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class An{constructor(e){this.key=e,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 In=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new yn])}),e})(),Rn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new Tn])}),e})();const Nn=[new Tn],Pn=new In([new yn]),On=new Rn(Nn);let Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Mn(e,un),e})();const Mn=cn;let Un=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ln(e,un),e})();const Ln=cn;function jn(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return Hn(n,t),n}(s,e)}function Hn(e,t){e[We]=t,e[Qe]=t.logError.bind(t)}function Vn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Fn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function $n(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function zn(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function Zn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}const Gn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Qn=()=>{},Kn=new Map;function Yn(e){let t=Kn.get(e);return t||(t=me(e)+"_"+Kn.size,Kn.set(e,t)),t}const Jn="$$undefined",Xn="$$empty";function er(e){return{id:Jn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let tr=0;function nr(e,t,n,r){return!(!(2&e.state)&&Zt(e.oldValues[t.bindingIndex+n],r))}function rr(e,t,n,r){return!!nr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function sr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Wt(s,r)){const i=t.bindings[n].name;throw jn(Gn.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function ir(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function or(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ar(e,t,n,r){try{return ir(33554432&e.def.nodes[t].flags?Bn(e,t).componentView:e),Gn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function lr(e){return e.parent?Bn(e.parent,e.parentNodeDef.nodeIndex):null}function cr(e){return e.parent?e.parentNodeDef.parent:null}function ur(e,t){switch(201347067&t.flags){case 1:return Bn(e,t.nodeIndex).renderElement;case 2:return zn(e,t.nodeIndex).renderText}}function hr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function dr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function pr(e){return 1<{"number"==typeof e?(t[e]=s,n|=pr(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function gr(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Pe,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Yn(n)}})}function mr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===qe.Native?Bn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const vr=new WeakMap;function wr(e){let t=vr.get(e);return t||((t=e(()=>Qn)).factory=e,vr.set(e,t)),t}function yr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(ur(e,e.def.lastRenderRootNode))),_r(e,t,0,e.def.nodes.length-1,n,r,s)}function _r(e,t,n,r,s,i,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Cr(e,n,t,s,i,o),a+=n.childCount}}function br(e,t,n,r,s,i){let o=e;for(;o&&!hr(o);)o=o.parent;const a=o.parent,l=cr(o),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&Cr(a,e,n,r,s,i),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(s,i.providedIn)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=kr,e._providers[n]=Or(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ue(r)}var s,i}function Or(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Pr(e,n[0]));case 2:return new t(Pr(e,n[0]),Pr(e,n[1]));case 3:return new t(Pr(e,n[0]),Pr(e,n[1]),Pr(e,n[2]));default:const s=new Array(r);for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Be(n,t),Gn.dirtyParentQueries(r),Ur(r),r}function Mr(e,t,n){const r=t?ur(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);yr(n,2,s,i,void 0)}function Ur(e){yr(e,3,null,null,void 0)}const Lr=new Object;function jr(e,t,n,r,s,i){return new Hr(e,t,n,r,s,i)}class Hr extends tn{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=wr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=Gn.createRootView(e,t||[],n,s,r,Lr),a=qn(o,i).instance;return n&&o.renderer.setAttribute(Bn(o,0).renderElement,"ng-version",wn.full),new Vr(o,new Br(o),a)}}class Vr extends en{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new un(Bn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Gr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Fr(e,t,n){return new $r(e,t,n)}class $r{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new un(this._data.renderElement)}get injector(){return new Gr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=cr(e),e=e.parent;return e?new Gr(e,t):new Gr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Dr(this._data,e);Gn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Br(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof ln||(s=i.get(Fe));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,ze(s,n,r),function(e,t){const n=lr(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Gn.dirtyParentQueries(r),Mr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,s=r[t];Be(r,t),null==n&&(n=r.length),ze(r,n,s),Gn.dirtyParentQueries(s),Ur(s),Mr(e,n>0?r[n-1]:null,s)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Dr(this._data,e);t&&Gn.destroyView(t)}detach(e){const t=Dr(this._data,e);return t?new Br(t):null}}function zr(e){return new Br(e)}class Br{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return yr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){ir(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Gn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Gn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Gn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ur(this._view),Gn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function qr(e,t){return new Zr(e,t)}class Zr extends Dn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Br(Gn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new un(Bn(this._parentView,this._def.nodeIndex).renderElement)}}function Wr(e,t){return new Gr(e,t)}class Gr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Dt.THROW_IF_NOT_FOUND){return Gn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Yn(e)},t)}}function Qr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Bn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return zn(e,n.nodeIndex).renderText;if(20240&n.flags)return qn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Kr(e){return new Yr(e.renderer)}class Yr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Er(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;ne())}onDestroy(e){this._destroyListeners.push(e)}}const es=Yn(dn),ts=Yn(gn),ns=Yn(un),rs=Yn(Un),ss=Yn(Dn),is=Yn(Rt),os=Yn(Dt),as=Yn(Te);function ls(e,t,n,r,s,i,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return function(e,t,n,r,s,i,o,a,l){const{matchedQueries:c,references:u,matchedQueryIds:h}=fr(n);l||(l=[]),a||(a=[]),i=ye(i);const d=gr(o,me(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Tr(a),outputs:l,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}(e,t|=16384,n,r,s,s,i,l,c)}function cs(e,t){return ps(e,t)}function us(e,t){let n=e;for(;n.parent&&!hr(n);)n=n.parent;return fs(n.parent,cr(n),!0,t.provider.value,t.provider.deps)}function hs(e,t){const n=fs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;rar(e,t,n,r)}function ps(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return fs(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(ms(e,t,n,s[0]));case 2:return r(ms(e,t,n,s[0]),ms(e,t,n,s[1]));case 3:return r(ms(e,t,n,s[0]),ms(e,t,n,s[1]),ms(e,t,n,s[2]));default:const o=Array(i);for(let r=0;rZe}),xs={},Ss=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,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};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.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Es=void 0;var Ts=["en",[["a","p"],["AM","PM"],Es],[["AM","PM"],Es,Es],[["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"]],Es,[["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"]],Es,[["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}",Es,"{1} 'at' {0}",Es],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const ks="en-US";let As=ks;function Is(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(As=e.toLowerCase().replace(/_/g,"-"))}class Rs extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function Ns(){return this._results[qt()]()}class Ps{constructor(){this.dirty=!0,this._results=[],this.changes=new Rs,this.length=0;const e=qt(),t=Ps.prototype;t[e]||(t[e]=Ns)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Ms=new Ee("AppId");function Us(){return`${Ls()}${Ls()}${Ls()}`}function Ls(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const js=new Ee("Platform Initializer"),Hs=new Ee("Platform ID"),Vs=new Ee("appBootstrapListener");class Fs{log(e){console.log(e)}warn(e){console.warn(e)}}const $s=new Ee("LocaleId"),zs=!1;function Bs(){throw new Error("Runtime compiler is not loaded")}const qs=Bs,Zs=Bs,Ws=Bs,Gs=Bs;class Qs{constructor(){this.compileModuleSync=qs,this.compileModuleAsync=Zs,this.compileModuleAndAllComponentsSync=Ws,this.compileModuleAndAllComponentsAsync=Gs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ks{}let Ys,Js;function Xs(){const e=Se.wtf;return!(!e||!(Ys=e.trace)||(Js=Ys.events,0))}const ei=Xs();function ti(e,t){return null}const ni=ei?function(e,t=null){return Js.createScope(e,t)}:(e,t)=>ti,ri=ei?function(e,t){return Ys.leaveScope(e,t),t}:(e,t)=>t,si=(()=>Promise.resolve(0))();function ii(e){"undefined"==typeof Zone?si.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class oi{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rs(!1),this.onMicrotaskEmpty=new Rs(!1),this.onStable=new Rs(!1),this.onError=new Rs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return ui(t),e.invokeTask(r,s,i,o)}finally{hi(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return ui(t),e.invoke(r,s,i,o,a)}finally{hi(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,ci(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,li,ai,ai);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function ai(){}const li={};function ci(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ui(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hi(e){e._nesting--,ci(e)}class di{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rs,this.onMicrotaskEmpty=new Rs,this.onStable=new Rs,this.onError=new Rs}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class pi{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oi.assertNotInAngularZone(),ii(()=>{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())ii(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class fi{constructor(){this._applications=new Map,vi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return vi.findTestabilityInTree(this,e,t)}}class gi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let mi,vi=new gi,wi=function(e,t,n){return e.get(Ks).createCompiler([t]).compileModuleAsync(n)},yi=function(e){return e instanceof ln};const _i=new Ee("AllowMultipleToken");class bi{constructor(e,t){this.name=e,this.token=t}}function Ci(e,t,n=[]){const r=`Platform: ${t}`,s=new Ee(r);return(t=[])=>{let i=xi();if(!i||i.injector.get(_i,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(mi&&!mi.destroyed&&!mi.injector.get(_i,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");mi=e.get(Si);const t=e.get(js,null);t&&t.forEach(e=>e())}(Dt.create({providers:e,name:r}))}return function(e){const t=xi();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}(s)}}function xi(){return mi&&!mi.destroyed?mi:null}class Si{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new di:("zone.js"===s?void 0:s)||new oi({enableLongStackTrace:nt()}),r=[{provide:oi,useValue:n}];var s;return n.run(()=>{const t=Dt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Xe,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return zs&&Is(s.injector.get($s,ks)||ks),s.onDestroy(()=>ki(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const r=n();return Yt(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Ds);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Ei({},t);return wi(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ti);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(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)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Ei(e,t){return Array.isArray(t)?t.reduce(Ei,e):Object.assign({},e,t)}let Ti=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=nt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{oi.assertNotInAngularZone(),ii(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{oi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return I(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:Y(t)(q(e,n))}(o,a.pipe(e=>J()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(e))))}bootstrap(e,t){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=e instanceof tn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=yi(n)?null:this._injector.get(Fe),s=n.create(Dt.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(pi,null);return i&&s.injector.get(fi).registerApplication(s.location.nativeElement,i),this._loadComponent(s),nt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ri(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ki(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Vs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),ki(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ni("ApplicationRef#tick()"),e})();function ki(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ai{}const Ii="#",Ri="NgFactory";class Ni{}const Pi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Oi{constructor(e,t){this._compiler=e,this._config=t||Pi}load(e){return!zs&&this._compiler instanceof Qs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,n]=e.split(Ii);return void 0===n&&(n="default"),System.import(t).then(e=>e[n]).then(e=>Di(e,t,n)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,n]=e.split(Ii),r=Ri;return void 0===n&&(n="default",r=""),System.import(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[n+r]).then(e=>Di(e,t,n))}}function Di(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Mi{constructor(e,t){this.name=e,this.callback=t}}class Ui{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Li&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Li extends Ui{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Li&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Li&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Li&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Li)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ji=new Map,Hi=function(e){return ji.get(e)||null};function Vi(e){ji.set(e.nativeNode,e)}const Fi=Ci(null,"core",[{provide:Hs,useValue:"unknown"},{provide:Si,deps:[Dt]},{provide:fi,deps:[]},{provide:Fs,deps:[]}]);function $i(){return Pn}function zi(){return On}function Bi(e){return e?(zs&&Is(e),e):ks}function qi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Zi{constructor(e){}}function Wi(e,t,n,r,s,i,o=[],a,l,c,u,h){c||(c=Qn);const{matchedQueries:d,references:p,matchedQueryIds:f}=fr(n);let g=null,m=null;i&&([g,m]=Er(i)),a=a||[];const v=new Array(a.length);for(let _=0;_{const[n,r]=Er(e);return[n,r,t]});return h=function(e){if(e&&e.id===Jn){const t=null!=e.encapsulation&&e.encapsulation!==qe.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${tr++}`:Xn}return e&&e.id===Xn&&(e=null),e||null}(h),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:v,bindingFlags:Tr(v),outputs:w,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Qn},provider:null,text:null,query:null,ngContent:null}}function Gi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=mr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===qe.ShadowDom);if(r.attrs)for(let a=0;aar(e,t,n,r)}function Yi(e,t,n,r){if(!rr(e,t,n,r))return!1;const s=t.bindings[n],i=Bn(e,t.nodeIndex),o=i.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=e.renderer;null!=i?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,o,s.ns,a,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(St.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,a,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,a,r)}return!0}function Ji(e,t,n){let r=[];for(let s in n)r.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:pr(t),bindings:r},ngContent:null}}function Xi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&dr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Wn(e,s).setDirty(),!(1&r.flags&&s+r.childCount0)c=e,co(e)||(u=e);else for(;c&&f===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),u=(c=e)&&co(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Qn,updateRenderer:r||Qn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function co(e){return 0!=(1&e.flags)&&null===e.element.name}function uo(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function ho(e,t,n,r){const s=go(e.root,e.renderer,e,t,n);return mo(s,e.component,r),vo(s),s}function po(e,t,n){const r=go(e,e.renderer,null,null,t);return mo(r,n,n),vo(r),r}function fo(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,go(e.root,i,e,t.element.componentProvider,n)}function go(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function mo(e,t,n){e.component=t,e.context=n}function vo(e){let t;hr(e)&&(t=Bn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s0&&Yi(e,t,0,n)&&(p=!0),d>1&&Yi(e,t,1,r)&&(p=!0),d>2&&Yi(e,t,2,s)&&(p=!0),d>3&&Yi(e,t,3,i)&&(p=!0),d>4&&Yi(e,t,4,o)&&(p=!0),d>5&&Yi(e,t,5,a)&&(p=!0),d>6&&Yi(e,t,6,l)&&(p=!0),d>7&&Yi(e,t,7,c)&&(p=!0),d>8&&Yi(e,t,8,u)&&(p=!0),d>9&&Yi(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,a,l,c,u,h);case 2:return function(e,t,n,r,s,i,o,a,l,c,u,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&rr(e,t,0,n)&&(d=!0),f>1&&rr(e,t,1,r)&&(d=!0),f>2&&rr(e,t,2,s)&&(d=!0),f>3&&rr(e,t,3,i)&&(d=!0),f>4&&rr(e,t,4,o)&&(d=!0),f>5&&rr(e,t,5,a)&&(d=!0),f>6&&rr(e,t,6,l)&&(d=!0),f>7&&rr(e,t,7,c)&&(d=!0),f>8&&rr(e,t,8,u)&&(d=!0),f>9&&rr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=ao(n,p[0])),f>1&&(d+=ao(r,p[1])),f>2&&(d+=ao(s,p[2])),f>3&&(d+=ao(i,p[3])),f>4&&(d+=ao(o,p[4])),f>5&&(d+=ao(a,p[5])),f>6&&(d+=ao(l,p[6])),f>7&&(d+=ao(c,p[7])),f>8&&(d+=ao(u,p[8])),f>9&&(d+=ao(h,p[9]));const g=zn(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,i,o,a,l,c,u,h);case 16384:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=qn(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&nr(e,t,0,n)&&(f=!0,g=ws(e,d,t,0,n,g)),m>1&&nr(e,t,1,r)&&(f=!0,g=ws(e,d,t,1,r,g)),m>2&&nr(e,t,2,s)&&(f=!0,g=ws(e,d,t,2,s,g)),m>3&&nr(e,t,3,i)&&(f=!0,g=ws(e,d,t,3,i,g)),m>4&&nr(e,t,4,o)&&(f=!0,g=ws(e,d,t,4,o,g)),m>5&&nr(e,t,5,a)&&(f=!0,g=ws(e,d,t,5,a,g)),m>6&&nr(e,t,6,l)&&(f=!0,g=ws(e,d,t,6,l,g)),m>7&&nr(e,t,7,c)&&(f=!0,g=ws(e,d,t,7,c,g)),m>8&&nr(e,t,8,u)&&(f=!0,g=ws(e,d,t,8,u,g)),m>9&&nr(e,t,9,h)&&(f=!0,g=ws(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&$n(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,a,l,c,u,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&rr(e,t,0,n)&&(p=!0),f>1&&rr(e,t,1,r)&&(p=!0),f>2&&rr(e,t,2,s)&&(p=!0),f>3&&rr(e,t,3,i)&&(p=!0),f>4&&rr(e,t,4,o)&&(p=!0),f>5&&rr(e,t,5,a)&&(p=!0),f>6&&rr(e,t,6,l)&&(p=!0),f>7&&rr(e,t,7,c)&&(p=!0),f>8&&rr(e,t,8,u)&&(p=!0),f>9&&rr(e,t,9,h)&&(p=!0),p){const p=Zn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=i),f>4&&(g[4]=o),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=c),f>8&&(g[8]=u),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=c),f>8&&(g[d[8].name]=u),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,s);break;case 4:g=e.transform(r,s,i);break;case 5:g=e.transform(r,s,i,o);break;case 6:g=e.transform(r,s,i,o,a);break;case 7:g=e.transform(r,s,i,o,a,l);break;case 8:g=e.transform(r,s,i,o,a,l,c);break;case 9:g=e.transform(r,s,i,o,a,l,c,u);break;case 10:g=e.transform(r,s,i,o,a,l,c,u,h)}}p.value=g}return p}(e,t,n,r,s,i,o,a,l,c,u,h);default:throw"unreachable"}}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s0&&sr(e,t,0,n),d>1&&sr(e,t,1,r),d>2&&sr(e,t,2,s),d>3&&sr(e,t,3,i),d>4&&sr(e,t,4,o),d>5&&sr(e,t,5,a),d>6&&sr(e,t,6,l),d>7&&sr(e,t,7,c),d>8&&sr(e,t,8,u),d>9&&sr(e,t,9,h)}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){for(let r=0;r{const r=jo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Ho.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);Ho.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:gr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Yn(s)]=t}})}}(e=e.factory(()=>Qn)),e):e}(r))}const jo=new Map,Ho=new Map,Vo=new Map;function Fo(e){let t;jo.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Ho.set(e.token,e)}function $o(e,t){const n=wr(t.viewDefFactory),r=wr(n.nodes[0].element.componentView);Vo.set(e,r)}function zo(){jo.clear(),Ho.clear(),Vo.clear()}function Bo(e){if(0===jo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rQn);for(let r=0;r"-"+e[1].toLowerCase())}`)]=It(a))}const r=t.parent,a=Bn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function ia(e,t,n,r){Co(e,t,n,...r)}function oa(e,t){for(let n=t;n++i===s?e.error.bind(e,...t):Qn),inew la(e,t),handleEvent:ta,updateDirectives:na,updateRenderer:ra}:{setCurrentNode:()=>{},createRootView:Po,createEmbeddedView:ho,createComponentView:fo,createNgModuleRef:Jr,overrideProvider:Qn,overrideComponentView:Qn,clearOverrides:Qn,checkAndUpdateView:yo,checkNoChangesView:wo,destroyView:So,createDebugContext:(e,t)=>new la(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?qo:Zo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?qo:Zo,e)};Gn.setCurrentNode=e.setCurrentNode,Gn.createRootView=e.createRootView,Gn.createEmbeddedView=e.createEmbeddedView,Gn.createComponentView=e.createComponentView,Gn.createNgModuleRef=e.createNgModuleRef,Gn.overrideProvider=e.overrideProvider,Gn.overrideComponentView=e.overrideComponentView,Gn.clearOverrides=e.clearOverrides,Gn.checkAndUpdateView=e.checkAndUpdateView,Gn.checkNoChangesView=e.checkNoChangesView,Gn.destroyView=e.destroyView,Gn.resolveDep=ms,Gn.createDebugContext=e.createDebugContext,Gn.handleEvent=e.handleEvent,Gn.updateDirectives=e.updateDirectives,Gn.updateRenderer=e.updateRenderer,Gn.dirtyParentQueries=Xi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(wr(this._ngModuleDefFactory));return Gn.createNgModuleRef(this.moduleType,e||Dt.NULL,this._bootstrapComponents,t)}}class ma{}const va=new Ee("Location Initialized");class wa{}const ya=new Ee("appBaseHref");class _a{constructor(e,t){this._subject=new Rs,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=_a.stripTrailingSlash(ba(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+_a.normalizeQueryParams(t))}normalize(e){return _a.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ba(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_a.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_a.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function ba(e){return e.replace(/\/index.html$/,"")}class Ca extends wa{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=_a.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class xa extends wa{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return _a.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+_a.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const Sa=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}(),Ea=function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=xs[t];if(n)return n;const r=t.split("-")[0];if(n=xs[r])return n;if("en"===r)return Ts;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Ss.PluralCase]},Ta=new Ee("UseV4Plurals");class ka{}class Aa extends ka{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Ea(t||this.locale)(e)){case Sa.Zero:return"zero";case Sa.One:return"one";case Sa.Two:return"two";case Sa.Few:return"few";case Sa.Many:return"many";default:return"other"}}}class Ia{}const Ra=new Ee("DocumentToken"),Na="server";let Pa=(()=>{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new Oa(je(Ra),window,je(Xe))}),e})();class Oa{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const Da=new b(e=>e.complete());function Ma(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):Da}function Ua(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function La(...e){let t=e[e.length-1];switch(I(t)?e.pop():t=void 0,e.length){case 0:return Ma(t);case 1:return t?q(e,t):Ua(e[0]);default:return q(e,t)}}class ja extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(e){super.next(this._value=e)}}function Ha(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ha.prototype=Object.create(Error.prototype);const Va=Ha,Fa={};class $a{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new za(e,this.resultSelector))}}class za extends F{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Fa),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Z(n):Ma()).subscribe(t)})}function qa(){return Y(1)}function Za(e,t){return function(n){return n.lift(new Wa(e,t))}}class Wa{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ga(e,this.predicate,this.thisArg))}}class Ga extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Qa(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Qa.prototype=Object.create(Error.prototype);const Ka=Qa;function Ya(e){return function(t){return 0===e?Ma():t.lift(new Ja(e))}}class Ja{constructor(e){if(this.total=e,this.total<0)throw new Ka}call(e,t){return t.subscribe(new Xa(e,this.total))}}class Xa extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;sel({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function sl(){return new Va}function il(e=null){return t=>t.lift(new ol(e))}class ol{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new al(e,this.defaultValue))}}class al extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ll(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Za((t,n)=>e(t,n,r)):K,Ya(1),n?il(t):rl(()=>new Va))}function cl(e){return function(t){const n=new ul(e),r=t.lift(n);return n.caught=r}}class ul{constructor(e){this.selector=e}call(e,t){return t.subscribe(new hl(e,this.selector,this.caught))}}class hl extends F{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new R(this,void 0,void 0);this.add(r),V(this,n,void 0,void 0,r)}}}function dl(e){return t=>0===e?Ma():t.lift(new pl(e))}class pl{constructor(e){if(this.total=e,this.total<0)throw new Ka}call(e,t){return t.subscribe(new fl(e,this.total))}}class fl extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function gl(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Za((t,n)=>e(t,n,r)):K,dl(1),n?il(t):rl(()=>new Va))}class ml{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new vl(e,this.predicate,this.thisArg,this.source))}}class vl extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function wl(e,t){return"function"==typeof t?n=>n.pipe(wl((n,r)=>Z(e(n,r)).pipe($((e,s)=>t(n,e,r,s))))):t=>t.lift(new yl(e))}class yl{constructor(e){this.project=e}call(e,t){return t.subscribe(new _l(e,this.project))}}class _l extends F{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new R(this,void 0,void 0);this.destination.add(s),this.innerSubscription=V(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function bl(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Cl(e,t,n))}}class Cl{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new xl(e,this.accumulator,this.seed,this.hasSeed))}}class xl extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Sl(e,t){return W(e,t,1)}class El{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Tl(e,this.callback))}}class Tl extends g{constructor(e,t){super(e),this.add(new d(t))}}let kl=null;function Al(){return kl}class Il{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Rl extends Il{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Nl={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Pl=3,Ol={"\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"},Dl={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"},Ml=(()=>{if(Se.Node)return Se.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Ul extends Rl{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Ul,kl||(kl=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Nl}contains(e,t){return Ml.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{n.get(Ds).donePromise.then(()=>{const n=Al();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Vl,Ra,Dt],multi:!0}];class $l{static init(){var e;e=new $l,vi=e}addToWindow(e){Se.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=()=>e.getAllTestabilities(),Se.getAllAngularRootElements=()=>e.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Al().isShadowRoot(t)?this.findTestabilityInTree(e,Al().getHost(t),!0):this.findTestabilityInTree(e,Al().parentElement(t),!0):null}}function zl(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Se.ng=Se.ng||{})[e]=t)}const Bl=(()=>({ApplicationRef:Ti,NgZone:oi}))();function ql(e){return Hi(e)}const Zl=new Ee("EventManagerPlugins");class Wl{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class Kl extends Ql{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Al().remove(e))}}const Yl={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/"},Jl=/%COMP%/g,Xl="_nghost-%COMP%",ec="_ngcontent-%COMP%";function tc(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class rc{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new sc(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case qe.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ac(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case qe.Native:case qe.ShadowDom:return new lc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=tc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class sc{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Yl[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Yl[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Yl[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&fn.DashCase?e.style.setProperty(t,n,r&fn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&fn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){oc(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return oc(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,nc(n)):this.eventManager.addEventListener(e,t,nc(n))}}const ic=(()=>"@".charCodeAt(0))();function oc(e,t){if(e.charCodeAt(0)===ic)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class ac extends sc{constructor(e,t,n,r){super(e),this.component=n;const s=tc(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=ec.replace(Jl,r+"-"+n.id),this.hostAttr=Xl.replace(Jl,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class lc extends sc{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===qe.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=tc(r.id,r.styles,[]);for(let i=0;i"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),uc=cc("addEventListener"),hc=cc("removeEventListener"),dc={},pc="FALSE",fc="ANGULAR",gc="addEventListener",mc="removeEventListener",vc="__zone_symbol__propagationStopped",wc="__zone_symbol__stopImmediatePropagation",yc=(()=>{const e="undefined"!=typeof Zone&&Zone[cc("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),_c=function(e){return!!yc&&yc.hasOwnProperty(e)},bc=function(e){const t=dc[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n0;s||(s=e[n]=[]);const o=_c(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[hc];if(!r)return e[mc].apply(e,[t,n,!1]);let s=dc[t],i=s&&e[s];if(!i)return e[mc].apply(e,[t,n,!1]);let o=!1;for(let a=0;a{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded((function(){n(e)}))};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Ac=["alt","control","meta","shift"],Ic={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Rc extends Gl{constructor(e){super(e)}supports(e){return null!=Rc.parseEventName(e)}addEventListener(e,t,n){const r=Rc.parseEventName(t),s=Rc.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Al().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=Rc._normalizeKey(t.pop());let s="";if(Ac.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=Al().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ac.forEach(r=>{r!=n&&(0,Ic[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(e,t,n){return r=>{Rc.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class Nc{}class Pc extends Nc{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case St.NONE:return t;case St.HTML:return t instanceof Dc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Ct=Ct||new rt(e);let r=t?String(t):"";n=Ct.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Ct.getInertBodyElement(r)}while(r!==i);const o=new wt,a=o.sanitizeChildren(xt(n)||n);return nt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=xt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case St.STYLE:return t instanceof Mc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(kt);return t&&ot(t[1])===t[1]||e.match(Tt)&&function(e){let t=!0,n=!0;for(let r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function _u(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function bu(e){return Jt(e)?e:Yt(e)?Z(Promise.resolve(e)):La(e)}function Cu(e,t,n){return n?function(e,t){return vu(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Tu(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length)return!!Tu(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Tu(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Tu(n.segments,e)&&!!n.children[ou]&&t(n.children[ou],r,i)}}(t,n,n.segments)}(e.root,t.root)}class xu{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lu(this.queryParams)),this._queryParamMap}toString(){return Ru.serialize(this)}}class Su{constructor(e,t){this.segments=e,this.children=t,this.parent=null,_u(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nu(this)}}class Eu{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=lu(this.parameters)),this._parameterMap}toString(){return Lu(this)}}function Tu(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function ku(e,t){let n=[];return _u(e.children,(e,r)=>{r===ou&&(n=n.concat(t(e,r)))}),_u(e.children,(e,r)=>{r!==ou&&(n=n.concat(t(e,r)))}),n}class Au{}class Iu{parse(e){const t=new $u(e);return new xu(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Nu(t);if(n){const n=t.children[ou]?e(t.children[ou],!1):"",r=[];return _u(t.children,(t,n)=>{n!==ou&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=ku(t,(n,r)=>r===ou?[e(t.children[ou],!1)]:[`${r}:${e(n,!1)}`]);return`${Nu(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Ou(t)}=${Ou(e)}`).join("&"):`${Ou(t)}=${Ou(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Ru=new Iu;function Nu(e){return e.segments.map(e=>Lu(e)).join("/")}function Pu(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ou(e){return Pu(e).replace(/%3B/gi,";")}function Du(e){return Pu(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mu(e){return decodeURIComponent(e)}function Uu(e){return Mu(e.replace(/\+/g,"%20"))}function Lu(e){return`${Du(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Du(e)}=${Du(t[e])}`).join("")}`;var t}const ju=/^[^\/()?;=#]+/;function Hu(e){const t=e.match(ju);return t?t[0]:""}const Vu=/^[^=?&#]+/,Fu=/^[^?&#]+/;class $u{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Su([],{}):new Su([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[ou]=new Su(e,t)),n}parseSegment(){const e=Hu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Eu(Mu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Hu(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Hu(this.remaining);e&&this.capture(n=e)}e[Mu(t)]=Mu(n)}parseQueryParam(e){const t=function(e){const t=e.match(Vu);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Fu);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=Uu(t),s=Uu(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Hu(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ou);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[ou]:new Su([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class zu{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Bu(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Bu(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=qu(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return qu(e,this._root).map(e=>e.value)}}function Bu(e,t){if(e===t.value)return t;for(const n of t.children){const t=Bu(e,n);if(t)return t}return null}function qu(e,t){if(e===t.value)return[t];for(const n of t.children){const r=qu(e,n);if(r.length)return r.unshift(t),r}return[]}class Zu{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Wu(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Gu extends zu{constructor(e,t){super(e),this.snapshot=t,eh(this,e)}toString(){return this.snapshot.toString()}}function Qu(e,t){const n=function(e,t){const n=new Ju([],{},{},"",{},ou,t,null,e.root,-1,{});return new Xu("",new Zu(n,[]))}(e,t),r=new ja([new Eu("",{})]),s=new ja({}),i=new ja({}),o=new ja({}),a=new ja(""),l=new Ku(r,s,o,a,i,ou,t,n.root);return l.snapshot=n.root,new Gu(new Zu(l,[]),n)}class Ku{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($(e=>lu(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(e=>lu(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yu(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ju{constructor(e,t,n,r,s,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=lu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xu extends zu{constructor(e,t){super(t),this.url=e,eh(this,t)}toString(){return th(this._root)}}function eh(e,t){t.value._routerState=e,t.children.forEach(t=>eh(e,t))}function th(e){const t=e.children.length>0?` { ${e.children.map(th).join(", ")} } `:"";return`${e.value}${t}`}function nh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,vu(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),vu(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nvu(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||rh(e.parent,t.parent))}function sh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ih(e,t,n,r,s){let i={};return r&&_u(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new xu(n.root===e?t:function e(t,n,r){const s={};return _u(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Su(t.segments,s)}(n.root,e,t),i,s)}class oh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&sh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==yu(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ah{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function lh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[ou]:`${e}`}function ch(e,t,n){if(e||(e=new Su([],{})),0===e.segments.length&&e.hasChildren())return uh(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const t=e.segments[s],o=lh(n[r]),a=r0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!fh(o,a,t))return i;r+=2}else{if(!fh(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=ch(e.children[r],t,n))}),_u(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Su(e.segments,s)}}function hh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s{null!==e&&(t[n]=hh(new Su([],{}),0,e))}),t}function ph(e){const t={};return _u(e,(e,n)=>t[n]=`${e}`),t}function fh(e,t,n){return e==n.path&&vu(t,n.parameters)}const gh=(e,t,n)=>$(r=>(new mh(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class mh{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),nh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Wu(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),_u(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=Wu(e),s=e.value.component?n.children:t;_u(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Wu(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new ru(e.value.snapshot))}),e.children.length&&this.forwardEvent(new tu(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(nh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),vh(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function vh(e){nh(e.value),e.children.forEach(vh)}function wh(e){return"function"==typeof e}function yh(e){return e instanceof xu}class _h{constructor(e){this.segmentGroup=e||null}}class bh{constructor(e){this.urlTree=e}}function Ch(e){return new b(t=>t.error(new _h(e)))}function xh(e){return new b(t=>t.error(new bh(e)))}function Sh(e){return new b(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Eh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Fe)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ou).pipe($(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(cl(e=>{if(e instanceof bh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof _h)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ou).pipe($(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(cl(e=>{if(e instanceof _h)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Su([],{[ou]:e}):e;return new xu(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe($(e=>new Su([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return La({});const n=[],r=[],s={};return _u(e,(e,i)=>{const o=t(i,e).pipe($(e=>s[i]=e));i===ou?n.push(o):r.push(o)}),La.apply(null,n.concat(r)).pipe(qa(),ll(),$(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return La(...n).pipe($(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(cl(e=>{if(e instanceof _h)return La(null);throw e}))),qa(),gl(e=>!!e),cl((e,n)=>{if(e instanceof Va||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return La(new Su([],{}));throw new _h(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return Ih(r)!==i?Ch(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Ch(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xh(s):this.lineralizeSegments(n,s).pipe(W(n=>{const s=new Su(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Th(t,r,s);if(!o)return Ch(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?xh(u):this.lineralizeSegments(r,u).pipe(W(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe($(e=>(n._loadedConfig=e,new Su(r,{})))):La(new Su(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Th(t,n,r);if(!s)return Ch(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(W(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>Ah(e,t,n)&&Ih(n)!==ou)}(e,n,r)?{segmentGroup:kh(new Su(t,function(e,t){const n={};n[ou]=t;for(const r of e)""===r.path&&Ih(r)!==ou&&(n[Ih(r)]=new Su([],{}));return n}(r,new Su(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Ah(e,t,n))}(e,n,r)?{segmentGroup:kh(new Su(e.segments,function(e,t,n,r){const s={};for(const i of n)Ah(e,t,i)&&!r[Ih(i)]&&(s[Ih(i)]=new Su([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe($(e=>new Su(i,e))):0===r.length&&0===o.length?La(new Su(i,{})):this.expandSegment(n,s,r,o,ou,!0).pipe($(e=>new Su(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?La(new du(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?La(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?Z(r).pipe($(r=>{const s=e.get(r);let i;if(function(e){return e&&wh(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!wh(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return bu(i)})).pipe(qa(),(s=e=>!0===e,e=>e.lift(new ml(s,void 0,e)))):La(!0);var s}(e.injector,t,n).pipe(W(n=>n?this.configLoader.load(e.injector,t).pipe($(e=>(t._loadedConfig=e,e))):function(e){return new b(t=>t.error(uu(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):La(new du([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return La(n);if(r.numberOfChildren>1||!r.children[ou])return Sh(e.redirectTo);r=r.children[ou]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new xu(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return _u(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return _u(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Su(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Th(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||hu)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function kh(e){if(1===e.numberOfChildren&&e.children[ou]){const t=e.children[ou];return new Su(e.segments.concat(t.segments),t.children)}return e}function Ah(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ih(e){return e.outlet||ou}class Rh{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Nh{constructor(e,t){this.component=e,this.route=t}}function Ph(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Wu(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Tu(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Tu(e.url,t.url)||!vu(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!rh(e,t)||!vu(e.queryParams,t.queryParams);case"paramsChange":default:return!rh(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Rh(s)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new Nh(l&&l.outlet&&l.outlet.component||null,a))}else a&&Dh(n,l,i),i.canActivateChecks.push(new Rh(s)),e(t,null,o.component?l?l.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),_u(o,(e,t)=>Dh(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function Oh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Dh(e,t,n){const r=Wu(e),s=e.value;_u(r,(e,r)=>{Dh(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Nh(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const Mh=Symbol("INITIAL_VALUE");function Uh(){return wl(e=>(function(...e){let t=null,n=null;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),q(e,n).lift(new $a(t))})(...e.map(e=>e.pipe(dl(1),function(...e){return t=>{let n=e[e.length-1];I(n)?e.pop():n=null;const r=e.length;return function(...e){return qa()(La(...e))}(1!==r||n?r>0?q(e,n):Ma(n):Ua(e[0]),t)}}(Mh)))).pipe(bl((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Mh)return e;if(r===Mh&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||yh(r))return r}return e},e)},Mh),Za(e=>e!==Mh),$(e=>yh(e)?e:!0===e),dl(1)))}function Lh(e,t){return null!==e&&t&&t(new nu(e)),La(!0)}function jh(e,t){return null!==e&&t&&t(new eu(e)),La(!0)}function Hh(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?La(r.map(r=>Ba(()=>{const s=Oh(r,t,n);let i;if(function(e){return e&&wh(e.canActivate)}(s))i=bu(s.canActivate(t,e));else{if(!wh(s))throw new Error("Invalid CanActivate guard");i=bu(s(t,e))}return i.pipe(gl())}))).pipe(Uh()):La(!0)}function Vh(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>Ba(()=>La(t.guards.map(s=>{const i=Oh(s,t.node,n);let o;if(function(e){return e&&wh(e.canActivateChild)}(i))o=bu(i.canActivateChild(r,e));else{if(!wh(i))throw new Error("Invalid CanActivateChild guard");o=bu(i(r,e))}return o.pipe(gl())})).pipe(Uh())));return La(s).pipe(Uh())}class Fh{}class $h{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const e=qh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ou),n=new Ju([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ou,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Zu(n,t),s=new Xu(this.url,r);return this.inheritParamsAndData(s._root),La(s)}catch(e){return new b(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Yu(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=ku(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===ou?-1:t.value.outlet===ou?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof Fh))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Fh}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Fh;if((e.outlet||ou)!==r)throw new Fh;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?yu(n).parameters:{};s=new Ju(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Gh(e),r,e.component,e,zh(t),Bh(t)+n.length,Qh(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Fh;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||hu)(n,e,t);if(!r)throw new Fh;const s={};_u(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new Ju(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Gh(e),r,e.component,e,zh(t),Bh(t)+i.length,Qh(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=qh(t,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Zu(s,e)]}if(0===a.length&&0===c.length)return[new Zu(s,[])];const u=this.processSegment(a,l,c,ou);return[new Zu(s,u)]}}function zh(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Bh(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function qh(e,t,n,r,s){if(n.length>0&&function(e,t,n){return n.some(n=>Zh(e,t,n)&&Wh(n)!==ou)}(e,n,r)){const s=new Su(t,function(e,t,n,r){const s={};s[ou]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Wh(i)!==ou){const n=new Su([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[Wh(i)]=n}return s}(e,t,r,new Su(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Zh(e,t,n))}(e,n,r)){const i=new Su(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(Zh(e,n,a)&&!s[Wh(a)]){const n=new Su([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Wh(a)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Su(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Zh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Wh(e){return e.outlet||ou}function Gh(e){return e.data||{}}function Qh(e){return e.resolve||{}}function Kh(e,t,n,r){const s=Oh(e,t,r);return bu(s.resolve?s.resolve(t,n):s(t,n))}function Yh(e){return function(t){return t.pipe(wl(t=>{const n=e(t);return n?Z(n).pipe($(()=>t)):Z([t])}))}}class Jh{}class Xh{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const ed=new Ee("ROUTES");class td{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe($(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new du(wu(r.injector.get(ed)).map(mu),r)}))}loadModuleFactory(e){return"string"==typeof e?Z(this.loader.load(e)):bu(e()).pipe(W(e=>e instanceof $e?La(e):Z(this.compiler.compileModuleAsync(e))))}}class nd{}class rd{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function sd(e){throw e}function id(e,t,n){return t.parse("/")}function od(e,t){return La(null)}class ad{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=sd,this.malformedUriErrorHandler=id,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:od,afterPreactivation:od},this.urlHandlingStrategy=new rd,this.routeReuseStrategy=new Xh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Fe),this.console=s.get(Fs);const l=s.get(oi);this.isNgZoneEnabled=l instanceof oi,this.resetConfig(a),this.currentUrlTree=new xu(new Su([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new td(i,o,e=>this.triggerEvent(new Jc(e)),e=>this.triggerEvent(new Xc(e))),this.routerState=Qu(this.currentUrlTree,this.rootComponentType),this.transitions=new ja({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Za(e=>0!==e.id),$(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),wl(e=>{let n=!1,r=!1;return La(e).pipe(el(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),wl(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return La(e).pipe(wl(e=>{const n=this.transitions.getValue();return t.next(new zc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Da:[e]}),wl(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(wl(s=>(function(e,t,n,r,s){return new Eh(e,t,n,r,s).apply()})(e,t,n,s.extractedUrl,r).pipe($(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),el(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(W(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new $h(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe($(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),el(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),el(e=>{const n=new Wc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,a=new zc(n,this.serializeUrl(r),s,i);t.next(a);const l=Qu(r,this.rootComponentType).snapshot;return La(Object.assign({},e,{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Da}),Yh(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),el(e=>{const t=new Gc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),$(e=>Object.assign({},e,{guards:Ph(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?La(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return Z(e).pipe(W(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?La(i.map(i=>{const o=Oh(i,t,s);let a;if(function(e){return e&&wh(e.canDeactivate)}(o))a=bu(o.canDeactivate(e,t,n,r));else{if(!wh(o))throw new Error("Invalid CanDeactivate guard");a=bu(o(e,t,n,r))}return a.pipe(gl())})).pipe(Uh()):La(!0)})(e.component,e.route,n,t,r)),gl(e=>!0!==e,!0))}(o,r,s,e).pipe(W(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return Z(t).pipe(Sl(t=>Z([jh(t.route.parent,r),Lh(t.route,r),Vh(e,t.path,n),Hh(e,t.route,n)]).pipe(qa(),gl(e=>!0!==e,!0))),gl(e=>!0!==e,!0))}(r,i,e,t):La(n)),$(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),el(e=>{if(yh(e.guardsResult)){const t=uu(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),el(e=>{const t=new Qc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Za(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new qc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Yh(e=>{if(e.guards.canActivateChecks.length)return La(e).pipe(el(e=>{const t=new Kc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?Z(s).pipe(Sl(n=>(function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return La({});if(1===s.length){const i=s[0];return Kh(e[i],t,n,r).pipe($(e=>({[i]:e})))}const i={};return Z(s).pipe(W(s=>Kh(e[s],t,n,r).pipe($(e=>(i[s]=e,e))))).pipe(ll(),$(()=>i))}(e._resolve,e,t,r).pipe($(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Yu(e,n).resolve),null)))})(n.route,r,e,t)),function(e,t){return arguments.length>=2?function(n){return y(bl(e,t),Ya(1),il(t))(n)}:function(t){return y(bl((t,n,r)=>e(t,n,r+1)),Ya(1))(t)}}((e,t)=>e),$(e=>n)):La(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),el(e=>{const t=new Yc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Yh(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),$(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new Zu(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;re(t,n));return new Zu(r,i)}}var s}(e,t._root,n?n._root:void 0);return new Gu(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),el(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),gh(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),el({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new El(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new qc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),cl(n=>{if(r=!0,function(e){return e&&e[cu]}(n)){const r=yh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new qc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new Zc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return Da}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){pu(e),this.config=e.map(mu),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=t;nt()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let u=null;if(o)switch(o){case"merge":u=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=i?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,s){if(0===n.length)return ih(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new oh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return _u(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new oh(n,t,r)}(n);if(i.toRoot())return ih(t.root,new Su([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new ah(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ah(n.snapshot._urlSegment,!0,0);const r=sh(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,!(r=r.parent))throw new Error("Invalid number of '../'");s=r.segments.length}return new ah(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?uh(o.segmentGroup,o.index,i.commands):ch(o.segmentGroup,o.index,i.commands);return ih(o.segmentGroup,a,t,r,s)}(l,this.currentUrlTree,e,u,c)}navigateByUrl(e,t={skipLocationChange:!1}){nt()&&this.isNgZoneEnabled&&!oi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=yh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Bc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const a=new Promise((e,t)=>{i=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class ld{constructor(e,t,n,r,s){this.router=e,this.route=t,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){nt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:ud(this.skipLocationChange),replaceUrl:ud(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ud(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ud(this.preserveFragment)})}}class cd{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(e=>{e instanceof Bc&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){nt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:ud(this.skipLocationChange),replaceUrl:ud(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ud(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ud(this.preserveFragment)})}}function ud(e){return""===e||!!e}class hd{constructor(e,t,n,r,s){this.router=e,this.element=t,this.renderer=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(e=>{e instanceof Bc&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(e=>this.update()),this.linksWithHrefs.changes.subscribe(e=>this.update()),this.update()}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}class dd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pd,this.attachRef=null}}class pd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new dd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class fd{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Rs,this.deactivateEvents=new Rs,this.name=r||ou,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new gd(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class gd{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ku?this.route:e===pd?this.childContexts:this.parent.get(e,t)}}class md{}class vd{preload(e,t){return t().pipe(cl(()=>La(null)))}}class wd{preload(e,t){return La(null)}}class yd{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new td(t,n,t=>e.triggerEvent(new Jc(t)),t=>e.triggerEvent(new Xc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Za(e=>e instanceof Bc),Sl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Fe);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Z(n).pipe(Y(),$(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(W(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class _d{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Bc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof su&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new su(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const bd=new Ee("ROUTER_CONFIGURATION"),Cd=new Ee("ROUTER_FORROOT_GUARD"),xd=[_a,{provide:Au,useClass:Iu},{provide:ad,useFactory:Rd,deps:[Ti,Au,pd,_a,Dt,Ai,Qs,ed,bd,[nd,new le],[Jh,new le]]},pd,{provide:Ku,useFactory:Nd,deps:[ad]},{provide:Ai,useClass:Oi},yd,wd,vd,{provide:bd,useValue:{enableTracing:!1}}];function Sd(){return new bi("Router",ad)}class Ed{constructor(e,t){}static forRoot(e,t){return{ngModule:Ed,providers:[xd,Id(e),{provide:Cd,useFactory:Ad,deps:[[ad,new le,new ue]]},{provide:bd,useValue:t||{}},{provide:wa,useFactory:kd,deps:[ma,[new ae(ya),new le],bd]},{provide:_d,useFactory:Td,deps:[ad,Pa,bd]},{provide:md,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:wd},{provide:bi,multi:!0,useFactory:Sd},[Pd,{provide:Os,multi:!0,useFactory:Od,deps:[Pd]},{provide:Md,useFactory:Dd,deps:[Pd]},{provide:Vs,multi:!0,useExisting:Md}]]}}static forChild(e){return{ngModule:Ed,providers:[Id(e)]}}}function Td(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new _d(e,t,n)}function kd(e,t,n={}){return n.useHash?new Ca(e,t):new xa(e,t)}function Ad(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Id(e){return[{provide:zt,multi:!0,useValue:e},{provide:ed,multi:!0,useValue:e}]}function Rd(e,t,n,r,s,i,o,a,l={},c,u){const h=new ad(null,t,n,r,s,i,o,wu(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Al();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function Nd(e){return e.routerState.root}class Pd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(va,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(ad),r=this.injector.get(bd);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?La(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(bd),n=this.injector.get(yd),r=this.injector.get(_d),s=this.injector.get(ad),i=this.injector.get(Ti);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Od(e){return e.appInitializer.bind(e)}function Dd(e){return e.bootstrapListener.bind(e)}const Md=new Ee("Router Initializer");var Ud=n("3ejw"),Ld=n.n(Ud);class jd extends d{constructor(e,t){super()}schedule(e,t=0){return this}}class Hd extends jd{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Vd extends Hd{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let Fd=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class $d extends Fd{constructor(e,t=Fd.now){super(e,()=>$d.delegate&&$d.delegate!==this?$d.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return $d.delegate&&$d.delegate!==this?$d.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class zd extends $d{}const Bd=new zd(Vd);let qd=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return La(this.value);case"E":return e=this.error,new b(t=>t.error(e));case"C":return Ma()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class Zd extends g{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Zd.dispatch,this.delay,new Wd(e,this.destination)))}_next(e){this.scheduleMessage(qd.createNext(e))}_error(e){this.scheduleMessage(qd.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(qd.createComplete()),this.unsubscribe()}}class Wd{constructor(e,t){this.notification=e,this.destination=t}}class Gd{constructor(e,t){this.time=e,this.value=t}}const Qd=new class extends k{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Gd(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=n.length;let i;if(this.closed)throw new S;if(this.isStopped||this.hasError?i=d.EMPTY:(this.observers.push(e),i=new E(this,e)),r&&e.add(e=new Zd(e,r)),t)for(let o=0;ot&&(i=Math.max(i,s-t)),i>0&&r.splice(0,i),r}}(1);class Kd{}class Yd{constructor(){this.title="single-spa-angular-app"}}var Jd=er({encapsulation:2,styles:[],data:{}});function Xd(e){return lo(0,[(e()(),Wi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(1,212992,null,0,fd,[pd,Un,on,[8,null],Rt],null,null)],(function(e,t){e(t,1,0)}),null)}function ep(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"ng-component",[],null,null,null,Xd,Jd)),ls(1,49152,null,0,iu,[],null,null)],null,null)}var tp=jr("ng-component",iu,ep,{},{},[]);class np{constructor(){}ngOnInit(){}}var rp=er({encapsulation:0,styles:[[""]],data:{}});function sp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),io(-1,null,["List page"])),(e()(),Wi(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),io(-1,null,["This is the initial page. You'll see this page when navigate to Angular section from sidebar."]))],null,null)}function ip(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-list",[],null,null,null,sp,rp)),ls(1,114688,null,0,np,[],null,null)],(function(e,t){e(t,1,0)}),null)}var op=jr("app-list",np,ip,{},{},[]);class ap{constructor(){}ngOnInit(){}}var lp=er({encapsulation:0,styles:[[""]],data:{}});function cp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),io(-1,null,["Detail page"])),(e()(),Wi(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),io(-1,null,["If you are seeing this is due to you navigated from List page."]))],null,null)}function up(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-detail",[],null,null,null,cp,lp)),ls(1,114688,null,0,ap,[],null,null)],(function(e,t){e(t,1,0)}),null)}var hp=jr("app-detail",ap,up,{},{},[]);class dp{}var pp=er({encapsulation:2,styles:[],data:{}});function fp(e){return lo(0,[],null,null)}function gp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-empty-route",[],null,null,null,fp,pp)),ls(1,49152,null,0,dp,[],null,null)],null,null)}var mp=jr("app-empty-route",dp,gp,{},{},[]),vp=er({encapsulation:0,styles:[["div#app-component[_ngcontent-%COMP%]{padding:0 15px}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{margin:30px 0}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:10px;display:inline-block;width:75px;text-align:center}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:#007bff;color:#fff;border-radius:4px}"]],data:{}});function wp(e){return lo(0,[(e()(),Wi(0,0,null,null,23,"div",[["class","container"],["id","app-component"]],null,null,null,null,null)),(e()(),Wi(1,0,null,null,2,"h1",[],null,null,null,null,null)),(e()(),Wi(2,0,null,null,0,"img",[["height","50"],["src","https://angular.io/assets/images/logos/angular/angular.png"],["width","50"]],null,null,null,null,null)),(e()(),io(-1,null,[" Angular App"])),(e()(),Wi(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Wi(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),io(-1,null,['This is the Angular section page. This section is displayed when url starts with "/angular" prefix. '])),(e()(),Wi(7,0,null,null,14,"nav",[],null,null,null,null,null)),(e()(),Wi(8,0,null,null,6,"a",[["routerLink","/angular"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Qr(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),ls(9,671744,[[2,4]],0,cd,[ad,Ku,wa],{routerLink:[0,"routerLink"]},null),ls(10,1720320,null,2,hd,[ad,un,gn,[2,ld],[2,cd]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ji(603979776,1,{links:1}),Ji(603979776,2,{linksWithHrefs:1}),so(13,{exact:0}),(e()(),io(-1,null,["List"])),(e()(),Wi(15,0,null,null,6,"a",[["routerLink","/angular/detail"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Qr(e,16).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),ls(16,671744,[[4,4]],0,cd,[ad,Ku,wa],{routerLink:[0,"routerLink"]},null),ls(17,1720320,null,2,hd,[ad,un,gn,[2,ld],[2,cd]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ji(603979776,3,{links:1}),Ji(603979776,4,{linksWithHrefs:1}),so(20,{exact:0}),(e()(),io(-1,null,["Detail"])),(e()(),Wi(22,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(23,212992,null,0,fd,[pd,Un,on,[8,null],Rt],null,null)],(function(e,t){e(t,9,0,"/angular");var n=e(t,13,0,!0);e(t,10,0,n,"active"),e(t,16,0,"/angular/detail");var r=e(t,20,0,!0);e(t,17,0,r,"active"),e(t,23,0)}),(function(e,t){e(t,8,0,Qr(t,9).target,Qr(t,9).href),e(t,15,0,Qr(t,16).target,Qr(t,16).href)}))}function yp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-root",[],null,null,null,wp,vp)),ls(1,49152,null,0,Yd,[],null,null)],null,null)}var _p=jr("app-root",Yd,yp,{},{},[]);class bp{}var Cp=fa(Kd,[Yd],(function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s(e[t.name]=t.token,e),{}))),()=>ql),Od(t)];var n}),[[2,bi],Pd]),Nr(512,Ds,Ds,[[2,Os]]),Nr(131584,Ti,Ti,[oi,Fs,Dt,Xe,on,Ds]),Nr(1073742336,Zi,Zi,[Ti]),Nr(1073742336,Fc,Fc,[[3,Fc]]),Nr(1024,Cd,Ad,[[3,ad]]),Nr(512,Au,Iu,[]),Nr(512,pd,pd,[]),Nr(256,ya,"/",[]),Nr(256,bd,{},[]),Nr(1024,wa,kd,[ma,[2,ya],bd]),Nr(512,_a,_a,[wa,ma]),Nr(512,Qs,Qs,[]),Nr(512,Ai,Oi,[Qs,[2,Ni]]),Nr(1024,ed,(function(){return[[{path:"angular",component:np},{path:"angular/detail",component:ap},{path:"**",component:dp}]]}),[]),Nr(1024,ad,Rd,[Ti,Au,pd,_a,Dt,Ai,Qs,ed,bd,[2,nd],[2,Jh]]),Nr(1073742336,Ed,Ed,[[2,Cd],[2,ad]]),Nr(1073742336,bp,bp,[]),Nr(1073742336,Kd,Kd,[]),Nr(256,Pt,!0,[])])}));n.d(t,"bootstrap",(function(){return Tp})),n.d(t,"mount",(function(){return kp})),n.d(t,"unmount",(function(){return Ap})),n.d(t,"\u02750",(function(){return xp})),n.d(t,"\u02751",(function(){return Sp})),function(){if(tt)throw new Error("Cannot enable prod mode after platform setup.");et=!1}();const xp=e=>(Qd.next(e),Hc().bootstrapModuleFactory(Cp)),Sp=()=>document.getElementById("angular-app"),Ep=Ld()({bootstrapFunction:xp,template:"",Router:ad,NgZone:oi,domElementGetter:Sp}),Tp=Ep.bootstrap,kp=Ep.mount,Ap=Ep.unmount},LboF:function(e,t,n){"use strict";var r,s={},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}e[t]=n}return e[t]}}();function o(e,t){for(var n=[],r={},s=0;s{throw e})}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}function u(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);const h=u;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,u=s?s.length:0;for(;n;)n.remove(this),n=++ae.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,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(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const v="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function y(...e){return _(e)}function _(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:w}let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[v](){return this}pipe(...e){return 0===e.length?this:_(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}x.prototype=Object.create(Error.prototype);const S=x;class E extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class T extends g{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(e){const t=new A(this,this);return t.operator=e,t}next(e){if(this.closed)throw new S;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;snew A(e,t),e})();class A extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function I(e){return e&&"function"==typeof e.schedule}class R extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=O(),M=e=>t=>{const n=e[D]();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},U=e=>t=>{const n=e[v]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},L=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const H=e=>{if(e instanceof b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[v])return U(e);if(L(e))return N(e);if(j(e))return P(e);if(e&&"function"==typeof e[D])return M(e);{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function V(e,t,n,r,s=new R(e,n,r)){if(!s.closed)return H(t)(s)}class F extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function $(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 z(e,t))}}class z{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new B(e,this.project,this.thisArg))}}class B extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new b(t?n=>{const r=new d;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:N(e))}function Z(e,t){if(!t)return e instanceof b?e:new b(H(e));if(null!=e){if(function(e){return e&&"function"==typeof e[v]}(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[v]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:U(e))}(e,t);if(j(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:P(e))}(e,t);if(L(e))return q(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[D](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function W(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(W((n,r)=>Z(e(n,r)).pipe($((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends F{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function Y(e=Number.POSITIVE_INFINITY){return W(K,e)}function J(){return function(e){return e.lift(new X(e))}}class X{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends T{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new k}const ie="__parameters__";function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const ae=oe("Inject",e=>({token:e})),le=oe("Optional"),ce=oe("Self"),ue=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ve=de({__forward_ref__:de});function we(e){return e.__forward_ref__=we,e.toString=function(){return me(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ve)&&t.__forward_ref__===we?t():e}const _e="undefined"!=typeof globalThis&&globalThis,be="undefined"!=typeof window&&window,Ce="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xe="undefined"!=typeof global&&global,Se=_e||xe||be||Ce;class Ee{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Te=new Ee("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Ie="ngTokenPath",Re=/\n/gm,Ne="\u0275",Pe="__source",Oe=de({provide:String,useValue:de});let De,Me=void 0;function Ue(e){const t=Me;return Me=e,t}function Le(e,t=he.Default){if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):Me.get(e,t&he.Optional?null:void 0,t)}function je(e,t=he.Default){return(De||Le)(e,t)}class He{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}function Ve(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ne?e.substr(2):e;let s=me(t);if(t instanceof Array)s=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Re,"\n ")}`}class Fe{}class $e{}function ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Be(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const qe=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}(),Ze=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))(),We="ngDebugContext",Ge="ngOriginalError",Qe="ngErrorLogger";function Ke(e){return e[We]}function Ye(e){return e[Ge]}function Je(e,...t){e.error(...t)}class Xe{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Qe]||Je}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ke(e)?Ke(e):this._findContext(Ye(e)):null}_findOriginalError(e){let t=Ye(e);for(;t&&Ye(t);)t=Ye(t);return t}}let et=!0,tt=!1;function nt(){return tt=!0,et}class rt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0ot(e.trim())).join(", ")),this.buf.push(" ",t,'="',bt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();pt.hasOwnProperty(t)&&!ct.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(bt(e))}checkClobberedElement(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}}const yt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_t=/([^\#-~ |!])/g;function bt(e){return e.replace(/&/g,"&").replace(yt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(_t,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}let Ct;function xt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const St=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}();class Et{}const Tt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),kt=/^url\(([^)]+)\)$/,At=/([A-Z])/g;function It(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Rt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Nt(),e})();const Nt=(...e)=>{},Pt=new Ee("The presence of this token marks an injector as being the root injector."),Ot=function(e,t,n){return new Vt(e,t,n)};let Dt=(()=>{class e{static create(e,t){return Array.isArray(e)?Ot(e,t,""):Ot(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new He,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>je(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const Mt=function(e){return e},Ut=[],Lt=Mt,jt=function(){return Array.prototype.slice.call(arguments)},Ht="\u0275";class Vt{constructor(e,t=Dt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Dt,{token:Dt,fn:Mt,deps:Ut,value:this,useNew:!1}),r.set(Te,{token:Te,fn:Mt,deps:Ut,value:this,useNew:!1}),function e(t,n){if(n)if((n=ye(n))instanceof Array)for(let r=0;re.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Ft(e){return $t("Cannot mix multi providers and regular providers",e)}function $t(e,t){return new Error(Ve(e,t,"StaticInjectorError"))}const zt=new Ee("AnalyzeForEntryComponents");let Bt=null;function qt(){if(!Bt){const e=Se.Symbol;if(e&&e.iterator)Bt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t{class e{}return e.NULL=new sn,e})();class an{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>hn(e),e})();const hn=cn;class dn{}class pn{}const fn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let gn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>mn(),e})();const mn=cn;class vn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const wn=new vn("8.2.14");class yn{constructor(){}supports(e){return Qt(e)}create(e){return new bn(e)}}const _n=(e,t)=>t;class bn{constructor(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=e||_n}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&Zt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Zt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Zt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Zt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new Cn(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Sn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Cn{constructor(e,t){this.item=e,this.trackById=t,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 xn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Zt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Sn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new xn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function En(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new An(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Zt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class An{constructor(e){this.key=e,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 In=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new yn])}),e})(),Rn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new Tn])}),e})();const Nn=[new Tn],Pn=new In([new yn]),On=new Rn(Nn);let Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Mn(e,un),e})();const Mn=cn;let Un=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ln(e,un),e})();const Ln=cn;function jn(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return Hn(n,t),n}(s,e)}function Hn(e,t){e[We]=t,e[Qe]=t.logError.bind(t)}function Vn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Fn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function $n(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function zn(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function Zn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}const Gn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Qn=()=>{},Kn=new Map;function Yn(e){let t=Kn.get(e);return t||(t=me(e)+"_"+Kn.size,Kn.set(e,t)),t}const Jn="$$undefined",Xn="$$empty";function er(e){return{id:Jn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let tr=0;function nr(e,t,n,r){return!(!(2&e.state)&&Zt(e.oldValues[t.bindingIndex+n],r))}function rr(e,t,n,r){return!!nr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function sr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Wt(s,r)){const i=t.bindings[n].name;throw jn(Gn.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function ir(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function or(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ar(e,t,n,r){try{return ir(33554432&e.def.nodes[t].flags?Bn(e,t).componentView:e),Gn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function lr(e){return e.parent?Bn(e.parent,e.parentNodeDef.nodeIndex):null}function cr(e){return e.parent?e.parentNodeDef.parent:null}function ur(e,t){switch(201347067&t.flags){case 1:return Bn(e,t.nodeIndex).renderElement;case 2:return zn(e,t.nodeIndex).renderText}}function hr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function dr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function pr(e){return 1<{"number"==typeof e?(t[e]=s,n|=pr(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function gr(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Pe,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Yn(n)}})}function mr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===qe.Native?Bn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const vr=new WeakMap;function wr(e){let t=vr.get(e);return t||((t=e(()=>Qn)).factory=e,vr.set(e,t)),t}function yr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(ur(e,e.def.lastRenderRootNode))),_r(e,t,0,e.def.nodes.length-1,n,r,s)}function _r(e,t,n,r,s,i,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Cr(e,n,t,s,i,o),a+=n.childCount}}function br(e,t,n,r,s,i){let o=e;for(;o&&!hr(o);)o=o.parent;const a=o.parent,l=cr(o),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&Cr(a,e,n,r,s,i),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(s,i.providedIn)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=kr,e._providers[n]=Or(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ue(r)}var s,i}function Or(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Pr(e,n[0]));case 2:return new t(Pr(e,n[0]),Pr(e,n[1]));case 3:return new t(Pr(e,n[0]),Pr(e,n[1]),Pr(e,n[2]));default:const s=new Array(r);for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Be(n,t),Gn.dirtyParentQueries(r),Ur(r),r}function Mr(e,t,n){const r=t?ur(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);yr(n,2,s,i,void 0)}function Ur(e){yr(e,3,null,null,void 0)}const Lr=new Object;function jr(e,t,n,r,s,i){return new Hr(e,t,n,r,s,i)}class Hr extends tn{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=wr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=Gn.createRootView(e,t||[],n,s,r,Lr),a=qn(o,i).instance;return n&&o.renderer.setAttribute(Bn(o,0).renderElement,"ng-version",wn.full),new Vr(o,new Br(o),a)}}class Vr extends en{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new un(Bn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Gr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Fr(e,t,n){return new $r(e,t,n)}class $r{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new un(this._data.renderElement)}get injector(){return new Gr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=cr(e),e=e.parent;return e?new Gr(e,t):new Gr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Dr(this._data,e);Gn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Br(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof ln||(s=i.get(Fe));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,ze(s,n,r),function(e,t){const n=lr(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Gn.dirtyParentQueries(r),Mr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,s=r[t];Be(r,t),null==n&&(n=r.length),ze(r,n,s),Gn.dirtyParentQueries(s),Ur(s),Mr(e,n>0?r[n-1]:null,s)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Dr(this._data,e);t&&Gn.destroyView(t)}detach(e){const t=Dr(this._data,e);return t?new Br(t):null}}function zr(e){return new Br(e)}class Br{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return yr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){ir(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Gn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Gn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Gn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ur(this._view),Gn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function qr(e,t){return new Zr(e,t)}class Zr extends Dn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Br(Gn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new un(Bn(this._parentView,this._def.nodeIndex).renderElement)}}function Wr(e,t){return new Gr(e,t)}class Gr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Dt.THROW_IF_NOT_FOUND){return Gn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Yn(e)},t)}}function Qr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Bn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return zn(e,n.nodeIndex).renderText;if(20240&n.flags)return qn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Kr(e){return new Yr(e.renderer)}class Yr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Er(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;ne())}onDestroy(e){this._destroyListeners.push(e)}}const es=Yn(dn),ts=Yn(gn),ns=Yn(un),rs=Yn(Un),ss=Yn(Dn),is=Yn(Rt),os=Yn(Dt),as=Yn(Te);function ls(e,t,n,r,s,i,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return function(e,t,n,r,s,i,o,a,l){const{matchedQueries:c,references:u,matchedQueryIds:h}=fr(n);l||(l=[]),a||(a=[]),i=ye(i);const d=gr(o,me(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Tr(a),outputs:l,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}(e,t|=16384,n,r,s,s,i,l,c)}function cs(e,t){return ps(e,t)}function us(e,t){let n=e;for(;n.parent&&!hr(n);)n=n.parent;return fs(n.parent,cr(n),!0,t.provider.value,t.provider.deps)}function hs(e,t){const n=fs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;rar(e,t,n,r)}function ps(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return fs(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(ms(e,t,n,s[0]));case 2:return r(ms(e,t,n,s[0]),ms(e,t,n,s[1]));case 3:return r(ms(e,t,n,s[0]),ms(e,t,n,s[1]),ms(e,t,n,s[2]));default:const o=Array(i);for(let r=0;rZe}),xs={},Ss=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,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};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.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Es=void 0;var Ts=["en",[["a","p"],["AM","PM"],Es],[["AM","PM"],Es,Es],[["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"]],Es,[["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"]],Es,[["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}",Es,"{1} 'at' {0}",Es],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const ks="en-US";let As=ks;function Is(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(As=e.toLowerCase().replace(/_/g,"-"))}class Rs extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function Ns(){return this._results[qt()]()}class Ps{constructor(){this.dirty=!0,this._results=[],this.changes=new Rs,this.length=0;const e=qt(),t=Ps.prototype;t[e]||(t[e]=Ns)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Ms=new Ee("AppId");function Us(){return`${Ls()}${Ls()}${Ls()}`}function Ls(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const js=new Ee("Platform Initializer"),Hs=new Ee("Platform ID"),Vs=new Ee("appBootstrapListener");class Fs{log(e){console.log(e)}warn(e){console.warn(e)}}const $s=new Ee("LocaleId"),zs=!1;function Bs(){throw new Error("Runtime compiler is not loaded")}const qs=Bs,Zs=Bs,Ws=Bs,Gs=Bs;class Qs{constructor(){this.compileModuleSync=qs,this.compileModuleAsync=Zs,this.compileModuleAndAllComponentsSync=Ws,this.compileModuleAndAllComponentsAsync=Gs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ks{}let Ys,Js;function Xs(){const e=Se.wtf;return!(!e||!(Ys=e.trace)||(Js=Ys.events,0))}const ei=Xs();function ti(e,t){return null}const ni=ei?function(e,t=null){return Js.createScope(e,t)}:(e,t)=>ti,ri=ei?function(e,t){return Ys.leaveScope(e,t),t}:(e,t)=>t,si=(()=>Promise.resolve(0))();function ii(e){"undefined"==typeof Zone?si.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class oi{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rs(!1),this.onMicrotaskEmpty=new Rs(!1),this.onStable=new Rs(!1),this.onError=new Rs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return ui(t),e.invokeTask(r,s,i,o)}finally{hi(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return ui(t),e.invoke(r,s,i,o,a)}finally{hi(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,ci(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,li,ai,ai);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function ai(){}const li={};function ci(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ui(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hi(e){e._nesting--,ci(e)}class di{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rs,this.onMicrotaskEmpty=new Rs,this.onStable=new Rs,this.onError=new Rs}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class pi{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oi.assertNotInAngularZone(),ii(()=>{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())ii(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class fi{constructor(){this._applications=new Map,vi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return vi.findTestabilityInTree(this,e,t)}}class gi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let mi,vi=new gi,wi=function(e,t,n){return e.get(Ks).createCompiler([t]).compileModuleAsync(n)},yi=function(e){return e instanceof ln};const _i=new Ee("AllowMultipleToken");class bi{constructor(e,t){this.name=e,this.token=t}}function Ci(e,t,n=[]){const r=`Platform: ${t}`,s=new Ee(r);return(t=[])=>{let i=xi();if(!i||i.injector.get(_i,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(mi&&!mi.destroyed&&!mi.injector.get(_i,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");mi=e.get(Si);const t=e.get(js,null);t&&t.forEach(e=>e())}(Dt.create({providers:e,name:r}))}return function(e){const t=xi();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}(s)}}function xi(){return mi&&!mi.destroyed?mi:null}class Si{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new di:("zone.js"===s?void 0:s)||new oi({enableLongStackTrace:nt()}),r=[{provide:oi,useValue:n}];var s;return n.run(()=>{const t=Dt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Xe,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return zs&&Is(s.injector.get($s,ks)||ks),s.onDestroy(()=>ki(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const r=n();return Yt(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Ds);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Ei({},t);return wi(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ti);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(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)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Ei(e,t){return Array.isArray(t)?t.reduce(Ei,e):Object.assign({},e,t)}let Ti=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=nt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{oi.assertNotInAngularZone(),ii(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{oi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return I(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:Y(t)(q(e,n))}(o,a.pipe(e=>J()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(e))))}bootstrap(e,t){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=e instanceof tn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=yi(n)?null:this._injector.get(Fe),s=n.create(Dt.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(pi,null);return i&&s.injector.get(fi).registerApplication(s.location.nativeElement,i),this._loadComponent(s),nt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ri(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ki(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Vs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),ki(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ni("ApplicationRef#tick()"),e})();function ki(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ai{}const Ii="#",Ri="NgFactory";class Ni{}const Pi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Oi{constructor(e,t){this._compiler=e,this._config=t||Pi}load(e){return!zs&&this._compiler instanceof Qs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,n]=e.split(Ii);return void 0===n&&(n="default"),System.import(t).then(e=>e[n]).then(e=>Di(e,t,n)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,n]=e.split(Ii),r=Ri;return void 0===n&&(n="default",r=""),System.import(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[n+r]).then(e=>Di(e,t,n))}}function Di(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Mi{constructor(e,t){this.name=e,this.callback=t}}class Ui{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Li&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Li extends Ui{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Li&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Li&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Li&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Li)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ji=new Map,Hi=function(e){return ji.get(e)||null};function Vi(e){ji.set(e.nativeNode,e)}const Fi=Ci(null,"core",[{provide:Hs,useValue:"unknown"},{provide:Si,deps:[Dt]},{provide:fi,deps:[]},{provide:Fs,deps:[]}]);function $i(){return Pn}function zi(){return On}function Bi(e){return e?(zs&&Is(e),e):ks}function qi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Zi{constructor(e){}}function Wi(e,t,n,r,s,i,o=[],a,l,c,u,h){c||(c=Qn);const{matchedQueries:d,references:p,matchedQueryIds:f}=fr(n);let g=null,m=null;i&&([g,m]=Er(i)),a=a||[];const v=new Array(a.length);for(let _=0;_{const[n,r]=Er(e);return[n,r,t]});return h=function(e){if(e&&e.id===Jn){const t=null!=e.encapsulation&&e.encapsulation!==qe.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${tr++}`:Xn}return e&&e.id===Xn&&(e=null),e||null}(h),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:v,bindingFlags:Tr(v),outputs:w,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Qn},provider:null,text:null,query:null,ngContent:null}}function Gi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=mr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===qe.ShadowDom);if(r.attrs)for(let a=0;aar(e,t,n,r)}function Yi(e,t,n,r){if(!rr(e,t,n,r))return!1;const s=t.bindings[n],i=Bn(e,t.nodeIndex),o=i.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=e.renderer;null!=i?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,o,s.ns,a,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(St.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,a,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,a,r)}return!0}function Ji(e,t,n){let r=[];for(let s in n)r.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:pr(t),bindings:r},ngContent:null}}function Xi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&dr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Wn(e,s).setDirty(),!(1&r.flags&&s+r.childCount0)c=e,co(e)||(u=e);else for(;c&&f===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),u=(c=e)&&co(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Qn,updateRenderer:r||Qn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function co(e){return 0!=(1&e.flags)&&null===e.element.name}function uo(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function ho(e,t,n,r){const s=go(e.root,e.renderer,e,t,n);return mo(s,e.component,r),vo(s),s}function po(e,t,n){const r=go(e,e.renderer,null,null,t);return mo(r,n,n),vo(r),r}function fo(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,go(e.root,i,e,t.element.componentProvider,n)}function go(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function mo(e,t,n){e.component=t,e.context=n}function vo(e){let t;hr(e)&&(t=Bn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s0&&Yi(e,t,0,n)&&(p=!0),d>1&&Yi(e,t,1,r)&&(p=!0),d>2&&Yi(e,t,2,s)&&(p=!0),d>3&&Yi(e,t,3,i)&&(p=!0),d>4&&Yi(e,t,4,o)&&(p=!0),d>5&&Yi(e,t,5,a)&&(p=!0),d>6&&Yi(e,t,6,l)&&(p=!0),d>7&&Yi(e,t,7,c)&&(p=!0),d>8&&Yi(e,t,8,u)&&(p=!0),d>9&&Yi(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,a,l,c,u,h);case 2:return function(e,t,n,r,s,i,o,a,l,c,u,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&rr(e,t,0,n)&&(d=!0),f>1&&rr(e,t,1,r)&&(d=!0),f>2&&rr(e,t,2,s)&&(d=!0),f>3&&rr(e,t,3,i)&&(d=!0),f>4&&rr(e,t,4,o)&&(d=!0),f>5&&rr(e,t,5,a)&&(d=!0),f>6&&rr(e,t,6,l)&&(d=!0),f>7&&rr(e,t,7,c)&&(d=!0),f>8&&rr(e,t,8,u)&&(d=!0),f>9&&rr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=ao(n,p[0])),f>1&&(d+=ao(r,p[1])),f>2&&(d+=ao(s,p[2])),f>3&&(d+=ao(i,p[3])),f>4&&(d+=ao(o,p[4])),f>5&&(d+=ao(a,p[5])),f>6&&(d+=ao(l,p[6])),f>7&&(d+=ao(c,p[7])),f>8&&(d+=ao(u,p[8])),f>9&&(d+=ao(h,p[9]));const g=zn(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,i,o,a,l,c,u,h);case 16384:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=qn(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&nr(e,t,0,n)&&(f=!0,g=ws(e,d,t,0,n,g)),m>1&&nr(e,t,1,r)&&(f=!0,g=ws(e,d,t,1,r,g)),m>2&&nr(e,t,2,s)&&(f=!0,g=ws(e,d,t,2,s,g)),m>3&&nr(e,t,3,i)&&(f=!0,g=ws(e,d,t,3,i,g)),m>4&&nr(e,t,4,o)&&(f=!0,g=ws(e,d,t,4,o,g)),m>5&&nr(e,t,5,a)&&(f=!0,g=ws(e,d,t,5,a,g)),m>6&&nr(e,t,6,l)&&(f=!0,g=ws(e,d,t,6,l,g)),m>7&&nr(e,t,7,c)&&(f=!0,g=ws(e,d,t,7,c,g)),m>8&&nr(e,t,8,u)&&(f=!0,g=ws(e,d,t,8,u,g)),m>9&&nr(e,t,9,h)&&(f=!0,g=ws(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&$n(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,a,l,c,u,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,a,l,c,u,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&rr(e,t,0,n)&&(p=!0),f>1&&rr(e,t,1,r)&&(p=!0),f>2&&rr(e,t,2,s)&&(p=!0),f>3&&rr(e,t,3,i)&&(p=!0),f>4&&rr(e,t,4,o)&&(p=!0),f>5&&rr(e,t,5,a)&&(p=!0),f>6&&rr(e,t,6,l)&&(p=!0),f>7&&rr(e,t,7,c)&&(p=!0),f>8&&rr(e,t,8,u)&&(p=!0),f>9&&rr(e,t,9,h)&&(p=!0),p){const p=Zn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=i),f>4&&(g[4]=o),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=c),f>8&&(g[8]=u),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=c),f>8&&(g[d[8].name]=u),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,s);break;case 4:g=e.transform(r,s,i);break;case 5:g=e.transform(r,s,i,o);break;case 6:g=e.transform(r,s,i,o,a);break;case 7:g=e.transform(r,s,i,o,a,l);break;case 8:g=e.transform(r,s,i,o,a,l,c);break;case 9:g=e.transform(r,s,i,o,a,l,c,u);break;case 10:g=e.transform(r,s,i,o,a,l,c,u,h)}}p.value=g}return p}(e,t,n,r,s,i,o,a,l,c,u,h);default:throw"unreachable"}}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s0&&sr(e,t,0,n),d>1&&sr(e,t,1,r),d>2&&sr(e,t,2,s),d>3&&sr(e,t,3,i),d>4&&sr(e,t,4,o),d>5&&sr(e,t,5,a),d>6&&sr(e,t,6,l),d>7&&sr(e,t,7,c),d>8&&sr(e,t,8,u),d>9&&sr(e,t,9,h)}(e,t,r,s,i,o,a,l,c,u,h,d):function(e,t,n){for(let r=0;r{const r=jo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Ho.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);Ho.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:gr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Yn(s)]=t}})}}(e=e.factory(()=>Qn)),e):e}(r))}const jo=new Map,Ho=new Map,Vo=new Map;function Fo(e){let t;jo.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Ho.set(e.token,e)}function $o(e,t){const n=wr(t.viewDefFactory),r=wr(n.nodes[0].element.componentView);Vo.set(e,r)}function zo(){jo.clear(),Ho.clear(),Vo.clear()}function Bo(e){if(0===jo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rQn);for(let r=0;r"-"+e[1].toLowerCase())}`)]=It(a))}const r=t.parent,a=Bn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function ia(e,t,n,r){Co(e,t,n,...r)}function oa(e,t){for(let n=t;n++i===s?e.error.bind(e,...t):Qn),inew la(e,t),handleEvent:ta,updateDirectives:na,updateRenderer:ra}:{setCurrentNode:()=>{},createRootView:Po,createEmbeddedView:ho,createComponentView:fo,createNgModuleRef:Jr,overrideProvider:Qn,overrideComponentView:Qn,clearOverrides:Qn,checkAndUpdateView:yo,checkNoChangesView:wo,destroyView:So,createDebugContext:(e,t)=>new la(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?qo:Zo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?qo:Zo,e)};Gn.setCurrentNode=e.setCurrentNode,Gn.createRootView=e.createRootView,Gn.createEmbeddedView=e.createEmbeddedView,Gn.createComponentView=e.createComponentView,Gn.createNgModuleRef=e.createNgModuleRef,Gn.overrideProvider=e.overrideProvider,Gn.overrideComponentView=e.overrideComponentView,Gn.clearOverrides=e.clearOverrides,Gn.checkAndUpdateView=e.checkAndUpdateView,Gn.checkNoChangesView=e.checkNoChangesView,Gn.destroyView=e.destroyView,Gn.resolveDep=ms,Gn.createDebugContext=e.createDebugContext,Gn.handleEvent=e.handleEvent,Gn.updateDirectives=e.updateDirectives,Gn.updateRenderer=e.updateRenderer,Gn.dirtyParentQueries=Xi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(wr(this._ngModuleDefFactory));return Gn.createNgModuleRef(this.moduleType,e||Dt.NULL,this._bootstrapComponents,t)}}class ma{}const va=new Ee("Location Initialized");class wa{}const ya=new Ee("appBaseHref");class _a{constructor(e,t){this._subject=new Rs,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=_a.stripTrailingSlash(ba(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+_a.normalizeQueryParams(t))}normalize(e){return _a.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ba(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_a.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_a.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function ba(e){return e.replace(/\/index.html$/,"")}class Ca extends wa{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=_a.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class xa extends wa{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return _a.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+_a.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+_a.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const Sa=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}(),Ea=function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=xs[t];if(n)return n;const r=t.split("-")[0];if(n=xs[r])return n;if("en"===r)return Ts;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Ss.PluralCase]},Ta=new Ee("UseV4Plurals");class ka{}class Aa extends ka{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Ea(t||this.locale)(e)){case Sa.Zero:return"zero";case Sa.One:return"one";case Sa.Two:return"two";case Sa.Few:return"few";case Sa.Many:return"many";default:return"other"}}}class Ia{}const Ra=new Ee("DocumentToken"),Na="server";let Pa=(()=>{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new Oa(je(Ra),window,je(Xe))}),e})();class Oa{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const Da=new b(e=>e.complete());function Ma(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):Da}function Ua(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function La(...e){let t=e[e.length-1];switch(I(t)?e.pop():t=void 0,e.length){case 0:return Ma(t);case 1:return t?q(e,t):Ua(e[0]);default:return q(e,t)}}class ja extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(e){super.next(this._value=e)}}function Ha(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ha.prototype=Object.create(Error.prototype);const Va=Ha,Fa={};class $a{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new za(e,this.resultSelector))}}class za extends F{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Fa),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Z(n):Ma()).subscribe(t)})}function qa(){return Y(1)}function Za(e,t){return function(n){return n.lift(new Wa(e,t))}}class Wa{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ga(e,this.predicate,this.thisArg))}}class Ga extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Qa(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Qa.prototype=Object.create(Error.prototype);const Ka=Qa;function Ya(e){return function(t){return 0===e?Ma():t.lift(new Ja(e))}}class Ja{constructor(e){if(this.total=e,this.total<0)throw new Ka}call(e,t){return t.subscribe(new Xa(e,this.total))}}class Xa extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;sel({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function sl(){return new Va}function il(e=null){return t=>t.lift(new ol(e))}class ol{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new al(e,this.defaultValue))}}class al extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ll(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Za((t,n)=>e(t,n,r)):K,Ya(1),n?il(t):rl(()=>new Va))}function cl(e){return function(t){const n=new ul(e),r=t.lift(n);return n.caught=r}}class ul{constructor(e){this.selector=e}call(e,t){return t.subscribe(new hl(e,this.selector,this.caught))}}class hl extends F{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new R(this,void 0,void 0);this.add(r),V(this,n,void 0,void 0,r)}}}function dl(e){return t=>0===e?Ma():t.lift(new pl(e))}class pl{constructor(e){if(this.total=e,this.total<0)throw new Ka}call(e,t){return t.subscribe(new fl(e,this.total))}}class fl extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function gl(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Za((t,n)=>e(t,n,r)):K,dl(1),n?il(t):rl(()=>new Va))}class ml{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new vl(e,this.predicate,this.thisArg,this.source))}}class vl extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function wl(e,t){return"function"==typeof t?n=>n.pipe(wl((n,r)=>Z(e(n,r)).pipe($((e,s)=>t(n,e,r,s))))):t=>t.lift(new yl(e))}class yl{constructor(e){this.project=e}call(e,t){return t.subscribe(new _l(e,this.project))}}class _l extends F{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new R(this,void 0,void 0);this.destination.add(s),this.innerSubscription=V(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function bl(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Cl(e,t,n))}}class Cl{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new xl(e,this.accumulator,this.seed,this.hasSeed))}}class xl extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Sl(e,t){return W(e,t,1)}class El{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Tl(e,this.callback))}}class Tl extends g{constructor(e,t){super(e),this.add(new d(t))}}let kl=null;function Al(){return kl}class Il{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Rl extends Il{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Nl={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Pl=3,Ol={"\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"},Dl={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"},Ml=(()=>{if(Se.Node)return Se.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Ul extends Rl{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Ul,kl||(kl=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Nl}contains(e,t){return Ml.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{n.get(Ds).donePromise.then(()=>{const n=Al();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Vl,Ra,Dt],multi:!0}];class $l{static init(){var e;e=new $l,vi=e}addToWindow(e){Se.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=()=>e.getAllTestabilities(),Se.getAllAngularRootElements=()=>e.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Al().isShadowRoot(t)?this.findTestabilityInTree(e,Al().getHost(t),!0):this.findTestabilityInTree(e,Al().parentElement(t),!0):null}}function zl(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Se.ng=Se.ng||{})[e]=t)}const Bl=(()=>({ApplicationRef:Ti,NgZone:oi}))();function ql(e){return Hi(e)}const Zl=new Ee("EventManagerPlugins");class Wl{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class Kl extends Ql{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Al().remove(e))}}const Yl={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/"},Jl=/%COMP%/g,Xl="_nghost-%COMP%",ec="_ngcontent-%COMP%";function tc(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class rc{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new sc(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case qe.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ac(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case qe.Native:case qe.ShadowDom:return new lc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=tc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class sc{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Yl[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Yl[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Yl[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&fn.DashCase?e.style.setProperty(t,n,r&fn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&fn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){oc(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return oc(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,nc(n)):this.eventManager.addEventListener(e,t,nc(n))}}const ic=(()=>"@".charCodeAt(0))();function oc(e,t){if(e.charCodeAt(0)===ic)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class ac extends sc{constructor(e,t,n,r){super(e),this.component=n;const s=tc(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=ec.replace(Jl,r+"-"+n.id),this.hostAttr=Xl.replace(Jl,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class lc extends sc{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===qe.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=tc(r.id,r.styles,[]);for(let i=0;i"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),uc=cc("addEventListener"),hc=cc("removeEventListener"),dc={},pc="FALSE",fc="ANGULAR",gc="addEventListener",mc="removeEventListener",vc="__zone_symbol__propagationStopped",wc="__zone_symbol__stopImmediatePropagation",yc=(()=>{const e="undefined"!=typeof Zone&&Zone[cc("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),_c=function(e){return!!yc&&yc.hasOwnProperty(e)},bc=function(e){const t=dc[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n0;s||(s=e[n]=[]);const o=_c(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[hc];if(!r)return e[mc].apply(e,[t,n,!1]);let s=dc[t],i=s&&e[s];if(!i)return e[mc].apply(e,[t,n,!1]);let o=!1;for(let a=0;a{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded((function(){n(e)}))};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Ac=["alt","control","meta","shift"],Ic={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Rc extends Gl{constructor(e){super(e)}supports(e){return null!=Rc.parseEventName(e)}addEventListener(e,t,n){const r=Rc.parseEventName(t),s=Rc.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Al().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=Rc._normalizeKey(t.pop());let s="";if(Ac.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=Al().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ac.forEach(r=>{r!=n&&(0,Ic[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(e,t,n){return r=>{Rc.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class Nc{}class Pc extends Nc{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case St.NONE:return t;case St.HTML:return t instanceof Dc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Ct=Ct||new rt(e);let r=t?String(t):"";n=Ct.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Ct.getInertBodyElement(r)}while(r!==i);const o=new wt,a=o.sanitizeChildren(xt(n)||n);return nt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=xt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case St.STYLE:return t instanceof Mc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(kt);return t&&ot(t[1])===t[1]||e.match(Tt)&&function(e){let t=!0,n=!0;for(let r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function _u(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function bu(e){return Jt(e)?e:Yt(e)?Z(Promise.resolve(e)):La(e)}function Cu(e,t,n){return n?function(e,t){return vu(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Tu(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length)return!!Tu(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Tu(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Tu(n.segments,e)&&!!n.children[ou]&&t(n.children[ou],r,i)}}(t,n,n.segments)}(e.root,t.root)}class xu{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lu(this.queryParams)),this._queryParamMap}toString(){return Ru.serialize(this)}}class Su{constructor(e,t){this.segments=e,this.children=t,this.parent=null,_u(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nu(this)}}class Eu{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=lu(this.parameters)),this._parameterMap}toString(){return Lu(this)}}function Tu(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function ku(e,t){let n=[];return _u(e.children,(e,r)=>{r===ou&&(n=n.concat(t(e,r)))}),_u(e.children,(e,r)=>{r!==ou&&(n=n.concat(t(e,r)))}),n}class Au{}class Iu{parse(e){const t=new $u(e);return new xu(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Nu(t);if(n){const n=t.children[ou]?e(t.children[ou],!1):"",r=[];return _u(t.children,(t,n)=>{n!==ou&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=ku(t,(n,r)=>r===ou?[e(t.children[ou],!1)]:[`${r}:${e(n,!1)}`]);return`${Nu(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Ou(t)}=${Ou(e)}`).join("&"):`${Ou(t)}=${Ou(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Ru=new Iu;function Nu(e){return e.segments.map(e=>Lu(e)).join("/")}function Pu(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ou(e){return Pu(e).replace(/%3B/gi,";")}function Du(e){return Pu(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mu(e){return decodeURIComponent(e)}function Uu(e){return Mu(e.replace(/\+/g,"%20"))}function Lu(e){return`${Du(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Du(e)}=${Du(t[e])}`).join("")}`;var t}const ju=/^[^\/()?;=#]+/;function Hu(e){const t=e.match(ju);return t?t[0]:""}const Vu=/^[^=?&#]+/,Fu=/^[^?&#]+/;class $u{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Su([],{}):new Su([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[ou]=new Su(e,t)),n}parseSegment(){const e=Hu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Eu(Mu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Hu(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Hu(this.remaining);e&&this.capture(n=e)}e[Mu(t)]=Mu(n)}parseQueryParam(e){const t=function(e){const t=e.match(Vu);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Fu);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=Uu(t),s=Uu(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Hu(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ou);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[ou]:new Su([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class zu{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Bu(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Bu(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=qu(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return qu(e,this._root).map(e=>e.value)}}function Bu(e,t){if(e===t.value)return t;for(const n of t.children){const t=Bu(e,n);if(t)return t}return null}function qu(e,t){if(e===t.value)return[t];for(const n of t.children){const r=qu(e,n);if(r.length)return r.unshift(t),r}return[]}class Zu{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Wu(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Gu extends zu{constructor(e,t){super(e),this.snapshot=t,eh(this,e)}toString(){return this.snapshot.toString()}}function Qu(e,t){const n=function(e,t){const n=new Ju([],{},{},"",{},ou,t,null,e.root,-1,{});return new Xu("",new Zu(n,[]))}(e,t),r=new ja([new Eu("",{})]),s=new ja({}),i=new ja({}),o=new ja({}),a=new ja(""),l=new Ku(r,s,o,a,i,ou,t,n.root);return l.snapshot=n.root,new Gu(new Zu(l,[]),n)}class Ku{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($(e=>lu(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(e=>lu(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yu(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ju{constructor(e,t,n,r,s,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=lu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xu extends zu{constructor(e,t){super(t),this.url=e,eh(this,t)}toString(){return th(this._root)}}function eh(e,t){t.value._routerState=e,t.children.forEach(t=>eh(e,t))}function th(e){const t=e.children.length>0?` { ${e.children.map(th).join(", ")} } `:"";return`${e.value}${t}`}function nh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,vu(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),vu(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nvu(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||rh(e.parent,t.parent))}function sh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ih(e,t,n,r,s){let i={};return r&&_u(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new xu(n.root===e?t:function e(t,n,r){const s={};return _u(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Su(t.segments,s)}(n.root,e,t),i,s)}class oh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&sh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==yu(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ah{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function lh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[ou]:`${e}`}function ch(e,t,n){if(e||(e=new Su([],{})),0===e.segments.length&&e.hasChildren())return uh(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const t=e.segments[s],o=lh(n[r]),a=r0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!fh(o,a,t))return i;r+=2}else{if(!fh(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=ch(e.children[r],t,n))}),_u(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Su(e.segments,s)}}function hh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s{null!==e&&(t[n]=hh(new Su([],{}),0,e))}),t}function ph(e){const t={};return _u(e,(e,n)=>t[n]=`${e}`),t}function fh(e,t,n){return e==n.path&&vu(t,n.parameters)}const gh=(e,t,n)=>$(r=>(new mh(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class mh{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),nh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Wu(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),_u(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=Wu(e),s=e.value.component?n.children:t;_u(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Wu(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new ru(e.value.snapshot))}),e.children.length&&this.forwardEvent(new tu(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(nh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),vh(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function vh(e){nh(e.value),e.children.forEach(vh)}function wh(e){return"function"==typeof e}function yh(e){return e instanceof xu}class _h{constructor(e){this.segmentGroup=e||null}}class bh{constructor(e){this.urlTree=e}}function Ch(e){return new b(t=>t.error(new _h(e)))}function xh(e){return new b(t=>t.error(new bh(e)))}function Sh(e){return new b(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Eh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Fe)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ou).pipe($(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(cl(e=>{if(e instanceof bh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof _h)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ou).pipe($(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(cl(e=>{if(e instanceof _h)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Su([],{[ou]:e}):e;return new xu(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe($(e=>new Su([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return La({});const n=[],r=[],s={};return _u(e,(e,i)=>{const o=t(i,e).pipe($(e=>s[i]=e));i===ou?n.push(o):r.push(o)}),La.apply(null,n.concat(r)).pipe(qa(),ll(),$(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return La(...n).pipe($(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(cl(e=>{if(e instanceof _h)return La(null);throw e}))),qa(),gl(e=>!!e),cl((e,n)=>{if(e instanceof Va||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return La(new Su([],{}));throw new _h(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return Ih(r)!==i?Ch(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Ch(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xh(s):this.lineralizeSegments(n,s).pipe(W(n=>{const s=new Su(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Th(t,r,s);if(!o)return Ch(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?xh(u):this.lineralizeSegments(r,u).pipe(W(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe($(e=>(n._loadedConfig=e,new Su(r,{})))):La(new Su(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Th(t,n,r);if(!s)return Ch(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(W(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>Ah(e,t,n)&&Ih(n)!==ou)}(e,n,r)?{segmentGroup:kh(new Su(t,function(e,t){const n={};n[ou]=t;for(const r of e)""===r.path&&Ih(r)!==ou&&(n[Ih(r)]=new Su([],{}));return n}(r,new Su(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Ah(e,t,n))}(e,n,r)?{segmentGroup:kh(new Su(e.segments,function(e,t,n,r){const s={};for(const i of n)Ah(e,t,i)&&!r[Ih(i)]&&(s[Ih(i)]=new Su([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe($(e=>new Su(i,e))):0===r.length&&0===o.length?La(new Su(i,{})):this.expandSegment(n,s,r,o,ou,!0).pipe($(e=>new Su(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?La(new du(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?La(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?Z(r).pipe($(r=>{const s=e.get(r);let i;if(function(e){return e&&wh(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!wh(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return bu(i)})).pipe(qa(),(s=e=>!0===e,e=>e.lift(new ml(s,void 0,e)))):La(!0);var s}(e.injector,t,n).pipe(W(n=>n?this.configLoader.load(e.injector,t).pipe($(e=>(t._loadedConfig=e,e))):function(e){return new b(t=>t.error(uu(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):La(new du([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return La(n);if(r.numberOfChildren>1||!r.children[ou])return Sh(e.redirectTo);r=r.children[ou]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new xu(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return _u(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return _u(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Su(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Th(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||hu)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function kh(e){if(1===e.numberOfChildren&&e.children[ou]){const t=e.children[ou];return new Su(e.segments.concat(t.segments),t.children)}return e}function Ah(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ih(e){return e.outlet||ou}class Rh{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Nh{constructor(e,t){this.component=e,this.route=t}}function Ph(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Wu(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Tu(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Tu(e.url,t.url)||!vu(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!rh(e,t)||!vu(e.queryParams,t.queryParams);case"paramsChange":default:return!rh(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Rh(s)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new Nh(l&&l.outlet&&l.outlet.component||null,a))}else a&&Dh(n,l,i),i.canActivateChecks.push(new Rh(s)),e(t,null,o.component?l?l.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),_u(o,(e,t)=>Dh(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function Oh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Dh(e,t,n){const r=Wu(e),s=e.value;_u(r,(e,r)=>{Dh(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Nh(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const Mh=Symbol("INITIAL_VALUE");function Uh(){return wl(e=>(function(...e){let t=null,n=null;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),q(e,n).lift(new $a(t))})(...e.map(e=>e.pipe(dl(1),function(...e){return t=>{let n=e[e.length-1];I(n)?e.pop():n=null;const r=e.length;return function(...e){return qa()(La(...e))}(1!==r||n?r>0?q(e,n):Ma(n):Ua(e[0]),t)}}(Mh)))).pipe(bl((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Mh)return e;if(r===Mh&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||yh(r))return r}return e},e)},Mh),Za(e=>e!==Mh),$(e=>yh(e)?e:!0===e),dl(1)))}function Lh(e,t){return null!==e&&t&&t(new nu(e)),La(!0)}function jh(e,t){return null!==e&&t&&t(new eu(e)),La(!0)}function Hh(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?La(r.map(r=>Ba(()=>{const s=Oh(r,t,n);let i;if(function(e){return e&&wh(e.canActivate)}(s))i=bu(s.canActivate(t,e));else{if(!wh(s))throw new Error("Invalid CanActivate guard");i=bu(s(t,e))}return i.pipe(gl())}))).pipe(Uh()):La(!0)}function Vh(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>Ba(()=>La(t.guards.map(s=>{const i=Oh(s,t.node,n);let o;if(function(e){return e&&wh(e.canActivateChild)}(i))o=bu(i.canActivateChild(r,e));else{if(!wh(i))throw new Error("Invalid CanActivateChild guard");o=bu(i(r,e))}return o.pipe(gl())})).pipe(Uh())));return La(s).pipe(Uh())}class Fh{}class $h{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const e=qh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ou),n=new Ju([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ou,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Zu(n,t),s=new Xu(this.url,r);return this.inheritParamsAndData(s._root),La(s)}catch(e){return new b(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Yu(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=ku(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===ou?-1:t.value.outlet===ou?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof Fh))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Fh}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Fh;if((e.outlet||ou)!==r)throw new Fh;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?yu(n).parameters:{};s=new Ju(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Gh(e),r,e.component,e,zh(t),Bh(t)+n.length,Qh(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Fh;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||hu)(n,e,t);if(!r)throw new Fh;const s={};_u(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new Ju(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Gh(e),r,e.component,e,zh(t),Bh(t)+i.length,Qh(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=qh(t,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Zu(s,e)]}if(0===a.length&&0===c.length)return[new Zu(s,[])];const u=this.processSegment(a,l,c,ou);return[new Zu(s,u)]}}function zh(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Bh(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function qh(e,t,n,r,s){if(n.length>0&&function(e,t,n){return n.some(n=>Zh(e,t,n)&&Wh(n)!==ou)}(e,n,r)){const s=new Su(t,function(e,t,n,r){const s={};s[ou]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Wh(i)!==ou){const n=new Su([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[Wh(i)]=n}return s}(e,t,r,new Su(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Zh(e,t,n))}(e,n,r)){const i=new Su(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(Zh(e,n,a)&&!s[Wh(a)]){const n=new Su([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Wh(a)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Su(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Zh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Wh(e){return e.outlet||ou}function Gh(e){return e.data||{}}function Qh(e){return e.resolve||{}}function Kh(e,t,n,r){const s=Oh(e,t,r);return bu(s.resolve?s.resolve(t,n):s(t,n))}function Yh(e){return function(t){return t.pipe(wl(t=>{const n=e(t);return n?Z(n).pipe($(()=>t)):Z([t])}))}}class Jh{}class Xh{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const ed=new Ee("ROUTES");class td{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe($(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new du(wu(r.injector.get(ed)).map(mu),r)}))}loadModuleFactory(e){return"string"==typeof e?Z(this.loader.load(e)):bu(e()).pipe(W(e=>e instanceof $e?La(e):Z(this.compiler.compileModuleAsync(e))))}}class nd{}class rd{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function sd(e){throw e}function id(e,t,n){return t.parse("/")}function od(e,t){return La(null)}class ad{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=sd,this.malformedUriErrorHandler=id,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:od,afterPreactivation:od},this.urlHandlingStrategy=new rd,this.routeReuseStrategy=new Xh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Fe),this.console=s.get(Fs);const l=s.get(oi);this.isNgZoneEnabled=l instanceof oi,this.resetConfig(a),this.currentUrlTree=new xu(new Su([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new td(i,o,e=>this.triggerEvent(new Jc(e)),e=>this.triggerEvent(new Xc(e))),this.routerState=Qu(this.currentUrlTree,this.rootComponentType),this.transitions=new ja({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Za(e=>0!==e.id),$(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),wl(e=>{let n=!1,r=!1;return La(e).pipe(el(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),wl(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return La(e).pipe(wl(e=>{const n=this.transitions.getValue();return t.next(new zc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Da:[e]}),wl(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(wl(s=>(function(e,t,n,r,s){return new Eh(e,t,n,r,s).apply()})(e,t,n,s.extractedUrl,r).pipe($(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),el(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(W(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new $h(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe($(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),el(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),el(e=>{const n=new Wc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,a=new zc(n,this.serializeUrl(r),s,i);t.next(a);const l=Qu(r,this.rootComponentType).snapshot;return La(Object.assign({},e,{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Da}),Yh(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),el(e=>{const t=new Gc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),$(e=>Object.assign({},e,{guards:Ph(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?La(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return Z(e).pipe(W(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?La(i.map(i=>{const o=Oh(i,t,s);let a;if(function(e){return e&&wh(e.canDeactivate)}(o))a=bu(o.canDeactivate(e,t,n,r));else{if(!wh(o))throw new Error("Invalid CanDeactivate guard");a=bu(o(e,t,n,r))}return a.pipe(gl())})).pipe(Uh()):La(!0)})(e.component,e.route,n,t,r)),gl(e=>!0!==e,!0))}(o,r,s,e).pipe(W(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return Z(t).pipe(Sl(t=>Z([jh(t.route.parent,r),Lh(t.route,r),Vh(e,t.path,n),Hh(e,t.route,n)]).pipe(qa(),gl(e=>!0!==e,!0))),gl(e=>!0!==e,!0))}(r,i,e,t):La(n)),$(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),el(e=>{if(yh(e.guardsResult)){const t=uu(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),el(e=>{const t=new Qc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Za(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new qc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Yh(e=>{if(e.guards.canActivateChecks.length)return La(e).pipe(el(e=>{const t=new Kc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?Z(s).pipe(Sl(n=>(function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return La({});if(1===s.length){const i=s[0];return Kh(e[i],t,n,r).pipe($(e=>({[i]:e})))}const i={};return Z(s).pipe(W(s=>Kh(e[s],t,n,r).pipe($(e=>(i[s]=e,e))))).pipe(ll(),$(()=>i))}(e._resolve,e,t,r).pipe($(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Yu(e,n).resolve),null)))})(n.route,r,e,t)),function(e,t){return arguments.length>=2?function(n){return y(bl(e,t),Ya(1),il(t))(n)}:function(t){return y(bl((t,n,r)=>e(t,n,r+1)),Ya(1))(t)}}((e,t)=>e),$(e=>n)):La(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),el(e=>{const t=new Yc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Yh(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),$(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new Zu(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;re(t,n));return new Zu(r,i)}}var s}(e,t._root,n?n._root:void 0);return new Gu(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),el(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),gh(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),el({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new El(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new qc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),cl(n=>{if(r=!0,function(e){return e&&e[cu]}(n)){const r=yh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new qc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new Zc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return Da}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){pu(e),this.config=e.map(mu),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=t;nt()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let u=null;if(o)switch(o){case"merge":u=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=i?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,s){if(0===n.length)return ih(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new oh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return _u(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new oh(n,t,r)}(n);if(i.toRoot())return ih(t.root,new Su([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new ah(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ah(n.snapshot._urlSegment,!0,0);const r=sh(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,!(r=r.parent))throw new Error("Invalid number of '../'");s=r.segments.length}return new ah(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?uh(o.segmentGroup,o.index,i.commands):ch(o.segmentGroup,o.index,i.commands);return ih(o.segmentGroup,a,t,r,s)}(l,this.currentUrlTree,e,u,c)}navigateByUrl(e,t={skipLocationChange:!1}){nt()&&this.isNgZoneEnabled&&!oi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=yh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Bc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const a=new Promise((e,t)=>{i=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class ld{constructor(e,t,n,r,s){this.router=e,this.route=t,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){nt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:ud(this.skipLocationChange),replaceUrl:ud(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ud(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ud(this.preserveFragment)})}}class cd{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(e=>{e instanceof Bc&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){nt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:ud(this.skipLocationChange),replaceUrl:ud(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ud(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ud(this.preserveFragment)})}}function ud(e){return""===e||!!e}class hd{constructor(e,t,n,r,s){this.router=e,this.element=t,this.renderer=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(e=>{e instanceof Bc&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(e=>this.update()),this.linksWithHrefs.changes.subscribe(e=>this.update()),this.update()}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}class dd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pd,this.attachRef=null}}class pd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new dd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class fd{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Rs,this.deactivateEvents=new Rs,this.name=r||ou,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new gd(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class gd{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ku?this.route:e===pd?this.childContexts:this.parent.get(e,t)}}class md{}class vd{preload(e,t){return t().pipe(cl(()=>La(null)))}}class wd{preload(e,t){return La(null)}}class yd{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new td(t,n,t=>e.triggerEvent(new Jc(t)),t=>e.triggerEvent(new Xc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Za(e=>e instanceof Bc),Sl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Fe);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Z(n).pipe(Y(),$(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(W(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class _d{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Bc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof su&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new su(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const bd=new Ee("ROUTER_CONFIGURATION"),Cd=new Ee("ROUTER_FORROOT_GUARD"),xd=[_a,{provide:Au,useClass:Iu},{provide:ad,useFactory:Rd,deps:[Ti,Au,pd,_a,Dt,Ai,Qs,ed,bd,[nd,new le],[Jh,new le]]},pd,{provide:Ku,useFactory:Nd,deps:[ad]},{provide:Ai,useClass:Oi},yd,wd,vd,{provide:bd,useValue:{enableTracing:!1}}];function Sd(){return new bi("Router",ad)}class Ed{constructor(e,t){}static forRoot(e,t){return{ngModule:Ed,providers:[xd,Id(e),{provide:Cd,useFactory:Ad,deps:[[ad,new le,new ue]]},{provide:bd,useValue:t||{}},{provide:wa,useFactory:kd,deps:[ma,[new ae(ya),new le],bd]},{provide:_d,useFactory:Td,deps:[ad,Pa,bd]},{provide:md,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:wd},{provide:bi,multi:!0,useFactory:Sd},[Pd,{provide:Os,multi:!0,useFactory:Od,deps:[Pd]},{provide:Md,useFactory:Dd,deps:[Pd]},{provide:Vs,multi:!0,useExisting:Md}]]}}static forChild(e){return{ngModule:Ed,providers:[Id(e)]}}}function Td(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new _d(e,t,n)}function kd(e,t,n={}){return n.useHash?new Ca(e,t):new xa(e,t)}function Ad(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Id(e){return[{provide:zt,multi:!0,useValue:e},{provide:ed,multi:!0,useValue:e}]}function Rd(e,t,n,r,s,i,o,a,l={},c,u){const h=new ad(null,t,n,r,s,i,o,wu(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Al();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function Nd(e){return e.routerState.root}class Pd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(va,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(ad),r=this.injector.get(bd);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?La(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(bd),n=this.injector.get(yd),r=this.injector.get(_d),s=this.injector.get(ad),i=this.injector.get(Ti);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Od(e){return e.appInitializer.bind(e)}function Dd(e){return e.bootstrapListener.bind(e)}const Md=new Ee("Router Initializer");var Ud=n("3ejw"),Ld=n.n(Ud);class jd extends d{constructor(e,t){super()}schedule(e,t=0){return this}}class Hd extends jd{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Vd extends Hd{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let Fd=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class $d extends Fd{constructor(e,t=Fd.now){super(e,()=>$d.delegate&&$d.delegate!==this?$d.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return $d.delegate&&$d.delegate!==this?$d.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class zd extends $d{}const Bd=new zd(Vd);let qd=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return La(this.value);case"E":return e=this.error,new b(t=>t.error(e));case"C":return Ma()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class Zd extends g{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Zd.dispatch,this.delay,new Wd(e,this.destination)))}_next(e){this.scheduleMessage(qd.createNext(e))}_error(e){this.scheduleMessage(qd.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(qd.createComplete()),this.unsubscribe()}}class Wd{constructor(e,t){this.notification=e,this.destination=t}}class Gd{constructor(e,t){this.time=e,this.value=t}}const Qd=new class extends k{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Gd(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=n.length;let i;if(this.closed)throw new S;if(this.isStopped||this.hasError?i=d.EMPTY:(this.observers.push(e),i=new E(this,e)),r&&e.add(e=new Zd(e,r)),t)for(let o=0;ot&&(i=Math.max(i,s-t)),i>0&&r.splice(0,i),r}}(1);class Kd{}class Yd{constructor(){this.title="single-spa-angular-app"}}var Jd=er({encapsulation:2,styles:[],data:{}});function Xd(e){return lo(0,[(e()(),Wi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(1,212992,null,0,fd,[pd,Un,on,[8,null],Rt],null,null)],(function(e,t){e(t,1,0)}),null)}function ep(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"ng-component",[],null,null,null,Xd,Jd)),ls(1,49152,null,0,iu,[],null,null)],null,null)}var tp=jr("ng-component",iu,ep,{},{},[]);class np{constructor(){}ngOnInit(){}}var rp=er({encapsulation:0,styles:[[""]],data:{}});function sp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),io(-1,null,["List page"])),(e()(),Wi(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),io(-1,null,["This is the initial page. You'll see this page when navigate to Angular section from navbar."]))],null,null)}function ip(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-list",[],null,null,null,sp,rp)),ls(1,114688,null,0,np,[],null,null)],(function(e,t){e(t,1,0)}),null)}var op=jr("app-list",np,ip,{},{},[]);class ap{constructor(){}ngOnInit(){}}var lp=er({encapsulation:0,styles:[[""]],data:{}});function cp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),io(-1,null,["Detail page"])),(e()(),Wi(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),io(-1,null,["If you are seeing this is due to you navigated from List page."]))],null,null)}function up(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-detail",[],null,null,null,cp,lp)),ls(1,114688,null,0,ap,[],null,null)],(function(e,t){e(t,1,0)}),null)}var hp=jr("app-detail",ap,up,{},{},[]);class dp{}var pp=er({encapsulation:2,styles:[],data:{}});function fp(e){return lo(0,[],null,null)}function gp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-empty-route",[],null,null,null,fp,pp)),ls(1,49152,null,0,dp,[],null,null)],null,null)}var mp=jr("app-empty-route",dp,gp,{},{},[]),vp=er({encapsulation:0,styles:[["div#app-component[_ngcontent-%COMP%]{padding:0 15px}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{margin:30px 0}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:10px;display:inline-block;width:75px;text-align:center}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:#007bff;color:#fff;border-radius:4px}"]],data:{}});function wp(e){return lo(0,[(e()(),Wi(0,0,null,null,23,"div",[["class","container"],["id","app-component"]],null,null,null,null,null)),(e()(),Wi(1,0,null,null,2,"h1",[],null,null,null,null,null)),(e()(),Wi(2,0,null,null,0,"img",[["height","50"],["src","https://angular.io/assets/images/logos/angular/angular.png"],["width","50"]],null,null,null,null,null)),(e()(),io(-1,null,[" Angular App"])),(e()(),Wi(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Wi(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),io(-1,null,['This is the Angular section page. This section is displayed when url starts with "/angular" prefix. '])),(e()(),Wi(7,0,null,null,14,"nav",[],null,null,null,null,null)),(e()(),Wi(8,0,null,null,6,"a",[["routerLink","/angular"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Qr(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),ls(9,671744,[[2,4]],0,cd,[ad,Ku,wa],{routerLink:[0,"routerLink"]},null),ls(10,1720320,null,2,hd,[ad,un,gn,[2,ld],[2,cd]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ji(603979776,1,{links:1}),Ji(603979776,2,{linksWithHrefs:1}),so(13,{exact:0}),(e()(),io(-1,null,["List"])),(e()(),Wi(15,0,null,null,6,"a",[["routerLink","/angular/detail"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Qr(e,16).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),ls(16,671744,[[4,4]],0,cd,[ad,Ku,wa],{routerLink:[0,"routerLink"]},null),ls(17,1720320,null,2,hd,[ad,un,gn,[2,ld],[2,cd]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ji(603979776,3,{links:1}),Ji(603979776,4,{linksWithHrefs:1}),so(20,{exact:0}),(e()(),io(-1,null,["Detail"])),(e()(),Wi(22,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ls(23,212992,null,0,fd,[pd,Un,on,[8,null],Rt],null,null)],(function(e,t){e(t,9,0,"/angular");var n=e(t,13,0,!0);e(t,10,0,n,"active"),e(t,16,0,"/angular/detail");var r=e(t,20,0,!0);e(t,17,0,r,"active"),e(t,23,0)}),(function(e,t){e(t,8,0,Qr(t,9).target,Qr(t,9).href),e(t,15,0,Qr(t,16).target,Qr(t,16).href)}))}function yp(e){return lo(0,[(e()(),Wi(0,0,null,null,1,"app-root",[],null,null,null,wp,vp)),ls(1,49152,null,0,Yd,[],null,null)],null,null)}var _p=jr("app-root",Yd,yp,{},{},[]);class bp{}var Cp=fa(Kd,[Yd],(function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s(e[t.name]=t.token,e),{}))),()=>ql),Od(t)];var n}),[[2,bi],Pd]),Nr(512,Ds,Ds,[[2,Os]]),Nr(131584,Ti,Ti,[oi,Fs,Dt,Xe,on,Ds]),Nr(1073742336,Zi,Zi,[Ti]),Nr(1073742336,Fc,Fc,[[3,Fc]]),Nr(1024,Cd,Ad,[[3,ad]]),Nr(512,Au,Iu,[]),Nr(512,pd,pd,[]),Nr(256,ya,"/",[]),Nr(256,bd,{},[]),Nr(1024,wa,kd,[ma,[2,ya],bd]),Nr(512,_a,_a,[wa,ma]),Nr(512,Qs,Qs,[]),Nr(512,Ai,Oi,[Qs,[2,Ni]]),Nr(1024,ed,(function(){return[[{path:"angular",component:np},{path:"angular/detail",component:ap},{path:"**",component:dp}]]}),[]),Nr(1024,ad,Rd,[Ti,Au,pd,_a,Dt,Ai,Qs,ed,bd,[2,nd],[2,Jh]]),Nr(1073742336,Ed,Ed,[[2,Cd],[2,ad]]),Nr(1073742336,bp,bp,[]),Nr(1073742336,Kd,Kd,[]),Nr(256,Pt,!0,[])])}));n.d(t,"bootstrap",(function(){return Tp})),n.d(t,"mount",(function(){return kp})),n.d(t,"unmount",(function(){return Ap})),n.d(t,"\u02750",(function(){return xp})),n.d(t,"\u02751",(function(){return Sp})),function(){if(tt)throw new Error("Cannot enable prod mode after platform setup.");et=!1}();const xp=e=>(Qd.next(e),Hc().bootstrapModuleFactory(Cp)),Sp=()=>document.getElementById("angular-app"),Ep=Ld()({bootstrapFunction:xp,template:"",Router:ad,NgZone:oi,domElementGetter:Sp}),Tp=Ep.bootstrap,kp=Ep.mount,Ap=Ep.unmount},LboF:function(e,t,n){"use strict";var r,s={},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}e[t]=n}return e[t]}}();function o(e,t){for(var n=[],r={},s=0;s4&&void 0!==arguments[4]?arguments[4]:new N(e,n,r);if(!i.closed)return F(t)(i)}var B=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{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()}}]),t}(g);function q(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Z(e,t))}}var Z=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 W(e,this.project,this.thisArg))}}]),e}(),W=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,i.count=0,i.thisArg=r||_assertThisInitialized(i),i}return _inherits(t,e),_createClass(t,[{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)}}]),t}(g);function G(e,t){return new b(t?function(n){var r=new d,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:D(e))}function Q(e,t){if(!t)return e instanceof b?e:new b(F(e));if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new b(t?function(n){var r=new d;return r.add(t.schedule((function(){var i=e[m]();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}:j(e))}(e,t);if(V(e))return function(e,t){return new b(t?function(n){var r=new d;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}:M(e))}(e,t);if(H(e))return G(e,t);if(function(e){return e&&"function"==typeof e[U]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(t?function(n){var r,i=new d;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[U](),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}:L(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function K(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(K((function(n,r){return Q(e(n,r)).pipe(q((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Y(e,n))})}var Y=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 J(e,this.project,this.concurrent))}}]),e}(),J=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(B);function $(e){return e}function X(){return K($,arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY)}function ee(){return function(e){return e.lift(new te(e))}}var te=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 ne(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),ne=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).connectable=n,r}return _inherits(t,e),_createClass(t,[{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}}]),t}(g),re=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return _inherits(t,e),_createClass(t,[{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 d).add(this.source.subscribe(new oe(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}},{key:"refCount",value:function(){return ee()(this)}}]),t}(b).prototype,ie={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:re._subscribe},_isComplete:{value:re._isComplete,writable:!0},getSubject:{value:re.getSubject},connect:{value:re.connect},refCount:{value:re.refCount}},oe=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).connectable=n,r}return _inherits(t,e),_createClass(t,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(t.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(t.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()}}}]),t}(A);function ae(){return new I}var se="__parameters__";function ue(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]:de.Default;if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?function(e,t,n){var r=ge(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&de.Optional)return null;throw new Error("Injector: NOT_FOUND [".concat(me(e),"]"))}(e,0,t):Me.get(e,t&de.Optional?null:void 0,t)}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:de.Default;return(we||Le)(e,t)}var He=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie;if(t===Ie){var n=new Error("NullInjectorError: No provider for ".concat(me(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function Ve(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Oe?e.substr(2):e;var i=me(t);if(t instanceof Array)i=t.map(me).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):me(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Pe,"\n "))}var Fe=function e(){_classCallCheck(this,e)},ze=function e(){_classCallCheck(this,e)};function Be(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Ze=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}(),We=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Te),Ge="ngDebugContext",Qe="ngOriginalError",Ke="ngErrorLogger";function Ye(e){return e[Ge]}function Je(e){return e[Qe]}function $e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.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");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}},{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();vt.hasOwnProperty(t)&&!ct.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(wt(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: ".concat(e.outerHTML));return t}}]),e}(),kt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ct=/([^\#-~ |!])/g;function wt(e){return e.replace(/&/g,"&").replace(kt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Ct,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function bt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var St=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}(),Et=function e(){_classCallCheck(this,e)},xt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Tt=/^url\(([^)]+)\)$/,Rt=/([A-Z])/g;function At(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var It=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Pt()},e}(),Pt=function(){},Ot=new Re("The presence of this token marks an injector as being the root injector."),Nt=function(e,t,n){return new Ht(e,t,n)},Dt=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Nt(e,t,""):Nt(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ie,e.NULL=new He,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:function(){return je(Ae)}}),e.__NG_ELEMENT_ID__=-1,e}(),Mt=function(e){return e},Ut=[],Lt=Mt,jt=function(){return Array.prototype.slice.call(arguments)},Ht=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.NULL,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.parent=n,this.source=r;var i=this._records=new Map;i.set(Dt,{token:Dt,fn:Mt,deps:Ut,value:this,useNew:!1}),i.set(Ae,{token:Ae,fn:Mt,deps:Ut,value:this,useNew:!1}),function e(t,n){if(n)if((n=Ce(n))instanceof Array)for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:de.Default,r=this._records.get(e);try{return function e(t,n,r,i,o,a){try{return function(t,n,r,i,o,a){var s;if(!n||a&de.SkipSelf)a&de.Self||(s=i.get(t,o,de.Default));else{if((s=n.value)==Lt)throw Error("\u0275Circular dependency");if(s===Ut){n.value=Lt;var u=n.useNew,l=n.fn,c=n.deps,h=Ut;if(c.length){h=[];for(var f=0;f2&&void 0!==arguments[2]?arguments[2]:Dt.THROW_IF_NOT_FOUND,o=Ue(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case Er:case xr:case Tr:return e}var s,u=e._def.providersByKey[a];if(u){var l=e._providers[u.index];return void 0===l&&(l=e._providers[u.index]=Ir(e,u)),l===Sr?void 0:l}if((s=ge(t.token))&&(n=e,null!=(r=s).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(n,r.providedIn)||"root"===r.providedIn&&n._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:t.token},e._providers[c]=Sr,e._providers[c]=Ir(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{Ue(o)}}function Ir(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Ar(e,n[0]));case 2:return new t(Ar(e,n[0]),Ar(e,n[1]));case 3:return new t(Ar(e,n[0]),Ar(e,n[1]),Ar(e,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qe(n,t),Zn.dirtyParentQueries(r),Nr(r),r}function Or(e,t,n){var r=t?sr(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);gr(n,2,i,o,void 0)}function Nr(e){gr(e,3,null,null,void 0)}var Dr=new Object;function Mr(e,t,n,r,i,o){return new Ur(e,t,n,r,i,o)}var Ur=function(e){function t(e,n,r,i,o,a){var s;return _classCallCheck(this,t),(s=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return _inherits(t,e),_createClass(t,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=pr(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Zn.createRootView(e,t||[],n,i,r,Dr),s=zn(a,o).instance;return n&&a.renderer.setAttribute(Fn(a,0).renderElement,"ng-version",pn.full),new Lr(a,new Fr(a),s)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),t}(en),Lr=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new ln(Fn(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Zr(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),t}(Xt);function jr(e,t,n){return new Hr(e,t,n)}var Hr=function(){function e(t,n,r){_classCallCheck(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return _createClass(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Pr(this._data,e);Zn.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Fr(t);return n.attachToViewContainerRef(this),n}return 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;i||e instanceof sn||(i=o.get(Fe));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,s=e;return n=this._view,r=this._data,i=t,o=s._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,Be(a,i,o),function(e,t){var n=or(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),Zn.dirtyParentQueries(o),Or(r,i>0?a[i-1]:null,o),s.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(e._view);return n=this._data,r=s,i=t,o=n.viewContainer._embeddedViews,a=o[r],qe(o,r),null==i&&(i=o.length),Be(o,i,a),Zn.dirtyParentQueries(a),Nr(a),Or(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=Pr(this._data,e);t&&Zn.destroyView(t)}},{key:"detach",value:function(e){var t=Pr(this._data,e);return t?new Fr(t):null}},{key:"element",get:function(){return new ln(this._data.renderElement)}},{key:"injector",get:function(){return new Zr(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ar(e),e=e.parent;return e?new Zr(e,t):new Zr(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Vr(e){return new Fr(e)}var Fr=function(){function e(t){_classCallCheck(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return _createClass(e,[{key:"markForCheck",value:function(){nr(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Zn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Zn.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Zn.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,Nr(this._view),Zn.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return gr(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function zr(e,t){return new Br(e,t)}var Br=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._parentView=e,r._def=n,r}return _inherits(t,e),_createClass(t,[{key:"createEmbeddedView",value:function(e){return new Fr(Zn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new ln(Fn(this._parentView,this._def.nodeIndex).renderElement)}}]),t}(Pn);function qr(e,t){return new Zr(e,t)}var Zr=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.elDef=n}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.THROW_IF_NOT_FOUND;return Zn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Qn(e)},t)}}]),e}();function Wr(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Fn(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vn(e,n.nodeIndex).renderText;if(20240&n.flags)return zn(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index ".concat(t))}function Gr(e){return new Qr(e.renderer)}var Qr=function(){function e(t){_classCallCheck(this,e),this.delegate=t}return _createClass(e,[{key:"selectRootElement",value:function(e){return this.delegate.selectRootElement(e)}},{key:"createElement",value:function(e,t){var n=_slicedToArray(wr(t),2),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return e&&this.delegate.appendChild(e,o),o}},{key:"createViewRoot",value:function(e){return e}},{key:"createTemplateAnchor",value:function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}},{key:"createText",value:function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}},{key:"projectNodes",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:Dt.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:de.Default,r=0;return n&de.SkipSelf?r|=1:n&de.Self&&(r|=4),Ar(this,{token:e,tokenKey:Qn(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(me(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return hi(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(di(e,t,n,i[0]));case 2:return r(di(e,t,n,i[0]),di(e,t,n,i[1]));case 3:return r(di(e,t,n,i[0]),di(e,t,n,i[1]),di(e,t,n,i[2]));default:for(var a=Array(o),s=0;s4&&void 0!==arguments[4]?arguments[4]:Dt.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===ni&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var s=e;s;){if(t)switch(a){case Jr:return Gr(vi(s,t,n));case $r:return vi(s,t,n).renderer;case Xr:return new ln(Fn(s,t.nodeIndex).renderElement);case ei:return Fn(s,t.nodeIndex).viewContainer;case ti:if(t.element.template)return Fn(s,t.nodeIndex).template;break;case ni:return Vr(vi(s,t,n));case ri:case ii:return qr(s,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[a];if(u){var l=zn(s,u.nodeIndex);return l||(l={instance:ci(s,u)},s.nodes[u.nodeIndex]=l),l.instance}}n=ur(s),t=ar(s),s=s.parent,4&r.flags&&(s=null)}var c=o.root.injector.get(r.token,fi);return c!==fi||i===fi?c:o.root.ngModule.injector.get(r.token,i)}function vi(e,t,n){var r;if(n)r=Fn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!ur(r);)r=r.parent;return r}function pi(e,t,n,r,i,o){if(32768&n.flags){var a=Fn(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var s=Gt.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new $t(s,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function gi(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).__isAsync=n,e}return _inherits(t,e),_createClass(t,[{key:"emit",value:function(e){_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,r){var i,o=function(e){return null},a=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&&(a=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)},n&&(o=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(t.prototype),"subscribe",this).call(this,i,o,a);return e instanceof d&&e.add(s),s}}]),t}(I);function Ti(){return this._results[qt()]()}var Ri=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new xi,this.length=0;var t=qt(),n=e.prototype;n[t]||(n[t]=Ti)}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;r1&&void 0!==arguments[1]?arguments[1]:null;return zi.createScope(e,t)}:function(e,t){return Ji},Xi=Yi?function(e,t){return Fi.leaveScope(e,t),t}:function(e,t){return t},eo=Promise.resolve(0);function to(e){"undefined"==typeof Zone?eo.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var no=function(){function e(t){var n,r=t.enableLongStackTrace,i=void 0!==r&&r;if(_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xi(!1),this.onMicrotaskEmpty=new xi(!1),this.onStable=new xi(!1),this.onError=new xi(!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)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,i,o,a){try{return ao(n),e.invokeTask(r,i,o,a)}finally{so(n)}},onInvoke:function(e,t,r,i,o,a,s){try{return ao(n),e.invoke(r,i,o,a,s)}finally{so(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n.hasPendingMicrotasks=i.microTask,oo(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,io,ro,ro);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function ro(){}var io={};function oo(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function ao(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function so(e){e._nesting--,oo(e)}var uo,lo=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xi,this.onMicrotaskEmpty=new xi,this.onStable=new xi,this.onError=new xi}return _createClass(e,[{key:"run",value:function(e){return e()}},{key:"runGuarded",value:function(e){return e()}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e){return e()}}]),e}(),co=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){no.assertNotInAngularZone(),to((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())to((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(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}(),ho=function(){function e(){_classCallCheck(this,e),this._applications=new Map,fo.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 fo.findTestabilityInTree(this,e,t)}}]),e}(),fo=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}()),vo=function(e,t,n){return e.get(Qi).createCompiler([t]).compileModuleAsync(n)},po=new Re("AllowMultipleToken"),go=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function yo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Re(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=mo();if(!o||o.injector.get(po,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(uo&&!uo.destroyed&&!uo.injector.get(po,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");uo=e.get(_o);var t=e.get(Di,null);t&&t.forEach((function(e){return e()}))}(Dt.create({providers:a,name:r}))}return function(e){var t=mo();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 mo(){return uo&&!uo.destroyed?uo:null}var _o=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=this,i="noop"===(n=t?t.ngZone:void 0)?new lo:("zone.js"===n?void 0:n)||new no({enableLongStackTrace:nt()}),o=[{provide:no,useValue:i}];return i.run((function(){var t=Dt.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),a=n.injector.get(Xe,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Hi&&Ei(n.injector.get(ji,Si)||Si),n.onDestroy((function(){return bo(r._modules,n)})),i.runOutsideAngular((function(){return i.onError.subscribe({next:function(e){a.handleError(e)}})})),function(e,t,i){try{var o=((a=n.injector.get(Ii)).runInitializers(),a.donePromise.then((function(){return r._moduleDoBootstrap(n),n})));return Yt(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(a,i)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=ko({},n);return vo(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(wo);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(me(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}();function ko(e,t){return Array.isArray(t)?t.reduce(ko,e):Object.assign({},e,t)}var Co,wo=((Co=function(){function e(t,n,r,i,o,a){var s=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=nt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new b((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new b((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){no.assertNotInAngularZone(),to((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){no.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=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 b?t[0]:X(r)(G(t,i))}(u,l.pipe((function(e){return ee()((t=ae,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ie);return r.source=e,r.subjectFactory=n,r})(e));var t})))}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 en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof sn?null:this._injector.get(Fe),o=n.create(Dt.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(co,null);return a&&o.injector.get(ho).registerApplication(o.location.nativeElement,a),this._loadComponent(o),nt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;var r=!0,i=!1,o=void 0;try{for(var a,s=this._views[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)a.value.detectChanges()}catch(d){i=!0,o=d}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}if(this._enforceNoNewChanges){var u=!0,l=!1,c=void 0;try{for(var h,f=this._views[Symbol.iterator]();!(u=(h=f.next()).done);u=!0)h.value.checkNoChanges()}catch(d){l=!0,c=d}finally{try{u||null==f.return||f.return()}finally{if(l)throw c}}}}catch(v){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(v)}))}finally{this._runningTick=!1,Xi(n)}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;bo(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ui,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),bo(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}())._tickScope=$i("ApplicationRef#tick()"),Co);function bo(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var So=function e(){_classCallCheck(this,e)},Eo=function e(){_classCallCheck(this,e)},xo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},To=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||xo}return _createClass(e,[{key:"load",value:function(e){return!Hi&&this._compiler instanceof Gi?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=_slicedToArray(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then((function(e){return e[i]})).then((function(e){return Ro(e,r,i)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(e){return e[r+i]})).then((function(e){return Ro(e,n,r)}))}}]),e}();function Ro(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Ao=function e(t,n){_classCallCheck(this,e),this.name=t,this.callback=n},Io=function(){function e(t,n,r){_classCallCheck(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Po&&n.addChild(this)}return _createClass(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Po=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n,r))).properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return _inherits(t,e),_createClass(t,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(_toConsumableArray(t))),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var n=[];return function e(n,r,i){n.childNodes.forEach((function(n){n instanceof t&&(r(n)&&i.push(n),e(n,r,i))}))}(this,e,n),n}},{key:"queryAllNodes",value:function(e){var n=[];return function e(n,r,i){n instanceof t&&n.childNodes.forEach((function(n){r(n)&&i.push(n),n instanceof t&&e(n,r,i)}))}(this,e,n),n}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))}},{key:"children",get:function(){return this.childNodes.filter((function(e){return e instanceof t}))}}]),t}(Io),Oo=new Map,No=function(e){return Oo.get(e)||null};function Do(e){Oo.set(e.nativeNode,e)}var Mo=yo(null,"core",[{provide:Mi,useValue:"unknown"},{provide:_o,deps:[Dt]},{provide:ho,deps:[]},{provide:Li,deps:[]}]);function Uo(){return An}function Lo(){return In}function jo(e){return e?(Hi&&Ei(e),e):Si}function Ho(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}var Vo=function e(t){_classCallCheck(this,e)};function Fo(e,t,n,r,i,o){var a,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],u=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0,f=arguments.length>11?arguments[11]:void 0;c||(c=Wn);var d=hr(n),v=d.matchedQueries,p=d.references,g=d.matchedQueryIds,y=null,m=null;o&&(y=(a=_slicedToArray(wr(o),2))[0],m=a[1]),u=u||[];for(var _=new Array(u.length),k=0;k0)l=p,ra(p)||(c=p);else for(;l&&v===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&ra(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Wn,updateRenderer:r||Wn,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function ra(e){return 0!=(1&e.flags)&&null===e.element.name}function ia(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function oa(e,t,n,r){var i=ua(e.root,e.renderer,e,t,n);return la(i,e.component,r),ca(i),i}function aa(e,t,n){var r=ua(e,e.renderer,null,null,t);return la(r,n,n),ca(r),r}function sa(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,ua(e.root,i,e,t.element.componentProvider,n)}function ua(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function la(e,t,n){e.component=t,e.context=n}function ca(e){var t;ur(e)&&(t=Fn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&Zo(e,t,0,n)&&(d=!0),f>1&&Zo(e,t,1,r)&&(d=!0),f>2&&Zo(e,t,2,i)&&(d=!0),f>3&&Zo(e,t,3,o)&&(d=!0),f>4&&Zo(e,t,4,a)&&(d=!0),f>5&&Zo(e,t,5,s)&&(d=!0),f>6&&Zo(e,t,6,u)&&(d=!0),f>7&&Zo(e,t,7,l)&&(d=!0),f>8&&Zo(e,t,8,c)&&(d=!0),f>9&&Zo(e,t,9,h)&&(d=!0),d}(e,t,n,r,i,o,a,s,u,l,c,h);case 2:return function(e,t,n,r,i,o,a,s,u,l,c,h){var f=!1,d=t.bindings,v=d.length;if(v>0&&er(e,t,0,n)&&(f=!0),v>1&&er(e,t,1,r)&&(f=!0),v>2&&er(e,t,2,i)&&(f=!0),v>3&&er(e,t,3,o)&&(f=!0),v>4&&er(e,t,4,a)&&(f=!0),v>5&&er(e,t,5,s)&&(f=!0),v>6&&er(e,t,6,u)&&(f=!0),v>7&&er(e,t,7,l)&&(f=!0),v>8&&er(e,t,8,c)&&(f=!0),v>9&&er(e,t,9,h)&&(f=!0),f){var p=t.text.prefix;v>0&&(p+=ta(n,d[0])),v>1&&(p+=ta(r,d[1])),v>2&&(p+=ta(i,d[2])),v>3&&(p+=ta(o,d[3])),v>4&&(p+=ta(a,d[4])),v>5&&(p+=ta(s,d[5])),v>6&&(p+=ta(u,d[6])),v>7&&(p+=ta(l,d[7])),v>8&&(p+=ta(c,d[8])),v>9&&(p+=ta(h,d[9]));var g=Vn(e,t.nodeIndex).renderText;e.renderer.setValue(g,p)}return f}(e,t,n,r,i,o,a,s,u,l,c,h);case 16384:return function(e,t,n,r,i,o,a,s,u,l,c,h){var f=zn(e,t.nodeIndex),d=f.instance,v=!1,p=void 0,g=t.bindings.length;return g>0&&Xn(e,t,0,n)&&(v=!0,p=pi(e,f,t,0,n,p)),g>1&&Xn(e,t,1,r)&&(v=!0,p=pi(e,f,t,1,r,p)),g>2&&Xn(e,t,2,i)&&(v=!0,p=pi(e,f,t,2,i,p)),g>3&&Xn(e,t,3,o)&&(v=!0,p=pi(e,f,t,3,o,p)),g>4&&Xn(e,t,4,a)&&(v=!0,p=pi(e,f,t,4,a,p)),g>5&&Xn(e,t,5,s)&&(v=!0,p=pi(e,f,t,5,s,p)),g>6&&Xn(e,t,6,u)&&(v=!0,p=pi(e,f,t,6,u,p)),g>7&&Xn(e,t,7,l)&&(v=!0,p=pi(e,f,t,7,l,p)),g>8&&Xn(e,t,8,c)&&(v=!0,p=pi(e,f,t,8,c,p)),g>9&&Xn(e,t,9,h)&&(v=!0,p=pi(e,f,t,9,h,p)),p&&d.ngOnChanges(p),65536&t.flags&&Hn(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),v}(e,t,n,r,i,o,a,s,u,l,c,h);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,s,u,l,c,h){var f=t.bindings,d=!1,v=f.length;if(v>0&&er(e,t,0,n)&&(d=!0),v>1&&er(e,t,1,r)&&(d=!0),v>2&&er(e,t,2,i)&&(d=!0),v>3&&er(e,t,3,o)&&(d=!0),v>4&&er(e,t,4,a)&&(d=!0),v>5&&er(e,t,5,s)&&(d=!0),v>6&&er(e,t,6,u)&&(d=!0),v>7&&er(e,t,7,l)&&(d=!0),v>8&&er(e,t,8,c)&&(d=!0),v>9&&er(e,t,9,h)&&(d=!0),d){var p,g=Bn(e,t.nodeIndex);switch(201347067&t.flags){case 32:p=new Array(f.length),v>0&&(p[0]=n),v>1&&(p[1]=r),v>2&&(p[2]=i),v>3&&(p[3]=o),v>4&&(p[4]=a),v>5&&(p[5]=s),v>6&&(p[6]=u),v>7&&(p[7]=l),v>8&&(p[8]=c),v>9&&(p[9]=h);break;case 64:p={},v>0&&(p[f[0].name]=n),v>1&&(p[f[1].name]=r),v>2&&(p[f[2].name]=i),v>3&&(p[f[3].name]=o),v>4&&(p[f[4].name]=a),v>5&&(p[f[5].name]=s),v>6&&(p[f[6].name]=u),v>7&&(p[f[7].name]=l),v>8&&(p[f[8].name]=c),v>9&&(p[f[9].name]=h);break;case 128:var y=n;switch(v){case 1:p=y.transform(n);break;case 2:p=y.transform(r);break;case 3:p=y.transform(r,i);break;case 4:p=y.transform(r,i,o);break;case 5:p=y.transform(r,i,o,a);break;case 6:p=y.transform(r,i,o,a,s);break;case 7:p=y.transform(r,i,o,a,s,u);break;case 8:p=y.transform(r,i,o,a,s,u,l);break;case 9:p=y.transform(r,i,o,a,s,u,l,c);break;case 10:p=y.transform(r,i,o,a,s,u,l,c,h)}}g.value=p}return d}(e,t,n,r,i,o,a,s,u,l,c,h);default:throw"unreachable"}}(e,t,r,i,o,a,s,u,l,c,h,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&tr(e,t,0,n),f>1&&tr(e,t,1,r),f>2&&tr(e,t,2,i),f>3&&tr(e,t,3,o),f>4&&tr(e,t,4,a),f>5&&tr(e,t,5,s),f>6&&tr(e,t,6,u),f>7&&tr(e,t,7,l),f>8&&tr(e,t,8,c),f>9&&tr(e,t,9,h)}(e,t,r,i,o,a,s,u,l,c,h,f):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);Oa.forEach((function(t,n){if(o.has(ge(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:fr(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Qn(n)]=i}}))}}(e=e.factory((function(){return Wn}))),e):e}(r))}var Pa=new Map,Oa=new Map,Na=new Map;function Da(e){var t;Pa.set(e.token,e),"function"==typeof e.token&&(t=ge(e.token))&&"function"==typeof t.providedIn&&Oa.set(e.token,e)}function Ma(e,t){var n=pr(t.viewDefFactory),r=pr(n.nodes[0].element.componentView);Na.set(e,r)}function Ua(){Pa.clear(),Oa.clear(),Na.clear()}function La(e){if(0===Pa.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),s=3;s3?o-3:0),s=3;s1?t-1:0),r=1;r0&&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(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+e.normalizeQueryParams(n))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ds(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}},{key:"replaceState",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}},{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})}}],[{key:"normalizeQueryParams",value:function(e){return e&&"?"!==e[0]?"?"+e:e}},{key:"joinWithSlash",value:function(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}},{key:"stripTrailingSlash",value:function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}]),e}();function ds(e){return e.replace(/\/index.html$/,"")}var vs,ps=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return _inherits(t,e),_createClass(t,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=fs.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+fs.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+fs.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(cs),gs=function(e){function t(e,n){var r;if(_classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,_possibleConstructorReturn(r)}return _inherits(t,e),_createClass(t,[{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 fs.joinWithSlash(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+fs.normalizeQueryParams(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+fs.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+fs.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(cs),ys=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}(),ms=new Re("UseV4Plurals"),_s=function e(){_classCallCheck(this,e)},ks=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).locale=e,r.deprecatedPluralFn=n,r}return _inherits(t,e),_createClass(t,[{key:"getPluralCategory",value:function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=ki[t];if(n)return n;var r=t.split("-")[0];if(n=ki[r])return n;if("en"===r)return bi;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ci.PluralCase]}(t||this.locale)(e)){case ys.Zero:return"zero";case ys.One:return"one";case ys.Two:return"two";case ys.Few:return"few";case ys.Many:return"many";default:return"other"}}}]),t}(_s),Cs=function e(){_classCallCheck(this,e)},ws=new Re("DocumentToken"),bs="server",Ss=((vs=function e(){_classCallCheck(this,e)}).ngInjectableDef=pe({token:vs,providedIn:"root",factory:function(){return new Es(je(ws),window,je(Xe))}}),vs),Es=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}(),xs=new b((function(e){return e.complete()}));function Ts(e){return e?function(e){return new b((function(t){return e.schedule((function(){return t.complete()}))}))}(e):xs}function Rs(e){var t=new b((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function As(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:Ys;return Ws({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Ys(){return new Os}function Js(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new $s(e))}}var $s=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Xs(e,this.defaultValue))}}]),e}(),Xs=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).defaultValue=n,r.isEmpty=!0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(g);function eu(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?js((function(t,n){return e(t,n,r)})):$,Bs(1),n?Js(t):Ks((function(){return new Os})))}}function tu(e){return function(t){var n=new nu(e),r=t.lift(n);return n.caught=r}}var nu=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ru(e,this.selector,this.caught))}}]),e}(),ru=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).selector=n,i.caught=r,i}return _inherits(t,e),_createClass(t,[{key:"error",value:function(e){if(!this.isStopped){var n;try{n=this.selector(e,this.caught)}catch(i){return void _get(_getPrototypeOf(t.prototype),"error",this).call(this,i)}this._unsubscribeAndRecycle();var r=new N(this,void 0,void 0);this.add(r),z(this,n,void 0,void 0,r)}}}]),t}(B);function iu(e){return function(t){return 0===e?Ts():t.lift(new ou(e))}}var ou=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new zs}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new au(e,this.total))}}]),e}(),au=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).total=n,r.count=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),t}(g);function su(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?js((function(t,n){return e(t,n,r)})):$,iu(1),n?Js(t):Ks((function(){return new Os})))}}var uu=function(){function e(t,n,r){_classCallCheck(this,e),this.predicate=t,this.thisArg=n,this.source=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new lu(e,this.predicate,this.thisArg,this.source))}}]),e}(),lu=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||_assertThisInitialized(o),o}return _inherits(t,e),_createClass(t,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),t}(g);function cu(e,t){return"function"==typeof t?function(n){return n.pipe(cu((function(n,r){return Q(e(n,r)).pipe(q((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new hu(e))}}var hu=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new fu(e,this.project))}}]),e}(),fu=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,r.index=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new N(this,void 0,void 0);this.destination.add(i),this.innerSubscription=z(this,e,t,n,i)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(t.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(t.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}}]),t}(B);function du(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new vu(e,t,n))}}var vu=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new pu(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),pu=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),t}(g);function gu(e,t){return K(e,t,1)}var yu=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new mu(e,this.callback))}}]),e}(),mu=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).add(new d(n)),r}return _inherits(t,e),t}(g),_u=null;function ku(){return _u}var Cu,wu=function(e){function t(){var e;_classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0}},{key:"tagName",value:function(e){return e.tagName}},{key:"attributeMap",value:function(e){for(var t=new Map,n=e.attributes,r=0;r1&&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},Te.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Te.getAllAngularRootElements=function(){return e.getAllRootElements()},Te.frameworkStabilizers||(Te.frameworkStabilizers=[]),Te.frameworkStabilizers.push((function(e){var t=Te.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?ku().isShadowRoot(t)?this.findTestabilityInTree(e,ku().getHost(t),!0):this.findTestabilityInTree(e,ku().parentElement(t),!0):null}}],[{key:"init",value:function(){var t;t=new e,fo=t}}]),e}();function Nu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Te.ng=Te.ng||{})[e]=t)}var Du={ApplicationRef:wo,NgZone:no};function Mu(e){return No(e)}var Uu=new Re("EventManagerPlugins"),Lu=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;r0;a||(a=e[o]=[]);var u=ol(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:i});else{for(var l=!1,c=0;c-1}}]),t}(ju),dl=["alt","control","meta","shift"],vl={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},pl=function(e){function t(e){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))}return _inherits(t,e),_createClass(t,[{key:"supports",value:function(e){return null!=t.parseEventName(e)}},{key:"addEventListener",value:function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return ku().onAndCancel(e,i.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(dl.forEach((function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")})),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=ku().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),dl.forEach((function(r){r!=n&&(0,vl[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded((function(){return n(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),t}(ju),gl=function e(){_classCallCheck(this,e)},yl=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._doc=e,n}return _inherits(t,e),_createClass(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case St.NONE:return t;case St.HTML:return t instanceof _l?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{lt=lt||new rt(e);var r=t?String(t):"";n=lt.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=lt.getInertBodyElement(r)}while(r!==o);var a=new _t,s=a.sanitizeChildren(bt(n)||n);return nt()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=bt(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case St.STYLE:return t instanceof kl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Tt);return t&&at(t[1])===t[1]||e.match(xt)&&function(e){for(var t=!0,n=!0,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).navigationTrigger=i,r.restoredState=o,r}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Tl),Al=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,i}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(Tl),Il=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).reason=r,i}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Tl),Pl=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).error=r,i}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(Tl),Ol=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Nl=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Dl=function(e){function t(e,n,r,i,o){var a;return _classCallCheck(this,t),(a=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(Tl),Ml=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Ul=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Ll=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),jl=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Hl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Vl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Fl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),zl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Bl=function(){function e(t,n,r){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),ql=function e(){_classCallCheck(this,e)},Zl="primary",Wl=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Gl(e){return new Wl(e)}var Ql="ngNavigationCancelingError";function Kl(e){var t=Error("NavigationCancelingError: "+e);return t[Ql]=!0,t}function Yl(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?e[e.length-1]:null}function oc(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ac(e){return Jt(e)?e:Yt(e)?Q(Promise.resolve(e)):As(e)}function sc(e,t,n){return n?function(e,t){return nc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!hc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return t[n]===e[n]}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!hc(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!hc(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!hc(n.segments,a)&&!!n.children[Zl]&&t(n.children[Zl],r,s)}(t,n,n.segments)}(e.root,t.root)}var uc=function(){function e(t,n,r){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=r}return _createClass(e,[{key:"toString",value:function(){return pc.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gl(this.queryParams)),this._queryParamMap}}]),e}(),lc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,oc(n,(function(e,t){return e.parent=r}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return gc(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),cc=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"toString",value:function(){return wc(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Gl(this.parameters)),this._parameterMap}}]),e}();function hc(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function fc(e,t){var n=[];return oc(e.children,(function(e,r){r===Zl&&(n=n.concat(t(e,r)))})),oc(e.children,(function(e,r){r!==Zl&&(n=n.concat(t(e,r)))})),n}var dc=function e(){_classCallCheck(this,e)},vc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Tc(e);return new uc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"".concat("/".concat(function e(t,n){if(!t.hasChildren())return gc(t);if(n){var r=t.children[Zl]?e(t.children[Zl],!1):"",i=[];return oc(t.children,(function(t,n){n!==Zl&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=fc(t,(function(n,r){return r===Zl?[e(t.children[Zl],!1)]:["".concat(r,":").concat(e(n,!1))]}));return"".concat(gc(t),"/(").concat(o.join("//"),")")}(e.root,!0)),(n=e.queryParams,r=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.map((function(t){return"".concat(mc(e),"=").concat(mc(t))})).join("&"):"".concat(mc(e),"=").concat(mc(t))})),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),pc=new vc;function gc(e){return e.segments.map((function(e){return wc(e)})).join("/")}function yc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mc(e){return yc(e).replace(/%3B/gi,";")}function _c(e){return yc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kc(e){return decodeURIComponent(e)}function Cc(e){return kc(e.replace(/\+/g,"%20"))}function wc(e){return"".concat(_c(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(_c(e),"=").concat(_c(t[e]))})).join("")));var t}var bc=/^[^\/()?;=#]+/;function Sc(e){var t=e.match(bc);return t?t[0]:""}var Ec=/^[^=?&#]+/,xc=/^[^?&#]+/,Tc=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lc([],{}):new lc([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Zl]=new lc(e,t)),n}},{key:"parseSegment",value:function(){var e=Sc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new cc(kc(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Sc(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Sc(this.remaining);r&&this.capture(n=r)}e[kc(t)]=kc(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ec);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(xc);return t?t[0]:""}(this.remaining);r&&this.capture(n=r)}var i=Cc(t),o=Cc(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(e[i]=a=[a]),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Sc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Zl);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Zl]:new lc([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Rc=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Ac(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Ac(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Ic(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Ic(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Ac(e,t){if(e===t.value)return t;var n=!0,r=!1,i=void 0;try{for(var o,a=t.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Ac(e,o.value);if(s)return s}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return null}function Ic(e,t){if(e===t.value)return[t];var n=!0,r=!1,i=void 0;try{for(var o,a=t.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Ic(e,o.value);if(s.length)return s.unshift(t),s}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return[]}var Pc=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Oc(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Nc=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).snapshot=n,Hc(_assertThisInitialized(r),e),r}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(Rc);function Dc(e,t){var n=function(e,t){var n=new Lc([],{},{},"",{},Zl,t,null,e.root,-1,{});return new jc("",new Pc(n,[]))}(e,t),r=new Is([new cc("",{})]),i=new Is({}),o=new Is({}),a=new Is({}),s=new Is(""),u=new Mc(r,i,a,s,o,Zl,t,n.root);return u.snapshot=n.root,new Nc(new Pc(u,[]),n)}var Mc=function(){function e(t,n,r,i,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q((function(e){return Gl(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q((function(e){return Gl(e)})))),this._queryParamMap}}]),e}();function Uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Lc=function(){function e(t,n,r,i,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Gl(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gl(this.queryParams)),this._queryParamMap}}]),e}(),jc=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).url=e,Hc(_assertThisInitialized(r),n),r}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return Vc(this._root)}}]),t}(Rc);function Hc(e,t){t.value._routerState=e,t.children.forEach((function(t){return Hc(e,t)}))}function Vc(e){var t=e.children.length>0?" { ".concat(e.children.map(Vc).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Fc(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,nc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),nc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Bc(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==ic(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Wc=function e(t,n,r){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function Gc(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Zl]:"".concat(e)}function Qc(e,t,n){if(e||(e=new lc([],{})),0===e.segments.length&&e.hasChildren())return Kc(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=Gc(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Xc(s,u,a))return o;r+=2}else{if(!Xc(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new lc([],_defineProperty({},Zl,e)):e;return new uc(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(q((function(e){return new lc([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return As({});var o=[],a=[],s={};return oc(n,(function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(e,t,l,u)).pipe(q((function(e){return s[i]=e})));i===Zl?o.push(c):a.push(c)})),As.apply(null,o.concat(a)).pipe(Ls(),eu(),q((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return As.apply(void 0,_toConsumableArray(n)).pipe(q((function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(tu((function(e){if(e instanceof ih)return As(null);throw e})))})),Ls(),su((function(e){return!!e})),tu((function(e,n){if(e instanceof Os||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,r,i))return As(new lc([],{}));throw new ih(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return dh(r)!==o?ah(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):ah(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sh(o):this.lineralizeSegments(n,o).pipe(K((function(n){var o=new lc(n,{});return i.expandSegment(e,o,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=ch(t,r,i),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return ah(t);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?sh(f):this.lineralizeSegments(r,f).pipe(K((function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(q((function(e){return n._loadedConfig=e,new lc(r,{})}))):As(new lc(r,{}));var o=ch(t,n,r),a=o.matched,s=o.consumedSegments,u=o.lastChild;if(!a)return ah(t);var l=r.slice(u);return this.getChildConfig(e,n,r).pipe(K((function(e){var n=e.module,r=e.routes,o=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return fh(e,t,n)&&dh(n)!==Zl}))}(e,n,r)?{segmentGroup:hh(new lc(t,function(e,t){var n={};n[Zl]=t;var r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;""===u.path&&dh(u)!==Zl&&(n[dh(u)]=new lc([],{}))}}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(r,new lc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return fh(e,t,n)}))}(e,n,r)?{segmentGroup:hh(new lc(e.segments,function(e,t,n,r){var i={},o=!0,a=!1,s=void 0;try{for(var u,l=n[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value;fh(e,t,c)&&!r[dh(c)]&&(i[dh(c)]=new lc([],{}))}}catch(h){a=!0,s=h}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}return Object.assign({},r,i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,l,r),a=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe(q((function(e){return new lc(s,e)}))):0===r.length&&0===u.length?As(new lc(s,{})):i.expandSegment(n,a,r,u,Zl,!0).pipe(q((function(e){return new lc(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?As(new Jl(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?As(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?Q(i).pipe(q((function(r){var i,o=e.get(r);if(function(e){return e&&nh(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!nh(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return ac(i)}))).pipe(Ls(),(r=function(e){return!0===e},function(e){return e.lift(new uu(r,void 0,e))})):As(!0)}(e.injector,t,n).pipe(K((function(n){return n?r.configLoader.load(e.injector,t).pipe(q((function(e){return t._loadedConfig=e,e}))):function(e){return new b((function(t){return t.error(Kl("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):As(new Jl([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return As(n);if(r.numberOfChildren>1||!r.children[Zl])return uh(e.redirectTo);r=r.children[Zl]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new uc(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return oc(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return oc(t.children,(function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)})),new lc(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n=0,r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u.path===e.path)return t.splice(n),u;n++}}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return e}}]),e}();function ch(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Yl)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function hh(e){if(1===e.numberOfChildren&&e.children[Zl]){var t=e.children[Zl];return new lc(e.segments.concat(t.segments),t.children)}return e}function fh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function dh(e){return e.outlet||Zl}var vh=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},ph=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function gh(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function yh(e,t,n){var r=Oc(e),i=e.value;oc(r,(function(e,r){yh(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new ph(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var mh=Symbol("INITIAL_VALUE");function _h(){return cu((function(e){return(function(){for(var e=arguments.length,t=new Array(e),n=0;n0?G(t,n):Ts(n):Rs(t[0]),e)}}(mh))})))).pipe(du((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==mh)return e;if(r===mh&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||rh(r))return r}return e}),e)}),mh),js((function(e){return e!==mh})),q((function(e){return rh(e)?e:!0===e})),iu(1))}))}function kh(e,t){return null!==e&&t&&t(new Fl(e)),As(!0)}function Ch(e,t){return null!==e&&t&&t(new Hl(e)),As(!0)}function wh(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?As(r.map((function(r){return Us((function(){var i,o=gh(r,t,n);if(function(e){return e&&nh(e.canActivate)}(o))i=ac(o.canActivate(t,e));else{if(!nh(o))throw new Error("Invalid CanActivate guard");i=ac(o(t,e))}return i.pipe(su())}))}))).pipe(_h()):As(!0)}function bh(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Us((function(){return As(t.guards.map((function(i){var o,a=gh(i,t.node,n);if(function(e){return e&&nh(e.canActivateChild)}(a))o=ac(a.canActivateChild(r,e));else{if(!nh(a))throw new Error("Invalid CanActivateChild guard");o=ac(a(r,e))}return o.pipe(su())}))).pipe(_h())}))}));return As(i).pipe(_h())}var Sh=function e(){_classCallCheck(this,e)},Eh=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){try{var e=Rh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Zl),n=new Lc([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Zl,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Pc(n,t),i=new jc(this.url,r);return this.inheritParamsAndData(i._root),As(i)}catch(o){return new b((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=Uc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=fc(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return e.value.outlet===Zl?-1:t.value.outlet===Zl?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,r){var i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value;try{return this.processSegmentAgainstRoute(l,t,n,r)}catch(c){if(!(c instanceof Sh))throw c}}}catch(h){o=!0,a=h}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}if(this.noLeftoversInUrl(t,n,r))return[];throw new Sh}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new Sh;if((e.outlet||Zl)!==r)throw new Sh;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?ic(n).parameters:{};i=new Lc(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ph(e),r,e.component,e,xh(t),Th(t)+n.length,Oh(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Sh;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Yl)(n,e,t);if(!r)throw new Sh;var i={};oc(r.posParams,(function(e,t){i[t]=e.path}));var o=r.consumed.length>0?Object.assign({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),i=new Lc(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ph(e),r,e.component,e,xh(t),Th(t)+o.length,Oh(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Rh(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Pc(i,d)]}if(0===l.length&&0===f.length)return[new Pc(i,[])];var v=this.processSegment(l,h,f,Zl);return[new Pc(i,v)]}}]),e}();function xh(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Th(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Rh(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some((function(n){return Ah(e,t,n)&&Ih(n)!==Zl}))}(e,n,r)){var o=new lc(t,function(e,t,n,r){var i={};i[Zl]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o=!0,a=!1,s=void 0;try{for(var u,l=n[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value;if(""===c.path&&Ih(c)!==Zl){var h=new lc([],{});h._sourceSegment=e,h._segmentIndexShift=t.length,i[Ih(c)]=h}}}catch(f){a=!0,s=f}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}return i}(e,t,r,new lc(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Ah(e,t,n)}))}(e,n,r)){var a=new lc(e.segments,function(e,t,n,r,i,o){var a={},s=!0,u=!1,l=void 0;try{for(var c,h=r[Symbol.iterator]();!(s=(c=h.next()).done);s=!0){var f=c.value;if(Ah(e,n,f)&&!i[Ih(f)]){var d=new lc([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===o?e.segments.length:t.length,a[Ih(f)]=d}}}catch(v){u=!0,l=v}finally{try{s||null==h.return||h.return()}finally{if(u)throw l}}return Object.assign({},i,a)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new lc(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ah(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ih(e){return e.outlet||Zl}function Ph(e){return e.data||{}}function Oh(e){return e.resolve||{}}function Nh(e,t,n,r){var i=gh(e,t,r);return ac(i.resolve?i.resolve(t,n):i(t,n))}function Dh(e){return function(t){return t.pipe(cu((function(t){var n=e(t);return n?Q(n).pipe(q((function(){return t}))):Q([t])})))}}var Mh=function e(){_classCallCheck(this,e)},Uh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),Lh=new Re("ROUTES"),jh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(q((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Jl(rc(i.injector.get(Lh)).map(tc),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Q(this.loader.load(e)):ac(e()).pipe(K((function(e){return e instanceof ze?As(e):Q(t.compiler.compileModuleAsync(e))})))}}]),e}(),Hh=function e(){_classCallCheck(this,e)},Vh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Fh(e){throw e}function zh(e,t,n){return t.parse("/")}function Bh(e,t){return As(null)}var qh=function(){function e(t,n,r,i,o,a,s,u){var l=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I,this.errorHandler=Fh,this.malformedUriErrorHandler=zh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Bh,afterPreactivation:Bh},this.urlHandlingStrategy=new Vh,this.routeReuseStrategy=new Uh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Fe),this.console=o.get(Li);var c=o.get(no);this.isNgZoneEnabled=c instanceof no,this.resetConfig(u),this.currentUrlTree=new uc(new lc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new jh(a,s,(function(e){return l.triggerEvent(new Ll(e))}),(function(e){return l.triggerEvent(new jl(e))})),this.routerState=Dc(this.currentUrlTree,this.rootComponentType),this.transitions=new Is({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(js((function(e){return 0!==e.id})),q((function(e){return Object.assign({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),cu((function(e){var r,i,o,a=!1,s=!1;return As(e).pipe(Ws((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}})),cu((function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return As(e).pipe(cu((function(e){var r=t.transitions.getValue();return n.next(new Rl(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?xs:[e]})),cu((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(cu((function(e){return function(e,t,n,r,i){return new lh(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(q((function(t){return Object.assign({},e,{urlAfterRedirects:t})})))})))}),Ws((function(e){t.currentNavigation=Object.assign({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,o){return function(r){return r.pipe(K((function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Eh(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(q((function(e){return Object.assign({},r,{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Ws((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Ws((function(e){var r=new Ol(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Rl(u,t.serializeUrl(l),c,h);n.next(d);var v=Dc(l,t.rootComponentType).snapshot;return As(Object.assign({},e,{targetSnapshot:v,urlAfterRedirects:l,extras:Object.assign({},f,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),xs})),Dh((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),Ws((function(e){var n=new Nl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),q((function(e){return Object.assign({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Oc(n);return t.children.forEach((function(t){!function(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=n?n.value:null,u=r?r.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!hc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!hc(e.url,t.url)||!nc(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zc(e,t)||!nc(e.queryParams,t.queryParams);case"paramsChange":default:return!zc(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vh(i)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,n,a.component?u?u.children:null:r,i,o),l&&o.canDeactivateChecks.push(new ph(u&&u.outlet&&u.outlet.component||null,s))}else s&&yh(n,u,o),o.canActivateChecks.push(new vh(i)),e(t,null,a.component?u?u.children:null:r,i,o)}(t,a[t.value.outlet],r,i.concat([t.value]),o),delete a[t.value.outlet]})),oc(a,(function(e,t){return yh(e,r.getContext(t),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),(i=t.ngModule.injector,o=function(e){return t.triggerEvent(e)},function(e){return e.pipe(K((function(e){var t=e.targetSnapshot,n=e.currentSnapshot,r=e.guards,a=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===a.length?As(Object.assign({},e,{guardsResult:!0})):function(e,t,n,r){return Q(e).pipe(K((function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?As(o.map((function(o){var a,s=gh(o,t,i);if(function(e){return e&&nh(e.canDeactivate)}(s))a=ac(s.canDeactivate(e,t,n,r));else{if(!nh(s))throw new Error("Invalid CanDeactivate guard");a=ac(s(e,t,n,r))}return a.pipe(su())}))).pipe(_h()):As(!0)}(e.component,e.route,n,t,r)})),su((function(e){return!0!==e}),!0))}(s,t,n,i).pipe(K((function(e){return e&&"boolean"==typeof e?function(e,t,n,r){return Q(t).pipe(gu((function(t){return Q([Ch(t.route.parent,r),kh(t.route,r),bh(e,t.path,n),wh(e,t.route,n)]).pipe(Ls(),su((function(e){return!0!==e}),!0))})),su((function(e){return!0!==e}),!0))}(t,a,i,o):As(e)})),q((function(t){return Object.assign({},e,{guardsResult:t})})))})))}),Ws((function(e){if(rh(e.guardsResult)){var n=Kl('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Ws((function(e){var n=new Dl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),js((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Il(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),Dh((function(e){if(e.guards.canActivateChecks.length)return As(e).pipe(Ws((function(e){var n=new Ml(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),function(e,t){return function(n){return n.pipe(K((function(n){var r=n.targetSnapshot,i=n.guards.canActivateChecks;return i.length?Q(i).pipe(gu((function(n){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return As({});if(1===i.length){var o=i[0];return Nh(e[o],t,n,r).pipe(q((function(e){return _defineProperty({},o,e)})))}var a={};return Q(i).pipe(K((function(i){return Nh(e[i],t,n,r).pipe(q((function(e){return a[i]=e,e})))}))).pipe(eu(),q((function(){return a})))}(e._resolve,e,t,r).pipe(q((function(t){return e._resolvedData=t,e.data=Object.assign({},e.data,Uc(e,n).resolve),null})))}(n.route,r,e,t)})),function(e,t){return arguments.length>=2?function(n){return k(du(e,t),Bs(1),Js(t))(n)}:function(t){return k(du((function(t,n,r){return e(t,n,r+1)})),Bs(1))(t)}}((function(e,t){return e})),q((function(e){return n}))):As(n)})))}}(t.paramsInheritanceStrategy,t.ngModule.injector),Ws((function(e){var n=new Ul(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})))})),Dh((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),q((function(e){var n,r,i,o,a=(n=t.routeReuseStrategy,r=e.targetSnapshot,i=e.currentRouterState,o=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(t,n,r){return n.children.map((function(n){var i=!0,o=!1,a=void 0;try{for(var s,u=r.children[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value;if(t.shouldReuseRoute(l.value.snapshot,n.value))return e(t,n,l)}}catch(c){o=!0,a=c}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return e(t,n)}))}(t,n,r);return new Pc(i,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;nt()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i,c=null;if(a)switch(a){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=o?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return qc(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Zc(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return oc(r.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:o}])}if(r.segmentPath)return[].concat(_toConsumableArray(e),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(e),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(_toConsumableArray(e),[r])}),[]);return new Zc(n,t,r)}(n);if(o.toRoot())return qc(t.root,new lc([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new Wc(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Wc(n.snapshot._urlSegment,!0,0);var r=Bc(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Wc(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?Kc(a.segmentGroup,a.index,o.commands):Qc(a.segmentGroup,a.index,o.commands);return qc(a.segmentGroup,s,t,r,i)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};nt()&&this.isNgZoneEnabled&&!no.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=rh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Rl?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Al&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Bl&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Bl(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}(),of=new Re("ROUTER_CONFIGURATION"),af=new Re("ROUTER_FORROOT_GUARD"),sf=[fs,{provide:dc,useClass:vc},{provide:qh,useFactory:vf,deps:[wo,dc,Yh,fs,Dt,So,Gi,Lh,of,[Hh,new ce],[Mh,new ce]]},Yh,{provide:Mc,useFactory:pf,deps:[qh]},{provide:So,useClass:To},nf,tf,ef,{provide:of,useValue:{enableTracing:!1}}];function uf(){return new go("Router",qh)}var lf=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[sf,df(t),{provide:af,useFactory:ff,deps:[[qh,new ce,new fe]]},{provide:of,useValue:n||{}},{provide:cs,useFactory:hf,deps:[us,[new le(hs),new ce],of]},{provide:rf,useFactory:cf,deps:[qh,Ss,of]},{provide:Xh,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:tf},{provide:go,multi:!0,useFactory:uf},[gf,{provide:Ai,multi:!0,useFactory:yf,deps:[gf]},{provide:kf,useFactory:mf,deps:[gf]},{provide:Ui,multi:!0,useExisting:kf}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[df(t)]}}}]),e}();function cf(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new rf(e,t,n)}function hf(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).useHash?new ps(e,t):new gs(e,t)}function ff(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function df(e){return[{provide:zt,multi:!0,useValue:e},{provide:Lh,multi:!0,useValue:e}]}function vf(e,t,n,r,i,o,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},l=arguments.length>9?arguments[9]:void 0,c=arguments.length>10?arguments[10]:void 0,h=new qh(null,t,n,r,i,o,a,rc(s));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var f=ku();h.events.subscribe((function(e){f.logGroup("Router Event: ".concat(e.constructor.name)),f.log(e.toString()),f.log(e),f.logGroupEnd()}))}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h}function pf(e){return e.routerState.root}var gf=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new I}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ls,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(qh),i=e.injector.get(of);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return e.initNavigation?As(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(of),n=this.injector.get(nf),r=this.injector.get(rf),i=this.injector.get(qh),o=this.injector.get(wo);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}();function yf(e){return e.appInitializer.bind(e)}function mf(e){return e.bootstrapListener.bind(e)}var _f,kf=new Re("Router Initializer"),Cf=n("3ejw"),wf=n.n(Cf),bf=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,r.work=n,r}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?_get(_getPrototypeOf(t.prototype),"schedule",this).call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?_get(_getPrototypeOf(t.prototype),"execute",this).call(this,e,n):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?_get(_getPrototypeOf(t.prototype),"requestAsyncId",this).call(this,e,n,r):e.flush(this)}}]),t}(function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,r.work=n,r.pending=!1,r}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),t}(function(e){function t(e,n){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),t}(d))),Sf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Ef=new(function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),t}(function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sf.now;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,(function(){return t.delegate&&t.delegate!==_assertThisInitialized(n)?t.delegate.now():r()})))).actions=[],n.active=!1,n.scheduled=void 0,n}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,r):_get(_getPrototypeOf(t.prototype),"schedule",this).call(this,e,n,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),t}(Sf)))(bf),xf=((_f=function(){function e(t,n,r){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return As(this.value);case"E":return e=this.error,new b((function(t){return t.error(e)}));case"C":return Ts()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new _f("C"),_f.undefinedValueNotification=new _f("N",void 0),_f),Tf=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).scheduler=n,r.delay=i,r}return _inherits(t,e),_createClass(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new Rf(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(xf.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(xf.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(xf.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),t}(g),Rf=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},Af=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n},If=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).scheduler=i,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _inherits(t,e),_createClass(t,[{key:"nextInfiniteTimeWindow",value:function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Af(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new T;if(this.isStopped||this.hasError?t=d.EMPTY:(this.observers.push(e),t=new R(this,e)),i&&e.add(e=new Tf(e,i)),n)for(var a=0;at&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),t}(I))(1),Pf=function e(){_classCallCheck(this,e)},Of=function e(){_classCallCheck(this,e),this.title="single-spa-angular-app"},Nf=Jn({encapsulation:2,styles:[],data:{}});function Df(e){return na(0,[(e()(),Fo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(1,212992,null,0,Jh,[Yh,Nn,on,[8,null],It],null,null)],(function(e,t){e(t,1,0)}),null)}var Mf=Mr("ng-component",ql,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"ng-component",[],null,null,null,Df,Nf)),oi(1,49152,null,0,ql,[],null,null)],null,null)}),{},{},[]),Uf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),Lf=Jn({encapsulation:0,styles:[[""]],data:{}});function jf(e){return na(0,[(e()(),Fo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Xo(-1,null,["List page"])),(e()(),Fo(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Xo(-1,null,["This is the initial page. You'll see this page when navigate to Angular section from sidebar."]))],null,null)}var Hf=Mr("app-list",Uf,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-list",[],null,null,null,jf,Lf)),oi(1,114688,null,0,Uf,[],null,null)],(function(e,t){e(t,1,0)}),null)}),{},{},[]),Vf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),Ff=Jn({encapsulation:0,styles:[[""]],data:{}});function zf(e){return na(0,[(e()(),Fo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Xo(-1,null,["Detail page"])),(e()(),Fo(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Xo(-1,null,["If you are seeing this is due to you navigated from List page."]))],null,null)}var Bf=Mr("app-detail",Vf,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-detail",[],null,null,null,zf,Ff)),oi(1,114688,null,0,Vf,[],null,null)],(function(e,t){e(t,1,0)}),null)}),{},{},[]),qf=function e(){_classCallCheck(this,e)},Zf=Jn({encapsulation:2,styles:[],data:{}});function Wf(e){return na(0,[],null,null)}var Gf=Mr("app-empty-route",qf,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-empty-route",[],null,null,null,Wf,Zf)),oi(1,49152,null,0,qf,[],null,null)],null,null)}),{},{},[]),Qf=Jn({encapsulation:0,styles:[["div#app-component[_ngcontent-%COMP%]{padding:0 15px}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{margin:30px 0}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:10px;display:inline-block;width:75px;text-align:center}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:#007bff;color:#fff;border-radius:4px}"]],data:{}});function Kf(e){return na(0,[(e()(),Fo(0,0,null,null,23,"div",[["class","container"],["id","app-component"]],null,null,null,null,null)),(e()(),Fo(1,0,null,null,2,"h1",[],null,null,null,null,null)),(e()(),Fo(2,0,null,null,0,"img",[["height","50"],["src","https://angular.io/assets/images/logos/angular/angular.png"],["width","50"]],null,null,null,null,null)),(e()(),Xo(-1,null,[" Angular App"])),(e()(),Fo(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Fo(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Xo(-1,null,['This is the Angular section page. This section is displayed when url starts with "/angular" prefix. '])),(e()(),Fo(7,0,null,null,14,"nav",[],null,null,null,null,null)),(e()(),Fo(8,0,null,null,6,"a",[["routerLink","/angular"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),oi(9,671744,[[2,4]],0,Wh,[qh,Mc,cs],{routerLink:[0,"routerLink"]},null),oi(10,1720320,null,2,Qh,[qh,ln,dn,[2,Zh],[2,Wh]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Wo(603979776,1,{links:1}),Wo(603979776,2,{linksWithHrefs:1}),$o(13,{exact:0}),(e()(),Xo(-1,null,["List"])),(e()(),Fo(15,0,null,null,6,"a",[["routerLink","/angular/detail"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,16).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),oi(16,671744,[[4,4]],0,Wh,[qh,Mc,cs],{routerLink:[0,"routerLink"]},null),oi(17,1720320,null,2,Qh,[qh,ln,dn,[2,Zh],[2,Wh]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Wo(603979776,3,{links:1}),Wo(603979776,4,{linksWithHrefs:1}),$o(20,{exact:0}),(e()(),Xo(-1,null,["Detail"])),(e()(),Fo(22,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(23,212992,null,0,Jh,[Yh,Nn,on,[8,null],It],null,null)],(function(e,t){e(t,9,0,"/angular");var n=e(t,13,0,!0);e(t,10,0,n,"active"),e(t,16,0,"/angular/detail");var r=e(t,20,0,!0);e(t,17,0,r,"active"),e(t,23,0)}),(function(e,t){e(t,8,0,Wr(t,9).target,Wr(t,9).href),e(t,15,0,Wr(t,16).target,Wr(t,16).href)}))}var Yf=Mr("app-root",Of,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-root",[],null,null,null,Kf,Qf)),oi(1,49152,null,0,Of,[],null,null)],null,null)}),{},{},[]),Jf=function e(){_classCallCheck(this,e)},$f=new ss(Pf,[Of],(function(e){return function(e){for(var t={},n=[],r=!1,i=0;i",Router:qh,NgZone:no,domElementGetter:ed}),nd=td.bootstrap,rd=td.mount,id=td.unmount},LboF:function(e,t,n){"use strict";var r,i={},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}e[t]=n}return e[t]}}();function a(e,t){for(var n=[],r={},i=0;i4&&void 0!==arguments[4]?arguments[4]:new N(e,n,r);if(!i.closed)return F(t)(i)}var B=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{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()}}]),t}(g);function q(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Z(e,t))}}var Z=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 W(e,this.project,this.thisArg))}}]),e}(),W=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,i.count=0,i.thisArg=r||_assertThisInitialized(i),i}return _inherits(t,e),_createClass(t,[{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)}}]),t}(g);function G(e,t){return new b(t?function(n){var r=new d,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:D(e))}function Q(e,t){if(!t)return e instanceof b?e:new b(F(e));if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new b(t?function(n){var r=new d;return r.add(t.schedule((function(){var i=e[m]();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}:j(e))}(e,t);if(V(e))return function(e,t){return new b(t?function(n){var r=new d;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}:M(e))}(e,t);if(H(e))return G(e,t);if(function(e){return e&&"function"==typeof e[U]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(t?function(n){var r,i=new d;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[U](),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}:L(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function K(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(K((function(n,r){return Q(e(n,r)).pipe(q((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Y(e,n))})}var Y=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 J(e,this.project,this.concurrent))}}]),e}(),J=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(B);function $(e){return e}function X(){return K($,arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY)}function ee(){return function(e){return e.lift(new te(e))}}var te=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 ne(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),ne=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).connectable=n,r}return _inherits(t,e),_createClass(t,[{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}}]),t}(g),re=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return _inherits(t,e),_createClass(t,[{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 d).add(this.source.subscribe(new oe(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}},{key:"refCount",value:function(){return ee()(this)}}]),t}(b).prototype,ie={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:re._subscribe},_isComplete:{value:re._isComplete,writable:!0},getSubject:{value:re.getSubject},connect:{value:re.connect},refCount:{value:re.refCount}},oe=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).connectable=n,r}return _inherits(t,e),_createClass(t,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(t.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(t.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()}}}]),t}(A);function ae(){return new I}var se="__parameters__";function ue(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]:de.Default;if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?function(e,t,n){var r=ge(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&de.Optional)return null;throw new Error("Injector: NOT_FOUND [".concat(me(e),"]"))}(e,0,t):Me.get(e,t&de.Optional?null:void 0,t)}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:de.Default;return(we||Le)(e,t)}var He=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie;if(t===Ie){var n=new Error("NullInjectorError: No provider for ".concat(me(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function Ve(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Oe?e.substr(2):e;var i=me(t);if(t instanceof Array)i=t.map(me).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):me(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Pe,"\n "))}var Fe=function e(){_classCallCheck(this,e)},ze=function e(){_classCallCheck(this,e)};function Be(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Ze=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}(),We=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Te),Ge="ngDebugContext",Qe="ngOriginalError",Ke="ngErrorLogger";function Ye(e){return e[Ge]}function Je(e){return e[Qe]}function $e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.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");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}},{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();vt.hasOwnProperty(t)&&!ct.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(wt(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: ".concat(e.outerHTML));return t}}]),e}(),kt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ct=/([^\#-~ |!])/g;function wt(e){return e.replace(/&/g,"&").replace(kt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Ct,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function bt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var St=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}(),Et=function e(){_classCallCheck(this,e)},xt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Tt=/^url\(([^)]+)\)$/,Rt=/([A-Z])/g;function At(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var It=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Pt()},e}(),Pt=function(){},Ot=new Re("The presence of this token marks an injector as being the root injector."),Nt=function(e,t,n){return new Ht(e,t,n)},Dt=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Nt(e,t,""):Nt(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ie,e.NULL=new He,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:function(){return je(Ae)}}),e.__NG_ELEMENT_ID__=-1,e}(),Mt=function(e){return e},Ut=[],Lt=Mt,jt=function(){return Array.prototype.slice.call(arguments)},Ht=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.NULL,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.parent=n,this.source=r;var i=this._records=new Map;i.set(Dt,{token:Dt,fn:Mt,deps:Ut,value:this,useNew:!1}),i.set(Ae,{token:Ae,fn:Mt,deps:Ut,value:this,useNew:!1}),function e(t,n){if(n)if((n=Ce(n))instanceof Array)for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:de.Default,r=this._records.get(e);try{return function e(t,n,r,i,o,a){try{return function(t,n,r,i,o,a){var s;if(!n||a&de.SkipSelf)a&de.Self||(s=i.get(t,o,de.Default));else{if((s=n.value)==Lt)throw Error("\u0275Circular dependency");if(s===Ut){n.value=Lt;var u=n.useNew,l=n.fn,c=n.deps,h=Ut;if(c.length){h=[];for(var f=0;f2&&void 0!==arguments[2]?arguments[2]:Dt.THROW_IF_NOT_FOUND,o=Ue(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case Er:case xr:case Tr:return e}var s,u=e._def.providersByKey[a];if(u){var l=e._providers[u.index];return void 0===l&&(l=e._providers[u.index]=Ir(e,u)),l===Sr?void 0:l}if((s=ge(t.token))&&(n=e,null!=(r=s).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(n,r.providedIn)||"root"===r.providedIn&&n._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:t.token},e._providers[c]=Sr,e._providers[c]=Ir(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{Ue(o)}}function Ir(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Ar(e,n[0]));case 2:return new t(Ar(e,n[0]),Ar(e,n[1]));case 3:return new t(Ar(e,n[0]),Ar(e,n[1]),Ar(e,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qe(n,t),Zn.dirtyParentQueries(r),Nr(r),r}function Or(e,t,n){var r=t?sr(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);gr(n,2,i,o,void 0)}function Nr(e){gr(e,3,null,null,void 0)}var Dr=new Object;function Mr(e,t,n,r,i,o){return new Ur(e,t,n,r,i,o)}var Ur=function(e){function t(e,n,r,i,o,a){var s;return _classCallCheck(this,t),(s=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return _inherits(t,e),_createClass(t,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=pr(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Zn.createRootView(e,t||[],n,i,r,Dr),s=zn(a,o).instance;return n&&a.renderer.setAttribute(Fn(a,0).renderElement,"ng-version",pn.full),new Lr(a,new Fr(a),s)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),t}(en),Lr=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new ln(Fn(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Zr(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),t}(Xt);function jr(e,t,n){return new Hr(e,t,n)}var Hr=function(){function e(t,n,r){_classCallCheck(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return _createClass(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Pr(this._data,e);Zn.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Fr(t);return n.attachToViewContainerRef(this),n}return 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;i||e instanceof sn||(i=o.get(Fe));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,s=e;return n=this._view,r=this._data,i=t,o=s._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,Be(a,i,o),function(e,t){var n=or(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),Zn.dirtyParentQueries(o),Or(r,i>0?a[i-1]:null,o),s.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(e._view);return n=this._data,r=s,i=t,o=n.viewContainer._embeddedViews,a=o[r],qe(o,r),null==i&&(i=o.length),Be(o,i,a),Zn.dirtyParentQueries(a),Nr(a),Or(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=Pr(this._data,e);t&&Zn.destroyView(t)}},{key:"detach",value:function(e){var t=Pr(this._data,e);return t?new Fr(t):null}},{key:"element",get:function(){return new ln(this._data.renderElement)}},{key:"injector",get:function(){return new Zr(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ar(e),e=e.parent;return e?new Zr(e,t):new Zr(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Vr(e){return new Fr(e)}var Fr=function(){function e(t){_classCallCheck(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return _createClass(e,[{key:"markForCheck",value:function(){nr(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Zn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Zn.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Zn.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,Nr(this._view),Zn.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return gr(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function zr(e,t){return new Br(e,t)}var Br=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._parentView=e,r._def=n,r}return _inherits(t,e),_createClass(t,[{key:"createEmbeddedView",value:function(e){return new Fr(Zn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new ln(Fn(this._parentView,this._def.nodeIndex).renderElement)}}]),t}(Pn);function qr(e,t){return new Zr(e,t)}var Zr=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.elDef=n}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.THROW_IF_NOT_FOUND;return Zn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Qn(e)},t)}}]),e}();function Wr(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Fn(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vn(e,n.nodeIndex).renderText;if(20240&n.flags)return zn(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index ".concat(t))}function Gr(e){return new Qr(e.renderer)}var Qr=function(){function e(t){_classCallCheck(this,e),this.delegate=t}return _createClass(e,[{key:"selectRootElement",value:function(e){return this.delegate.selectRootElement(e)}},{key:"createElement",value:function(e,t){var n=_slicedToArray(wr(t),2),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return e&&this.delegate.appendChild(e,o),o}},{key:"createViewRoot",value:function(e){return e}},{key:"createTemplateAnchor",value:function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}},{key:"createText",value:function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}},{key:"projectNodes",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:Dt.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:de.Default,r=0;return n&de.SkipSelf?r|=1:n&de.Self&&(r|=4),Ar(this,{token:e,tokenKey:Qn(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(me(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return hi(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(di(e,t,n,i[0]));case 2:return r(di(e,t,n,i[0]),di(e,t,n,i[1]));case 3:return r(di(e,t,n,i[0]),di(e,t,n,i[1]),di(e,t,n,i[2]));default:for(var a=Array(o),s=0;s4&&void 0!==arguments[4]?arguments[4]:Dt.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===ni&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var s=e;s;){if(t)switch(a){case Jr:return Gr(vi(s,t,n));case $r:return vi(s,t,n).renderer;case Xr:return new ln(Fn(s,t.nodeIndex).renderElement);case ei:return Fn(s,t.nodeIndex).viewContainer;case ti:if(t.element.template)return Fn(s,t.nodeIndex).template;break;case ni:return Vr(vi(s,t,n));case ri:case ii:return qr(s,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[a];if(u){var l=zn(s,u.nodeIndex);return l||(l={instance:ci(s,u)},s.nodes[u.nodeIndex]=l),l.instance}}n=ur(s),t=ar(s),s=s.parent,4&r.flags&&(s=null)}var c=o.root.injector.get(r.token,fi);return c!==fi||i===fi?c:o.root.ngModule.injector.get(r.token,i)}function vi(e,t,n){var r;if(n)r=Fn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!ur(r);)r=r.parent;return r}function pi(e,t,n,r,i,o){if(32768&n.flags){var a=Fn(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var s=Gt.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new $t(s,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function gi(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).__isAsync=n,e}return _inherits(t,e),_createClass(t,[{key:"emit",value:function(e){_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,r){var i,o=function(e){return null},a=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&&(a=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)},n&&(o=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(t.prototype),"subscribe",this).call(this,i,o,a);return e instanceof d&&e.add(s),s}}]),t}(I);function Ti(){return this._results[qt()]()}var Ri=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new xi,this.length=0;var t=qt(),n=e.prototype;n[t]||(n[t]=Ti)}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;r1&&void 0!==arguments[1]?arguments[1]:null;return zi.createScope(e,t)}:function(e,t){return Ji},Xi=Yi?function(e,t){return Fi.leaveScope(e,t),t}:function(e,t){return t},eo=Promise.resolve(0);function to(e){"undefined"==typeof Zone?eo.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var no=function(){function e(t){var n,r=t.enableLongStackTrace,i=void 0!==r&&r;if(_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xi(!1),this.onMicrotaskEmpty=new xi(!1),this.onStable=new xi(!1),this.onError=new xi(!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)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,i,o,a){try{return ao(n),e.invokeTask(r,i,o,a)}finally{so(n)}},onInvoke:function(e,t,r,i,o,a,s){try{return ao(n),e.invoke(r,i,o,a,s)}finally{so(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n.hasPendingMicrotasks=i.microTask,oo(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,io,ro,ro);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function ro(){}var io={};function oo(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function ao(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function so(e){e._nesting--,oo(e)}var uo,lo=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xi,this.onMicrotaskEmpty=new xi,this.onStable=new xi,this.onError=new xi}return _createClass(e,[{key:"run",value:function(e){return e()}},{key:"runGuarded",value:function(e){return e()}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e){return e()}}]),e}(),co=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){no.assertNotInAngularZone(),to((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())to((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(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}(),ho=function(){function e(){_classCallCheck(this,e),this._applications=new Map,fo.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 fo.findTestabilityInTree(this,e,t)}}]),e}(),fo=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}()),vo=function(e,t,n){return e.get(Qi).createCompiler([t]).compileModuleAsync(n)},po=new Re("AllowMultipleToken"),go=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function yo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Re(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=mo();if(!o||o.injector.get(po,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(uo&&!uo.destroyed&&!uo.injector.get(po,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");uo=e.get(_o);var t=e.get(Di,null);t&&t.forEach((function(e){return e()}))}(Dt.create({providers:a,name:r}))}return function(e){var t=mo();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 mo(){return uo&&!uo.destroyed?uo:null}var _o=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=this,i="noop"===(n=t?t.ngZone:void 0)?new lo:("zone.js"===n?void 0:n)||new no({enableLongStackTrace:nt()}),o=[{provide:no,useValue:i}];return i.run((function(){var t=Dt.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),a=n.injector.get(Xe,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Hi&&Ei(n.injector.get(ji,Si)||Si),n.onDestroy((function(){return bo(r._modules,n)})),i.runOutsideAngular((function(){return i.onError.subscribe({next:function(e){a.handleError(e)}})})),function(e,t,i){try{var o=((a=n.injector.get(Ii)).runInitializers(),a.donePromise.then((function(){return r._moduleDoBootstrap(n),n})));return Yt(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(a,i)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=ko({},n);return vo(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(wo);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(me(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}();function ko(e,t){return Array.isArray(t)?t.reduce(ko,e):Object.assign({},e,t)}var Co,wo=((Co=function(){function e(t,n,r,i,o,a){var s=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=nt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new b((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new b((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){no.assertNotInAngularZone(),to((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){no.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=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 b?t[0]:X(r)(G(t,i))}(u,l.pipe((function(e){return ee()((t=ae,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ie);return r.source=e,r.subjectFactory=n,r})(e));var t})))}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 en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof sn?null:this._injector.get(Fe),o=n.create(Dt.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(co,null);return a&&o.injector.get(ho).registerApplication(o.location.nativeElement,a),this._loadComponent(o),nt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;var r=!0,i=!1,o=void 0;try{for(var a,s=this._views[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)a.value.detectChanges()}catch(d){i=!0,o=d}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}if(this._enforceNoNewChanges){var u=!0,l=!1,c=void 0;try{for(var h,f=this._views[Symbol.iterator]();!(u=(h=f.next()).done);u=!0)h.value.checkNoChanges()}catch(d){l=!0,c=d}finally{try{u||null==f.return||f.return()}finally{if(l)throw c}}}}catch(v){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(v)}))}finally{this._runningTick=!1,Xi(n)}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;bo(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ui,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),bo(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}())._tickScope=$i("ApplicationRef#tick()"),Co);function bo(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var So=function e(){_classCallCheck(this,e)},Eo=function e(){_classCallCheck(this,e)},xo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},To=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||xo}return _createClass(e,[{key:"load",value:function(e){return!Hi&&this._compiler instanceof Gi?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=_slicedToArray(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then((function(e){return e[i]})).then((function(e){return Ro(e,r,i)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(e){return e[r+i]})).then((function(e){return Ro(e,n,r)}))}}]),e}();function Ro(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Ao=function e(t,n){_classCallCheck(this,e),this.name=t,this.callback=n},Io=function(){function e(t,n,r){_classCallCheck(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Po&&n.addChild(this)}return _createClass(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Po=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n,r))).properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return _inherits(t,e),_createClass(t,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(_toConsumableArray(t))),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var n=[];return function e(n,r,i){n.childNodes.forEach((function(n){n instanceof t&&(r(n)&&i.push(n),e(n,r,i))}))}(this,e,n),n}},{key:"queryAllNodes",value:function(e){var n=[];return function e(n,r,i){n instanceof t&&n.childNodes.forEach((function(n){r(n)&&i.push(n),n instanceof t&&e(n,r,i)}))}(this,e,n),n}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))}},{key:"children",get:function(){return this.childNodes.filter((function(e){return e instanceof t}))}}]),t}(Io),Oo=new Map,No=function(e){return Oo.get(e)||null};function Do(e){Oo.set(e.nativeNode,e)}var Mo=yo(null,"core",[{provide:Mi,useValue:"unknown"},{provide:_o,deps:[Dt]},{provide:ho,deps:[]},{provide:Li,deps:[]}]);function Uo(){return An}function Lo(){return In}function jo(e){return e?(Hi&&Ei(e),e):Si}function Ho(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}var Vo=function e(t){_classCallCheck(this,e)};function Fo(e,t,n,r,i,o){var a,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],u=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0,f=arguments.length>11?arguments[11]:void 0;c||(c=Wn);var d=hr(n),v=d.matchedQueries,p=d.references,g=d.matchedQueryIds,y=null,m=null;o&&(y=(a=_slicedToArray(wr(o),2))[0],m=a[1]),u=u||[];for(var _=new Array(u.length),k=0;k0)l=p,ra(p)||(c=p);else for(;l&&v===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&ra(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Wn,updateRenderer:r||Wn,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function ra(e){return 0!=(1&e.flags)&&null===e.element.name}function ia(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function oa(e,t,n,r){var i=ua(e.root,e.renderer,e,t,n);return la(i,e.component,r),ca(i),i}function aa(e,t,n){var r=ua(e,e.renderer,null,null,t);return la(r,n,n),ca(r),r}function sa(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,ua(e.root,i,e,t.element.componentProvider,n)}function ua(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function la(e,t,n){e.component=t,e.context=n}function ca(e){var t;ur(e)&&(t=Fn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&Zo(e,t,0,n)&&(d=!0),f>1&&Zo(e,t,1,r)&&(d=!0),f>2&&Zo(e,t,2,i)&&(d=!0),f>3&&Zo(e,t,3,o)&&(d=!0),f>4&&Zo(e,t,4,a)&&(d=!0),f>5&&Zo(e,t,5,s)&&(d=!0),f>6&&Zo(e,t,6,u)&&(d=!0),f>7&&Zo(e,t,7,l)&&(d=!0),f>8&&Zo(e,t,8,c)&&(d=!0),f>9&&Zo(e,t,9,h)&&(d=!0),d}(e,t,n,r,i,o,a,s,u,l,c,h);case 2:return function(e,t,n,r,i,o,a,s,u,l,c,h){var f=!1,d=t.bindings,v=d.length;if(v>0&&er(e,t,0,n)&&(f=!0),v>1&&er(e,t,1,r)&&(f=!0),v>2&&er(e,t,2,i)&&(f=!0),v>3&&er(e,t,3,o)&&(f=!0),v>4&&er(e,t,4,a)&&(f=!0),v>5&&er(e,t,5,s)&&(f=!0),v>6&&er(e,t,6,u)&&(f=!0),v>7&&er(e,t,7,l)&&(f=!0),v>8&&er(e,t,8,c)&&(f=!0),v>9&&er(e,t,9,h)&&(f=!0),f){var p=t.text.prefix;v>0&&(p+=ta(n,d[0])),v>1&&(p+=ta(r,d[1])),v>2&&(p+=ta(i,d[2])),v>3&&(p+=ta(o,d[3])),v>4&&(p+=ta(a,d[4])),v>5&&(p+=ta(s,d[5])),v>6&&(p+=ta(u,d[6])),v>7&&(p+=ta(l,d[7])),v>8&&(p+=ta(c,d[8])),v>9&&(p+=ta(h,d[9]));var g=Vn(e,t.nodeIndex).renderText;e.renderer.setValue(g,p)}return f}(e,t,n,r,i,o,a,s,u,l,c,h);case 16384:return function(e,t,n,r,i,o,a,s,u,l,c,h){var f=zn(e,t.nodeIndex),d=f.instance,v=!1,p=void 0,g=t.bindings.length;return g>0&&Xn(e,t,0,n)&&(v=!0,p=pi(e,f,t,0,n,p)),g>1&&Xn(e,t,1,r)&&(v=!0,p=pi(e,f,t,1,r,p)),g>2&&Xn(e,t,2,i)&&(v=!0,p=pi(e,f,t,2,i,p)),g>3&&Xn(e,t,3,o)&&(v=!0,p=pi(e,f,t,3,o,p)),g>4&&Xn(e,t,4,a)&&(v=!0,p=pi(e,f,t,4,a,p)),g>5&&Xn(e,t,5,s)&&(v=!0,p=pi(e,f,t,5,s,p)),g>6&&Xn(e,t,6,u)&&(v=!0,p=pi(e,f,t,6,u,p)),g>7&&Xn(e,t,7,l)&&(v=!0,p=pi(e,f,t,7,l,p)),g>8&&Xn(e,t,8,c)&&(v=!0,p=pi(e,f,t,8,c,p)),g>9&&Xn(e,t,9,h)&&(v=!0,p=pi(e,f,t,9,h,p)),p&&d.ngOnChanges(p),65536&t.flags&&Hn(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),v}(e,t,n,r,i,o,a,s,u,l,c,h);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,s,u,l,c,h){var f=t.bindings,d=!1,v=f.length;if(v>0&&er(e,t,0,n)&&(d=!0),v>1&&er(e,t,1,r)&&(d=!0),v>2&&er(e,t,2,i)&&(d=!0),v>3&&er(e,t,3,o)&&(d=!0),v>4&&er(e,t,4,a)&&(d=!0),v>5&&er(e,t,5,s)&&(d=!0),v>6&&er(e,t,6,u)&&(d=!0),v>7&&er(e,t,7,l)&&(d=!0),v>8&&er(e,t,8,c)&&(d=!0),v>9&&er(e,t,9,h)&&(d=!0),d){var p,g=Bn(e,t.nodeIndex);switch(201347067&t.flags){case 32:p=new Array(f.length),v>0&&(p[0]=n),v>1&&(p[1]=r),v>2&&(p[2]=i),v>3&&(p[3]=o),v>4&&(p[4]=a),v>5&&(p[5]=s),v>6&&(p[6]=u),v>7&&(p[7]=l),v>8&&(p[8]=c),v>9&&(p[9]=h);break;case 64:p={},v>0&&(p[f[0].name]=n),v>1&&(p[f[1].name]=r),v>2&&(p[f[2].name]=i),v>3&&(p[f[3].name]=o),v>4&&(p[f[4].name]=a),v>5&&(p[f[5].name]=s),v>6&&(p[f[6].name]=u),v>7&&(p[f[7].name]=l),v>8&&(p[f[8].name]=c),v>9&&(p[f[9].name]=h);break;case 128:var y=n;switch(v){case 1:p=y.transform(n);break;case 2:p=y.transform(r);break;case 3:p=y.transform(r,i);break;case 4:p=y.transform(r,i,o);break;case 5:p=y.transform(r,i,o,a);break;case 6:p=y.transform(r,i,o,a,s);break;case 7:p=y.transform(r,i,o,a,s,u);break;case 8:p=y.transform(r,i,o,a,s,u,l);break;case 9:p=y.transform(r,i,o,a,s,u,l,c);break;case 10:p=y.transform(r,i,o,a,s,u,l,c,h)}}g.value=p}return d}(e,t,n,r,i,o,a,s,u,l,c,h);default:throw"unreachable"}}(e,t,r,i,o,a,s,u,l,c,h,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&tr(e,t,0,n),f>1&&tr(e,t,1,r),f>2&&tr(e,t,2,i),f>3&&tr(e,t,3,o),f>4&&tr(e,t,4,a),f>5&&tr(e,t,5,s),f>6&&tr(e,t,6,u),f>7&&tr(e,t,7,l),f>8&&tr(e,t,8,c),f>9&&tr(e,t,9,h)}(e,t,r,i,o,a,s,u,l,c,h,f):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);Oa.forEach((function(t,n){if(o.has(ge(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:fr(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Qn(n)]=i}}))}}(e=e.factory((function(){return Wn}))),e):e}(r))}var Pa=new Map,Oa=new Map,Na=new Map;function Da(e){var t;Pa.set(e.token,e),"function"==typeof e.token&&(t=ge(e.token))&&"function"==typeof t.providedIn&&Oa.set(e.token,e)}function Ma(e,t){var n=pr(t.viewDefFactory),r=pr(n.nodes[0].element.componentView);Na.set(e,r)}function Ua(){Pa.clear(),Oa.clear(),Na.clear()}function La(e){if(0===Pa.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),s=3;s3?o-3:0),s=3;s1?t-1:0),r=1;r0&&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(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+e.normalizeQueryParams(n))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ds(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}},{key:"replaceState",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}},{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})}}],[{key:"normalizeQueryParams",value:function(e){return e&&"?"!==e[0]?"?"+e:e}},{key:"joinWithSlash",value:function(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}},{key:"stripTrailingSlash",value:function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}]),e}();function ds(e){return e.replace(/\/index.html$/,"")}var vs,ps=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return _inherits(t,e),_createClass(t,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=fs.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+fs.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+fs.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(cs),gs=function(e){function t(e,n){var r;if(_classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,_possibleConstructorReturn(r)}return _inherits(t,e),_createClass(t,[{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 fs.joinWithSlash(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+fs.normalizeQueryParams(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+fs.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+fs.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(cs),ys=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}(),ms=new Re("UseV4Plurals"),_s=function e(){_classCallCheck(this,e)},ks=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).locale=e,r.deprecatedPluralFn=n,r}return _inherits(t,e),_createClass(t,[{key:"getPluralCategory",value:function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=ki[t];if(n)return n;var r=t.split("-")[0];if(n=ki[r])return n;if("en"===r)return bi;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ci.PluralCase]}(t||this.locale)(e)){case ys.Zero:return"zero";case ys.One:return"one";case ys.Two:return"two";case ys.Few:return"few";case ys.Many:return"many";default:return"other"}}}]),t}(_s),Cs=function e(){_classCallCheck(this,e)},ws=new Re("DocumentToken"),bs="server",Ss=((vs=function e(){_classCallCheck(this,e)}).ngInjectableDef=pe({token:vs,providedIn:"root",factory:function(){return new Es(je(ws),window,je(Xe))}}),vs),Es=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}(),xs=new b((function(e){return e.complete()}));function Ts(e){return e?function(e){return new b((function(t){return e.schedule((function(){return t.complete()}))}))}(e):xs}function Rs(e){var t=new b((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function As(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:Ys;return Ws({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Ys(){return new Os}function Js(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new $s(e))}}var $s=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Xs(e,this.defaultValue))}}]),e}(),Xs=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).defaultValue=n,r.isEmpty=!0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(g);function eu(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?js((function(t,n){return e(t,n,r)})):$,Bs(1),n?Js(t):Ks((function(){return new Os})))}}function tu(e){return function(t){var n=new nu(e),r=t.lift(n);return n.caught=r}}var nu=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ru(e,this.selector,this.caught))}}]),e}(),ru=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).selector=n,i.caught=r,i}return _inherits(t,e),_createClass(t,[{key:"error",value:function(e){if(!this.isStopped){var n;try{n=this.selector(e,this.caught)}catch(i){return void _get(_getPrototypeOf(t.prototype),"error",this).call(this,i)}this._unsubscribeAndRecycle();var r=new N(this,void 0,void 0);this.add(r),z(this,n,void 0,void 0,r)}}}]),t}(B);function iu(e){return function(t){return 0===e?Ts():t.lift(new ou(e))}}var ou=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new zs}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new au(e,this.total))}}]),e}(),au=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).total=n,r.count=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),t}(g);function su(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?js((function(t,n){return e(t,n,r)})):$,iu(1),n?Js(t):Ks((function(){return new Os})))}}var uu=function(){function e(t,n,r){_classCallCheck(this,e),this.predicate=t,this.thisArg=n,this.source=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new lu(e,this.predicate,this.thisArg,this.source))}}]),e}(),lu=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||_assertThisInitialized(o),o}return _inherits(t,e),_createClass(t,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),t}(g);function cu(e,t){return"function"==typeof t?function(n){return n.pipe(cu((function(n,r){return Q(e(n,r)).pipe(q((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new hu(e))}}var hu=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new fu(e,this.project))}}]),e}(),fu=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,r.index=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new N(this,void 0,void 0);this.destination.add(i),this.innerSubscription=z(this,e,t,n,i)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(t.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(t.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}}]),t}(B);function du(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new vu(e,t,n))}}var vu=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new pu(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),pu=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),t}(g);function gu(e,t){return K(e,t,1)}var yu=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new mu(e,this.callback))}}]),e}(),mu=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).add(new d(n)),r}return _inherits(t,e),t}(g),_u=null;function ku(){return _u}var Cu,wu=function(e){function t(){var e;_classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0}},{key:"tagName",value:function(e){return e.tagName}},{key:"attributeMap",value:function(e){for(var t=new Map,n=e.attributes,r=0;r1&&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},Te.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Te.getAllAngularRootElements=function(){return e.getAllRootElements()},Te.frameworkStabilizers||(Te.frameworkStabilizers=[]),Te.frameworkStabilizers.push((function(e){var t=Te.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?ku().isShadowRoot(t)?this.findTestabilityInTree(e,ku().getHost(t),!0):this.findTestabilityInTree(e,ku().parentElement(t),!0):null}}],[{key:"init",value:function(){var t;t=new e,fo=t}}]),e}();function Nu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Te.ng=Te.ng||{})[e]=t)}var Du={ApplicationRef:wo,NgZone:no};function Mu(e){return No(e)}var Uu=new Re("EventManagerPlugins"),Lu=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;r0;a||(a=e[o]=[]);var u=ol(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:i});else{for(var l=!1,c=0;c-1}}]),t}(ju),dl=["alt","control","meta","shift"],vl={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},pl=function(e){function t(e){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))}return _inherits(t,e),_createClass(t,[{key:"supports",value:function(e){return null!=t.parseEventName(e)}},{key:"addEventListener",value:function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return ku().onAndCancel(e,i.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(dl.forEach((function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")})),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=ku().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),dl.forEach((function(r){r!=n&&(0,vl[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded((function(){return n(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),t}(ju),gl=function e(){_classCallCheck(this,e)},yl=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._doc=e,n}return _inherits(t,e),_createClass(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case St.NONE:return t;case St.HTML:return t instanceof _l?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{lt=lt||new rt(e);var r=t?String(t):"";n=lt.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=lt.getInertBodyElement(r)}while(r!==o);var a=new _t,s=a.sanitizeChildren(bt(n)||n);return nt()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=bt(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case St.STYLE:return t instanceof kl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Tt);return t&&at(t[1])===t[1]||e.match(xt)&&function(e){for(var t=!0,n=!0,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).navigationTrigger=i,r.restoredState=o,r}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Tl),Al=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,i}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(Tl),Il=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).reason=r,i}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(Tl),Pl=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).error=r,i}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(Tl),Ol=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Nl=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Dl=function(e){function t(e,n,r,i,o){var a;return _classCallCheck(this,t),(a=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(Tl),Ml=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Ul=function(e){function t(e,n,r,i){var o;return _classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).urlAfterRedirects=r,o.state=i,o}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(Tl),Ll=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),jl=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Hl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Vl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Fl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),zl=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Bl=function(){function e(t,n,r){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),ql=function e(){_classCallCheck(this,e)},Zl="primary",Wl=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Gl(e){return new Wl(e)}var Ql="ngNavigationCancelingError";function Kl(e){var t=Error("NavigationCancelingError: "+e);return t[Ql]=!0,t}function Yl(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?e[e.length-1]:null}function oc(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ac(e){return Jt(e)?e:Yt(e)?Q(Promise.resolve(e)):As(e)}function sc(e,t,n){return n?function(e,t){return nc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!hc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return t[n]===e[n]}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!hc(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!hc(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!hc(n.segments,a)&&!!n.children[Zl]&&t(n.children[Zl],r,s)}(t,n,n.segments)}(e.root,t.root)}var uc=function(){function e(t,n,r){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=r}return _createClass(e,[{key:"toString",value:function(){return pc.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gl(this.queryParams)),this._queryParamMap}}]),e}(),lc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,oc(n,(function(e,t){return e.parent=r}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return gc(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),cc=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"toString",value:function(){return wc(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Gl(this.parameters)),this._parameterMap}}]),e}();function hc(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function fc(e,t){var n=[];return oc(e.children,(function(e,r){r===Zl&&(n=n.concat(t(e,r)))})),oc(e.children,(function(e,r){r!==Zl&&(n=n.concat(t(e,r)))})),n}var dc=function e(){_classCallCheck(this,e)},vc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Tc(e);return new uc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"".concat("/".concat(function e(t,n){if(!t.hasChildren())return gc(t);if(n){var r=t.children[Zl]?e(t.children[Zl],!1):"",i=[];return oc(t.children,(function(t,n){n!==Zl&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=fc(t,(function(n,r){return r===Zl?[e(t.children[Zl],!1)]:["".concat(r,":").concat(e(n,!1))]}));return"".concat(gc(t),"/(").concat(o.join("//"),")")}(e.root,!0)),(n=e.queryParams,r=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.map((function(t){return"".concat(mc(e),"=").concat(mc(t))})).join("&"):"".concat(mc(e),"=").concat(mc(t))})),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),pc=new vc;function gc(e){return e.segments.map((function(e){return wc(e)})).join("/")}function yc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mc(e){return yc(e).replace(/%3B/gi,";")}function _c(e){return yc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kc(e){return decodeURIComponent(e)}function Cc(e){return kc(e.replace(/\+/g,"%20"))}function wc(e){return"".concat(_c(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(_c(e),"=").concat(_c(t[e]))})).join("")));var t}var bc=/^[^\/()?;=#]+/;function Sc(e){var t=e.match(bc);return t?t[0]:""}var Ec=/^[^=?&#]+/,xc=/^[^?&#]+/,Tc=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lc([],{}):new lc([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Zl]=new lc(e,t)),n}},{key:"parseSegment",value:function(){var e=Sc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new cc(kc(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Sc(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Sc(this.remaining);r&&this.capture(n=r)}e[kc(t)]=kc(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ec);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(xc);return t?t[0]:""}(this.remaining);r&&this.capture(n=r)}var i=Cc(t),o=Cc(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(e[i]=a=[a]),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Sc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Zl);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Zl]:new lc([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Rc=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Ac(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Ac(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Ic(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Ic(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Ac(e,t){if(e===t.value)return t;var n=!0,r=!1,i=void 0;try{for(var o,a=t.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Ac(e,o.value);if(s)return s}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return null}function Ic(e,t){if(e===t.value)return[t];var n=!0,r=!1,i=void 0;try{for(var o,a=t.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Ic(e,o.value);if(s.length)return s.unshift(t),s}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return[]}var Pc=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Oc(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Nc=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).snapshot=n,Hc(_assertThisInitialized(r),e),r}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(Rc);function Dc(e,t){var n=function(e,t){var n=new Lc([],{},{},"",{},Zl,t,null,e.root,-1,{});return new jc("",new Pc(n,[]))}(e,t),r=new Is([new cc("",{})]),i=new Is({}),o=new Is({}),a=new Is({}),s=new Is(""),u=new Mc(r,i,a,s,o,Zl,t,n.root);return u.snapshot=n.root,new Nc(new Pc(u,[]),n)}var Mc=function(){function e(t,n,r,i,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q((function(e){return Gl(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q((function(e){return Gl(e)})))),this._queryParamMap}}]),e}();function Uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Lc=function(){function e(t,n,r,i,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Gl(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gl(this.queryParams)),this._queryParamMap}}]),e}(),jc=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).url=e,Hc(_assertThisInitialized(r),n),r}return _inherits(t,e),_createClass(t,[{key:"toString",value:function(){return Vc(this._root)}}]),t}(Rc);function Hc(e,t){t.value._routerState=e,t.children.forEach((function(t){return Hc(e,t)}))}function Vc(e){var t=e.children.length>0?" { ".concat(e.children.map(Vc).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Fc(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,nc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),nc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Bc(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==ic(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Wc=function e(t,n,r){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function Gc(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Zl]:"".concat(e)}function Qc(e,t,n){if(e||(e=new lc([],{})),0===e.segments.length&&e.hasChildren())return Kc(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=Gc(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Xc(s,u,a))return o;r+=2}else{if(!Xc(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new lc([],_defineProperty({},Zl,e)):e;return new uc(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(q((function(e){return new lc([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return As({});var o=[],a=[],s={};return oc(n,(function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(e,t,l,u)).pipe(q((function(e){return s[i]=e})));i===Zl?o.push(c):a.push(c)})),As.apply(null,o.concat(a)).pipe(Ls(),eu(),q((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return As.apply(void 0,_toConsumableArray(n)).pipe(q((function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(tu((function(e){if(e instanceof ih)return As(null);throw e})))})),Ls(),su((function(e){return!!e})),tu((function(e,n){if(e instanceof Os||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,r,i))return As(new lc([],{}));throw new ih(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return dh(r)!==o?ah(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):ah(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sh(o):this.lineralizeSegments(n,o).pipe(K((function(n){var o=new lc(n,{});return i.expandSegment(e,o,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=ch(t,r,i),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return ah(t);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?sh(f):this.lineralizeSegments(r,f).pipe(K((function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(q((function(e){return n._loadedConfig=e,new lc(r,{})}))):As(new lc(r,{}));var o=ch(t,n,r),a=o.matched,s=o.consumedSegments,u=o.lastChild;if(!a)return ah(t);var l=r.slice(u);return this.getChildConfig(e,n,r).pipe(K((function(e){var n=e.module,r=e.routes,o=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return fh(e,t,n)&&dh(n)!==Zl}))}(e,n,r)?{segmentGroup:hh(new lc(t,function(e,t){var n={};n[Zl]=t;var r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;""===u.path&&dh(u)!==Zl&&(n[dh(u)]=new lc([],{}))}}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(r,new lc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return fh(e,t,n)}))}(e,n,r)?{segmentGroup:hh(new lc(e.segments,function(e,t,n,r){var i={},o=!0,a=!1,s=void 0;try{for(var u,l=n[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value;fh(e,t,c)&&!r[dh(c)]&&(i[dh(c)]=new lc([],{}))}}catch(h){a=!0,s=h}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}return Object.assign({},r,i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,l,r),a=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe(q((function(e){return new lc(s,e)}))):0===r.length&&0===u.length?As(new lc(s,{})):i.expandSegment(n,a,r,u,Zl,!0).pipe(q((function(e){return new lc(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?As(new Jl(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?As(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?Q(i).pipe(q((function(r){var i,o=e.get(r);if(function(e){return e&&nh(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!nh(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return ac(i)}))).pipe(Ls(),(r=function(e){return!0===e},function(e){return e.lift(new uu(r,void 0,e))})):As(!0)}(e.injector,t,n).pipe(K((function(n){return n?r.configLoader.load(e.injector,t).pipe(q((function(e){return t._loadedConfig=e,e}))):function(e){return new b((function(t){return t.error(Kl("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):As(new Jl([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return As(n);if(r.numberOfChildren>1||!r.children[Zl])return uh(e.redirectTo);r=r.children[Zl]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new uc(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return oc(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return oc(t.children,(function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)})),new lc(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n=0,r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u.path===e.path)return t.splice(n),u;n++}}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return e}}]),e}();function ch(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Yl)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function hh(e){if(1===e.numberOfChildren&&e.children[Zl]){var t=e.children[Zl];return new lc(e.segments.concat(t.segments),t.children)}return e}function fh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function dh(e){return e.outlet||Zl}var vh=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},ph=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function gh(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function yh(e,t,n){var r=Oc(e),i=e.value;oc(r,(function(e,r){yh(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new ph(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var mh=Symbol("INITIAL_VALUE");function _h(){return cu((function(e){return(function(){for(var e=arguments.length,t=new Array(e),n=0;n0?G(t,n):Ts(n):Rs(t[0]),e)}}(mh))})))).pipe(du((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==mh)return e;if(r===mh&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||rh(r))return r}return e}),e)}),mh),js((function(e){return e!==mh})),q((function(e){return rh(e)?e:!0===e})),iu(1))}))}function kh(e,t){return null!==e&&t&&t(new Fl(e)),As(!0)}function Ch(e,t){return null!==e&&t&&t(new Hl(e)),As(!0)}function wh(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?As(r.map((function(r){return Us((function(){var i,o=gh(r,t,n);if(function(e){return e&&nh(e.canActivate)}(o))i=ac(o.canActivate(t,e));else{if(!nh(o))throw new Error("Invalid CanActivate guard");i=ac(o(t,e))}return i.pipe(su())}))}))).pipe(_h()):As(!0)}function bh(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Us((function(){return As(t.guards.map((function(i){var o,a=gh(i,t.node,n);if(function(e){return e&&nh(e.canActivateChild)}(a))o=ac(a.canActivateChild(r,e));else{if(!nh(a))throw new Error("Invalid CanActivateChild guard");o=ac(a(r,e))}return o.pipe(su())}))).pipe(_h())}))}));return As(i).pipe(_h())}var Sh=function e(){_classCallCheck(this,e)},Eh=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){try{var e=Rh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Zl),n=new Lc([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Zl,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Pc(n,t),i=new jc(this.url,r);return this.inheritParamsAndData(i._root),As(i)}catch(o){return new b((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=Uc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=fc(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return e.value.outlet===Zl?-1:t.value.outlet===Zl?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,r){var i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value;try{return this.processSegmentAgainstRoute(l,t,n,r)}catch(c){if(!(c instanceof Sh))throw c}}}catch(h){o=!0,a=h}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}if(this.noLeftoversInUrl(t,n,r))return[];throw new Sh}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new Sh;if((e.outlet||Zl)!==r)throw new Sh;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?ic(n).parameters:{};i=new Lc(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ph(e),r,e.component,e,xh(t),Th(t)+n.length,Oh(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Sh;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Yl)(n,e,t);if(!r)throw new Sh;var i={};oc(r.posParams,(function(e,t){i[t]=e.path}));var o=r.consumed.length>0?Object.assign({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),i=new Lc(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ph(e),r,e.component,e,xh(t),Th(t)+o.length,Oh(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Rh(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Pc(i,d)]}if(0===l.length&&0===f.length)return[new Pc(i,[])];var v=this.processSegment(l,h,f,Zl);return[new Pc(i,v)]}}]),e}();function xh(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Th(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Rh(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some((function(n){return Ah(e,t,n)&&Ih(n)!==Zl}))}(e,n,r)){var o=new lc(t,function(e,t,n,r){var i={};i[Zl]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o=!0,a=!1,s=void 0;try{for(var u,l=n[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value;if(""===c.path&&Ih(c)!==Zl){var h=new lc([],{});h._sourceSegment=e,h._segmentIndexShift=t.length,i[Ih(c)]=h}}}catch(f){a=!0,s=f}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}return i}(e,t,r,new lc(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Ah(e,t,n)}))}(e,n,r)){var a=new lc(e.segments,function(e,t,n,r,i,o){var a={},s=!0,u=!1,l=void 0;try{for(var c,h=r[Symbol.iterator]();!(s=(c=h.next()).done);s=!0){var f=c.value;if(Ah(e,n,f)&&!i[Ih(f)]){var d=new lc([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===o?e.segments.length:t.length,a[Ih(f)]=d}}}catch(v){u=!0,l=v}finally{try{s||null==h.return||h.return()}finally{if(u)throw l}}return Object.assign({},i,a)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new lc(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ah(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ih(e){return e.outlet||Zl}function Ph(e){return e.data||{}}function Oh(e){return e.resolve||{}}function Nh(e,t,n,r){var i=gh(e,t,r);return ac(i.resolve?i.resolve(t,n):i(t,n))}function Dh(e){return function(t){return t.pipe(cu((function(t){var n=e(t);return n?Q(n).pipe(q((function(){return t}))):Q([t])})))}}var Mh=function e(){_classCallCheck(this,e)},Uh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),Lh=new Re("ROUTES"),jh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(q((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Jl(rc(i.injector.get(Lh)).map(tc),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Q(this.loader.load(e)):ac(e()).pipe(K((function(e){return e instanceof ze?As(e):Q(t.compiler.compileModuleAsync(e))})))}}]),e}(),Hh=function e(){_classCallCheck(this,e)},Vh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Fh(e){throw e}function zh(e,t,n){return t.parse("/")}function Bh(e,t){return As(null)}var qh=function(){function e(t,n,r,i,o,a,s,u){var l=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I,this.errorHandler=Fh,this.malformedUriErrorHandler=zh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Bh,afterPreactivation:Bh},this.urlHandlingStrategy=new Vh,this.routeReuseStrategy=new Uh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Fe),this.console=o.get(Li);var c=o.get(no);this.isNgZoneEnabled=c instanceof no,this.resetConfig(u),this.currentUrlTree=new uc(new lc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new jh(a,s,(function(e){return l.triggerEvent(new Ll(e))}),(function(e){return l.triggerEvent(new jl(e))})),this.routerState=Dc(this.currentUrlTree,this.rootComponentType),this.transitions=new Is({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(js((function(e){return 0!==e.id})),q((function(e){return Object.assign({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),cu((function(e){var r,i,o,a=!1,s=!1;return As(e).pipe(Ws((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}})),cu((function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return As(e).pipe(cu((function(e){var r=t.transitions.getValue();return n.next(new Rl(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?xs:[e]})),cu((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(cu((function(e){return function(e,t,n,r,i){return new lh(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(q((function(t){return Object.assign({},e,{urlAfterRedirects:t})})))})))}),Ws((function(e){t.currentNavigation=Object.assign({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,o){return function(r){return r.pipe(K((function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Eh(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(q((function(e){return Object.assign({},r,{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Ws((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Ws((function(e){var r=new Ol(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Rl(u,t.serializeUrl(l),c,h);n.next(d);var v=Dc(l,t.rootComponentType).snapshot;return As(Object.assign({},e,{targetSnapshot:v,urlAfterRedirects:l,extras:Object.assign({},f,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),xs})),Dh((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),Ws((function(e){var n=new Nl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),q((function(e){return Object.assign({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Oc(n);return t.children.forEach((function(t){!function(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=n?n.value:null,u=r?r.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!hc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!hc(e.url,t.url)||!nc(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zc(e,t)||!nc(e.queryParams,t.queryParams);case"paramsChange":default:return!zc(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vh(i)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,n,a.component?u?u.children:null:r,i,o),l&&o.canDeactivateChecks.push(new ph(u&&u.outlet&&u.outlet.component||null,s))}else s&&yh(n,u,o),o.canActivateChecks.push(new vh(i)),e(t,null,a.component?u?u.children:null:r,i,o)}(t,a[t.value.outlet],r,i.concat([t.value]),o),delete a[t.value.outlet]})),oc(a,(function(e,t){return yh(e,r.getContext(t),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),(i=t.ngModule.injector,o=function(e){return t.triggerEvent(e)},function(e){return e.pipe(K((function(e){var t=e.targetSnapshot,n=e.currentSnapshot,r=e.guards,a=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===a.length?As(Object.assign({},e,{guardsResult:!0})):function(e,t,n,r){return Q(e).pipe(K((function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?As(o.map((function(o){var a,s=gh(o,t,i);if(function(e){return e&&nh(e.canDeactivate)}(s))a=ac(s.canDeactivate(e,t,n,r));else{if(!nh(s))throw new Error("Invalid CanDeactivate guard");a=ac(s(e,t,n,r))}return a.pipe(su())}))).pipe(_h()):As(!0)}(e.component,e.route,n,t,r)})),su((function(e){return!0!==e}),!0))}(s,t,n,i).pipe(K((function(e){return e&&"boolean"==typeof e?function(e,t,n,r){return Q(t).pipe(gu((function(t){return Q([Ch(t.route.parent,r),kh(t.route,r),bh(e,t.path,n),wh(e,t.route,n)]).pipe(Ls(),su((function(e){return!0!==e}),!0))})),su((function(e){return!0!==e}),!0))}(t,a,i,o):As(e)})),q((function(t){return Object.assign({},e,{guardsResult:t})})))})))}),Ws((function(e){if(rh(e.guardsResult)){var n=Kl('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Ws((function(e){var n=new Dl(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),js((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Il(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),Dh((function(e){if(e.guards.canActivateChecks.length)return As(e).pipe(Ws((function(e){var n=new Ml(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),function(e,t){return function(n){return n.pipe(K((function(n){var r=n.targetSnapshot,i=n.guards.canActivateChecks;return i.length?Q(i).pipe(gu((function(n){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return As({});if(1===i.length){var o=i[0];return Nh(e[o],t,n,r).pipe(q((function(e){return _defineProperty({},o,e)})))}var a={};return Q(i).pipe(K((function(i){return Nh(e[i],t,n,r).pipe(q((function(e){return a[i]=e,e})))}))).pipe(eu(),q((function(){return a})))}(e._resolve,e,t,r).pipe(q((function(t){return e._resolvedData=t,e.data=Object.assign({},e.data,Uc(e,n).resolve),null})))}(n.route,r,e,t)})),function(e,t){return arguments.length>=2?function(n){return k(du(e,t),Bs(1),Js(t))(n)}:function(t){return k(du((function(t,n,r){return e(t,n,r+1)})),Bs(1))(t)}}((function(e,t){return e})),q((function(e){return n}))):As(n)})))}}(t.paramsInheritanceStrategy,t.ngModule.injector),Ws((function(e){var n=new Ul(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})))})),Dh((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),q((function(e){var n,r,i,o,a=(n=t.routeReuseStrategy,r=e.targetSnapshot,i=e.currentRouterState,o=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(t,n,r){return n.children.map((function(n){var i=!0,o=!1,a=void 0;try{for(var s,u=r.children[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value;if(t.shouldReuseRoute(l.value.snapshot,n.value))return e(t,n,l)}}catch(c){o=!0,a=c}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return e(t,n)}))}(t,n,r);return new Pc(i,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;nt()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i,c=null;if(a)switch(a){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=o?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return qc(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Zc(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return oc(r.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:o}])}if(r.segmentPath)return[].concat(_toConsumableArray(e),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(e),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(_toConsumableArray(e),[r])}),[]);return new Zc(n,t,r)}(n);if(o.toRoot())return qc(t.root,new lc([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new Wc(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Wc(n.snapshot._urlSegment,!0,0);var r=Bc(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Wc(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?Kc(a.segmentGroup,a.index,o.commands):Qc(a.segmentGroup,a.index,o.commands);return qc(a.segmentGroup,s,t,r,i)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};nt()&&this.isNgZoneEnabled&&!no.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=rh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Rl?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Al&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Bl&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Bl(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}(),of=new Re("ROUTER_CONFIGURATION"),af=new Re("ROUTER_FORROOT_GUARD"),sf=[fs,{provide:dc,useClass:vc},{provide:qh,useFactory:vf,deps:[wo,dc,Yh,fs,Dt,So,Gi,Lh,of,[Hh,new ce],[Mh,new ce]]},Yh,{provide:Mc,useFactory:pf,deps:[qh]},{provide:So,useClass:To},nf,tf,ef,{provide:of,useValue:{enableTracing:!1}}];function uf(){return new go("Router",qh)}var lf=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[sf,df(t),{provide:af,useFactory:ff,deps:[[qh,new ce,new fe]]},{provide:of,useValue:n||{}},{provide:cs,useFactory:hf,deps:[us,[new le(hs),new ce],of]},{provide:rf,useFactory:cf,deps:[qh,Ss,of]},{provide:Xh,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:tf},{provide:go,multi:!0,useFactory:uf},[gf,{provide:Ai,multi:!0,useFactory:yf,deps:[gf]},{provide:kf,useFactory:mf,deps:[gf]},{provide:Ui,multi:!0,useExisting:kf}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[df(t)]}}}]),e}();function cf(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new rf(e,t,n)}function hf(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).useHash?new ps(e,t):new gs(e,t)}function ff(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function df(e){return[{provide:zt,multi:!0,useValue:e},{provide:Lh,multi:!0,useValue:e}]}function vf(e,t,n,r,i,o,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},l=arguments.length>9?arguments[9]:void 0,c=arguments.length>10?arguments[10]:void 0,h=new qh(null,t,n,r,i,o,a,rc(s));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var f=ku();h.events.subscribe((function(e){f.logGroup("Router Event: ".concat(e.constructor.name)),f.log(e.toString()),f.log(e),f.logGroupEnd()}))}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h}function pf(e){return e.routerState.root}var gf=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new I}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ls,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(qh),i=e.injector.get(of);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return e.initNavigation?As(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(of),n=this.injector.get(nf),r=this.injector.get(rf),i=this.injector.get(qh),o=this.injector.get(wo);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}();function yf(e){return e.appInitializer.bind(e)}function mf(e){return e.bootstrapListener.bind(e)}var _f,kf=new Re("Router Initializer"),Cf=n("3ejw"),wf=n.n(Cf),bf=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,r.work=n,r}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?_get(_getPrototypeOf(t.prototype),"schedule",this).call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?_get(_getPrototypeOf(t.prototype),"execute",this).call(this,e,n):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?_get(_getPrototypeOf(t.prototype),"requestAsyncId",this).call(this,e,n,r):e.flush(this)}}]),t}(function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,r.work=n,r.pending=!1,r}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),t}(function(e){function t(e,n){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),t}(d))),Sf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Ef=new(function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),t}(function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sf.now;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,(function(){return t.delegate&&t.delegate!==_assertThisInitialized(n)?t.delegate.now():r()})))).actions=[],n.active=!1,n.scheduled=void 0,n}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,r):_get(_getPrototypeOf(t.prototype),"schedule",this).call(this,e,n,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),t}(Sf)))(bf),xf=((_f=function(){function e(t,n,r){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return As(this.value);case"E":return e=this.error,new b((function(t){return t.error(e)}));case"C":return Ts()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new _f("C"),_f.undefinedValueNotification=new _f("N",void 0),_f),Tf=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).scheduler=n,r.delay=i,r}return _inherits(t,e),_createClass(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new Rf(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(xf.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(xf.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(xf.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),t}(g),Rf=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},Af=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n},If=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).scheduler=i,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _inherits(t,e),_createClass(t,[{key:"nextInfiniteTimeWindow",value:function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Af(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new T;if(this.isStopped||this.hasError?t=d.EMPTY:(this.observers.push(e),t=new R(this,e)),i&&e.add(e=new Tf(e,i)),n)for(var a=0;at&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),t}(I))(1),Pf=function e(){_classCallCheck(this,e)},Of=function e(){_classCallCheck(this,e),this.title="single-spa-angular-app"},Nf=Jn({encapsulation:2,styles:[],data:{}});function Df(e){return na(0,[(e()(),Fo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(1,212992,null,0,Jh,[Yh,Nn,on,[8,null],It],null,null)],(function(e,t){e(t,1,0)}),null)}var Mf=Mr("ng-component",ql,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"ng-component",[],null,null,null,Df,Nf)),oi(1,49152,null,0,ql,[],null,null)],null,null)}),{},{},[]),Uf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),Lf=Jn({encapsulation:0,styles:[[""]],data:{}});function jf(e){return na(0,[(e()(),Fo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Xo(-1,null,["List page"])),(e()(),Fo(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Xo(-1,null,["This is the initial page. You'll see this page when navigate to Angular section from navbar."]))],null,null)}var Hf=Mr("app-list",Uf,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-list",[],null,null,null,jf,Lf)),oi(1,114688,null,0,Uf,[],null,null)],(function(e,t){e(t,1,0)}),null)}),{},{},[]),Vf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),Ff=Jn({encapsulation:0,styles:[[""]],data:{}});function zf(e){return na(0,[(e()(),Fo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),Xo(-1,null,["Detail page"])),(e()(),Fo(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Xo(-1,null,["If you are seeing this is due to you navigated from List page."]))],null,null)}var Bf=Mr("app-detail",Vf,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-detail",[],null,null,null,zf,Ff)),oi(1,114688,null,0,Vf,[],null,null)],(function(e,t){e(t,1,0)}),null)}),{},{},[]),qf=function e(){_classCallCheck(this,e)},Zf=Jn({encapsulation:2,styles:[],data:{}});function Wf(e){return na(0,[],null,null)}var Gf=Mr("app-empty-route",qf,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-empty-route",[],null,null,null,Wf,Zf)),oi(1,49152,null,0,qf,[],null,null)],null,null)}),{},{},[]),Qf=Jn({encapsulation:0,styles:[["div#app-component[_ngcontent-%COMP%]{padding:0 15px}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{margin:30px 0}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:10px;display:inline-block;width:75px;text-align:center}div#app-component[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:#007bff;color:#fff;border-radius:4px}"]],data:{}});function Kf(e){return na(0,[(e()(),Fo(0,0,null,null,23,"div",[["class","container"],["id","app-component"]],null,null,null,null,null)),(e()(),Fo(1,0,null,null,2,"h1",[],null,null,null,null,null)),(e()(),Fo(2,0,null,null,0,"img",[["height","50"],["src","https://angular.io/assets/images/logos/angular/angular.png"],["width","50"]],null,null,null,null,null)),(e()(),Xo(-1,null,[" Angular App"])),(e()(),Fo(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Fo(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Xo(-1,null,['This is the Angular section page. This section is displayed when url starts with "/angular" prefix. '])),(e()(),Fo(7,0,null,null,14,"nav",[],null,null,null,null,null)),(e()(),Fo(8,0,null,null,6,"a",[["routerLink","/angular"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),oi(9,671744,[[2,4]],0,Wh,[qh,Mc,cs],{routerLink:[0,"routerLink"]},null),oi(10,1720320,null,2,Qh,[qh,ln,dn,[2,Zh],[2,Wh]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Wo(603979776,1,{links:1}),Wo(603979776,2,{linksWithHrefs:1}),$o(13,{exact:0}),(e()(),Xo(-1,null,["List"])),(e()(),Fo(15,0,null,null,6,"a",[["routerLink","/angular/detail"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,16).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r}),null,null)),oi(16,671744,[[4,4]],0,Wh,[qh,Mc,cs],{routerLink:[0,"routerLink"]},null),oi(17,1720320,null,2,Qh,[qh,ln,dn,[2,Zh],[2,Wh]],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Wo(603979776,3,{links:1}),Wo(603979776,4,{linksWithHrefs:1}),$o(20,{exact:0}),(e()(),Xo(-1,null,["Detail"])),(e()(),Fo(22,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(23,212992,null,0,Jh,[Yh,Nn,on,[8,null],It],null,null)],(function(e,t){e(t,9,0,"/angular");var n=e(t,13,0,!0);e(t,10,0,n,"active"),e(t,16,0,"/angular/detail");var r=e(t,20,0,!0);e(t,17,0,r,"active"),e(t,23,0)}),(function(e,t){e(t,8,0,Wr(t,9).target,Wr(t,9).href),e(t,15,0,Wr(t,16).target,Wr(t,16).href)}))}var Yf=Mr("app-root",Of,(function(e){return na(0,[(e()(),Fo(0,0,null,null,1,"app-root",[],null,null,null,Kf,Qf)),oi(1,49152,null,0,Of,[],null,null)],null,null)}),{},{},[]),Jf=function e(){_classCallCheck(this,e)},$f=new ss(Pf,[Of],(function(e){return function(e){for(var t={},n=[],r=!1,i=0;i",Router:qh,NgZone:no,domElementGetter:ed}),nd=td.bootstrap,rd=td.mount,id=td.unmount},LboF:function(e,t,n){"use strict";var r,i={},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}e[t]=n}return e[t]}}();function a(e,t){for(var n=[],r={},i=0;i