text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(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}c.prototype=Object.create(Error.prototype);const h=c;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 l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++l<c&&s[l]||null;if(r(i))try{i.call(this)}catch(d){t=!0,e=d instanceof h?p(d.errors):[d]}if(a(o))for(l=-1,c=o.length;++l<c;){const n=o[l];if(u(n))try{n.unsubscribe()}catch(d){t=!0,e=e||[],d instanceof h?e=e.concat(p(d.errors)):e.push(d)}}if(t)throw new h(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function p(e){return e.reduce((e,t)=>e.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=l;break;case 1:if(!e){this.destination=l;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!==l&&(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 y="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(){}function _(...e){return w(e)}function w(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:v}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(l)}(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)}[y](){return this}pipe(...e){return 0===e.length?this:w(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 S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}S.prototype=Object.create(Error.prototype);const E=S;class x 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 E;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new E;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new E;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new E;return this.hasError?(e.error(this.thrownError),d.EMPTY):this.isStopped?(e.complete(),d.EMPTY):(this.observers.push(e),new x(this,e))}asObservable(){const e=new b;return e.source=this,e}}return e.create=(e,t)=>new 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 N(e){return e&&"function"==typeof e.schedule}class I 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 R=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},O=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function D(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=D(),P=e=>t=>{const n=e[M]();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},V=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},U=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function F(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const L=e=>{if(e instanceof b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return V(e);if(U(e))return R(e);if(F(e))return O(e);if(e&&"function"==typeof e[M])return P(e);{const t=u(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 j(e,t,n,r,s=new I(e,n,r)){if(!s.closed)return L(t)(s)}class $ 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 H(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 G(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}:R(e))}function q(e,t){if(!t)return e instanceof b?e:new b(L(e));if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[y]();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}:V(e))}(e,t);if(F(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}:O(e))}(e,t);if(U(e))return G(e,t);if(function(e){return e&&"function"==typeof e[M]}(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[M](),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}:P(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Z(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Z((n,r)=>q(e(n,r)).pipe(H((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new W(e,n)))}class W{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 ${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.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new I(this,void 0,void 0);this.destination.add(r),j(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,s){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function J(e){return e}function K(e=Number.POSITIVE_INFINITY){return Z(J,e)}function Y(){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 Y()(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 le=oe("Inject",e=>({token:e})),ae=oe("Optional"),ue=oe("Self"),ce=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 ye=de({__forward_ref__:de});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return me(this())},e}function _e(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ye)&&t.__forward_ref__===ve?t():e}const we="undefined"!=typeof globalThis&&globalThis,be="undefined"!=typeof window&&window,Ce="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Se="undefined"!=typeof global&&global,Ee=we||Se||be||Ce;class xe{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 xe("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Ne="ngTokenPath",Ie=/\n/gm,Re="\u0275",Oe="__source",De=de({provide:String,useValue:de});let Me,Pe=void 0;function Ve(e){const t=Pe;return Pe=e,t}function Ue(e){const t=Me;return Me=e,t}function Fe(e,t=he.Default){if(void 0===Pe)throw new Error("inject() must be called from an injection context");return null===Pe?je(e,void 0,t):Pe.get(e,t&he.Optional?null:void 0,t)}function Le(e,t=he.Default){return(Me||Fe)(e,t)}function je(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;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}class $e{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 He(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Re?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(Ie,"\n  ")}`}const ze=new xe("The presence of this token marks an injector as being the root injector."),Be=function(e,t,n){return new Ke(e,t,n)};let Ge=(()=>{class e{static create(e,t){return Array.isArray(e)?Be(e,t,""):Be(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new $e,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>Le(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const qe=function(e){return e},Ze=[],We=qe,Qe=function(){return Array.prototype.slice.call(arguments)},Je="\u0275";class Ke{constructor(e,t=Ge.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Ge,{token:Ge,fn:qe,deps:Ze,value:this,useNew:!1}),r.set(Te,{token:Te,fn:qe,deps:Ze,value:this,useNew:!1}),function e(t,n){if(n)if((n=_e(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Xe("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Xe("Unexpected provider",n);{let e=_e(n.provide);const r=function(e){const t=function(e){let t=Ze;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=_e(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof ae||n==ae?r|=1:n instanceof ce||n==ce?r&=-3:n instanceof ue||n==ue?r&=-5:s=n instanceof le?n.token:_e(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:_e(e.useExisting),options:6}];else if(!(n||De in e))throw Xe("'deps' required",e);return t}(e);let n=qe,r=Ze,s=!1,i=_e(e.provide);if(De in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=_e(e.useClass);else{if("function"!=typeof i)throw Xe("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Qe)throw Ye(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Qe,value:Ze});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==Qe)throw Ye(e);t.set(e,r)}}}(r,e)}get(e,t,n=he.Default){const r=this._records.get(e);try{return function e(t,n,r,s,i,o){try{return function(t,n,r,s,i,o){let l;if(!n||o&he.SkipSelf)o&he.Self||(l=s.get(t,i,he.Default));else{if((l=n.value)==We)throw Error(Je+"Circular dependency");if(l===Ze){n.value=We;let t=void 0,i=n.useNew,o=n.fn,a=n.deps,u=Ze;if(a.length){u=[];for(let t=0;t<a.length;t++){const n=a[t],i=n.options,o=2&i?r.get(n.token):void 0;u.push(e(n.token,o,r,o||4&i?s:Ge.NULL,1&i?null:Ge.THROW_IF_NOT_FOUND,he.Default))}}n.value=l=i?new o(...u):o.apply(t,u)}}return l}(t,n,r,s,i,o)}catch(l){throw l instanceof Error||(l=new Error(l)),(l[Ae]=l[Ae]||[]).unshift(t),n&&n.value==We&&(n.value=Ze),l}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[Ae];throw t[Oe]&&s.unshift(t[Oe]),e.message=He("\n"+e.message,s,"StaticInjectorError",r),e[Ne]=s,e[Ae]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Ye(e){return Xe("Cannot mix multi providers and regular providers",e)}function Xe(e,t){return new Error(He(e,t,"StaticInjectorError"))}const et="ngDebugContext",tt="ngOriginalError",nt="ngErrorLogger",rt=new xe("AnalyzeForEntryComponents"),st=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}(),it=[],ot=de({__NG_ELEMENT_ID__:de});function lt(e){return"string"==typeof e?e:null==e?"":""+e}function at(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():lt(e)}const ut=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ee))(),ct="\ufffd";function ht(e){return e.indexOf(ct)>=0}const dt=0,pt=1,ft=2,gt=3,mt=6,yt=8,vt=9,_t=10,wt=17,bt=20,Ct=1,St=7,Et=9,xt="__ngContext__";function Tt(e){for(;Array.isArray(e);)e=e[dt];return e}function kt(e){return Array.isArray(e)&&!0===e[Ct]}function At(e,t){return Tt(t[e.index])}function Nt(e,t){const n=t[e];return r=n,Array.isArray(r)&&"object"==typeof r[Ct]?n:n[dt];var r}function It(e){return 1==(1&e.flags)}function Rt(e){return e[xt]}function Ot(){return Mt}let Dt,Mt;function Pt(){return Dt}function Vt(e,t){Dt=e,Mt=t}let Ut=!0,Ft=!1;function Lt(){return Ft=!0,Ut}class jt{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='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',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="<body><remove></remove>"+e+"</body>";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="<body><remove></remove>"+e+"</body>";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;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const $t=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ht=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function zt(e){return(e=String(e)).match($t)||e.match(Ht)?e:(Lt()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function Bt(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Gt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const qt=Bt("area,br,col,hr,img,wbr"),Zt=Bt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wt=Bt("rp,rt"),Qt=Gt(Wt,Zt),Jt=Gt(qt,Gt(Zt,Bt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Gt(Wt,Bt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Qt),Kt=Bt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yt=Bt("srcset"),Xt=Gt(Kt,Yt,Bt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),en=Bt("script,style,template");class tn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Jt.hasOwnProperty(t))return this.sanitizedSomething=!0,!en.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,i=t.toLowerCase();if(!Xt.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;Kt[i]&&(o=zt(o)),Yt[i]&&(r=o,o=(r=String(r)).split(",").map(e=>zt(e.trim())).join(", ")),this.buf.push(" ",t,'="',sn(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Jt.hasOwnProperty(t)&&!qt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(sn(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 nn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rn=/([^\#-~ |!])/g;function sn(e){return e.replace(/&/g,"&amp;").replace(nn,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(rn,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let on;function ln(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const an=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 un{}const cn=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),hn=/^url\(([^)]+)\)$/,dn=8,pn=8,fn=-1;class gn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function mn(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function yn(e,t){e[xt]=t}function vn(e,t){let n=e[pt].firstChild;for(;n;){if(At(n,e)===t)return n.index;n=_n(n)}return-1}function _n(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}const wn=0;function bn(e,t){let n=e,r=t[n],s=t;for(;Array.isArray(r);)s=r,r=r[dt];if(i=s,Array.isArray(i)&&"number"==typeof i[Ct])return s;var i;{const i=function(e,t){return t[pt].data[e+bt]}(e-bt,t).stylingTemplate;return s!==t&&(n=dt),s[n]=i?function(e,t){const n=t.slice();for(let r=0;r<10;r++){const e=t[r];Array.isArray(e)&&(n[r]=e.slice())}return n[0]=e,n[1]|=16,n}(r,i):function(e,t,n,r){const s=[e||null,0,[],[null,null],[null,null],[0,0],[0],[0],null,null];return function(e,t,n=-1,r){const s=e[2],i=2*t,o=i+2;for(let a=s.length;a<o;a+=2)s.push(-1,null);const l=i+0;n>=0&&-1===s[l]&&(s[l]=n,s[i+1]=r||null)}(s,wn),s}(r)}}function Cn(e){return 32767&e}function Sn(e,t){let n=e>>16,r=t;for(;n>0;)r=r[wt],n--;return r}function En(e){const t=e[gt];return kt(t)?t[gt]:t}function xn(e){let t=e[mt];for(;null!==t&&2===t.type;)t=(e=e[wt])[mt];return e}let Tn=!0;function kn(e){const t=Tn;return Tn=e,t}const An=255;const Nn={};function In(e,t,n,r,s,i){const o=t[pt],l=o.data[e+dn],a=function(e,t,n,r,s){const i=e.providerIndexes,o=t.data,l=65535&i,a=e.directiveStart,u=i>>16,c=s?l+u:e.directiveEnd;for(let h=r?l:l+u;h<c;h++){const e=o[h];if(h<a&&n===e||h>=a&&e.type===n)return h}if(s){const e=o[a];if(e&&null!==e.template&&e.type===n)return a}return null}(l,o,n,null==r?It(l)&&Tn:r!=o&&3===l.type,s&he.Host&&i===l);return null!==a?function(e,t,n,r){let s=t[n];if(null!==(i=s)&&"object"==typeof i&&Object.getPrototypeOf(i)==gn.prototype){const i=s;if(i.resolving)throw new Error(`Circular dep for ${at(e[n])}`);const o=kn(i.canSeeViewProviders);let l;i.resolving=!0,i.injectImpl&&(l=Ue(i.injectImpl));const a=Pt(),u=Ot();Vt(r,t);try{s=t[n]=i.factory(null,e,t,r)}finally{i.injectImpl&&Ue(l),kn(o),i.resolving=!1,Vt(a,u)}}var i;return s}(o.data,t,a,l):Nn}function Rn(e,t,n){const r=64&e,s=32&e;let i;return!!((i=128&e?r?s?n[t+7]:n[t+6]:s?n[t+5]:n[t+4]:r?s?n[t+3]:n[t+2]:s?n[t+1]:n[t])&1<<e)}function On(e,t){return!(e&he.Self||e&he.Host&&t)}class Dn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return function(e,t,n,r=he.Default,s){if(e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e[ot];return"number"==typeof t&&t>0?t&An:t}(n);if("function"==typeof s){const i=Pt(),o=Ot();Vt(e,t);try{const e=s();if(null!=e||r&he.Optional)return e;throw new Error(`No provider for ${at(n)}!`)}finally{Vt(i,o)}}else if("number"==typeof s){if(-1===s)return new Dn(e,t);let i=null,o=function(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+pn]?-1:e.injectorIndex}(e,t),l=fn,a=r&he.Host?xn(t)[mt]:null;for((-1===o||r&he.SkipSelf)&&(l=-1===o?function(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[mt],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[wt])?t[mt]:null,r++;return n?n.injectorIndex|r<<16:-1}(e,t):t[o+pn],On(r,!1)?(i=t[pt],o=Cn(l),t=Sn(l,t)):o=-1);-1!==o;){l=t[o+pn];const e=t[pt];if(Rn(s,o,e.data)){const e=In(o,t,n,i,r,a);if(e!==Nn)return e}On(r,t[pt].data[o+dn]===a)&&Rn(s,o,t)?(i=e,o=Cn(l),t=Sn(l,t)):o=-1}}}if(r&he.Optional&&void 0===s&&(s=null),0==(r&(he.Self|he.Host))){const e=t[_t],i=Ue(void 0);try{return e?e.get(n,s,r&he.Optional):je(n,s,r&he.Optional)}finally{Ue(i)}}if(r&he.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${at(n)}]`)}(this._tNode,this._lView,e,void 0,t)}}function Mn(e){return e[et]}function Pn(e){return e[tt]}function Vn(e,...t){e.error(...t)}class Un{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[nt]||Vn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Mn(e)?Mn(e):this._findContext(Pn(e)):null}_findOriginalError(e){let t=Pn(e);for(;t&&Pn(t);)t=Pn(t);return t}}const Fn=/([A-Z])/g;function Ln(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function jn(e,t){return 2==(2&e[t>=10?t+0:t])}function $n(e,t){return e[t+2]}function Hn(e,t){return e[t+1]}let zn=null;function Bn(){if(!zn){const e=Ee.Symbol;if(e&&e.iterator)zn=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(zn=n)}}}return zn}function Gn(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function qn(e,t){const n=Wn(e),r=Wn(t);if(n&&r)return function(e,t,n){const r=e[Bn()](),s=t[Bn()]();for(;;){const e=r.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,qn);{const s=e&&("object"==typeof e||"function"==typeof e),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||Gn(e,t)}}class Zn{constructor(e){this.wrapped=e}static wrap(e){return new Zn(e)}static unwrap(e){return Zn.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Zn}}function Wn(e){return!!Qn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Bn()in e)}function Qn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Jn(e){return!!e&&"function"==typeof e.then}function Kn(e){return!!e&&"function"==typeof e.subscribe}function Yn(e,t=!0){const n=function(e){let t=Rt(e);if(t){if(Array.isArray(t)){const r=t;let s,i=void 0,o=void 0;if((n=e)&&n.constructor&&n.constructor.ngComponentDef){if(-1==(s=function(e,t){const n=e[pt].components;if(n)for(let r=0;r<n.length;r++){const s=n[r];if(Nt(s,e)[vt]===t)return s}else if(Nt(bt,e)[vt]===t)return bt;return-1}(r,e)))throw new Error("The provided component was not found in the application");i=e}else if(function(e){return e&&e.constructor&&e.constructor.ngDirectiveDef}(e)){if(-1==(s=function(e,t){let n=e[pt].firstChild;for(;n;){const r=n.directiveEnd;for(let s=n.directiveStart;s<r;s++)if(e[s]===t)return n.index;n=_n(n)}return-1}(r,e)))throw new Error("The provided directive was not found in the application");o=function(e,t,n){const r=t[pt].data[e];let s=r.directiveStart;return 0==s?it:(1&r.flags&&s++,t.slice(s,r.directiveEnd))}(s,r)}else if(-1==(s=vn(r,e)))return null;const l=Tt(r[s]),a=Rt(l),u=a&&!Array.isArray(a)?a:mn(r,s,l);if(i&&void 0===u.component&&(u.component=i,yn(u.component,u)),o&&void 0===u.directives){u.directives=o;for(let e=0;e<o.length;e++)yn(o[e],u)}yn(u.native,u),t=u}}else{const n=e;let r=n;for(;r=r.parentNode;){const e=Rt(r);if(e){let r;if(!(r=Array.isArray(e)?e:e.lView))return null;const s=vn(r,n);if(s>=0){const e=Tt(r[s]),n=mn(r,s,e);yn(e,n),t=n;break}}}}var n;return t||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function Xn(e){if(!(e instanceof Node))throw new Error("Expecting instance of DOM Node");return Yn(e)}function er(e){return"boolean"==typeof e.useCapture}function tr(e,t){return e.name==t.name?0:e.name<t.name?-1:1}class nr{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class rr{}class sr{}function ir(e){const t=Error(`No component factory found for ${me(e)}. Did you add it to @NgModule.entryComponents?`);return t[or]=e,t}const or="ngComponent";class lr{resolveComponentFactory(e){throw ir(e)}}let ar=(()=>{class e{}return e.NULL=new lr,e})();class ur{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw ir(e);return new cr(t,this._ngModule)}}class cr extends sr{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}class hr{}class dr{}function pr(...e){}let fr=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>gr(e),e})();const gr=pr;class mr{}class yr{}const vr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let _r=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>wr(),e})();const wr=pr;class br{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Cr=new br("8.1.3");class Sr{constructor(){}supports(e){return Wn(e)}create(e){return new xr(e)}}const Er=(e,t)=>t;class xr{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||Er}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<Nr(n,r,s)?t:n,o=Nr(i,r,s),l=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=l-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==l&&e(i,o,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Wn(e))throw new Error(`Error trying to diff '${me(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==s&&Gn(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),Gn(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Bn()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&Gn(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Gn(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))?(Gn(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Gn(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new Tr(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 Ar),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 Ar),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 Tr{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 kr{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)&&Gn(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 Ar{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new kr,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 Nr(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class Ir{constructor(){}supports(e){return e instanceof Map||Qn(e)}create(){return new Rr}}class Rr{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Qn(e)))throw new Error(`Error trying to diff '${me(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{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 Or(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){Gn(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 Or{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 Dr=(()=>{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 ce,new ae]]}}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 Sr])}),e})(),Mr=(()=>{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 ce,new ae]]}}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 Ir])}),e})(),Pr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Vr(),e})();const Vr=(...e)=>{},Ur=[new Ir],Fr=new Dr([new Sr]),Lr=new Mr(Ur);let jr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$r(e,fr),e})();const $r=pr;let Hr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>zr(e,fr),e})();const zr=pr;function Br(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 Gr(n,t),n}(s,e)}function Gr(e,t){e[et]=t,e[nt]=t.logError.bind(t)}function qr(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Zr(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 Wr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Qr(e,t){return e.nodes[t]}function Jr(e,t){return e.nodes[t]}function Kr(e,t){return e.nodes[t]}function Yr(e,t){return e.nodes[t]}function Xr(e,t){return e.nodes[t]}const es={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},ts=()=>{},ns=new Map;function rs(e){let t=ns.get(e);return t||(t=me(e)+"_"+ns.size,ns.set(e,t)),t}const ss="$$undefined",is="$$empty";function os(e){return{id:ss,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let ls=0;function as(e,t,n,r){return!(!(2&e.state)&&Gn(e.oldValues[t.bindingIndex+n],r))}function us(e,t,n,r){return!!as(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function cs(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!qn(s,r)){const i=t.bindings[n].name;throw Br(es.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function hs(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ds(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ps(e,t,n,r){try{return hs(33554432&e.def.nodes[t].flags?Jr(e,t).componentView:e),es.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function fs(e){return e.parent?Jr(e.parent,e.parentNodeDef.nodeIndex):null}function gs(e){return e.parent?e.parentNodeDef.parent:null}function ms(e,t){switch(201347067&t.flags){case 1:return Jr(e,t.nodeIndex).renderElement;case 2:return Qr(e,t.nodeIndex).renderText}}function ys(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function vs(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function _s(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=function(e){return 1<<e%32}(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function ws(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,Oe,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:rs(n)}})}function bs(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===st.Native?Jr(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Cs=new WeakMap;function Ss(e){let t=Cs.get(e);return t||((t=e(()=>ts)).factory=e,Cs.set(e,t)),t}function Es(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(ms(e,e.def.lastRenderRootNode))),xs(e,t,0,e.def.nodes.length-1,n,r,s)}function xs(e,t,n,r,s,i,o){for(let l=n;l<=r;l++){const n=e.def.nodes[l];11&n.flags&&ks(e,n,t,s,i,o),l+=n.childCount}}function Ts(e,t,n,r,s,i){let o=e;for(;o&&!ys(o);)o=o.parent;const l=o.parent,a=gs(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&ks(l,e,n,r,s,i),c+=e.childCount}if(!l.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)As(e,o[t],n,r,s,i)}}function ks(e,t,n,r,s,i){if(8&t.flags)Ts(e,t.ngContent.index,n,r,s,i);else{const o=ms(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&As(e,o,n,r,s,i),32&t.bindingFlags&&As(Jr(e,t.nodeIndex).componentView,o,n,r,s,i)):As(e,o,n,r,s,i),16777216&t.flags){const o=Jr(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)Es(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&xs(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function As(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const Ns=/^:([^:]+):(.+)$/;function Is(e){if(":"===e[0]){const t=e.match(Ns);return[t[1],t[2]]}return["",e]}function Rs(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function Os(e,t,n,r,s,i,o,l,a,u,c,h,d,p,f,g,m,y,v,_){switch(e){case 1:return t+Ds(n)+r;case 2:return t+Ds(n)+r+Ds(s)+i;case 3:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l;case 4:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l+Ds(a)+u;case 5:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l+Ds(a)+u+Ds(c)+h;case 6:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l+Ds(a)+u+Ds(c)+h+Ds(d)+p;case 7:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l+Ds(a)+u+Ds(c)+h+Ds(d)+p+Ds(f)+g;case 8:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l+Ds(a)+u+Ds(c)+h+Ds(d)+p+Ds(f)+g+Ds(m)+y;case 9:return t+Ds(n)+r+Ds(s)+i+Ds(o)+l+Ds(a)+u+Ds(c)+h+Ds(d)+p+Ds(f)+g+Ds(m)+y+Ds(v)+_;default:throw new Error("Does not support more than 9 expressions")}}function Ds(e){return null!=e?e.toString():""}const Ms=new Object,Ps=rs(Ge),Vs=rs(Te),Us=rs(hr);function Fs(e,t,n,r){return n=_e(n),{index:-1,deps:ws(r,me(t)),flags:e,token:t,value:n}}function Ls(e,t,n=Ge.THROW_IF_NOT_FOUND){const r=Ve(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case Ps:case Vs:case Us:return e}const l=e._def.providersByKey[o];let a;if(l){let t=e._providers[l.index];return void 0===t&&(t=e._providers[l.index]=js(e,l)),t===Ms?void 0:t}if((a=fe(t.token))&&(s=e,null!=(i=a).providedIn&&(function(e,t){return e._def.modules.indexOf(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:a.factory,deps:[],index:n,token:t.token},e._providers[n]=Ms,e._providers[n]=js(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ve(r)}var s,i}function js(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(Ls(e,n[0]));case 2:return new t(Ls(e,n[0]),Ls(e,n[1]));case 3:return new t(Ls(e,n[0]),Ls(e,n[1]),Ls(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=Ls(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Ls(e,n[0]));case 2:return t(Ls(e,n[0]),Ls(e,n[1]));case 3:return t(Ls(e,n[0]),Ls(e,n[1]),Ls(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=Ls(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=Ls(e,t.deps[0]);break;case 256:n=t.value}return n===Ms||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Ms:n}function $s(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Gs(n,t),es.dirtyParentQueries(r),zs(r),r}function Hs(e,t,n){const r=t?ms(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Es(n,2,s,i,void 0)}function zs(e){Es(e,3,null,null,void 0)}function Bs(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Gs(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const qs=new Object;function Zs(e,t,n,r,s,i){return new Ws(e,t,n,r,s,i)}class Ws extends sr{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=Ss(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=es.createRootView(e,t||[],n,s,r,qs),l=Kr(o,i).instance;return n&&o.renderer.setAttribute(Jr(o,0).renderElement,"ng-version",Cr.full),new Qs(o,new Xs(o),l)}}class Qs extends rr{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 fr(Jr(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new ri(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Js(e,t,n){return new Ks(e,t,n)}class Ks{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new fr(this._data.renderElement)}get injector(){return new ri(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=gs(e),e=e.parent;return e?new ri(e,t):new ri(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=$s(this._data,e);es.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Xs(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 cr||(s=i.get(hr));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,Bs(s,n,r),function(e,t){const n=fs(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),es.dirtyParentQueries(r),Hs(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];Gs(r,t),null==n&&(n=r.length),Bs(r,n,s),es.dirtyParentQueries(s),zs(s),Hs(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=$s(this._data,e);t&&es.destroyView(t)}detach(e){const t=$s(this._data,e);return t?new Xs(t):null}}function Ys(e){return new Xs(e)}class Xs{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Es(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(){hs(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{es.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){es.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)),es.destroyView(this._view)}detachFromAppRef(){this._appRef=null,zs(this._view),es.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 ei(e,t){return new ti(e,t)}class ti extends jr{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Xs(es.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new fr(Jr(this._parentView,this._def.nodeIndex).renderElement)}}function ni(e,t){return new ri(e,t)}class ri{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Ge.THROW_IF_NOT_FOUND){return es.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:rs(e)},t)}}function si(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Jr(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Qr(e,n.nodeIndex).renderText;if(20240&n.flags)return Kr(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function ii(e){return new oi(e.renderer)}class oi{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Is(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;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,s]=Is(t);null!=n?this.delegate.setAttribute(e,s,n,r):this.delegate.removeAttribute(e,s,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function li(e,t,n,r){return new ai(e,t,n,r)}class ai{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=js(e,s))}}(this)}get(e,t=Ge.THROW_IF_NOT_FOUND,n=he.Default){let r=0;return n&he.SkipSelf?r|=1:n&he.Self&&(r|=4),Ls(this,{token:e,tokenKey:rs(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(ar)}destroy(){if(this._destroyed)throw new Error(`The ng module ${me(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==Ms){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const ui=rs(mr),ci=rs(_r),hi=rs(fr),di=rs(Hr),pi=rs(jr),fi=rs(Pr),gi=rs(Ge),mi=rs(Te);function yi(e,t,n,r,s,i,o,l){const a=[];if(o)for(let c in o){const[e,t]=o[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return _i(e,t|=16384,n,r,s,s,i,a,u)}function vi(e,t,n,r,s){return _i(-1,e,t,0,n,r,s)}function _i(e,t,n,r,s,i,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=_s(n);a||(a=[]),l||(l=[]),i=_e(i);const d=ws(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:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:Rs(l),outputs:a,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function wi(e,t){return Ei(e,t)}function bi(e,t){let n=e;for(;n.parent&&!ys(n);)n=n.parent;return xi(n.parent,gs(n),!0,t.provider.value,t.provider.deps)}function Ci(e,t){const n=xi(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],i=n[s.propName];if(!Kn(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(Si(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function Si(e,t,n){return r=>ps(e,t,n,r)}function Ei(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return xi(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(ki(e,t,n,s[0]));case 2:return r(ki(e,t,n,s[0]),ki(e,t,n,s[1]));case 3:return r(ki(e,t,n,s[0]),ki(e,t,n,s[1]),ki(e,t,n,s[2]));default:const o=Array(i);for(let r=0;r<i;r++)o[r]=ki(e,t,n,s[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return ki(e,t.parent,n,r.deps[0]);case 256:return r.value}}function xi(e,t,n,r,s){const i=s.length;switch(i){case 0:return new r;case 1:return new r(ki(e,t,n,s[0]));case 2:return new r(ki(e,t,n,s[0]),ki(e,t,n,s[1]));case 3:return new r(ki(e,t,n,s[0]),ki(e,t,n,s[1]),ki(e,t,n,s[2]));default:const o=new Array(i);for(let r=0;r<i;r++)o[r]=ki(e,t,n,s[r]);return new r(...o)}}const Ti={};function ki(e,t,n,r,s=Ge.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===fi&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let l=e;for(;l;){if(t)switch(o){case ui:return ii(Ai(l,t,n));case ci:return Ai(l,t,n).renderer;case hi:return new fr(Jr(l,t.nodeIndex).renderElement);case di:return Jr(l,t.nodeIndex).viewContainer;case pi:if(t.element.template)return Jr(l,t.nodeIndex).template;break;case fi:return Ys(Ai(l,t,n));case gi:case mi:return ni(l,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=Kr(l,e.nodeIndex);return t||(t={instance:Ei(l,e)},l.nodes[e.nodeIndex]=t),t.instance}}n=ys(l),t=gs(l),l=l.parent,4&r.flags&&(l=null)}const a=i.root.injector.get(r.token,Ti);return a!==Ti||s===Ti?a:i.root.ngModule.injector.get(r.token,s)}function Ai(e,t,n){let r;if(n)r=Jr(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!ys(r);)r=r.parent;return r}function Ni(e,t,n,r,s,i){if(32768&n.flags){const t=Jr(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=Zn.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new nr(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function Ii(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&Oi(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=Ri(e,o,t,r)),o=o.parent}}function Ri(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&Oi(e,s,t.flags&n,r++),s+=t.childCount}return r}function Oi(e,t,n,r){const s=Kr(e,t);if(!s)return;const i=s.instance;i&&(es.setCurrentNode(e,t),1048576&n&&Wr(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Wr(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const Di=new xe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ut}),Mi={},Pi=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}(),Vi=void 0;var Ui=["en",[["a","p"],["AM","PM"],Vi],[["AM","PM"],Vi,Vi],[["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"]],Vi,[["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"]],Vi,[["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}",Vi,"{1} 'at' {0}",Vi],[".",",",";","%","+","-","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}];function Fi(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Mi[t];if(n)return n;const r=t.split("-")[0];if(n=Mi[r])return n;if("en"===r)return Ui;throw new Error(`Missing locale data for the locale "${e}".`)}let Li="en-US";class ji 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 $i(){return this._results[Bn()]()}class Hi{constructor(){this.dirty=!0,this._results=[],this.changes=new ji,this.length=0;const e=Bn(),t=Hi.prototype;t[e]||(t[e]=$i)}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<t.length;r++){let s=t[r];Array.isArray(s)?(n===t&&(n=t.slice(0,r)),e(s,n)):n!==t&&n.push(s)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const zi=new xe("Application Initializer");let Bi=(()=>(class{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{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<this.appInits.length;n++){const t=this.appInits[n]();Jn(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))();const Gi=new xe("AppId");function qi(){return`${Zi()}${Zi()}${Zi()}`}function Zi(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Wi=new xe("Platform Initializer"),Qi=new xe("Platform ID"),Ji=new xe("appBootstrapListener");let Ki=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();const Yi=new xe("LocaleId");function Xi(){throw new Error("Runtime compiler is not loaded")}const eo=Xi,to=Xi,no=Xi,ro=Xi;let so,io,oo=(()=>(class{constructor(){this.compileModuleSync=eo,this.compileModuleAsync=to,this.compileModuleAndAllComponentsSync=no,this.compileModuleAndAllComponentsAsync=ro}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class lo{}function ao(){const e=Ee.wtf;return!(!e||!(so=e.trace)||(io=so.events,0))}const uo=ao();function co(e,t){return null}const ho=uo?function(e,t=null){return io.createScope(e,t)}:(e,t)=>co,po=uo?function(e,t){return so.leaveScope(e,t),t}:(e,t)=>t,fo=(()=>Promise.resolve(0))();function go(e){"undefined"==typeof Zone?fo.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ji(!1),this.onMicrotaskEmpty=new ji(!1),this.onStable=new ji(!1),this.onError=new ji(!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 wo(t),e.invokeTask(r,s,i,o)}finally{bo(t)}},onInvoke:(e,n,r,s,i,o,l)=>{try{return wo(t),e.invoke(r,s,i,o,l)}finally{bo(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,_o(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(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.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,vo,yo,yo);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 yo(){}const vo={};function _o(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 wo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bo(e){e._nesting--,_o(e)}class Co{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ji,this.onMicrotaskEmpty=new ji,this.onStable=new ji,this.onError=new ji}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}let So=(()=>(class{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:()=>{mo.assertNotInAngularZone(),go(()=>{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())go(()=>{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[]}}))(),Eo=(()=>{class e{constructor(){this._applications=new Map,ko.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 ko.findTestabilityInTree(this,e,t)}}return e.ctorParameters=()=>[],e})();class xo{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let To,ko=new xo,Ao=function(e){return e instanceof cr};const No=new xe("AllowMultipleToken");class Io{constructor(e,t){this.name=e,this.token=t}}function Ro(e,t,n=[]){const r=`Platform: ${t}`,s=new xe(r);return(t=[])=>{let i=Oo();if(!i||i.injector.get(No,!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(To&&!To.destroyed&&!To.injector.get(No,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");To=e.get(Do);const t=e.get(Wi,null);t&&t.forEach(e=>e())}(Ge.create({providers:e,name:r}))}return function(e){const t=Oo();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 Oo(){return To&&!To.destroyed?To:null}let Do=(()=>(class{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 Co:("zone.js"===s?void 0:s)||new mo({enableLongStackTrace:Lt()}),r=[{provide:mo,useValue:n}];var s;return n.run(()=>{const t=Ge.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Un,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(e){Li=e.toLowerCase().replace(/_/g,"-")}(s.injector.get(Yi,"en-US")),s.onDestroy(()=>Vo(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const r=n();return Jn(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(Bi);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Mo({},t);return function(e,t,n){return e.get(lo).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Po);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 Mo(e,t){return Array.isArray(t)?t.reduce(Mo,e):Object.assign({},e,t)}let Po=(()=>{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=Lt(),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()})}),l=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),go(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{mo.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 N(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]:K(t)(G(e,n))}(o,l.pipe(e=>Y()(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 sr?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Ao(n)?null:this._injector.get(hr),s=n.create(Ge.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(So,null);return i&&s.injector.get(Eo).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Lt()&&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,po(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Vo(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ji,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Vo(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ho("ApplicationRef#tick()"),e})();function Vo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Uo{}class Fo{}const Lo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jo=(()=>(class{constructor(e,t){this._compiler=e,this._config=t||Lo}load(e){return this._compiler instanceof oo?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>$o(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>$o(e,t,r))}}))();function $o(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Ho{constructor(e,t){this.name=e,this.callback=t}}class zo{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Bo&&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 Bo extends zo{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 Bo&&(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 Bo&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Bo&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Bo)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}class Go{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new qo(e):null}get injector(){return function(e){const t=Yn(e);return new Dn(t.lView[pt].data[t.nodeIndex],t.lView)}(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(function(e){const t=Xn(e);return void 0===t.component&&(t.component=function(e,t){const n=t[pt].data[e];return 1&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component}(e)||function(e){let t,n=Yn(e).lView;for(;null===n[dt]&&(t=En(n));)n=t;return 512&n[ft]?null:n[vt]}(e))}get context(){return Xn(this.nativeNode).lView[vt]}get listeners(){return function(e){const t=Xn(e).lView,n=t[yt],r=t[pt].cleanup,s=[];if(r&&n)for(let i=0;i<r.length;){const o=r[i++],l=r[i++];if("string"==typeof o){const a=o,u=Tt(t[l]),c=n[r[i++]],h=r[i++],d="boolean"==typeof h?h:!(h>=0)&&null;e==u&&s.push({element:e,name:a,callback:c,useCapture:d})}}return s.sort(tr),s}(this.nativeNode).filter(er)}get references(){return function(e){const t=Yn(e);return void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[pt].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let s=0;s<n.localNames.length;s+=2)t[n.localNames[s]]=e[r],r++;return t}return null}(t.lView,t.nodeIndex)),t.localRefs||{}}(this.nativeNode)}get providerTokens(){return function(e){const t=Yn(e,!1);if(!t)return[];const n=t.lView[pt],r=n.data[t.nodeIndex],s=[],i=r.directiveEnd;for(let l=65535&r.providerIndexes;l<i;l++){let e=n.data[l];void 0!==(o=e).type&&void 0!==o.template&&void 0!==o.declaredInputs&&(e=e.type),s.push(e)}var o;return s}(this.nativeNode)}}class qo extends Go{constructor(e){super(e)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){return this.nativeElement.nodeName}get properties(){const e=Yn(this.nativeNode),t=e.lView,n=t[pt].data,r=n[e.nodeIndex],s=function(e,t,n){const r={};let s=function(e,t){let n=e-1,r=t[n];for(;"string"==typeof r&&!ht(r);)r=t[--n];return n+1}(e.propertyMetadataStartIndex,n);for(;s<e.propertyMetadataEndIndex;){let e,i=n[s];for(;!ht(i);)e=(e||"")+lt(t[s])+n[s],i=n[++s];e=void 0===e?t[s]:e+=t[s];const o=i.split(ct),l=o[0];l&&(r[l]=o[1]&&o[2]?o[1]+e+o[2]:e),s++}return r}(r,t,n),i=function(e,t,n){const r={};let s=e.directiveEnd,i=n[s];for(;"string"==typeof i;)r[i.split(ct)[0]]=t[s],i=n[++s];return r}(r,t,n),o=function(e){const t=e.classes;let n="";for(const r of Object.keys(t))t[r]&&(n=n?n+` ${r}`:r);return n}(this),l=Object.assign({},s,i);return o&&(l.className=l.className?l.className+` ${o}`:o),l}get attributes(){const e={},t=this.nativeElement;if(!t)return e;const n=Yn(t),r=n.lView[pt].data[n.nodeIndex].attrs,s=[];if(r){let t=0;for(;t<r.length;){const n=r[t];if("string"!=typeof n)break;e[n]=r[t+1],s.push(n.toLowerCase()),t+=2}}const i=t.attributes;for(let o=0;o<i.length;o++){const t=i[o];-1===s.indexOf(t.name)&&(e[t.name]=t.value)}return e}get classes(){const e={},t=this.nativeElement;if(t){const n=Xn(t),r=bn(n.nodeIndex,n.lView);if(r){for(let t=10;t<r.length;t+=4)if(jn(r,t)){const n=Hn(r,t),s=$n(r,t);"boolean"==typeof s&&(e[n]=s)}}else{const n=t.classList;for(let t=0;t<n.length;t++)e[n[t]]=!0}}return e}get styles(){const e={},t=this.nativeElement;if(t){const n=Xn(t),r=bn(n.nodeIndex,n.lView);if(r){for(let t=10;t<r.length;t+=4)if(!jn(r,t)){const n=Hn(r,t),s=$n(r,t);null!==s&&(e[n]=s)}}else{const n=t.style;for(let t=0;t<n.length;t++){const r=n.item(t);e[r]=n.getPropertyValue(r)}}}return e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n<e.length;n++)t.push(Xo(e[n]));return t}get children(){const e=this.nativeElement;if(!e)return[];const t=e.children,n=[];for(let r=0;r<t.length;r++)n.push(Xo(t[r]));return n}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return Zo(this,e,t,!0),t}queryAllNodes(e){const t=[];return Zo(this,e,t,!1),t}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name===e&&n.callback(t)})}}function Zo(e,t,n,r){const s=Yn(e.nativeNode);Wo(s.lView[pt].data[s.nodeIndex],s.lView,t,n,r,e.nativeNode)}function Wo(e,t,n,r,s,i){const o=At(e,t);if(3===e.type||4===e.type){if(Jo(o,n,r,s,i),It(e)){const o=Nt(e.index,t);o&&o[pt].firstChild&&Wo(o[pt].firstChild,o,n,r,s,i)}else e.child&&Wo(e.child,t,n,r,s,i);const l=t[e.index];kt(l)&&Qo(l,n,r,s,i)}else if(0===e.type){const o=t[e.index];Jo(o[St],n,r,s,i),Qo(o,n,r,s,i)}else if(1===e.type){const o=xn(t),l=o[mt].projection[e.projection];if(Array.isArray(l))for(let e of l)Jo(e,n,r,s,i);else if(l){const e=o[gt];Wo(e[pt].data[l.index],e,n,r,s,i)}}else e.child&&Wo(e.child,t,n,r,s,i);if(i!==o){const o=2&e.flags?e.projectionNext:e.next;o&&Wo(o,t,n,r,s,i)}}function Qo(e,t,n,r,s){for(let i=Et;i<e.length;i++){const o=e[i];Wo(o[pt].node,o,t,n,r,s)}}function Jo(e,t,n,r,s){if(s!==e){const s=el(e);s&&(!r||s instanceof qo)&&t(s)&&n.push(s)}}const Ko=new Map,Yo="__ng_debug__";function Xo(e){return e instanceof Node?(e.hasOwnProperty(Yo)||(e[Yo]=e.nodeType==Node.ELEMENT_NODE?new qo(e):new Go(e)),e[Yo]):null}const el=function(e){return Ko.get(e)||null};function tl(e){Ko.set(e.nativeNode,e)}const nl=Ro(null,"core",[{provide:Qi,useValue:"unknown"},{provide:Do,deps:[Ge]},{provide:Eo,deps:[]},{provide:Ki,deps:[]}]);function rl(){return Fr}function sl(){return Lr}function il(e){return e||"en-US"}function ol(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let ll=(()=>(class{constructor(e){}}))();function al(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=_s(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?Ss(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||ts},provider:null,text:null,query:null,ngContent:null}}function ul(e,t,n,r,s,i,o=[],l,a,u,c,h){u||(u=ts);const{matchedQueries:d,references:p,matchedQueryIds:f}=_s(n);let g=null,m=null;i&&([g,m]=Is(i)),l=l||[];const y=new Array(l.length);for(let w=0;w<l.length;w++){const[e,t,n]=l[w],[r,s]=Is(t);let i=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}y[w]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}a=a||[];const v=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t]=a[w];v[w]={type:0,target:e,eventName:t,propName:null}}const _=(o=o||[]).map(([e,t])=>{const[n,r]=Is(e);return[n,r,t]});return h=function(e){if(e&&e.id===ss){const t=null!=e.encapsulation&&e.encapsulation!==st.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${ls++}`:is}return e&&e.id===is&&(e=null),e||null}(h),c&&(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:y,bindingFlags:Rs(y),outputs:v,element:{ns:g,name:m,attrs:_,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||ts},provider:null,text:null,query:null,ngContent:null}}function cl(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=bs(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===st.ShadowDom);if(r.attrs)for(let l=0;l<r.attrs.length;l++){const[e,t,n]=r.attrs[l];i.setAttribute(o,t,n,e)}return o}function hl(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const l=n.outputs[o],a=dl(e,n.nodeIndex,(i=l.eventName,(s=l.target)?`${s}:${i}`:i));let u=l.target,c=e;"component"===l.target&&(u=null,c=t);const h=c.renderer.listen(u||r,l.eventName,a);e.disposables[n.outputIndex+o]=h}var s,i}function dl(e,t,n){return r=>ps(e,t,n,r)}function pl(e,t,n,r){if(!us(e,t,n,r))return!1;const s=t.bindings[n],i=Jr(e,t.nodeIndex),o=i.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let l=o?e.root.sanitizer.sanitize(o,i):i;l=null!=l?l.toString():null;const a=e.renderer;null!=i?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(e,s,o,s.ns,l,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,l,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(an.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,l,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,l,r)}return!0}function fl(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&vs(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&&Xr(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Xr(e,n).setDirty(),n+=t.childCount}}function gl(e,t){const n=Xr(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=ml(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Kr(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=ml(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const i=t.query.bindings;let o=!1;for(let l=0;l<i.length;l++){const e=i[l];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function ml(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(yl(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Jr(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(ml(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=fs(i);o&&o===n&&ml(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];ml(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function yl(e,t,n){if(null!=n)switch(n){case 1:return Jr(e,t.nodeIndex).renderElement;case 0:return new fr(Jr(e,t.nodeIndex).renderElement);case 2:return Jr(e,t.nodeIndex).template;case 3:return Jr(e,t.nodeIndex).viewContainer;case 4:return Kr(e,t.nodeIndex).instance}}function vl(e,t,n){const r=bs(e,t,n);r&&Ts(e,n.ngContent.index,1,r,null,void 0)}function _l(e,t){const n=Object.keys(t),r=n.length,s=new Array(r);for(let i=0;i<r;i++){const e=n[i];s[t[e]]=e}return wl(64,e,s)}function wl(e,t,n){const r=new Array(n.length);for(let s=0;s<n.length;s++){const e=n[s];r[s]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Rs(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function bl(e,t,n){const r=new Array(n.length-1);for(let s=1;s<n.length;s++)r[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Cl(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=bs(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function Sl(e,t){return(null!=e?e.toString():"")+t.suffix}function El(e,t,n,r){let s=0,i=0,o=0,l=0,a=0,u=null,c=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=u,e.bindingIndex=s,e.outputIndex=i,e.renderParent=c,o|=e.flags,a|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(a|=e.element.template.nodeMatchedQueries)}if(Tl(u,e,t.length),s+=e.bindings.length,i+=e.outputs.length,!c&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[rs(e.provider.token)]=e:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[rs(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):l|=e.flags,e.childCount>0)u=e,xl(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&xl(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||ts,updateRenderer:r||ts,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function xl(e){return 0!=(1&e.flags)&&null===e.element.name}function Tl(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 kl(e,t,n,r){const s=Il(e.root,e.renderer,e,t,n);return Rl(s,e.component,r),Ol(s),s}function Al(e,t,n){const r=Il(e,e.renderer,null,null,t);return Rl(r,n,n),Ol(r),r}function Nl(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,Il(e.root,i,e,t.element.componentProvider,n)}function Il(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 Rl(e,t,n){e.component=t,e.context=n}function Ol(e){let t;ys(e)&&(t=Jr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch(es.setCurrentNode(e,s),201347067&i.flags){case 1:const n=cl(e,t,i);let l=void 0;if(33554432&i.flags){const t=Ss(i.element.componentView);l=es.createComponentView(e,i,t,n)}hl(e,l,i,n),o={renderElement:n,componentView:l,viewContainer:null,template:i.element.template?ei(e,i):void 0},16777216&i.flags&&(o.viewContainer=Js(e,i,o));break;case 2:o=Cl(e,t,i);break;case 512:case 1024:case 2048:case 256:(o=r[s])||4096&i.flags||(o={instance:wi(e,i)});break;case 16:o={instance:bi(e,i)};break;case 16384:(o=r[s])||(o={instance:Ci(e,i)}),32768&i.flags&&Rl(Jr(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Hi;break;case 8:vl(e,t,i),o=void 0}r[s]=o}$l(e,jl.CreateViewNodes),Gl(e,201326592,268435456,0)}function Dl(e){Vl(e),es.updateDirectives(e,1),Hl(e,jl.CheckNoChanges),es.updateRenderer(e,1),$l(e,jl.CheckNoChanges),e.state&=-97}function Ml(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Zr(e,0,256),Vl(e),es.updateDirectives(e,0),Hl(e,jl.CheckAndUpdate),Gl(e,67108864,536870912,0);let t=Zr(e,256,512);Ii(e,2097152|(t?1048576:0)),es.updateRenderer(e,0),$l(e,jl.CheckAndUpdate),Gl(e,134217728,536870912,0),Ii(e,8388608|((t=Zr(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Zr(e,768,1024)}function Pl(e,t,n,r,s,i,o,l,a,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,l,a,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&pl(e,t,0,n)&&(p=!0),d>1&&pl(e,t,1,r)&&(p=!0),d>2&&pl(e,t,2,s)&&(p=!0),d>3&&pl(e,t,3,i)&&(p=!0),d>4&&pl(e,t,4,o)&&(p=!0),d>5&&pl(e,t,5,l)&&(p=!0),d>6&&pl(e,t,6,a)&&(p=!0),d>7&&pl(e,t,7,u)&&(p=!0),d>8&&pl(e,t,8,c)&&(p=!0),d>9&&pl(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,l,a,u,c,h);case 2:return function(e,t,n,r,s,i,o,l,a,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&us(e,t,0,n)&&(d=!0),f>1&&us(e,t,1,r)&&(d=!0),f>2&&us(e,t,2,s)&&(d=!0),f>3&&us(e,t,3,i)&&(d=!0),f>4&&us(e,t,4,o)&&(d=!0),f>5&&us(e,t,5,l)&&(d=!0),f>6&&us(e,t,6,a)&&(d=!0),f>7&&us(e,t,7,u)&&(d=!0),f>8&&us(e,t,8,c)&&(d=!0),f>9&&us(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=Sl(n,p[0])),f>1&&(d+=Sl(r,p[1])),f>2&&(d+=Sl(s,p[2])),f>3&&(d+=Sl(i,p[3])),f>4&&(d+=Sl(o,p[4])),f>5&&(d+=Sl(l,p[5])),f>6&&(d+=Sl(a,p[6])),f>7&&(d+=Sl(u,p[7])),f>8&&(d+=Sl(c,p[8])),f>9&&(d+=Sl(h,p[9]));const g=Qr(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,i,o,l,a,u,c,h);case 16384:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=Kr(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&as(e,t,0,n)&&(f=!0,g=Ni(e,d,t,0,n,g)),m>1&&as(e,t,1,r)&&(f=!0,g=Ni(e,d,t,1,r,g)),m>2&&as(e,t,2,s)&&(f=!0,g=Ni(e,d,t,2,s,g)),m>3&&as(e,t,3,i)&&(f=!0,g=Ni(e,d,t,3,i,g)),m>4&&as(e,t,4,o)&&(f=!0,g=Ni(e,d,t,4,o,g)),m>5&&as(e,t,5,l)&&(f=!0,g=Ni(e,d,t,5,l,g)),m>6&&as(e,t,6,a)&&(f=!0,g=Ni(e,d,t,6,a,g)),m>7&&as(e,t,7,u)&&(f=!0,g=Ni(e,d,t,7,u,g)),m>8&&as(e,t,8,c)&&(f=!0,g=Ni(e,d,t,8,c,g)),m>9&&as(e,t,9,h)&&(f=!0,g=Ni(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Wr(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,l,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&us(e,t,0,n)&&(p=!0),f>1&&us(e,t,1,r)&&(p=!0),f>2&&us(e,t,2,s)&&(p=!0),f>3&&us(e,t,3,i)&&(p=!0),f>4&&us(e,t,4,o)&&(p=!0),f>5&&us(e,t,5,l)&&(p=!0),f>6&&us(e,t,6,a)&&(p=!0),f>7&&us(e,t,7,u)&&(p=!0),f>8&&us(e,t,8,c)&&(p=!0),f>9&&us(e,t,9,h)&&(p=!0),p){const p=Yr(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]=l),f>6&&(g[6]=a),f>7&&(g[7]=u),f>8&&(g[8]=c),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]=l),f>6&&(g[d[6].name]=a),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),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,l);break;case 7:g=e.transform(r,s,i,o,l,a);break;case 8:g=e.transform(r,s,i,o,l,a,u);break;case 9:g=e.transform(r,s,i,o,l,a,u,c);break;case 10:g=e.transform(r,s,i,o,l,a,u,c,h)}}p.value=g}return p}(e,t,n,r,s,i,o,l,a,u,c,h);default:throw"unreachable"}}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)pl(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)us(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=Sl(n[e],r[e]);s=t.text.prefix+s;const i=Qr(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=Kr(e,t.nodeIndex),s=r.instance;let i=!1,o=void 0;for(let l=0;l<n.length;l++)as(e,t,l,n[l])&&(i=!0,o=Ni(e,r,t,l,n[l],o));return o&&s.ngOnChanges(o),65536&t.flags&&Wr(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)us(e,t,i,n[i])&&(s=!0);if(s){const s=Yr(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let s=0;s<n.length;s++)i[r[s].name]=n[s];break;case 128:const e=n[0],t=n.slice(1);i=e.transform(...t)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Vl(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=Jr(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,ds(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Ul(e,t,n,r,s,i,o,l,a,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,l,a,u,c,h){const d=t.bindings.length;d>0&&cs(e,t,0,n),d>1&&cs(e,t,1,r),d>2&&cs(e,t,2,s),d>3&&cs(e,t,3,i),d>4&&cs(e,t,4,o),d>5&&cs(e,t,5,l),d>6&&cs(e,t,6,a),d>7&&cs(e,t,7,u),d>8&&cs(e,t,8,c),d>9&&cs(e,t,9,h)}(e,t,r,s,i,o,l,a,u,c,h,d):function(e,t,n){for(let r=0;r<n.length;r++)cs(e,t,r,n[r])}(e,t,r),!1}function Fl(e,t){if(Xr(e,t.nodeIndex).dirty)throw Br(es.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Ll(e){if(!(128&e.state)){if(Hl(e,jl.Destroy),$l(e,jl.Destroy),Ii(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=fs(e);if(t){const n=t.template._projectedViews;n&&(Gs(n,n.indexOf(e)),es.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Jr(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Qr(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Xr(e,n).destroy()}}(e),ys(e)&&e.renderer.destroy(),e.state|=128}}const jl=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function $l(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?zl(Jr(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function Hl(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=Jr(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)zl(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function zl(e,t){const n=e.state;switch(t){case jl.CheckNoChanges:0==(128&n)&&(12==(12&n)?Dl(e):64&n&&Bl(e,jl.CheckNoChangesProjectedViews));break;case jl.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Dl(e):64&n&&Bl(e,t));break;case jl.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Ml(e):64&n&&Bl(e,jl.CheckAndUpdateProjectedViews));break;case jl.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Ml(e):64&n&&Bl(e,t));break;case jl.Destroy:Ll(e);break;case jl.CreateViewNodes:Ol(e)}}function Bl(e,t){Hl(e,t),$l(e,t)}function Gl(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(es.setCurrentNode(e,s.nodeIndex),r){case 0:gl(e,s);break;case 1:Fl(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let ql=!1;function Zl(e,t,n,r,s,i){const o=s.injector.get(yr);return Al(Ql(e,s,o,t,n),r,i)}function Wl(e,t,n,r,s,i){const o=s.injector.get(yr),l=Ql(e,s,new ka(o),t,n),a=ia(r);return xa(ha.create,Al,null,[l,a,i])}function Ql(e,t,n,r,s){const i=t.injector.get(un),o=t.injector.get(Un),l=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:l,errorHandler:o}}function Jl(e,t,n,r){const s=ia(n);return xa(ha.create,kl,null,[e,t,s,r])}function Kl(e,t,n,r){return n=ta.get(t.element.componentProvider.provider.token)||ia(n),xa(ha.create,Nl,null,[e,t,n,r])}function Yl(e,t,n,r){return li(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Xl.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=Xl.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{ea.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;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=Xl.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=ws(s.deps),r.value=s.value)}if(ea.size>0){let t=new Set(e.modules);ea.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:ws(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[rs(s)]=t}})}}(e=e.factory(()=>ts)),e):e}(r))}const Xl=new Map,ea=new Map,ta=new Map;function na(e){let t;Xl.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&ea.set(e.token,e)}function ra(e,t){const n=Ss(t.viewDefFactory),r=Ss(n.nodes[0].element.componentView);ta.set(e,r)}function sa(){Xl.clear(),ea.clear(),ta.clear()}function ia(e){if(0===Xl.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&Xl.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>ts);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Xl.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=ws(n.deps),e.value=n.value)}}}}function oa(e,t,n,r,s,i,o,l,a,u,c,h,d){const p=e.def.nodes[t];return Pl(e,p,n,r,s,i,o,l,a,u,c,h,d),224&p.flags?Yr(e,t).value:void 0}function la(e,t,n,r,s,i,o,l,a,u,c,h,d){const p=e.def.nodes[t];return Ul(e,p,n,r,s,i,o,l,a,u,c,h,d),224&p.flags?Yr(e,t).value:void 0}function aa(e){return xa(ha.detectChanges,Ml,null,[e])}function ua(e){return xa(ha.checkNoChanges,Dl,null,[e])}function ca(e){return xa(ha.destroy,Ll,null,[e])}const ha=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let da,pa,fa;function ga(e,t){pa=e,fa=t}function ma(e,t,n,r){return ga(e,t),xa(ha.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ya(e,t){if(128&e.state)throw qr(ha[da]);return ga(e,ba(e,0)),e.def.updateDirectives((function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?_a(e,i,r,s):wa(e,i,r,s),16384&i.flags&&ga(e,ba(e,n)),224&i.flags?Yr(e,i.nodeIndex).value:void 0}),e)}function va(e,t){if(128&e.state)throw qr(ha[da]);return ga(e,Ca(e,0)),e.def.updateRenderer((function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?_a(e,i,r,s):wa(e,i,r,s),3&i.flags&&ga(e,Ca(e,n)),224&i.flags?Yr(e,i.nodeIndex).value:void 0}),e)}function _a(e,t,n,r){if(Pl(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],l=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(Fn,(...e)=>"-"+e[1].toLowerCase())}`)]=Ln(l))}const r=t.parent,l=Jr(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(l,t,r):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function wa(e,t,n,r){Ul(e,t,n,...r)}function ba(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Ca(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class Sa{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=gs(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Jr(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return ni(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){Ea(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&Ea(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!ys(e);)e=e.parent;return e.parent?Jr(e.parent,gs(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?ms(this.view,this.nodeDef):ms(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>++i===s?e.error.bind(e,...t):ts),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Ea(e,t,n){for(let r in t.references)n[r]=yl(e,t,t.references[r])}function xa(e,t,n,r){const s=da,i=pa,o=fa;try{da=e;const l=t.apply(n,r);return pa=i,fa=o,da=s,l}catch(l){if(Mn(l)||!pa)throw l;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Gr(e,t),e}(l,Ta())}}function Ta(){return pa?new Sa(pa,fa):null}class ka{constructor(e){this.delegate=e}createRenderer(e,t){return new Aa(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Aa{constructor(e){this.delegate=e,this.debugContextFactory=Ta,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){Ko.delete(e.nativeNode)}(el(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new Bo(n,null,r);t.name=e,tl(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&tl(new zo(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&tl(new zo(t,null,n)),t}appendChild(e,t){const n=el(e),r=el(t);n&&r&&n instanceof Bo&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=el(e),s=el(t),i=el(n);r&&s&&r instanceof Bo&&r.insertBefore(i,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=el(e),r=el(t);n&&r&&n instanceof Bo&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Ta();return r&&tl(new Bo(n,null,r)),n}setAttribute(e,t,n,r){const s=el(e);s&&s instanceof Bo&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=el(e);r&&r instanceof Bo&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=el(e);n&&n instanceof Bo&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=el(e);n&&n instanceof Bo&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=el(e);s&&s instanceof Bo&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=el(e);r&&r instanceof Bo&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=el(e);r&&r instanceof Bo&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=el(e);r&&r.listeners.push(new Ho(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Na(e,t,n){return new Ia(e,t,n)}class Ia extends dr{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(ql)return;ql=!0;const e=Lt()?{setCurrentNode:ga,createRootView:Wl,createEmbeddedView:Jl,createComponentView:Kl,createNgModuleRef:Yl,overrideProvider:na,overrideComponentView:ra,clearOverrides:sa,checkAndUpdateView:aa,checkNoChangesView:ua,destroyView:ca,createDebugContext:(e,t)=>new Sa(e,t),handleEvent:ma,updateDirectives:ya,updateRenderer:va}:{setCurrentNode:()=>{},createRootView:Zl,createEmbeddedView:kl,createComponentView:Nl,createNgModuleRef:li,overrideProvider:ts,overrideComponentView:ts,clearOverrides:ts,checkAndUpdateView:Ml,checkNoChangesView:Dl,destroyView:Ll,createDebugContext:(e,t)=>new Sa(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?oa:la,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?oa:la,e)};es.setCurrentNode=e.setCurrentNode,es.createRootView=e.createRootView,es.createEmbeddedView=e.createEmbeddedView,es.createComponentView=e.createComponentView,es.createNgModuleRef=e.createNgModuleRef,es.overrideProvider=e.overrideProvider,es.overrideComponentView=e.overrideComponentView,es.clearOverrides=e.clearOverrides,es.checkAndUpdateView=e.checkAndUpdateView,es.checkNoChangesView=e.checkNoChangesView,es.destroyView=e.destroyView,es.resolveDep=ki,es.createDebugContext=e.createDebugContext,es.handleEvent=e.handleEvent,es.updateDirectives=e.updateDirectives,es.updateRenderer=e.updateRenderer,es.dirtyParentQueries=fl}();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}}(Ss(this._ngModuleDefFactory));return es.createNgModuleRef(this.moduleType,e||Ge.NULL,this._bootstrapComponents,t)}}const Ra={production:!0,apiEndpoint:"",themeData:"/themes/_active/assets/data.json"};class Oa{}class Da{constructor(e){this.blogService=e,this.title="standard"}ngOnInit(){this.root=Ra.apiEndpoint,this.blogService.getThemeData().subscribe(e=>{this.social=e.socialButtons}),this.blogService.getSettings().subscribe(e=>{this.settings=e})}onSubmit(e){e.value&&e.value.term&&(window.location.href="?term="+e.value.term)}}class Ma{}const Pa=new xe("Location Initialized");class Va{}const Ua=new xe("appBaseHref");let Fa=(()=>{class e{constructor(t,n){this._subject=new ji,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=e.stripTrailingSlash(La(r)),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(t,n=""){return this.path()==this.normalize(t+e.normalizeQueryParams(n))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,La(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(t,n="",r=null){this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}replaceState(t,n="",r=null){this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}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)}}return e})();function La(e){return e.replace(/\/index.html$/,"")}let ja=(()=>(class extends Va{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=Fa.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+Fa.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+Fa.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),$a=(()=>(class extends Va{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 Fa.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Fa.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+Fa.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+Fa.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))();const Ha=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}(),za=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Ba=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),Ga=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),qa=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Za(e,t){return Ya(Fi(e)[Pi.DateFormat],t)}function Wa(e,t){return Ya(Fi(e)[Pi.TimeFormat],t)}function Qa(e,t){return Ya(Fi(e)[Pi.DateTimeFormat],t)}function Ja(e,t){const n=Fi(e),r=n[Pi.NumberSymbols][t];if(void 0===r){if(t===qa.CurrencyDecimal)return n[Pi.NumberSymbols][qa.Decimal];if(t===qa.CurrencyGroup)return n[Pi.NumberSymbols][qa.Group]}return r}function Ka(e){if(!e[Pi.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Pi.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ya(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Xa(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const eu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,tu={},nu=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,ru=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),su=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),iu=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function ou(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function lu(e,t,n="-",r,s){let i="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,i=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.substr(o.length-t)),i+o}function au(e,t,n=0,r=!1,s=!1){return function(i,o){let l=function(e,t){switch(e){case su.FullYear:return t.getFullYear();case su.Month:return t.getMonth();case su.Date:return t.getDate();case su.Hours:return t.getHours();case su.Minutes:return t.getMinutes();case su.Seconds:return t.getSeconds();case su.FractionalSeconds:return t.getMilliseconds();case su.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||l>-n)&&(l+=n),e===su.Hours)0===l&&-12===n&&(l=12);else if(e===su.FractionalSeconds)return a=t,lu(l,3).substr(0,a);var a;const u=Ja(o,qa.MinusSign);return lu(l,t,u,r,s)}}function uu(e,t,n=za.Format,r=!1){return function(s,i){return function(e,t,n,r,s,i){switch(n){case iu.Months:return function(e,t,n){const r=Fi(e),s=Ya([r[Pi.MonthsFormat],r[Pi.MonthsStandalone]],t);return Ya(s,n)}(t,s,r)[e.getMonth()];case iu.Days:return function(e,t,n){const r=Fi(e),s=Ya([r[Pi.DaysFormat],r[Pi.DaysStandalone]],t);return Ya(s,n)}(t,s,r)[e.getDay()];case iu.DayPeriods:const o=e.getHours(),l=e.getMinutes();if(i){const e=function(e){const t=Fi(e);return Ka(t),(t[Pi.ExtraData][2]||[]).map(e=>"string"==typeof e?Xa(e):[Xa(e[0]),Xa(e[1])])}(t),n=function(e,t,n){const r=Fi(e);Ka(r);const s=Ya([r[Pi.ExtraData][0],r[Pi.ExtraData][1]],t)||[];return Ya(s,n)||[]}(t,s,r);let i;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:s}=e[0],{hours:a,minutes:u}=e[1];o>=r&&l>=s&&(o<a||o===a&&l<u)&&(i=n[t])}else{const{hours:r,minutes:s}=e;r===o&&s===l&&(i=n[t])}}),i)return i}return function(e,t,n){const r=Fi(e),s=Ya([r[Pi.DayPeriodsFormat],r[Pi.DayPeriodsStandalone]],t);return Ya(s,n)}(t,s,r)[o<12?0:1];case iu.Eras:return function(e,t){return Ya(Fi(e)[Pi.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,i,e,t,n,r)}}function cu(e){return function(t,n,r){const s=-1*r,i=Ja(n,qa.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case ru.Short:return(s>=0?"+":"")+lu(o,2,i)+lu(Math.abs(s%60),2,i);case ru.ShortGMT:return"GMT"+(s>=0?"+":"")+lu(o,1,i);case ru.Long:return"GMT"+(s>=0?"+":"")+lu(o,2,i)+":"+lu(Math.abs(s%60),2,i);case ru.Extended:return 0===r?"Z":(s>=0?"+":"")+lu(o,2,i)+":"+lu(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const hu=0,du=4;function pu(e,t=!1){return function(n,r){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,hu,1).getDay();return new Date(e,0,1+(t<=du?du:du+7)-t)}(n.getFullYear()),t=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(du-i.getDay()))).getTime()-e.getTime();s=1+Math.round(t/6048e5)}var i;return lu(s,e,Ja(r,qa.MinusSign))}}const fu={};function gu(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function mu(e){return e instanceof Date&&!isNaN(e.valueOf())}const yu=new xe("UseV4Plurals");class vu{}let _u=(()=>(class extends vu{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return Fi(e)[Pi.PluralCase]}(t||this.locale)(e)){case Ha.Zero:return"zero";case Ha.One:return"one";case Ha.Two:return"two";case Ha.Few:return"few";case Ha.Many:return"many";default:return"other"}}}))();function wu(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}class bu{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Cu=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Lt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new bu(null,this._ngForOf,-1,-1),r),s=new Su(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new Su(e,s);t.push(i)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}))();class Su{constructor(e,t){this.record=e,this.view=t}}let Eu=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new xu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Tu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Tu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}))();class xu{constructor(){this.$implicit=null,this.ngIf=null}}function Tu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${me(t)}'.`)}class ku{}let Au=(()=>(class{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}getValue(){return null}setNgStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}applyChanges(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}}))(),Nu=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})(),Iu=(()=>(class extends Nu{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}))(),Ru=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",r,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,r){let s=function(e){if(mu(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match(eu))return function(e){const t=new Date(0);let n=0,r=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,l=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,o,l,a,u),t}(n)}const t=new Date(e);if(!mu(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return Fi(e)[Pi.LocaleId]}(t);if(tu[r]=tu[r]||{},tu[r][n])return tu[r][n];let s="";switch(n){case"shortDate":s=Za(t,Ga.Short);break;case"mediumDate":s=Za(t,Ga.Medium);break;case"longDate":s=Za(t,Ga.Long);break;case"fullDate":s=Za(t,Ga.Full);break;case"shortTime":s=Wa(t,Ga.Short);break;case"mediumTime":s=Wa(t,Ga.Medium);break;case"longTime":s=Wa(t,Ga.Long);break;case"fullTime":s=Wa(t,Ga.Full);break;case"short":const n=e(t,"shortTime"),r=e(t,"shortDate");s=ou(Qa(t,Ga.Short),[n,r]);break;case"medium":const i=e(t,"mediumTime"),o=e(t,"mediumDate");s=ou(Qa(t,Ga.Medium),[i,o]);break;case"long":const l=e(t,"longTime"),a=e(t,"longDate");s=ou(Qa(t,Ga.Long),[l,a]);break;case"full":const u=e(t,"fullTime"),c=e(t,"fullDate");s=ou(Qa(t,Ga.Full),[u,c])}return s&&(tu[r][n]=s),s}(n,t)||t;let i,o=[];for(;t;){if(!(i=nu.exec(t))){o.push(t);break}{const e=(o=o.concat(i.slice(1))).pop();if(!e)break;t=e}}let l=s.getTimezoneOffset();r&&(l=gu(r,l),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(gu(t,r)-r))}(s,r));let a="";return o.forEach(e=>{const t=function(e){if(fu[e])return fu[e];let t;switch(e){case"G":case"GG":case"GGG":t=uu(iu.Eras,Ba.Abbreviated);break;case"GGGG":t=uu(iu.Eras,Ba.Wide);break;case"GGGGG":t=uu(iu.Eras,Ba.Narrow);break;case"y":t=au(su.FullYear,1,0,!1,!0);break;case"yy":t=au(su.FullYear,2,0,!0,!0);break;case"yyy":t=au(su.FullYear,3,0,!1,!0);break;case"yyyy":t=au(su.FullYear,4,0,!1,!0);break;case"M":case"L":t=au(su.Month,1,1);break;case"MM":case"LL":t=au(su.Month,2,1);break;case"MMM":t=uu(iu.Months,Ba.Abbreviated);break;case"MMMM":t=uu(iu.Months,Ba.Wide);break;case"MMMMM":t=uu(iu.Months,Ba.Narrow);break;case"LLL":t=uu(iu.Months,Ba.Abbreviated,za.Standalone);break;case"LLLL":t=uu(iu.Months,Ba.Wide,za.Standalone);break;case"LLLLL":t=uu(iu.Months,Ba.Narrow,za.Standalone);break;case"w":t=pu(1);break;case"ww":t=pu(2);break;case"W":t=pu(1,!0);break;case"d":t=au(su.Date,1);break;case"dd":t=au(su.Date,2);break;case"E":case"EE":case"EEE":t=uu(iu.Days,Ba.Abbreviated);break;case"EEEE":t=uu(iu.Days,Ba.Wide);break;case"EEEEE":t=uu(iu.Days,Ba.Narrow);break;case"EEEEEE":t=uu(iu.Days,Ba.Short);break;case"a":case"aa":case"aaa":t=uu(iu.DayPeriods,Ba.Abbreviated);break;case"aaaa":t=uu(iu.DayPeriods,Ba.Wide);break;case"aaaaa":t=uu(iu.DayPeriods,Ba.Narrow);break;case"b":case"bb":case"bbb":t=uu(iu.DayPeriods,Ba.Abbreviated,za.Standalone,!0);break;case"bbbb":t=uu(iu.DayPeriods,Ba.Wide,za.Standalone,!0);break;case"bbbbb":t=uu(iu.DayPeriods,Ba.Narrow,za.Standalone,!0);break;case"B":case"BB":case"BBB":t=uu(iu.DayPeriods,Ba.Abbreviated,za.Format,!0);break;case"BBBB":t=uu(iu.DayPeriods,Ba.Wide,za.Format,!0);break;case"BBBBB":t=uu(iu.DayPeriods,Ba.Narrow,za.Format,!0);break;case"h":t=au(su.Hours,1,-12);break;case"hh":t=au(su.Hours,2,-12);break;case"H":t=au(su.Hours,1);break;case"HH":t=au(su.Hours,2);break;case"m":t=au(su.Minutes,1);break;case"mm":t=au(su.Minutes,2);break;case"s":t=au(su.Seconds,1);break;case"ss":t=au(su.Seconds,2);break;case"S":t=au(su.FractionalSeconds,1);break;case"SS":t=au(su.FractionalSeconds,2);break;case"SSS":t=au(su.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=cu(ru.Short);break;case"ZZZZZ":t=cu(ru.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=cu(ru.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=cu(ru.Long);break;default:return null}return fu[e]=t,t}(e);a+=t?t(s,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(t,n,s||this.locale,r)}catch(i){throw function(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${me(e)}'`)}(e,i.message)}}}return e})(),Ou=(()=>(class{}))();const Du=new xe("DocumentToken");let Mu=(()=>{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new Pu(Le(Du),window,Le(Un))}),e})();class Pu{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 Vu=new b(e=>e.complete());function Uu(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):Vu}function Fu(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Lu(...e){let t=e[e.length-1];switch(N(t)?e.pop():t=void 0,e.length){case 0:return Uu(t);case 1:return t?G(e,t):Fu(e[0]);default:return G(e,t)}}class ju 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 E;return this._value}next(e){super.next(this._value=e)}}function $u(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}$u.prototype=Object.create(Error.prototype);const Hu=$u,zu={};class Bu{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Gu(e,this.resultSelector))}}class Gu extends ${constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(zu),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<t;n++){const t=e[n];this.add(j(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,s){const i=this.values,o=this.toRespond?i[n]===zu?--this.toRespond:this.toRespond:0;i[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function qu(e){return new b(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?q(n):Uu()).subscribe(t)})}function Zu(){return K(1)}function Wu(e,t){return function(n){return n.lift(new Qu(e,t))}}class Qu{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ju(e,this.predicate,this.thisArg))}}class Ju 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 Ku(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Ku.prototype=Object.create(Error.prototype);const Yu=Ku;function Xu(e){return function(t){return 0===e?Uu():t.lift(new ec(e))}}class ec{constructor(e){if(this.total=e,this.total<0)throw new Yu}call(e,t){return t.subscribe(new tc(e,this.total))}}class tc 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.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function nc(e,t,n){return function(r){return r.lift(new rc(e,t,n))}}class rc{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new sc(e,this.nextOrObserver,this.error,this.complete))}}class sc extends g{constructor(e,t,n,s){super(e),this._tapNext=v,this._tapError=v,this._tapComplete=v,this._tapError=n||v,this._tapComplete=s||v,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||v,this._tapError=t.error||v,this._tapComplete=t.complete||v)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const ic=(e=oc)=>nc({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function oc(){return new Hu}function lc(e=null){return t=>t.lift(new ac(e))}class ac{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new uc(e,this.defaultValue))}}class uc 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 cc(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Wu((t,n)=>e(t,n,r)):J,Xu(1),n?lc(t):ic(()=>new Hu))}function hc(e){return function(t){const n=new dc(e),r=t.lift(n);return n.caught=r}}class dc{constructor(e){this.selector=e}call(e,t){return t.subscribe(new pc(e,this.selector,this.caught))}}class pc extends ${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 I(this,void 0,void 0);this.add(r),j(this,n,void 0,void 0,r)}}}function fc(e){return t=>0===e?Uu():t.lift(new gc(e))}class gc{constructor(e){if(this.total=e,this.total<0)throw new Yu}call(e,t){return t.subscribe(new mc(e,this.total))}}class mc 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 yc(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Wu((t,n)=>e(t,n,r)):J,fc(1),n?lc(t):ic(()=>new Hu))}class vc{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new _c(e,this.predicate,this.thisArg,this.source))}}class _c 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 wc(e,t){return"function"==typeof t?n=>n.pipe(wc((n,r)=>q(e(n,r)).pipe(H((e,s)=>t(n,e,r,s))))):t=>t.lift(new bc(e))}class bc{constructor(e){this.project=e}call(e,t){return t.subscribe(new Cc(e,this.project))}}class Cc extends ${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 I(this,void 0,void 0);this.destination.add(s),this.innerSubscription=j(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 Sc(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ec(e,t,n))}}class Ec{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new xc(e,this.accumulator,this.seed,this.hasSeed))}}class xc 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 Tc(e,t){return Z(e,t,1)}class kc{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Ac(e,this.callback))}}class Ac extends g{constructor(e,t){super(e),this.add(new d(t))}}let Nc=null;function Ic(){return Nc}class Rc{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Oc extends Rc{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<t.length;n++)if(null!=this.getStyle(e,t[n]+"AnimationName")){this._animationPrefix="-"+t[n].toLowerCase()+"-";break}}const t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(t).forEach(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 Dc={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Mc=3,Pc={"\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"},Vc={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"},Uc=(()=>{if(Ee.Node)return Ee.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Fc extends Oc{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Fc,Nc||(Nc=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 Dc}contains(e,t){return Uc.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;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.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.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===Mc&&Vc.hasOwnProperty(t)&&(t=Vc[t]))}return Pc[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=jc||(jc=document.querySelector("base"))?jc.getAttribute("href"):null;return null==t?null:(n=t,Lc||(Lc=document.createElement("a")),Lc.setAttribute("href",n),"/"===Lc.pathname.charAt(0)?Lc.pathname:"/"+Lc.pathname);var n}resetBaseElement(){jc=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return wu(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Lc,jc=null;function $c(){return!!window.history.pushState}let Hc=(()=>{class e extends Ma{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Ic().getLocation(),this._history=Ic().getHistory()}getBaseHrefFromDOM(){return Ic().getBaseHref(this._doc)}onPopState(e){Ic().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Ic().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){$c()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){$c()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=()=>[{type:void 0,decorators:[{type:le,args:[Du]}]}],e})();const zc=new xe("TRANSITION_ID"),Bc=[{provide:zi,useFactory:function(e,t,n){return()=>{n.get(Bi).donePromise.then(()=>{const n=Ic();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[zc,Du,Ge],multi:!0}];class Gc{static init(){var e;e=new Gc,ko=e}addToWindow(e){Ee.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ee.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ee.getAllAngularRootElements=()=>e.getAllRootElements(),Ee.frameworkStabilizers||(Ee.frameworkStabilizers=[]),Ee.frameworkStabilizers.push(e=>{const t=Ee.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?Ic().isShadowRoot(t)?this.findTestabilityInTree(e,Ic().getHost(t),!0):this.findTestabilityInTree(e,Ic().parentElement(t),!0):null}}function qc(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Ee.ng=Ee.ng||{})[e]=t)}const Zc=(()=>({ApplicationRef:Po,NgZone:mo}))();function Wc(e){return el(e)}const Qc=new xe("EventManagerPlugins");let Jc=(()=>(class{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<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class Kc{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Ic().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let Yc=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}))(),Xc=(()=>(class extends Yc{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=>Ic().remove(e))}}))();const eh={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/"},th=/%COMP%/g,nh="_nghost-%COMP%",rh="_ngcontent-%COMP%";function sh(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?sh(e,s,n):(s=s.replace(th,e),n.push(s))}return n}function ih(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let oh=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new lh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case st.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ch(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case st.Native:case st.ShadowDom:return new hh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=sh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class lh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(eh[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=eh[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=eh[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&vr.DashCase?e.style.setProperty(t,n,r&vr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&vr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){uh(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return uh(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,ih(n)):this.eventManager.addEventListener(e,t,ih(n))}}const ah=(()=>"@".charCodeAt(0))();function uh(e,t){if(e.charCodeAt(0)===ah)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class ch extends lh{constructor(e,t,n,r){super(e),this.component=n;const s=sh(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=rh.replace(th,r+"-"+n.id),this.hostAttr=function(e){return nh.replace(th,e)}(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 hh extends lh{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===st.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=sh(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const dh=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),ph=dh("addEventListener"),fh=dh("removeEventListener"),gh={},mh="__zone_symbol__propagationStopped",yh=(()=>{const e="undefined"!=typeof Zone&&Zone[dh("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),vh=function(e){return!!yh&&yh.hasOwnProperty(e)},_h=function(e){const t=gh[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;n<t.length&&!0!==e[mh];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};let wh=(()=>(class extends Kc{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[mh]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[ph]||mo.isInAngularZone()&&!vh(t))e.addEventListener(t,r,!1);else{let n=gh[t];n||(n=gh[t]=dh("ANGULAR"+t+"FALSE"));let s=e[n];const i=s&&s.length>0;s||(s=e[n]=[]);const o=vh(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:o,handler:r})}i||e[ph](t,_h,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[fh];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=gh[t],i=s&&e[s];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let l=0;l<i.length;l++)if(i[l].handler===n){o=!0,i.splice(l,1);break}o?0===i.length&&r.apply(e,[t,_h,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))();const bh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ch=new xe("HammerGestureConfig"),Sh=new xe("HammerLoader");let Eh=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}))(),xh=(()=>(class extends Kc{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!bh.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{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 Th=["alt","control","meta","shift"],kh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Ah=(()=>{class e extends Kc{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ic().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let i="";if(Th.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=Ic().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Th.forEach(r=>{r!=n&&(0,kh[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class Nh{}let Ih=(()=>(class extends Nh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case an.NONE:return t;case an.HTML:return t instanceof Oh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{on=on||new jt(e);let r=t?String(t):"";n=on.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=on.getInertBodyElement(r)}while(r!==i);const o=new tn,l=o.sanitizeChildren(ln(n)||n);return Lt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}finally{if(n){const e=ln(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case an.STYLE:return t instanceof Dh?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(hn);return t&&zt(t[1])===t[1]||e.match(cn)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const s=e.charAt(r);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(Lt()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case an.SCRIPT:if(t instanceof Mh)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case an.URL:return t instanceof Vh||t instanceof Ph?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),zt(String(t)));case an.RESOURCE_URL:if(t instanceof Vh)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof Rh)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new Oh(e)}bypassSecurityTrustStyle(e){return new Dh(e)}bypassSecurityTrustScript(e){return new Mh(e)}bypassSecurityTrustUrl(e){return new Ph(e)}bypassSecurityTrustResourceUrl(e){return new Vh(e)}}))();class Rh{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Oh extends Rh{getTypeName(){return"HTML"}}class Dh extends Rh{getTypeName(){return"Style"}}class Mh extends Rh{getTypeName(){return"Script"}}class Ph extends Rh{getTypeName(){return"URL"}}class Vh extends Rh{getTypeName(){return"ResourceURL"}}const Uh=Ro(nl,"browser",[{provide:Qi,useValue:"browser"},{provide:Wi,useValue:function(){Fc.makeCurrent(),Gc.init()},multi:!0},{provide:Ma,useClass:Hc,deps:[Du]},{provide:Du,useFactory:function(){return document},deps:[]}]);function Fh(){return new Un}let Lh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Gi,useValue:t.appId},{provide:zc,useExisting:Gi},Bc]}}}return e})();"undefined"!=typeof window&&window;class jh{constructor(e,t){this.id=e,this.url=t}}class $h extends jh{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Hh extends jh{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zh extends jh{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Bh extends jh{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gh extends jh{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qh extends jh{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zh extends jh{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wh extends jh{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qh extends jh{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jh{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Kh{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yh{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xh{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ed{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class td{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nd{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let rd=(()=>(class{}))();const sd="primary";class id{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function od(e){return new id(e)}const ld="ngNavigationCancelingError";function ad(e){const t=Error("NavigationCancelingError: "+e);return t[ld]=!0,t}function ud(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}class cd{constructor(e,t){this.routes=e,this.module=t}}function hd(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];dd(r,pd(t,r))}}function dd(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==sd)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&hd(e.children,t)}function pd(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function fd(e){const t=e.children&&e.children.map(fd),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==sd&&(n.component=rd),n}function gd(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(e[s=n[i]]!==t[s])return!1;return!0}function md(e){return Array.prototype.concat.apply([],e)}function yd(e){return e.length>0?e[e.length-1]:null}function vd(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function _d(e){return Kn(e)?e:Jn(e)?q(Promise.resolve(e)):Lu(e)}function wd(e,t,n){return n?function(e,t){return gd(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Ed(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!!Ed(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Ed(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!!Ed(n.segments,e)&&!!n.children[sd]&&t(n.children[sd],r,i)}}(t,n,n.segments)}(e.root,t.root)}class bd{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=od(this.queryParams)),this._queryParamMap}toString(){return Ad.serialize(this)}}class Cd{constructor(e,t){this.segments=e,this.children=t,this.parent=null,vd(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nd(this)}}class Sd{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=od(this.parameters)),this._parameterMap}toString(){return Pd(this)}}function Ed(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function xd(e,t){let n=[];return vd(e.children,(e,r)=>{r===sd&&(n=n.concat(t(e,r)))}),vd(e.children,(e,r)=>{r!==sd&&(n=n.concat(t(e,r)))}),n}class Td{}class kd{parse(e){const t=new jd(e);return new bd(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Nd(t);if(n){const n=t.children[sd]?e(t.children[sd],!1):"",r=[];return vd(t.children,(t,n)=>{n!==sd&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=xd(t,(n,r)=>r===sd?[e(t.children[sd],!1)]:[`${r}:${e(n,!1)}`]);return`${Nd(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=>`${Rd(t)}=${Rd(e)}`).join("&"):`${Rd(t)}=${Rd(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Ad=new kd;function Nd(e){return e.segments.map(e=>Pd(e)).join("/")}function Id(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rd(e){return Id(e).replace(/%3B/gi,";")}function Od(e){return Id(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dd(e){return decodeURIComponent(e)}function Md(e){return Dd(e.replace(/\+/g,"%20"))}function Pd(e){return`${Od(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Od(e)}=${Od(t[e])}`).join("")}`;var t}const Vd=/^[^\/()?;=#]+/;function Ud(e){const t=e.match(Vd);return t?t[0]:""}const Fd=/^[^=?&#]+/,Ld=/^[^?&#]+/;class jd{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Cd([],{}):new Cd([],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[sd]=new Cd(e,t)),n}parseSegment(){const e=Ud(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Sd(Dd(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Ud(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Ud(this.remaining);e&&this.capture(n=e)}e[Dd(t)]=Dd(n)}parseQueryParam(e){const t=function(e){const t=e.match(Fd);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(Ld);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=Md(t),s=Md(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=Ud(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=sd);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[sd]:new Cd([],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 $d{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=Hd(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Hd(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=zd(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return zd(e,this._root).map(e=>e.value)}}function Hd(e,t){if(e===t.value)return t;for(const n of t.children){const t=Hd(e,n);if(t)return t}return null}function zd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=zd(e,n);if(r.length)return r.unshift(t),r}return[]}class Bd{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Gd(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class qd extends $d{constructor(e,t){super(e),this.snapshot=t,Yd(this,e)}toString(){return this.snapshot.toString()}}function Zd(e,t){const n=function(e,t){const n=new Jd([],{},{},"",{},sd,t,null,e.root,-1,{});return new Kd("",new Bd(n,[]))}(e,t),r=new ju([new Sd("",{})]),s=new ju({}),i=new ju({}),o=new ju({}),l=new ju(""),a=new Wd(r,s,o,l,i,sd,t,n.root);return a.snapshot=n.root,new qd(new Bd(a,[]),n)}class Wd{constructor(e,t,n,r,s,i,o,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(e=>od(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(e=>od(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qd(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 Jd{constructor(e,t,n,r,s,i,o,l,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=l,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}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=od(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=od(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kd extends $d{constructor(e,t){super(t),this.url=e,Yd(this,t)}toString(){return Xd(this._root)}}function Yd(e,t){t.value._routerState=e,t.children.forEach(t=>Yd(e,t))}function Xd(e){const t=e.children.length>0?` { ${e.children.map(Xd).join(", ")} } `:"";return`${e.value}${t}`}function ep(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,gd(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),gd(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!gd(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),gd(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function tp(e,t){var n,r;return gd(e.params,t.params)&&Ed(n=e.url,r=t.url)&&n.every((e,t)=>gd(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||tp(e.parent,t.parent))}function np(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function rp(e,t,n,r,s){let i={};return r&&vd(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new bd(n.root===e?t:function e(t,n,r){const s={};return vd(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Cd(t.segments,s)}(n.root,e,t),i,s)}class sp{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&np(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!==yd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ip{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function op(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[sd]:`${e}`}function lp(e,t,n){if(e||(e=new Cd([],{})),0===e.segments.length&&e.hasChildren())return ap(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=op(n[r]),l=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!dp(o,l,t))return i;r+=2}else{if(!dp(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<e.segments.length){const t=new Cd(e.segments.slice(0,r.pathIndex),{});return t.children[sd]=new Cd(e.segments.slice(r.pathIndex),e.children),ap(t,0,s)}return r.match&&0===s.length?new Cd(e.segments,{}):r.match&&!e.hasChildren()?up(e,t,n):r.match?ap(e,0,s):up(e,t,n)}function ap(e,t,n){if(0===n.length)return new Cd(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[sd]:e}:void 0===e[0].outlets?{[sd]:e}:e[0].outlets}(n),s={};return vd(r,(n,r)=>{null!==n&&(s[r]=lp(e.children[r],t,n))}),vd(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Cd(e.segments,s)}}function up(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=cp(n[s].outlets);return new Cd(r,e)}if(0===s&&np(n[0])){r.push(new Sd(e.segments[t].path,n[0])),s++;continue}const i=op(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&np(o)?(r.push(new Sd(i,hp(o))),s+=2):(r.push(new Sd(i,{})),s++)}return new Cd(r,{})}function cp(e){const t={};return vd(e,(e,n)=>{null!==e&&(t[n]=up(new Cd([],{}),0,e))}),t}function hp(e){const t={};return vd(e,(e,n)=>t[n]=`${e}`),t}function dp(e,t,n){return e==n.path&&gd(t,n.parameters)}const pp=(e,t,n)=>H(r=>(new fp(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class fp{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),ep(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Gd(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),vd(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=Gd(e),s=e.value.component?n.children:t;vd(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Gd(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new td(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Xh(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(ep(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),gp(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 gp(e){ep(e.value),e.children.forEach(gp)}function mp(e){return"function"==typeof e}function yp(e){return e instanceof bd}class vp{constructor(e){this.segmentGroup=e||null}}class _p{constructor(e){this.urlTree=e}}function wp(e){return new b(t=>t.error(new vp(e)))}function bp(e){return new b(t=>t.error(new _p(e)))}function Cp(e){return new b(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Sp{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(hr)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,sd).pipe(H(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(hc(e=>{if(e instanceof _p)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof vp)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,sd).pipe(H(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(hc(e=>{if(e instanceof vp)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 Cd([],{[sd]:e}):e;return new bd(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(H(e=>new Cd([],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 Lu({});const n=[],r=[],s={};return vd(e,(e,i)=>{const o=t(i,e).pipe(H(e=>s[i]=e));i===sd?n.push(o):r.push(o)}),Lu.apply(null,n.concat(r)).pipe(Zu(),cc(),H(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return Lu(...n).pipe(H(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(hc(e=>{if(e instanceof vp)return Lu(null);throw e}))),Zu(),yc(e=>!!e),hc((e,n)=>{if(e instanceof Hu||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return Lu(new Cd([],{}));throw new vp(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return kp(r)!==i?wp(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):wp(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("/")?bp(s):this.lineralizeSegments(n,s).pipe(Z(n=>{const s=new Cd(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:l,lastChild:a,positionalParamSegments:u}=Ep(t,r,s);if(!o)return wp(t);const c=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?bp(c):this.lineralizeSegments(r,c).pipe(Z(r=>this.expandSegment(e,t,n,r.concat(s.slice(a)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(H(e=>(n._loadedConfig=e,new Cd(r,{})))):Lu(new Cd(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Ep(t,n,r);if(!s)return wp(t);const l=r.slice(o);return this.getChildConfig(e,n,r).pipe(Z(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=>Tp(e,t,n)&&kp(n)!==sd)}(e,n,r)?{segmentGroup:xp(new Cd(t,function(e,t){const n={};n[sd]=t;for(const r of e)""===r.path&&kp(r)!==sd&&(n[kp(r)]=new Cd([],{}));return n}(r,new Cd(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Tp(e,t,n))}(e,n,r)?{segmentGroup:xp(new Cd(e.segments,function(e,t,n,r){const s={};for(const i of n)Tp(e,t,i)&&!r[kp(i)]&&(s[kp(i)]=new Cd([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,l,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(H(e=>new Cd(i,e))):0===r.length&&0===o.length?Lu(new Cd(i,{})):this.expandSegment(n,s,r,o,sd,!0).pipe(H(e=>new Cd(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Lu(new cd(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Lu(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?q(r).pipe(H(r=>{const s=e.get(r);let i;if(function(e){return e&&mp(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!mp(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return _d(i)})).pipe(Zu(),(s=e=>!0===e,e=>e.lift(new vc(s,void 0,e)))):Lu(!0);var s}(e.injector,t,n).pipe(Z(n=>n?this.configLoader.load(e.injector,t).pipe(H(e=>(t._loadedConfig=e,e))):function(e){return new b(t=>t.error(ad(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Lu(new cd([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Lu(n);if(r.numberOfChildren>1||!r.children[sd])return Cp(e.redirectTo);r=r.children[sd]}}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 bd(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return vd(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 vd(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Cd(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 Ep(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||ud)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function xp(e){if(1===e.numberOfChildren&&e.children[sd]){const t=e.children[sd];return new Cd(e.segments.concat(t.segments),t.children)}return e}function Tp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function kp(e){return e.outlet||sd}class Ap{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Np{constructor(e,t){this.component=e,this.route=t}}function Ip(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Gd(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,l=n?n.value:null,a=r?r.getContext(t.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ed(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ed(e.url,t.url)||!gd(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tp(e,t)||!gd(e.queryParams,t.queryParams);case"paramsChange":default:return!tp(e,t)}}(l,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ap(s)):(o.data=l.data,o._resolvedData=l._resolvedData),e(t,n,o.component?a?a.children:null:r,s,i),u&&i.canDeactivateChecks.push(new Np(a&&a.outlet&&a.outlet.component||null,l))}else l&&Op(n,a,i),i.canActivateChecks.push(new Ap(s)),e(t,null,o.component?a?a.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),vd(o,(e,t)=>Op(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function Rp(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 Op(e,t,n){const r=Gd(e),s=e.value;vd(r,(e,r)=>{Op(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Np(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const Dp=Symbol("INITIAL_VALUE");function Mp(){return wc(e=>(function(...e){let t=null,n=null;return N(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),G(e,n).lift(new Bu(t))})(...e.map(e=>e.pipe(fc(1),function(...e){return t=>{let n=e[e.length-1];N(n)?e.pop():n=null;const r=e.length;return function(...e){return Zu()(Lu(...e))}(1!==r||n?r>0?G(e,n):Uu(n):Fu(e[0]),t)}}(Dp)))).pipe(Sc((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Dp)return e;if(r===Dp&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||yp(r))return r}return e},e)},Dp),Wu(e=>e!==Dp),H(e=>yp(e)?e:!0===e),fc(1)))}function Pp(e,t){return null!==e&&t&&t(new ed(e)),Lu(!0)}function Vp(e,t){return null!==e&&t&&t(new Yh(e)),Lu(!0)}function Up(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Lu(r.map(r=>qu(()=>{const s=Rp(r,t,n);let i;if(function(e){return e&&mp(e.canActivate)}(s))i=_d(s.canActivate(t,e));else{if(!mp(s))throw new Error("Invalid CanActivate guard");i=_d(s(t,e))}return i.pipe(yc())}))).pipe(Mp()):Lu(!0)}function Fp(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=>qu(()=>Lu(t.guards.map(s=>{const i=Rp(s,t.node,n);let o;if(function(e){return e&&mp(e.canActivateChild)}(i))o=_d(i.canActivateChild(r,e));else{if(!mp(i))throw new Error("Invalid CanActivateChild guard");o=_d(i(r,e))}return o.pipe(yc())})).pipe(Mp())));return Lu(s).pipe(Mp())}class Lp{}class jp{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=zp(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,sd),n=new Jd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},sd,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Bd(n,t),s=new Kd(this.url,r);return this.inheritParamsAndData(s._root),Lu(s)}catch(e){return new b(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Qd(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=xd(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===sd?-1:t.value.outlet===sd?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 Lp))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Lp}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Lp;if((e.outlet||sd)!==r)throw new Lp;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?yd(n).parameters:{};s=new Jd(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qp(e),r,e.component,e,$p(t),Hp(t)+n.length,Zp(e))}else{const l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Lp;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||ud)(n,e,t);if(!r)throw new Lp;const s={};vd(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=l.consumedSegments,o=n.slice(l.lastChild),s=new Jd(i,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,qp(e),r,e.component,e,$p(t),Hp(t)+i.length,Zp(e))}const l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=zp(t,i,o,l,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(l,a);return[new Bd(s,e)]}if(0===l.length&&0===u.length)return[new Bd(s,[])];const c=this.processSegment(l,a,u,sd);return[new Bd(s,c)]}}function $p(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Hp(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 zp(e,t,n,r,s){if(n.length>0&&function(e,t,n){return n.some(n=>Bp(e,t,n)&&Gp(n)!==sd)}(e,n,r)){const s=new Cd(t,function(e,t,n,r){const s={};s[sd]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Gp(i)!==sd){const n=new Cd([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[Gp(i)]=n}return s}(e,t,r,new Cd(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=>Bp(e,t,n))}(e,n,r)){const i=new Cd(e.segments,function(e,t,n,r,s,i){const o={};for(const l of r)if(Bp(e,n,l)&&!s[Gp(l)]){const n=new Cd([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Gp(l)]=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 Cd(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Bp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Gp(e){return e.outlet||sd}function qp(e){return e.data||{}}function Zp(e){return e.resolve||{}}function Wp(e,t,n,r){const s=Rp(e,t,r);return _d(s.resolve?s.resolve(t,n):s(t,n))}function Qp(e){return function(t){return t.pipe(wc(t=>{const n=e(t);return n?q(n).pipe(H(()=>t)):q([t])}))}}class Jp{}class Kp{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const Yp=new xe("ROUTES");class Xp{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(H(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new cd(md(r.injector.get(Yp)).map(fd),r)}))}loadModuleFactory(e){return"string"==typeof e?q(this.loader.load(e)):_d(e()).pipe(Z(e=>e instanceof dr?Lu(e):q(this.compiler.compileModuleAsync(e))))}}class ef{}class tf{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function nf(e){throw e}function rf(e,t,n){return t.parse("/")}function sf(e,t){return Lu(null)}class of{constructor(e,t,n,r,s,i,o,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=nf,this.malformedUriErrorHandler=rf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sf,afterPreactivation:sf},this.urlHandlingStrategy=new tf,this.routeReuseStrategy=new Kp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(hr),this.console=s.get(Ki);const a=s.get(mo);this.isNgZoneEnabled=a instanceof mo,this.resetConfig(l),this.currentUrlTree=new bd(new Cd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Xp(i,o,e=>this.triggerEvent(new Jh(e)),e=>this.triggerEvent(new Kh(e))),this.routerState=Zd(this.currentUrlTree,this.rootComponentType),this.transitions=new ju({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(Wu(e=>0!==e.id),H(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),wc(e=>{let n=!1,r=!1;return Lu(e).pipe(nc(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}}),wc(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Lu(e).pipe(wc(e=>{const n=this.transitions.getValue();return t.next(new $h(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Vu:[e]}),wc(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(wc(s=>(function(e,t,n,r,s){return new Sp(e,t,n,r,s).apply()})(e,t,n,s.extractedUrl,r).pipe(H(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),nc(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(Z(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new jp(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(H(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),nc(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),nc(e=>{const n=new Gh(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,l=new $h(n,this.serializeUrl(r),s,i);t.next(l);const a=Zd(r,this.rootComponentType).snapshot;return Lu(Object.assign({},e,{targetSnapshot:a,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Vu}),Qp(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})}),nc(e=>{const t=new qh(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),H(e=>Object.assign({},e,{guards:Ip(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Z(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Lu(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return q(e).pipe(Z(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?Lu(i.map(i=>{const o=Rp(i,t,s);let l;if(function(e){return e&&mp(e.canDeactivate)}(o))l=_d(o.canDeactivate(e,t,n,r));else{if(!mp(o))throw new Error("Invalid CanDeactivate guard");l=_d(o(e,t,n,r))}return l.pipe(yc())})).pipe(Mp()):Lu(!0)})(e.component,e.route,n,t,r)),yc(e=>!0!==e,!0))}(o,r,s,e).pipe(Z(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return q(t).pipe(Tc(t=>q([Vp(t.route.parent,r),Pp(t.route,r),Fp(e,t.path,n),Up(e,t.route,n)]).pipe(Zu(),yc(e=>!0!==e,!0))),yc(e=>!0!==e,!0))}(r,i,e,t):Lu(n)),H(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),nc(e=>{if(yp(e.guardsResult)){const t=ad(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),nc(e=>{const t=new Zh(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Wu(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new zh(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Qp(e=>{if(e.guards.canActivateChecks.length)return Lu(e).pipe(nc(e=>{const t=new Wh(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(Z(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?q(s).pipe(Tc(n=>(function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return Lu({});if(1===s.length){const i=s[0];return Wp(e[i],t,n,r).pipe(H(e=>({[i]:e})))}const i={};return q(s).pipe(Z(s=>Wp(e[s],t,n,r).pipe(H(e=>(i[s]=e,e))))).pipe(cc(),H(()=>i))}(e._resolve,e,t,r).pipe(H(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Qd(e,n).resolve),null)))})(n.route,r,e,t)),function(e,t){return arguments.length>=2?function(n){return _(Sc(e,t),Xu(1),lc(t))(n)}:function(t){return _(Sc((t,n,r)=>e(t,n,r+1)),Xu(1))(t)}}((e,t)=>e),H(e=>n)):Lu(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),nc(e=>{const t=new Qh(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Qp(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})}),H(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 Bd(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;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new Wd(new ju((s=n.value).url),new ju(s.params),new ju(s.queryParams),new ju(s.fragment),new ju(s.data),s.outlet,s.component,s),i=n.children.map(n=>e(t,n));return new Bd(r,i)}}var s}(e,t._root,n?n._root:void 0);return new qd(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),nc(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)}),pp(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),nc({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new kc(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new zh(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}),hc(n=>{if(r=!0,function(e){return e&&e[ld]}(n)){const r=yp(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new zh(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 Bh(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return Vu}))}))}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){hd(e),this.config=e.map(fd),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:l}=t;Lt()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return rp(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new sp(!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 vd(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 sp(n,t,r)}(n);if(i.toRoot())return rp(t.root,new Cd([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new ip(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ip(n.snapshot._urlSegment,!0,0);const r=np(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 ip(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),l=o.processChildren?ap(o.segmentGroup,o.index,i.commands):lp(o.segmentGroup,o.index,i.commands);return rp(o.segmentGroup,l,t,r,s)}(a,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){Lt()&&this.isNgZoneEnabled&&!mo.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=yp(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<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(yp(e))return wd(this.currentUrlTree,e,t);const n=this.parseUrl(e);return wd(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{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 Hh(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 l=new Promise((e,t)=>{i=e,o=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.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 lf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new af,this.attachRef=null}}class af{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 lf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}let uf=(()=>(class{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 ji,this.deactivateEvents=new ji,this.name=r||sd,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 cf(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 cf{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Wd?this.route:e===af?this.childContexts:this.parent.get(e,t)}}class hf{}class df{preload(e,t){return t().pipe(hc(()=>Lu(null)))}}class pf{preload(e,t){return Lu(null)}}let ff=(()=>(class{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new Xp(t,n,t=>e.triggerEvent(new Jh(t)),t=>e.triggerEvent(new Kh(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Wu(e=>e instanceof Hh),Tc(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(hr);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 q(n).pipe(K(),H(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Z(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}))();class gf{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 $h?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Hh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nd&&(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 nd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const mf=new xe("ROUTER_CONFIGURATION"),yf=new xe("ROUTER_FORROOT_GUARD"),vf=[Fa,{provide:Td,useClass:kd},{provide:of,useFactory:xf,deps:[Po,Td,af,Fa,Ge,Uo,oo,Yp,mf,[ef,new ae],[Jp,new ae]]},af,{provide:Wd,useFactory:Tf,deps:[of]},{provide:Uo,useClass:jo},ff,pf,df,{provide:mf,useValue:{enableTracing:!1}}];function _f(){return new Io("Router",of)}let wf=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[vf,Ef(t),{provide:yf,useFactory:Sf,deps:[[of,new ae,new ce]]},{provide:mf,useValue:n||{}},{provide:Va,useFactory:Cf,deps:[Ma,[new le(Ua),new ae],mf]},{provide:gf,useFactory:bf,deps:[of,Mu,mf]},{provide:hf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:pf},{provide:Io,multi:!0,useFactory:_f},[kf,{provide:zi,multi:!0,useFactory:Af,deps:[kf]},{provide:If,useFactory:Nf,deps:[kf]},{provide:Ji,multi:!0,useExisting:If}]]}}static forChild(t){return{ngModule:e,providers:[Ef(t)]}}}return e})();function bf(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new gf(e,t,n)}function Cf(e,t,n={}){return n.useHash?new ja(e,t):new $a(e,t)}function Sf(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ef(e){return[{provide:rt,multi:!0,useValue:e},{provide:Yp,multi:!0,useValue:e}]}function xf(e,t,n,r,s,i,o,l,a={},u,c){const h=new of(null,t,n,r,s,i,o,md(l));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const e=Ic();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function Tf(e){return e.routerState.root}let kf=(()=>(class{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Pa,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(of),r=this.injector.get(mf);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?Lu(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(mf),n=this.injector.get(ff),r=this.injector.get(gf),s=this.injector.get(of),i=this.injector.get(Po);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 Af(e){return e.appInitializer.bind(e)}function Nf(e){return e.bootstrapListener.bind(e)}const If=new xe("Router Initializer");var Rf=os({encapsulation:2,styles:[],data:{}});function Of(e){return El(0,[(e()(),ul(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),yi(1,212992,null,0,uf,[af,Hr,ar,[8,null],Pr],null,null)],(function(e,t){e(t,1,0)}),null)}function Df(e){return El(0,[(e()(),ul(0,0,null,null,1,"ng-component",[],null,null,null,Of,Rf)),yi(1,49152,null,0,rd,[],null,null)],null,null)}var Mf=Zs("ng-component",rd,Df,{},{},[]);class Pf extends ${constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let r=0;r<n;r++){const e=j(this,t[r],null,r);e&&this.add(e)}}notifyNext(e,t,n,r,s){this.values[n]=t,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:r}=this,s=r.length;e._hasValue?(this.completed++,this.completed===s&&(n===s&&t.next(r),t.complete())):t.complete()}}const Vf=new xe("NgValueAccessor");let Uf=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))();const Ff=new xe("CompositionEventMode");let Lf=(()=>(class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Ic()?Ic().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}))();class jf{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class $f extends jf{get formDirective(){return null}get path(){return null}}function Hf(){throw new Error("unimplemented")}class zf extends jf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Hf()}get asyncValidator(){return Hf()}}class Bf{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Gf=(()=>(class extends Bf{constructor(e){super(e)}}))(),qf=(()=>(class extends Bf{constructor(e){super(e)}}))();function Zf(e){return null==e||0===e.length}const Wf=new xe("NgValidators"),Qf=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class Jf{static min(e){return t=>{if(Zf(t.value)||Zf(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(Zf(t.value)||Zf(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return Zf(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Zf(e.value)?null:Qf.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(Zf(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return Jf.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(Zf(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(Kf);return 0==t.length?null:function(e){return Xf(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(Kf);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),0===t.length?Vu:n?e(t).pipe(H(e=>n(...e))):new b(e=>new Pf(e,t))}(function(e,t){return t.map(t=>t(e))}(e,t).map(Yf)).pipe(H(Xf))}}}function Kf(e){return null!=e}function Yf(e){const t=Jn(e)?q(e):e;if(!Kn(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Xf(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function eg(e){return e.validate?t=>e.validate(t):e}function tg(e){return e.validate?t=>e.validate(t):e}let ng=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),rg=(()=>(class{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}))(),sg=(()=>(class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(zf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}))();const ig={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '};function og(e,t){return[...t.path,e]}function lg(e,t){e||ug(t,"Cannot find control with"),t.valueAccessor||ug(t,"No value accessor for form control with"),e.validator=Jf.compose([e.validator,t.validator]),e.asyncValidator=Jf.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ag(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ag(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function ag(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ug(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function cg(e){return null!=e?Jf.compose(e.map(eg)):null}function hg(e){return null!=e?Jf.composeAsync(e.map(tg)):null}const dg=[Uf,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),ng,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Gn}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}))(),(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Gn}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),s=this._getOptionValue(r.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}))(),sg],pg="VALID",fg="INVALID",gg="PENDING",mg="DISABLED";function yg(e){const t=_g(e)?e.validators:e;return Array.isArray(t)?cg(t):t||null}function vg(e,t){const n=_g(t)?t.asyncValidators:e;return Array.isArray(n)?hg(n):n||null}function _g(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class wg{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===pg}get invalid(){return this.status===fg}get pending(){return this.status==gg}get disabled(){return this.status===mg}get enabled(){return this.status!==mg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=yg(e)}setAsyncValidators(e){this.asyncValidator=vg(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=gg,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=mg,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=pg,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==pg&&this.status!==gg||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mg:pg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=gg;const t=Yf(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof Cg?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Sg&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ji,this.statusChanges=new ji}_calculateStatus(){return this._allControlsDisabled()?mg:this.errors?fg:this._anyControlsHaveStatus(gg)?gg:this._anyControlsHaveStatus(fg)?fg:pg}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){_g(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class bg extends wg{constructor(e=null,t,n){super(yg(t),vg(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Cg extends wg{constructor(e,t,n){super(yg(t),vg(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof bg?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Sg extends wg{constructor(e,t,n){super(yg(t),vg(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof bg?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Eg=(()=>Promise.resolve(null))();let xg=(()=>(class extends $f{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ji,this.form=new Cg({},cg(e),hg(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Eg.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),lg(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Eg.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this._directives,e)})}addFormGroup(e){Eg.then(()=>{const t=this._findContainer(e.path),n=new Cg({});(function(e,t){null==e&&ug(t,"Cannot find control with"),e.validator=Jf.compose([e.validator,t.validator]),e.asyncValidator=Jf.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Eg.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Eg.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}))();class Tg{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${ig.formControlName}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      ${ig.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${ig.formGroupName}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${ig.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${ig.formGroupName}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${ig.ngModelGroup}`)}static ngFormWarning(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")}}const kg=new xe("NgFormSelectorWarning");class Ag extends $f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return og(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return cg(this._validators)}get asyncValidator(){return hg(this._asyncValidators)}_checkParentType(){}}let Ng=(()=>{class e extends Ag{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof xg||Tg.modelGroupParentException()}}return e})();const Ig=(()=>Promise.resolve(null))();let Rg=(()=>(class extends zf{constructor(e,t,n,r){super(),this.control=new bg,this._registered=!1,this.update=new ji,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||ug(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return t.forEach(t=>{t.constructor===Lf?n=t:function(e){return dg.some(t=>e.constructor===t)}(t)?(r&&ug(e,"More than one built-in value accessor matches form control with"),r=t):(s&&ug(e,"More than one custom value accessor matches form control with"),s=t)}),s||r||n||(ug(e,"No valid value accessor for form control with"),null)}(this,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Gn(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?og(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return cg(this._rawValidators)}get asyncValidator(){return hg(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ng)&&this._parent instanceof Ag?Tg.formGroupNameException():this._parent instanceof Ng||this._parent instanceof xg||Tg.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tg.missingNameException()}_updateValue(e){Ig.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Ig.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),Og=(()=>(class{}))(),Dg=(()=>(class{get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!==`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?Jf.required(e):null}registerOnValidatorChange(e){this._onChange=e}}))(),Mg=(()=>(class{set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?Jf.email(e):null}registerOnValidatorChange(e){this._onChange=e}}))(),Pg=(()=>(class{}))(),Vg=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:kg,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})();class Ug{constructor(){this.dt=new Date}}var Fg=os({encapsulation:2,styles:[],data:{}});function Lg(e){return El(0,[(t=0,n=Ru,r=[Yi],_i(-1,t|=16,null,0,n,n,r)),(e()(),ul(1,0,null,null,13,"footer",[["class","blog-footer"]],null,null,null,null,null)),(e()(),ul(2,0,null,null,12,"div",[["class","container d-lg-flex text-center text-lg-left"]],null,null,null,null,null)),(e()(),ul(3,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),bl(4,null,["Copyright \xa9 ",". Powered by "])),wl(128,5,new Array(3)),(e()(),ul(6,0,null,null,1,"a",[["data-toggle","tooltip"],["href","https://github.com/blogifierdotnet/Blogifier"],["target","_blank"]],null,null,null,null,null)),(e()(),bl(-1,null,["Blogifier"])),(e()(),bl(-1,null,[". Designed by "])),(e()(),ul(9,0,null,null,1,"a",[["href","https://francis.bio/"],["rel","nofollow"],["target","_blank"]],null,null,null,null,null)),(e()(),bl(-1,null,["Francis"])),(e()(),bl(-1,null,["."])),(e()(),ul(12,0,null,null,2,"div",[["class","ml-auto"]],null,null,null,null,null)),(e()(),ul(13,0,null,null,1,"a",[["href","admin"]],null,null,null,null,null)),(e()(),bl(-1,null,["Admin"]))],null,(function(e,t){var n=t.component,r=function(e,t,n,r){if(Zn.isWrapped(r)){r=Zn.unwrap(r);const t=e.def.nodes[4].bindingIndex+0,n=Zn.unwrap(e.oldValues[t]);e.oldValues[t]=new Zn(n)}return r}(t,0,0,e(t,5,0,si(t,0),n.dt,"yyyy"));e(t,4,0,r)}));var t,n,r}class jg{constructor(e){this.blogService=e,this.errorMessage=""}ngOnInit(){this.emailModel="",this.apiRoot=Ra.apiEndpoint+"/",this.blogService.getSettings().subscribe(e=>{this.blogSettings=e,this.blogCover=Ra.apiEndpoint+"/"+this.blogSettings.cover},e=>this.errorMessage=e),this.blogService.getPosts().subscribe(e=>{this.postList=e},e=>this.errorMessage=e)}onSubmit(){this.emailModel&&this.blogService.subscribe(this.emailModel).subscribe(()=>{this.fadeOut(document.getElementById("frmNewsletter"),300),this.fadeIn(document.getElementById("ttlNewsletter"),300)})}fade(e){var t=1,n=setInterval((function(){t<=.1&&(clearInterval(n),e.style.display="none"),e.style.opacity=t,e.style.filter="alpha(opacity="+100*t+")",t-=.1*t}),50)}toDate(e){var t=new Date(e);return["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()]+" "+t.getDate()+", "+t.getFullYear()}fadeIn(e,t){if(e)if(e.style.opacity=0,e.style.filter="alpha(opacity=0)",e.style.display="inline-block",e.style.visibility="visible",t)var n=0,r=setInterval((function(){(n+=50/t)>=1&&(clearInterval(r),n=1),e.style.opacity=n,e.style.filter="alpha(opacity="+100*n+")"}),50);else e.style.opacity=1,e.style.filter="alpha(opacity=1)"}fadeOut(e,t){if(e)if(t)var n=1,r=setInterval((function(){(n-=50/t)<=0&&(clearInterval(r),n=0,e.style.display="none",e.style.visibility="hidden"),e.style.opacity=n,e.style.filter="alpha(opacity="+100*n+")"}),50);else e.style.opacity=0,e.style.filter="alpha(opacity=0)",e.style.display="none",e.style.visibility="hidden"}}class $g{}class Hg{}class zg{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof zg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new zg;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof zg?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;0===(e=e.filter(e=>-1===s.indexOf(e))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Bg{encodeKey(e){return Gg(e)}encodeValue(e){return Gg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Gg(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class qg{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Bg,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new qg({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function Zg(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Wg(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Qg(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Jg{constructor(e,t,n,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new zg),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new qg,this.urlWithParams=t}serializeBody(){return null===this.body?null:Zg(this.body)||Wg(this.body)||Qg(this.body)||"string"==typeof this.body?this.body:this.body instanceof qg?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:Qg(this.body)?null:Wg(this.body)?this.body.type||null:Zg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof qg?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,i=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,a=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(a=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),a)),new Jg(t,n,s,{params:a,headers:l,reportProgress:o,responseType:r,withCredentials:i})}}const Kg=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class Yg{constructor(e,t=200,n="OK"){this.headers=e.headers||new zg,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Xg extends Yg{constructor(e={}){super(e),this.type=Kg.ResponseHeader}clone(e={}){return new Xg({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class em extends Yg{constructor(e={}){super(e),this.type=Kg.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new em({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class tm extends Yg{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function nm(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let rm=(()=>(class{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Jg)r=e;else{let s=void 0;s=n.headers instanceof zg?n.headers:new zg(n.headers);let i=void 0;n.params&&(i=n.params instanceof qg?n.params:new qg({fromObject:n.params})),r=new Jg(e,t,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Lu(r).pipe(Tc(e=>this.handler.handle(e)));if(e instanceof Jg||"events"===n.observe)return s;const i=s.pipe(Wu(e=>e instanceof em));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(H(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe(H(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe(H(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return i.pipe(H(e=>e.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new qg).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,nm(n,t))}post(e,t,n={}){return this.request("POST",e,nm(n,t))}put(e,t,n={}){return this.request("PUT",e,nm(n,t))}}))();class sm{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const im=new xe("HTTP_INTERCEPTORS");let om=(()=>(class{intercept(e,t){return t.handle(e)}}))();const lm=/^\)\]\}',?\n/;class am{}let um=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),cm=(()=>(class{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new b(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new zg(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new Xg({headers:i,status:t,statusText:r,url:o})},o=()=>{let{headers:r,status:s,statusText:o,url:l}=i(),a=null;204!==s&&(a=void 0===n.response?n.responseText:n.response),0===s&&(s=a?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof a){const e=a;a=a.replace(lm,"");try{a=""!==a?JSON.parse(a):null}catch(c){a=e,u&&(u=!1,a={error:c,text:a})}}u?(t.next(new em({body:a,headers:r,status:s,statusText:o,url:l||void 0})),t.complete()):t.error(new tm({error:a,headers:r,status:s,statusText:o,url:l||void 0}))},l=e=>{const{url:r}=i(),s=new tm({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let a=!1;const u=r=>{a||(t.next(i()),a=!0);let s={type:Kg.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:Kg.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",l),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:Kg.Sent}),()=>{n.removeEventListener("error",l),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}))();const hm=new xe("XSRF_COOKIE_NAME"),dm=new xe("XSRF_HEADER_NAME");class pm{}let fm=(()=>(class{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=wu(e,this.cookieName),this.lastCookieString=e),this.lastToken}}))(),gm=(()=>(class{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}))(),mm=(()=>(class{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(im,[]);this.chain=e.reduceRight((e,t)=>new sm(e,t),this.backend)}return this.chain.handle(e)}}))(),ym=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:gm,useClass:om}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:hm,useValue:t.cookieName}:[],t.headerName?{provide:dm,useValue:t.headerName}:[]]}}}return e})(),vm=(()=>(class{}))(),_m=(()=>{class e{constructor(e,t){this.http=e,this.route=t}getPosts(){var e=Ra.apiEndpoint+"/api/posts?include=FP&page=1",t=Ra.apiEndpoint+"/api/posts/search/",n=this.route.snapshot.queryParamMap.get("page"),r=this.route.snapshot.queryParamMap.get("author"),s=this.route.snapshot.queryParamMap.get("category"),i=this.route.snapshot.queryParamMap.get("term");return n&&(e=Ra.apiEndpoint+"/api/posts?include=FP&page="+n),r&&(e+="&author="+r),s&&(e+="&category="+s),i?this.http.get(t+i).pipe(nc(e=>this.logMessage("Search: "+JSON.stringify(e))),hc(this.handleError)):this.http.get(e).pipe(nc(e=>this.logMessage("Posts: "+JSON.stringify(e))),hc(this.handleError))}getRecent(){return this.http.get(Ra.apiEndpoint+"/api/posts?include=FP&page=1").pipe(nc(e=>this.logMessage("Recent posts: "+JSON.stringify(e))),hc(this.handleError))}getFeatured(){return this.http.get(Ra.apiEndpoint+"/api/posts?include=F&page=1").pipe(nc(e=>this.logMessage("Featured posts: "+JSON.stringify(e))),hc(this.handleError))}getPopular(){return this.http.get(Ra.apiEndpoint+"/api/posts/popular").pipe(nc(e=>this.logMessage("Popular posts: "+JSON.stringify(e))),hc(this.handleError))}getPost(e){return this.http.get(Ra.apiEndpoint+"/api/posts/byslug/"+e).pipe(nc(e=>this.logMessage("Blog post: "+JSON.stringify(e))),hc(this.handleError))}getSettings(){return this.http.get(Ra.apiEndpoint+"/api/settings").pipe(nc(e=>this.logMessage("Settings: "+JSON.stringify(e))),hc(this.handleError))}getAuthors(){return this.http.get(Ra.apiEndpoint+"/api/authors").pipe(nc(e=>this.logMessage("Authors: "+JSON.stringify(e))),hc(this.handleError))}getCategories(){return this.http.get(Ra.apiEndpoint+"/api/posts/categories").pipe(nc(e=>this.logMessage("Categories: "+JSON.stringify(e))),hc(this.handleError))}subscribe(e){return this.http.put(Ra.apiEndpoint+"/api/notifications/subscribe",{},{params:{email:e}}).pipe(hc(this.handleError))}contact(e){return this.http.post(Ra.apiEndpoint+"/api/notifications/contact",e).pipe(hc(this.handleError))}getThemeData(){return this.http.get(Ra.themeData)}showMessage(e,t=!1){alert(e),t&&setTimeout((function(){location.reload()}),2e3)}logMessage(e){Ra.production||console.log(e)}handleError(e){let t="";return t=e.error instanceof ErrorEvent?`An error occurred: ${e.error.message}`:`Server returned code: ${e.status}, error message is: ${e.message}`,console.error(t),n=t,new b(e=>e.error(n));var n}}return e.ngInjectableDef=pe({factory:function(){return new e(Le(rm),Le(Wd))},token:e,providedIn:"root"}),e})();var wm=os({encapsulation:2,styles:[],data:{}});function bm(e){return El(0,[(e()(),ul(0,0,null,null,8,"div",[["class","page-cover"]],null,null,null,null,null)),vi(512,null,ku,Au,[fr,Mr,_r]),yi(2,278528,null,0,Iu,[ku],{ngStyle:[0,"ngStyle"]},null),_l(3,{"background-image":0}),(e()(),ul(4,0,null,null,2,"h1",[["class","page-cover-title"]],null,null,null,null,null)),(e()(),ul(5,0,null,null,1,"a",[["href","/"]],null,null,null,null,null)),(e()(),bl(6,null,["",""])),(e()(),ul(7,0,null,null,1,"p",[["class","page-cover-desc"]],null,null,null,null,null)),(e()(),bl(8,null,["",""]))],(function(e,t){var n=e(t,3,0,"url("+t.component.blogCover+")");e(t,2,0,n)}),(function(e,t){var n=t.component;e(t,6,0,n.blogSettings.title),e(t,8,0,n.blogSettings.description)}))}function Cm(e){return El(0,[(e()(),ul(0,0,null,null,2,"span",[["class","post-featrued-label"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,0,"i",[["class","fa fa-star"]],null,null,null,null,null)),(e()(),bl(-1,null,[" Featured"]))],null,null)}function Sm(e){return El(0,[(e()(),ul(0,0,null,null,15,"article",[["class","post"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,3,"div",[["class","post-cover"]],null,null,null,null,null)),(e()(),ul(2,0,null,null,0,"img",[["alt","post.title"]],[[8,"src",4]],null,null,null,null)),(e()(),al(16777216,null,null,1,null,Cm)),yi(4,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(5,0,null,null,2,"h2",[["class","post-title"]],null,null,null,null,null)),(e()(),ul(6,0,null,null,1,"a",[],[[8,"href",4]],null,null,null,null)),(e()(),bl(7,null,["",""])),(e()(),ul(8,0,null,null,4,"div",[["class","post-meta"]],null,null,null,null,null)),(e()(),ul(9,0,null,null,1,"a",[["class","post-meta-author"]],[[8,"href",4]],null,null,null,null)),(e()(),bl(10,null,["",""])),(e()(),ul(11,0,null,null,1,"time",[["class","post-meta-time"]],null,null,null,null,null)),(e()(),bl(12,null,["/ ",""])),(e()(),ul(13,0,null,null,0,"div",[["class","post-description"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),ul(14,0,null,null,1,"a",[["class","post-more btn btn-rounded btn-dark"]],[[8,"href",4]],null,null,null,null)),(e()(),bl(-1,null,["Read"]))],(function(e,t){e(t,4,0,t.context.$implicit.featured)}),(function(e,t){var n=t.component;e(t,2,0,Os(2,"",n.apiRoot,"",t.context.$implicit.cover,"")),e(t,6,0,Os(1,"posts/",t.context.$implicit.slug,"")),e(t,7,0,t.context.$implicit.title),e(t,9,0,Os(1,"?author=",t.context.$implicit.author.appUserName,"")),e(t,10,0,t.context.$implicit.author.displayName),e(t,12,0,n.toDate(t.context.$implicit.published)),e(t,13,0,t.context.$implicit.description),e(t,14,0,Os(1,"posts/",t.context.$implicit.slug,""))}))}function Em(e){return El(0,[(e()(),ul(0,0,null,null,2,"div",[["class","container"]],null,null,null,null,null)),(e()(),al(16777216,null,null,1,null,Sm)),yi(2,278528,null,0,Cu,[Hr,jr,Dr],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.postList.posts)}),null)}function xm(e){return El(0,[(e()(),ul(0,0,null,null,2,"li",[["class","item item-prev"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,1,"a",[["class","item-link"]],[[8,"href",4]],null,null,null,null)),(e()(),ul(2,0,null,null,0,"i",[["class","item-icon fa fa-angle-left"]],null,null,null,null,null))],null,(function(e,t){e(t,1,0,Os(1,"?page=",t.component.postList.pager.older,""))}))}function Tm(e){return El(0,[(e()(),ul(0,0,null,null,2,"li",[["class","item item-next"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,1,"a",[["class","item-link"]],[[8,"href",4]],null,null,null,null)),(e()(),ul(2,0,null,null,0,"i",[["class","item-icon fa fa-angle-right"]],null,null,null,null,null))],null,(function(e,t){e(t,1,0,Os(1,"?page=",t.component.postList.pager.newer,""))}))}function km(e){return El(0,[(e()(),ul(0,0,null,null,4,"ul",[["class","pagination justify-content-center"]],null,null,null,null,null)),(e()(),al(16777216,null,null,1,null,xm)),yi(2,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),al(16777216,null,null,1,null,Tm)),yi(4,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.postList.pager.showOlder),e(t,4,0,n.postList.pager.showNewer)}),null)}function Am(e){return El(0,[(e()(),ul(0,0,null,null,1,"small",[["class","text-danger"]],null,null,null,null,null)),(e()(),bl(-1,null,[" Email is required."]))],null,null)}function Nm(e){return El(0,[(e()(),ul(0,0,null,null,1,"small",[["class","text-danger"]],null,null,null,null,null)),(e()(),bl(-1,null,["Must be valid email."]))],null,null)}function Im(e){return El(0,[(e()(),al(16777216,null,null,1,null,bm)),yi(1,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(2,0,null,null,34,"div",[["class","page-content"]],null,null,null,null,null)),(e()(),al(16777216,null,null,1,null,Em)),yi(4,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),al(16777216,null,null,1,null,km)),yi(6,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(7,0,null,null,29,"div",[["class","container"],["id","newsletter"]],null,null,null,null,null)),(e()(),ul(8,0,null,null,28,"div",[["class","jumbotron"],["id","newsletter-form"]],null,null,null,null,null)),(e()(),ul(9,0,null,null,1,"h2",[["class","newsletter-title"],["id","ttlNewsletter"],["style","display:none"]],null,null,null,null,null)),(e()(),bl(-1,null,["Thank you!"])),(e()(),ul(11,0,null,null,25,"form",[["id","frmNewsletter"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(e,t,n){var r=!0,s=e.component;return"submit"===t&&(r=!1!==si(e,13).onSubmit(n)&&r),"reset"===t&&(r=!1!==si(e,13).onReset()&&r),"ngSubmit"===t&&(r=!1!==s.onSubmit()&&r),r}),null,null)),yi(12,16384,null,0,Og,[],null,null),yi(13,4210688,null,0,xg,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),vi(2048,null,$f,null,[xg]),yi(15,16384,null,0,qf,[[4,$f]],null,null),(e()(),ul(16,0,null,null,18,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ul(17,0,null,null,1,"h2",[["class","newsletter-title"]],null,null,null,null,null)),(e()(),bl(-1,null,["Newsletter"])),(e()(),ul(19,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ul(20,0,null,null,8,"input",[["class","form-control"],["email",""],["id","email"],["name","email"],["placeholder","Enter Email"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var r=!0,s=e.component;return"input"===t&&(r=!1!==si(e,21)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==si(e,21).onTouched()&&r),"compositionstart"===t&&(r=!1!==si(e,21)._compositionStart()&&r),"compositionend"===t&&(r=!1!==si(e,21)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(s.emailModel=n)&&r),r}),null,null)),yi(21,16384,null,0,Lf,[_r,fr,[2,Ff]],null,null),yi(22,16384,null,0,Dg,[],{required:[0,"required"]},null),yi(23,16384,null,0,Mg,[],{email:[0,"email"]},null),vi(1024,null,Wf,(function(e,t){return[e,t]}),[Dg,Mg]),vi(1024,null,Vf,(function(e){return[e]}),[Lf]),yi(26,671744,[["email",4]],0,Rg,[[2,$f],[6,Wf],[8,null],[6,Vf]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),vi(2048,null,zf,null,[Rg]),yi(28,16384,null,0,Gf,[[4,zf]],null,null),(e()(),al(16777216,null,null,1,null,Am)),yi(30,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),al(16777216,null,null,1,null,Nm)),yi(32,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(33,0,null,null,1,"small",[["class","form-text text-muted"],["id","emailHelp"]],null,null,null,null,null)),(e()(),bl(-1,null,["Join our subscribers list to get the latest news and updates directly in your inbox."])),(e()(),ul(35,0,null,null,1,"button",[["class","btn btn-subscribe btn-rounded btn-dark"],["type","submit"]],[[8,"disabled",0]],null,null,null,null)),(e()(),bl(-1,null,["Subscribe"])),(e()(),ul(37,0,null,null,1,"app-footer",[],null,null,null,Lg,Fg)),yi(38,49152,null,0,Ug,[],null,null)],(function(e,t){var n=t.component;e(t,1,0,n.blogCover),e(t,4,0,n.postList),e(t,6,0,n.postList&&(n.postList.pager.showNewer||n.postList.pager.showOlder)),e(t,22,0,""),e(t,23,0,""),e(t,26,0,"email",n.emailModel),e(t,30,0,(si(t,26).dirty||si(t,26).touched)&&si(t,26).errors&&si(t,26).errors.required),e(t,32,0,(si(t,26).dirty||si(t,26).touched)&&si(t,26).errors&&si(t,26).errors.email)}),(function(e,t){e(t,11,0,si(t,15).ngClassUntouched,si(t,15).ngClassTouched,si(t,15).ngClassPristine,si(t,15).ngClassDirty,si(t,15).ngClassValid,si(t,15).ngClassInvalid,si(t,15).ngClassPending),e(t,20,0,si(t,22).required?"":null,si(t,28).ngClassUntouched,si(t,28).ngClassTouched,si(t,28).ngClassPristine,si(t,28).ngClassDirty,si(t,28).ngClassValid,si(t,28).ngClassInvalid,si(t,28).ngClassPending),e(t,35,0,si(t,26).errors)}))}function Rm(e){return El(0,[(e()(),al(16777216,null,null,1,null,Im)),yi(1,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.blogSettings)}),null)}function Om(e){return El(0,[(e()(),ul(0,0,null,null,1,"app-home",[],null,null,null,Rm,wm)),yi(1,114688,null,0,jg,[_m],null,null)],(function(e,t){e(t,1,0)}),null)}var Dm=Zs("app-home",jg,Om,{},{},[]);class Mm{constructor(e,t){this.blogService=e,this.route=t,this.errorMessage=""}ngOnInit(){this.blogService.getSettings().subscribe(e=>{this.blogSettings=e},e=>this.errorMessage=e);var e=this.route.snapshot.paramMap.get("slug");e&&this.blogService.getPost(e).subscribe(e=>{this.postModel=e,this.postCover=Ra.apiEndpoint+"/"+this.postModel.post.cover,this.avatarImg=Ra.apiEndpoint+"/"+this.postModel.post.author.avatar},e=>this.errorMessage=e)}toDate(e){var t=new Date(e);return["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()]+" "+t.getDate()+", "+t.getFullYear()}}var Pm=os({encapsulation:2,styles:[],data:{}});function Vm(e){return El(0,[(e()(),ul(0,0,null,null,3,"div",[["class","post-cover"]],null,null,null,null,null)),vi(512,null,ku,Au,[fr,Mr,_r]),yi(2,278528,null,0,Iu,[ku],{ngStyle:[0,"ngStyle"]},null),_l(3,{"background-image":0})],(function(e,t){var n=e(t,3,0,"url("+t.component.postCover+")");e(t,2,0,n)}),null)}function Um(e){return El(0,[(e()(),ul(0,0,null,null,2,"span",[],null,null,null,null,null)),(e()(),ul(1,0,null,null,1,"a",[],[[8,"href",4]],null,null,null,null)),(e()(),bl(2,null,[" "," "]))],null,(function(e,t){e(t,1,0,Os(1,"?category=",t.context.$implicit,"")),e(t,2,0,t.context.$implicit)}))}function Fm(e){return El(0,[(e()(),ul(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl(-1,null,[" / "])),(e()(),al(16777216,null,null,1,null,Um)),yi(3,278528,null,0,Cu,[Hr,jr,Dr],{ngForOf:[0,"ngForOf"]},null),(e()(),al(0,null,null,0))],(function(e,t){e(t,3,0,t.component.postModel.post.categories.split(","))}),null)}function Lm(e){return El(0,[(e()(),ul(0,0,null,null,2,"li",[["class","item item-prev"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,1,"a",[["class","item-link"]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(e()(),ul(2,0,null,null,0,"i",[["class","item-icon fa fa-angle-left"]],null,null,null,null,null))],null,(function(e,t){var n=t.component;e(t,1,0,Os(1,"posts/",n.postModel.older.slug,""),Os(1,"",n.postModel.older.title,""))}))}function jm(e){return El(0,[(e()(),ul(0,0,null,null,2,"li",[["class","item item-next"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,1,"a",[["class","item-link"]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(e()(),ul(2,0,null,null,0,"i",[["class","item-icon fa fa-angle-right"]],null,null,null,null,null))],null,(function(e,t){var n=t.component;e(t,1,0,Os(1,"posts/",n.postModel.newer.slug,""),Os(1,"posts/",n.postModel.newer.title,""))}))}function $m(e){return El(0,[(e()(),ul(0,0,null,null,4,"ul",[["class","pagination justify-content-center"]],null,null,null,null,null)),(e()(),al(16777216,null,null,1,null,Lm)),yi(2,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),al(16777216,null,null,1,null,jm)),yi(4,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.postModel.older),e(t,4,0,n.postModel.newer)}),null)}function Hm(e){return El(0,[(e()(),ul(0,0,null,null,19,"article",[["class","post-single"]],null,null,null,null,null)),(e()(),al(16777216,null,null,1,null,Vm)),yi(2,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(3,0,null,null,16,"section",[["class","container"]],null,null,null,null,null)),(e()(),ul(4,0,null,null,15,"div",[["class"," post-body"]],null,null,null,null,null)),(e()(),ul(5,0,null,null,11,"header",[["class","post-header"]],null,null,null,null,null)),(e()(),ul(6,0,null,null,1,"h2",[["class","post-title"]],null,null,null,null,null)),(e()(),bl(7,null,["",""])),(e()(),ul(8,0,null,null,8,"div",[["class","post-meta"]],null,null,null,null,null)),(e()(),ul(9,0,null,null,3,"a",[],[[8,"href",4]],null,null,null,null)),(e()(),ul(10,0,null,null,0,"img",[["class","post-meta-img"]],[[8,"src",4],[8,"alt",0]],null,null,null,null)),(e()(),ul(11,0,null,null,1,"span",[["class","post-meta-author"]],null,null,null,null,null)),(e()(),bl(12,null,["",""])),(e()(),ul(13,0,null,null,1,"time",[["class","post-meta-time"]],null,null,null,null,null)),(e()(),bl(14,null,["",""])),(e()(),al(16777216,null,null,1,null,Fm)),yi(16,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(17,0,null,null,0,"div",[["class","post-content"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),al(16777216,null,null,1,null,$m)),yi(19,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(20,0,null,null,1,"app-footer",[],null,null,null,Lg,Fg)),yi(21,49152,null,0,Ug,[],null,null)],(function(e,t){var n=t.component;e(t,2,0,n.postCover),e(t,16,0,n.postModel.post.categories),e(t,19,0,n.postModel.older||n.postModel.newer)}),(function(e,t){var n=t.component;e(t,7,0,n.postModel.post.title),e(t,9,0,Os(1,"?author=",n.postModel.post.author.appUserName,"")),e(t,10,0,Os(1,"",n.avatarImg,""),Os(1,"",n.postModel.post.author.displayName,"")),e(t,12,0,n.postModel.post.author.displayName),e(t,14,0,n.toDate(n.postModel.post.published)),e(t,17,0,n.postModel.post.content)}))}function zm(e){return El(0,[(e()(),al(16777216,null,null,1,null,Hm)),yi(1,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.postModel)}),null)}function Bm(e){return El(0,[(e()(),ul(0,0,null,null,1,"app-posts",[],null,null,null,zm,Pm)),yi(1,114688,null,0,Mm,[_m,Wd],null,null)],(function(e,t){e(t,1,0)}),null)}var Gm=Zs("app-posts",Mm,Bm,{},{},[]);class qm{constructor(e){this.blogService=e}ngOnInit(){this.root=Ra.apiEndpoint,this.blogService.getSettings().subscribe(e=>{this.settings=e})}}var Zm=os({encapsulation:0,styles:[[""]],data:{}});function Wm(e){return El(0,[(e()(),ul(0,0,null,null,8,"div",[["class","page-cover"]],null,null,null,null,null)),vi(512,null,ku,Au,[fr,Mr,_r]),yi(2,278528,null,0,Iu,[ku],{ngStyle:[0,"ngStyle"]},null),_l(3,{"background-image":0}),(e()(),ul(4,0,null,null,2,"h1",[["class","page-cover-title"]],null,null,null,null,null)),(e()(),ul(5,0,null,null,1,"a",[["href","/"]],null,null,null,null,null)),(e()(),bl(6,null,["",""])),(e()(),ul(7,0,null,null,1,"p",[["class","page-cover-desc"]],null,null,null,null,null)),(e()(),bl(8,null,["",""])),(e()(),ul(9,0,null,null,6,"div",[["class","page-content"]],null,null,null,null,null)),(e()(),ul(10,0,null,null,5,"div",[["class","container"]],null,null,null,null,null)),(e()(),ul(11,0,null,null,2,"div",[["class","jumbotron"]],null,null,null,null,null)),(e()(),ul(12,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),bl(-1,null,["404 - not found"])),(e()(),ul(14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),bl(-1,null,["Sorry, we can't find the page you were looking for"])),(e()(),ul(16,0,null,null,1,"app-footer",[],null,null,null,Lg,Fg)),yi(17,49152,null,0,Ug,[],null,null)],(function(e,t){var n=t.component,r=e(t,3,0,"url("+n.root+"/"+n.settings.cover+")");e(t,2,0,r)}),(function(e,t){var n=t.component;e(t,6,0,n.settings.title),e(t,8,0,n.settings.description)}))}function Qm(e){return El(0,[(e()(),al(16777216,null,null,1,null,Wm)),yi(1,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.settings)}),null)}function Jm(e){return El(0,[(e()(),ul(0,0,null,null,1,"app-notfound",[],null,null,null,Qm,Zm)),yi(1,114688,null,0,qm,[_m],null,null)],(function(e,t){e(t,1,0)}),null)}var Km=Zs("app-notfound",qm,Jm,{},{},[]),Ym=os({encapsulation:0,styles:[[""]],data:{}});function Xm(e){return El(0,[(e()(),ul(0,0,null,null,2,"li",[["class","blog-social-item"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,1,"a",[["class","blog-social-link"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(e()(),ul(2,0,null,null,0,"i",[],[[8,"className",0]],null,null,null,null))],null,(function(e,t){e(t,1,0,Os(1,"",t.context.$implicit.link,"")),e(t,2,0,Os(1,"blog-social-icon fa ",t.context.$implicit.icon,""))}))}function ey(e){return El(0,[(e()(),ul(0,0,null,null,2,"ul",[["class","blog-social nav ml-auto my-auto"]],null,null,null,null,null)),(e()(),al(16777216,null,null,1,null,Xm)),yi(2,278528,null,0,Cu,[Hr,jr,Dr],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.social)}),null)}function ty(e){return El(0,[(e()(),ul(0,0,null,null,7,"header",[["class","blog-header d-flex flex-column"]],null,null,null,null,null)),(e()(),ul(1,0,null,null,6,"div",[["class","container d-flex"]],null,null,null,null,null)),(e()(),ul(2,0,null,null,1,"a",[["class","blog-logo my-auto d-flex"],["href","/"]],null,null,null,null,null)),(e()(),ul(3,0,null,null,0,"img",[["class","my-auto"]],[[8,"src",4],[8,"alt",0]],null,null,null,null)),(e()(),al(16777216,null,null,1,null,ey)),yi(5,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(6,0,null,null,1,"button",[["class","blog-search-toggle btn-unstyled"],["data-target","#blog-search"],["data-toggle","modal"],["type","button"]],null,null,null,null,null)),(e()(),ul(7,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null))],(function(e,t){e(t,5,0,t.component.social)}),(function(e,t){var n=t.component;e(t,3,0,Os(2,"",n.root,"/",n.settings.logo,""),Os(1,"",n.settings.title,""))}))}function ny(e){return El(0,[(e()(),al(16777216,null,null,1,null,ty)),yi(1,16384,null,0,Eu,[Hr,jr],{ngIf:[0,"ngIf"]},null),(e()(),ul(2,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),yi(3,212992,null,0,uf,[af,Hr,ar,[8,null],Pr],null,null),(e()(),ul(4,0,null,null,14,"div",[["aria-hidden","true"],["class","modal fade blog-search"],["id","blog-search"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ul(5,0,null,null,13,"div",[["class","modal-dialog"],["role","document"]],null,null,null,null,null)),(e()(),ul(6,0,null,null,12,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ul(7,0,null,null,11,"div",[["class","modal-body p-0"]],null,null,null,null,null)),(e()(),ul(8,0,null,null,10,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(e,t,n){var r=!0,s=e.component;return"submit"===t&&(r=!1!==si(e,10).onSubmit(n)&&r),"reset"===t&&(r=!1!==si(e,10).onReset()&&r),"ngSubmit"===t&&(r=!1!==s.onSubmit(si(e,10))&&r),r}),null,null)),yi(9,16384,null,0,Og,[],null,null),yi(10,4210688,[["f",4]],0,xg,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),vi(2048,null,$f,null,[xg]),yi(12,16384,null,0,qf,[[4,$f]],null,null),(e()(),ul(13,0,null,null,5,"input",[["autocomplete","off"],["autofocus",""],["class","form-control form-control-lg"],["id","term"],["name","term"],["ngModel",""],["placeholder","Search..."],["type","search"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var r=!0;return"input"===t&&(r=!1!==si(e,14)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==si(e,14).onTouched()&&r),"compositionstart"===t&&(r=!1!==si(e,14)._compositionStart()&&r),"compositionend"===t&&(r=!1!==si(e,14)._compositionEnd(n.target.value)&&r),r}),null,null)),yi(14,16384,null,0,Lf,[_r,fr,[2,Ff]],null,null),vi(1024,null,Vf,(function(e){return[e]}),[Lf]),yi(16,671744,null,0,Rg,[[2,$f],[8,null],[8,null],[6,Vf]],{name:[0,"name"],model:[1,"model"]},null),vi(2048,null,zf,null,[Rg]),yi(18,16384,null,0,Gf,[[4,zf]],null,null)],(function(e,t){e(t,1,0,t.component.settings),e(t,3,0),e(t,16,0,"term","")}),(function(e,t){e(t,8,0,si(t,12).ngClassUntouched,si(t,12).ngClassTouched,si(t,12).ngClassPristine,si(t,12).ngClassDirty,si(t,12).ngClassValid,si(t,12).ngClassInvalid,si(t,12).ngClassPending),e(t,13,0,si(t,18).ngClassUntouched,si(t,18).ngClassTouched,si(t,18).ngClassPristine,si(t,18).ngClassDirty,si(t,18).ngClassValid,si(t,18).ngClassInvalid,si(t,18).ngClassPending)}))}function ry(e){return El(0,[(e()(),ul(0,0,null,null,1,"app-root",[],null,null,null,ny,Ym)),yi(1,114688,null,0,Da,[_m],null,null)],(function(e,t){e(t,1,0)}),null)}var sy=Zs("app-root",Da,ry,{},{},[]);class iy{}var oy=Na(Oa,[Da],(function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const i=e[s];i.token===ze&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=s,t[rs(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Fs(512,ar,ur,[[8,[Mf,Dm,Gm,Km,sy]],[3,ar],hr]),Fs(5120,Yi,il,[[3,Yi]]),Fs(4608,vu,_u,[Yi,[2,yu]]),Fs(5120,Di,ol,[mo]),Fs(5120,Gi,qi,[]),Fs(5120,Dr,rl,[]),Fs(5120,Mr,sl,[]),Fs(4608,Nh,Ih,[Du]),Fs(6144,un,null,[Nh]),Fs(4608,Ch,Eh,[]),Fs(5120,Qc,(function(e,t,n,r,s,i,o,l){return[new wh(e,t,n),new Ah(r),new xh(s,i,o,l)]}),[Du,mo,Qi,Du,Du,Ch,Ki,[2,Sh]]),Fs(4608,Jc,Jc,[Qc,mo]),Fs(135680,Xc,Xc,[Du]),Fs(4608,oh,oh,[Jc,Xc,Gi]),Fs(6144,yr,null,[oh]),Fs(6144,Yc,null,[Xc]),Fs(4608,So,So,[mo]),Fs(5120,Wd,Tf,[of]),Fs(4608,pf,pf,[]),Fs(6144,hf,null,[pf]),Fs(135680,ff,ff,[of,Uo,oo,Ge,hf]),Fs(4608,df,df,[]),Fs(5120,gf,bf,[of,Mu,mf]),Fs(5120,If,Nf,[kf]),Fs(5120,Ji,(function(e){return[e]}),[If]),Fs(4608,pm,fm,[Du,Qi,hm]),Fs(4608,gm,gm,[pm,dm]),Fs(5120,im,(function(e){return[e]}),[gm]),Fs(4608,um,um,[]),Fs(6144,am,null,[um]),Fs(4608,cm,cm,[am]),Fs(6144,Hg,null,[cm]),Fs(4608,$g,mm,[Hg,Ge]),Fs(4608,rm,rm,[$g]),Fs(4608,rg,rg,[]),Fs(1073742336,Ou,Ou,[]),Fs(1024,Un,Fh,[]),Fs(1024,Io,(function(){return[_f()]}),[]),Fs(512,kf,kf,[Ge]),Fs(1024,zi,(function(e,t){return[(n=e,qc("probe",Wc),qc("coreTokens",Object.assign({},Zc,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>Wc),Af(t)];var n}),[[2,Io],kf]),Fs(512,Bi,Bi,[[2,zi]]),Fs(131584,Po,Po,[mo,Ki,Ge,Un,ar,Bi]),Fs(1073742336,ll,ll,[Po]),Fs(1073742336,Lh,Lh,[[3,Lh]]),Fs(1024,yf,Sf,[[3,of]]),Fs(512,Td,kd,[]),Fs(512,af,af,[]),Fs(256,mf,{},[]),Fs(1024,Va,Cf,[Ma,[2,Ua],mf]),Fs(512,Fa,Fa,[Va,Ma]),Fs(512,oo,oo,[]),Fs(512,Uo,jo,[oo,[2,Fo]]),Fs(1024,Yp,(function(){return[[{path:"",component:jg},{path:"posts/:slug",component:Mm},{path:"**",component:qm}]]}),[]),Fs(1024,of,xf,[Po,Td,af,Fa,Ge,Uo,oo,Yp,mf,[2,ef],[2,Jp]]),Fs(1073742336,wf,wf,[[2,yf],[2,of]]),Fs(1073742336,iy,iy,[]),Fs(1073742336,ym,ym,[]),Fs(1073742336,vm,vm,[]),Fs(1073742336,Pg,Pg,[]),Fs(1073742336,Vg,Vg,[]),Fs(1073742336,Oa,Oa,[]),Fs(256,ze,!0,[]),Fs(256,hm,"XSRF-TOKEN",[]),Fs(256,dm,"X-XSRF-TOKEN",[])])}));Ra.production&&function(){if(Ft)throw new Error("Cannot enable prod mode after platform setup.");Ut=!1}(),Uh().bootstrapModuleFactory(oy).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);